PR target/68609
[official-gcc.git] / gcc / ChangeLog
blob0d4e6f2decf0ed8ddbe612c1b37a880a9f043194
1 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
3         PR target/68609
4         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
5         bool arguement.
6         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
7         non-reciporcal path.
8         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
9         (sqrt<mode>2): Replace define_insn with define_expand that may call
10         rs6000_emit_swsqrt.
11         
12 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
13             Sebastian Pop  <s.pop@samsung.com>
15         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
16         Improve debug.
17         (get_rename_from_scev): Check that all the ops in an expression
18         have their uses dominated by corresponding defs.
20 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
21             Sebastian Pop  <s.pop@samsung.com>
23         PR tree-optimization/68693
24         * graphite-scop-detection.c (dot_all_sese): New
25         (dot_all_scops_1): Renamed to dot_all_sese.
26         (dot_all_scops): Removed.
27         (dot_sese): New.
28         (dot_cfg): New.
29         (scop_detection::get_nearest_dom_with_single_entry): Check that
30         preds are from different loop levels.
31         (scop_detection::get_nearest_pdom_with_single_exit): Check that
32         succs are from different loop levels.
33         (scop_detection::print_sese): Inlined.
34         (scop_detection::print_edge): New.
35         (scop_detection::merge_sese): Added dumps.
36         * graphite.h: Add declarations.
38 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
40         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
41         constraints.
43 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
45         PR rtl-optimization/68349
46         * lra-eliminations.c (move_plus_up): New function.
47         (lra_eliminate_regs_1): Use the function.
49 2015-12-04  Nathan Sidwell  <nathan@acm.org>
51         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New,
52         replacing ...
53         (init_output_initializer): ... this.
54         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
55         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
56         nvptx_assemble_decl_begin.
58 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
60         * sancov.c: New file.
61         * Makefile.in (OBJS): Add sancov.o.
62         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
63         * passes.def (sancov_pass): Add.
64         * tree-pass.h  (sancov_pass): Add.
65         * common.opt (-fsanitize-coverage=trace-pc): Add.
66         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
67         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
68         flag_sanitize_coverage.
70 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
72         PR middle-end/65958
73         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
74         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
75         * config/arm/arm.md (probe_stack_range): Adjust.
76         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
77         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
78         (probe_stack_range_<PTR:mode>): Adjust.
80 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
82         * convert.c (convert_to_real_1): When converting from a
83         REAL_TYPE, preserve the location of EXPR in the result.
84         * tree.c (get_pure_location): Make non-static.
85         (set_source_range): Return the resulting location_t.
86         (make_location): New function.
87         * tree.h (get_pure_location): New decl.
88         (get_finish): New inline function.
89         (set_source_range): Convert return type from void to location_t.
90         (make_location): New decl.
92 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
94         PR c/68656
95         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
96         input_location to inform.
97         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
98         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
99         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
101 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
103         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
104         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
105         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
106         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
107         comdat and non-comdat.
108         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
109         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
110         and icf_merged.
112 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
114         * (cstore<mode>4_unsigned): Use gpc_reg_operand instead of
115         register_operand.  Remove empty constraints.  Use std::swap.
116         (cstore_si_as_di, cstore<mode>4_signed_imm,
117         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
118         gpc_reg_operand instead of register_operand.
119         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
120         register_operand.  Remove empty constraints.
122 2015-12-04  Nick Clifton  <nickc@redhat.com>
124         * config.gcc (extra_gcc_objs): Define for MSP430.
125         * common/config/msp430/msp430-common.c (msp430_handle_option):
126         Pass both -mmcu and -mcpu on to the back end if they are both
127         defined.
128         * config/msp430/msp430.c (hwmult_name): New function.
129         (msp430_option_override): If an unrecognised MCU name is
130         detected only warn if the user has not provided suitable
131         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
132         warning messages.  Generate warnings about conflicts between
133         -mmcu and -mcpu and -mhwmult options.
134         If neither -mcpu nor -mmcu have been specified but -mhwmult=
135         f5series has the select the 430X isa.
136         (msp430_no_hwmult): If -mmcu has not been specified and
137         msp430_hwmult_type is AUTO then return true.
138         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
139         (LIB_SPEC): Add hardware multiply library selection.
140         * config/msp430/t-msp430: Delete hardware multiply multilibs.
141         Add rule to build driver-msp430.o
142         * config/msp430/driver-msp430.c: New file.
143         * config/msp430/msp430.opt (warn-mcu): New option.
144         * doc/invoke.texi: Update description of -mhwmult=auto.
145         Document -mwarn-mcu option.
147 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
149         * (cstore<mode>4_signed): New expander.
150         (cstore<mode>4): Call it.
152 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
154         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
156         PR tree-optimization/68680
157         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
158         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
159         by name.
161         PR tree-optimization/68671
162         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
163         blocks starting with the successor of first bb we've modified
164         and ending with last_bb call reset_flow_sensitive_info_in_bb.
166 2015-12-04  Jeff Law  <law@redhat.com>
168         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
169         indicating if a gimple conditional was optimized to true/false.
170         (reassociate_bb): Bubble up return value from
171         maybe_optimize_range_tests.
172         (do_reassoc): Similarly, but for reassociate_bb.
173         (execute_reassoc): Return TODO_cleanup_cfg as needed.
175 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
177         * config/aarch64/aarch64.c (aarch64_override_options_internal):
178         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
179         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
180         does not affect the assembler directives.
182 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
184         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
185         emit .machine and .machinemode to the top of the assembler file.
186         (TARGET_ASM_FILE_START): Provide target hook.
187         (s390_asm_output_machine_for_arch): Protect with
188         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
190 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
192         * config/s390/s390.opt (s390_arch_string): Remove.
193         (s390_tune_string): Likewise.
194         (s390_cost_pointer): Add Variable.
195         (s390_tune_flags): Add TargetVariable.
196         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
197         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
198         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
199         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
200         (mwarn-framesize=): Save option.
201         (mno-stack-guard, mno-stack-guard): New option.
202         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
203         (mwarn-framesize=): Convert to UInteger (negative values are rejected
204         now).
205         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
206         macros changeable through the GCC target pragma into a separate
207         function.
208         (s390_cpu_cpp_builtins): Likewise.
209         (s390_pragma_target_parse): New function, implement GCC target pragma
210         if enabled.
211         (s390_register_target_pragmas): Register s390_pragma_target_parse if
212         available.
213         * common/config/s390/s390-common.c (s390_handle_option):
214         Export.
215         Move setting s390_arch_flags to s390.c.
216         Remove s390_tune_flags.
217         Allow 0 as argument to -mstack-size (switch to default value).
218         Allow 0 as argument to -mstack-guard (switch off).
219         Remove now unnecessary explicit parsing code for -mwarn-framesize.
220         * config/s390/s390-protos.h (s390_handle_option): Export.
221         (s390_valid_target_attribute_tree): Export.
222         (s390_reset_previous_fndecl): Export.
223         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
224         and end of HTM and VX builtins.
225         (s390_asm_output_function_prefix): Declare hook.
226         (s390_asm_declare_function_size): Likewise.
227         * config/s390/s390-builtins.h (B_GROUP): Use macro.
228         * config/s390/s390-opts.h: Add comment about processor_type usage.
229         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
230         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
231         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
232         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
233         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
234         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
235         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
236         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
237         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
238         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
239         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
240         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
241         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
242         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
243         undefined.
244         (vec_all_nan): Rewrite as macro using statement expressions to avoid
245         that the vector keyword needs to be defined when including the file.
246         (vec_all_numeric): Likewise.
247         (vec_any_nan): Likewise.
248         (vec_any_numeric):  Likewise.
249         * config/s390/s390.c (s390_previous_fndecl): New static variable.
250         (s390_set_current_function): New function.
251         (s390_cost): Wrapper macro to allow defining the cost table pointer in
252         the options file.
253         (processor_table): Table for march= and mtune= parsing.
254         (s390_init_builtins): Enable all builtins and types unconditionally.
255         (s390_expand_builtin): Generate an error message if builtin is not
256         supported by current options.
257         Correct an error message.
258         (s390_function_specific_restore): New function to set s390_cost.
259         (s390_asm_output_machine_for_arch): New function for emitting .machine
260         and .machinmode directives to the assembler file.
261         (s390_asm_output_function_prefix): Likewise.
262         (s390_asm_declare_function_size):  Likewise.
263         (s390_asm_output_function_label): Add mdebug output for feature testing.
264         (s390_option_override): Move implementation into internal function.
265         (s390_option_override_internal): Likewise.
266         Implement option overriding based on current options.
267         (s390_valid_target_attribute_inner_p): New function implementing target
268         attribute logic.
269         (s390_valid_target_attribute_tree): Likewise.
270         (s390_valid_target_attribute_p): Likewise.
271         (s390_reset_previous_fndecl): Likewise.
272         (s390_set_current_function): Likewise.
273         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
274         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
275         (TARGET_OPTION_RESTORE): Likewise.
276         * doc/extend.texi: S390: Document target attribute and pragma.
277         * config.in: Regenerated.
278         * configure: Regenerated.
279         * configure.ac: S390: Check for .machinemode and .machine in gas.
280         S390: Check for architecture modifiers support in gas.
282 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
284         * doc/extend.texi ("simd"): Describe new flags.
286 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
288         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
289         operand checked for alignment.
291 2015-12-04  Nathan Sidwell  <nathan@acm.org>
293         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
294         emission too. Change 'no_arg_types' to 'prototyped'.
295         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
296         main.
297         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
299 2015-12-04  Richard Biener  <rguenther@suse.de>
301         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
302         member and initialize it.
303         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
304         if necessary.
305         (sccvn_dom_walker::before_dom_children): If unreachable_dom
306         is set BB is not reachable either.  Set unreachable_dom
307         if not set and BB is unreachable.
309 2015-12-04  Richard Biener  <rguenther@suse.de>
311         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
312         query with GATHER_STATISTICS.
314 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
316         PR middle-end/65958
317         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
318         fields, add keep_stack and reorder them.
319         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
320         set it to false.  Do not insert a stack save/restore pair if it has
321         been set to true by the gimplification of the statements.
322         Restore it to the saved value on exit if it is still false.
323         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
324         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
325         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
326         * doc/extend.texi (Variable Length): Document new behavior.
327         * doc/generic.texi (Blocks): Document new handling of VLAs.
329 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
330             Tristan Gingold  <gingold@adacore.com>
332         PR middle-end/65958
333         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
334         Declare.
335         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
336         UNSPEC_PROBE_STACK_RANGE.
337         (blockage): New instruction.
338         (probe_stack_range_<PTR:mode>): Likewise.
339         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
340         function.
341         (aarch64_output_probe_stack_range): Likewise.
342         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
343         static builtin stack checking is enabled.
344         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
345         Define to 1.
347 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
349         PR target/68214
350         * config/arm/arm.md (*call_mem): Delete pattern.
351         (*call_value_mem): Likewise.
352         * config/arm/arm.c (output_call_mem): Delete.
353         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
355 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
357         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
358         aarch64_sync_memory_operand.
360 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
362         PR target/68655
363         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
364         (expand_vec_perm_1): Use it and recurse if everything else
365         failed.  Use nd.perm instead of perm2.
366         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
367         instead of gen_lowpart for the target.
368         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
369         and recurse if everything else failed.
371 2015-12-04  Richard Biener  <rguenther@suse.de>
373         PR middle-end/68636
374         * builtins.c (get_pointer_alignment_1): Take care of byte to
375         bit alignment computation overflow.
377 2015-12-04  Richard Biener  <rguenther@suse.de>
379         PR middle-end/67438
380         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
381         a constant with single_use.
383 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
384             Jiong Wang  <jiong.wang@arm.com>
386         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
387         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
389 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
391         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
392         Add short circuit for !flag_strict_aliasing
393         (get_alias_set): Remove flag_strict_aliasing check.
394         (new_alias_set): Likewise.
396 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
398         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
399         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
400         (exynosm1_regmove_cost): Likewise.
401         (exynosm1_vector_cost): Likewise.
402         (exynosm1_tunings): Likewise.
403         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
404         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
406 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
407             Richard Biener  <richard.guenther@gmail.com>
409         * cfgexpand.c (pass_expand::execute): Replace call to
410         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
411         * tree-ssa.c (delete_tree_ssa): Likewise.
412         * function.c (set_cfun): Call redirect_edge_var_map_empty.
413         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
414         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
415         (redirect_edge_var_map_empty): New.
416         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
417         (redirect_edge_var_map_empty): New.
419 2015-12-03  Jeff Law  <law@redhat.com>
421         PR tree-optimization/68599
422         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
423         in call to loop_optimizer_init.
424         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
425         optimization to drop the assumptions/infinite notations if
426         the loop has a single exit.
428 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
430         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
431         the pattern cannot FAIL.
432         (vec_store_lanes@var{m}@var{n}): Likewise.
433         (maskload@var{m}@var{n}): Likewise.
434         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
435         in the name of the pattern.
436         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
437         floating-point mode and that all operands have that mode.
438         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
439         pattern cannot FAIL.
440         (sqrt@var{m}2): Document that mode m must be a scalar or vector
441         floating-point mode, that all operands have that mode, and that
442         the patterns cannot FAIL.  Remove previous documentation referring
443         to @code{double} and @code{float}.
444         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
445         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
446         (copysign@var{m}3): Likewise.
447         (exp@var{m}2): Likewise.  Explicitly state the base.
448         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
449         (btrunc@var{m}2, rint@var{m}2): Likewise.
450         (round@var{m}2): Likewise.  Fix incorrect description of rounding
451         effect.
452         (ceil@var{m}2): As for round@var{m}2.
453         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
454         the instruction must not raise an inexact condition.
455         (scalb@var{m}3): Document previously-undocumented pattern
456         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
457         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
458         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
459         (significand@var{m}2): Likewise.
460         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
461         mode m and operand 0 is defined more freely.  Document that @var{m}
462         can be a scalar or vector integer mode and that the pattern is not
463         allowed to FAIL.
464         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
465         (clrsb@var{m}2): Likewise, except that the description of the
466         mode was missing in this case.
468 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
470         * internal-fn.def (RSQRT): New function.
471         * optabs.def (rsqrt_optab): New optab.
472         * doc/md.texi (rsqrtM2): Document.
473         * target.def (builtin_reciprocal): Replace gcall argument with
474         a function decl.  Restrict hook to machine functions.
475         * doc/tm.texi: Regenerate.
476         * targhooks.h (default_builtin_reciprocal): Update prototype.
477         * targhooks.c (default_builtin_reciprocal): Likewise.
478         * tree-ssa-math-opts.c: Include internal-fn.h.
479         (internal_fn_reciprocal): New function.
480         (pass_cse_reciprocals::execute): Call it, and build a call to an
481         internal function on success.  Only call targetm.builtin_reciprocal
482         for machine functions.
483         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
484         second argument.
485         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
486         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
487         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
488         machine functions.
489         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
490         (aarch64_builtin_reciprocal): Replace gcall argument with a
491         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
492         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
493         (aarch64_optab_supported_p): New function.
494         (TARGET_OPTAB_SUPPORTED_P): Define.
495         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
496         (rsqrt<mode>2): ...this.
497         * config/i386/i386.c (use_rsqrt_p): New function.
498         (ix86_builtin_reciprocal): Replace gcall argument with a
499         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
500         check.  Only handle machine functions.
501         (ix86_optab_supported_p): Handle rsqrt_optab.
502         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
503         (rs6000_builtin_reciprocal): Replace gcall argument with a
504         function decl.  Remove optimize_insn_for_size_p check.
505         Only handle machine functions.
506         (rs6000_optab_supported_p): New function.
508 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
510         PR target/68471
511         PR target/68472
512         * config/i386/i386.c (ix86_mitigate_rop): Don't call
513         compute_bb_for_insn again.  Call df_insn_rescan_all.
514         * config/i386/i386.md (set_got_rex64): Override modrm_class.
516         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
518 2015-12-03  Nathan Sidwell  <nathan@acm.org>
520         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
521         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
522         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
523         (nvptx_option_override): Set data ares for worker vars.
524         (nvptx_addr_space_from_sym): Delete.
525         (nvptx_encode_section_info): New.
526         (section_for_sym, section_for_decl): New.
527         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
528         flags,
529         (nvptx_section_from_addr_space): Delete.
530         (nvptx_section_for_decl): Delete.
531         (nvptx_output_aligned, nvptx_declare_object_name,
532         nvptx_assemble_undefined_decl): Use section_for_decl, remove
533         unnecessary checks.
534         (nvptx_print_operand): Add 'D', adjust 'A'.
535         (nvptx_expand_worker_addr): Adjust unspec generation.
536         (TARGET_ENCODE_SECTION_INFO): Override.
537         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
538         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
539         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
540         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
541         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
542         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
543         (UNSPEC_TO_GENERIC): New.
544         (nvptx_register_or_symbolic_operand): Delete.
545         (cvt_code, cvt_name, cvt_str): Delete.
546         (convaddr_<cvt_name><mode> [P]): Delete.
547         (convaddr_<mode> [P]): New.
549 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
551         PR rtl-optimization/68624
552         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
553         blocks if they exist and simplify the logic choosing the order to emit
554         them in.
556 2015-12-03  Richard Biener  <rguenther@suse.de>
558         PR tree-optimization/66051
559         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
560         on load group size.  Do not pass in vectorization_factor.
561         (vect_transform_slp_perm_load): Do not require any permute support.
562         (vect_build_slp_tree): Do not pass in vectorization factor.
563         (vect_analyze_slp_instance): Do not compute vectorization
564         factor estimate.  Use vector size instead of vectorization factor
565         estimate to split store groups for BB vectorization.
567 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
569         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
570         DECL as return value is allowed to have NULL bounds.
572 2015-12-03  Tom de Vries  <tom@codesourcery.com>
574         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
575         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
576         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
578 2015-12-03  Richard Biener  <rguenther@suse.de>
580         PR tree-optimization/67800
581         PR tree-optimization/68333
582         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
583         restriction to reduction contexts but allow SLP reductions as well.
584         (vect_recog_sad_pattern): Likewise.
585         (vect_recog_widen_sum_pattern): Likewise.
587 2015-12-03  Richard Biener  <rguenther@suse.de>
589         PR tree-optimization/68639
590         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
591         belonging to different loops.
592         (vect_analyze_data_ref_accesses): Likewise.
594 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
596         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
597         Remove "prefix_extra".
598         (define_insn "vec_extract_hi_<mode>_mask"): New.
599         (define_insn "vec_extract_hi_<mode>"): Remove masking.
601 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
603         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
604         (propagate_pure_const): Use it; fix comments and optimize loops.
606 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
608         * ipa-pure-const.c (ignore_edge): Rename to ...
609         (ignore_edge_for_nothrow) ... this one; also ignore eges to
610         interposable functions or ones that can not throw.
611         (propagate_nothrow): Fix handling of availability.
613 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
615         PR ipa/68184
616         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
618 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
619             Sebastian Pop  <s.pop@samsung.com>
621         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
622         (gcc_expression_from_isl_expr_op): Same.
624 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
625             Sebastian Pop  <s.pop@samsung.com>
627         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
628         that insertion point is still in the region.
630 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
631             Sebastian Pop  <s.pop@samsung.com>
633         PR tree-optimization/68550
634         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
635         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
636         statements.
638 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
640         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
641         * configure: Regenerate.
642         * config.in: Regenerate.
643         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
644         function.
645         (rs6000_output_function_prologue): Use it instead of checking
646         cfun->machine->r2_setup_needed.  Use internal labels instead of
647         GNU as local label extension.  Handle ELFv2 large code model.
648         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
649         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
651 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
653         PR target/68647
654         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
655         New functions.
656         (expand_unop): Use them.
658 2015-12-02  Marek Polacek  <polacek@redhat.com>
660         PR c++/68653
661         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
663 2015-12-02  Nathan Sidwell  <nathan@acm.org>
665         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
666         SHUFFLE defines.
667         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
669 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
670             Sebastian Pop  <s.pop@samsung.com>
672         * graphite-dependences.c (scop_get_reads): Add extra dumps.
673         (scop_get_must_writes): Same.
674         (scop_get_may_writes): Same.
675         (compute_deps): Same.
676         * graphite-sese-to-poly.c (bounds_are_valid): New.
677         (pdr_add_data_dimensions): Call bounds_are_valid.
679 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
680             Sebastian Pop  <s.pop@samsung.com>
682         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
683         * graphite-poly.c (apply_poly_transforms): Same.
684         * graphite.c (gate_graphite_transforms): Same.
685         * toplev.c (process_options): Same.
687 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
689         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
690         (mips_output_probe_stack_range): Rotate the loop and simplify.
692 2015-12-02  David Sherwood  <david.sherwood@arm.com>
694         * config/aarch64/aarch64.md: New pattern.
695         * config/aarch64/aarch64-simd.md: Likewise.
696         * config/aarch64/iterators.md: New unspecs, iterators.
698 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
700         * dwarf2out.c (dwar2out_var_location): In addition to notes,
701         process indirect calls whose target is compile-time known.
702         Enhance pattern matching to get the SYMBOL_REF they embed.
703         (gen_subprogram_die): Handle such calls.
704         * final.c (final_scan_insn): For call instructions, invoke the
705         var_location debug hook only after the call has been emitted.
707 2015-12-02  Tom de Vries  <tom@codesourcery.com>
709         * gimplify.c (enum gimplify_omp_var_data): Add enum value
710         GOVD_MAP_FORCE.
711         (oacc_default_clause): Fix default for scalars in oacc kernels.
712         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
714 2015-12-02  Tom de Vries  <tom@codesourcery.com>
716         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
717         parameter base_pointers_restrict.
718         (omp_target_base_pointers_restrict_p): New function.
719         (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
720         arg.
722 2015-12-02  Nathan Sidwell  <nathan@acm.org>
724         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
725         (nvptx_underlying_object_mode): Delete.
726         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
727         (output_reg): New.
728         (nvptx_declare_function_name): Use output_reg.  Remove punning
729         buffer.
730         (nvptx_output_mov_insn): New.
731         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
732         Use output_reg. Merge 't' and 'u' handling.
733         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
734         (struct machine_function): Remvoe punning_buffer_size.
735         (REGISTER_NAMES): Remove %punbuffer.
736         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
737         UNSPEC_CPLX_HIGHPART): Delete.
738         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
739         nvptx_output_mov_insn.
740         (*mov<mode>_insn [SDFM): Reorder constraints to match integer
741         moc.  Use nvptx_output_mov_insn.
742         (highpartscsf2,  set_highpartscsf2, lowpartscsf2,
743         set_lowpartscsf2): Delete.
744         (mov<mode> [SDCM]): Delete.
746 2015-12-02  Richard Biener  <rguenther@suse.de>
748         * tree.h (tree_invariant_p): Declare.
749         * tree.c (tree_invariant_p): Export.
750         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
751         create SAVE_EXPRs but reject patterns if we would need to.
753 2015-12-02  Tom de Vries  <tom@codesourcery.com>
755         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
756         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
758 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
760         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
761         (cstore<mode>4): Use it.
763 2015-12-02  Richard Biener  <rguenther@suse.de>
765         PR tree-optimization/68625
766         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
767         cleanup_control_flow_bb.
768         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
769         on all BBs, then cleanup_tree_cfg_bb and finally iterate
770         over the worklist doing both.
772 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
774         PR tree-optimization/68432
775         * coretypes.h (optimization_type): New enum.
776         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
777         * doc/tm.texi: Regenerate.
778         * target.def (optab_supported_p): New hook.
779         * targhooks.h (default_optab_supported_p): Declare.
780         * targhooks.c (default_optab_supported_p): New function.
781         * predict.h (function_optimization_type): Declare.
782         (bb_optimization_type): Likewise.
783         * predict.c (function_optimization_type): New function.
784         (bb_optimization_type): Likewise.
785         * optabs-query.h (convert_optab_handler): Define an overload
786         that takes an optimization type.
787         (direct_optab_handler): Likewise.
788         * optabs-query.c (convert_optab_handler): Likewise.
789         (direct_optab_handler): Likewise.
790         * internal-fn.h (direct_internal_fn_supported_p): Take an
791         optimization_type argument.
792         * internal-fn.c (direct_optab_supported_p): Likewise.
793         (multi_vector_optab_supported_p): Likewise.
794         (direct_internal_fn_supported_p): Likewise.
795         * builtins.c (replacement_internal_fn): Update call to
796         direct_internal_fn_supported_p.
797         * gimple-match-head.c (build_call_internal): Likewise.
798         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
799         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
800         * tree.c (maybe_build_call_expr_loc): Likewise.
801         * config/i386/i386.c (ix86_optab_supported_p): New function.
802         (TARGET_OPTAB_SUPPORTED_P): Define.
803         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
804         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
805         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
806         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
807         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
808         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
810 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
812         * Makefile.in (GENSUPPORT_H): New macro.
813         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
814         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
815         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
816         (build/genconstants.o, build/genextract.o, build/genflags.o)
817         (build/gentarget-def.o): Use it.
818         (build/genemit.o): Likewise.  Depend on internal-fn.def.
819         * genopinit.c: Move block comment to optabs.def.
820         (optab_tag, optab_def): Move to gensupport.h
821         (pattern): Likewise, renaming to optab_pattern.
822         (match_pattern): Move to gensupport.c
823         (gen_insn): Use find_optab.
824         (patterns, pattern_cmp): Replace pattern with optab_pattern.
825         (main): Likewise.  Use num_optabs.
826         * optabs.def: Add comment that was previously in genopinit.c.
827         * gensupport.h (optab_tag): Moved from genopinit.c
828         (optab_def): Likewise, expanding commentary.
829         (optab_pattern): Likewise, after renaming from pattern.
830         (optabs, num_optabs, find_optab): Declare.
831         * gensupport.c (optabs): Moved from genopinit.c.
832         (num_optabs): New variable.
833         (match_pattern): Moved from genopinit.c.
834         (find_optab): New function, extracted from genopinit.c:gen_insn.
835         * genemit.c (nofail_optabs): New variable.
836         (emit_c_code): New function.
837         (gen_expand): Check whether the instruction is an optab that isn't
838         allowed to fail.  Call emit_c_code.
839         (gen_split): Call emit_c_code here too.
840         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
842 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
844         * config/s390/predicates.md (const_mask_operand): New predicate.
845         * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
846         * config/s390/vector.md: Change predicate from immediate_operand
847         to either const_int_operand or const_mask_operand.  Add special
848         insn conditions on patterns which have to exclude certain values.
849         * config/s390/vx-builtins.md: Likewise.
851 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
853         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
854         mode from DI to SI.
856 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
858         * config/s390/s390-builtin-types.def: New builtin types added.
859         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
860         * config/s390/s390.c (s390_expand_builtin): Always truncate
861         constants to the mode in the pattern.
862         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
863         respective builtin __builtin_s390_vec_splat_*.
865 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
867         * config/s390/s390-builtin-types.def: Sort builtin types.
869 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
871         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
872         condition for the RT flag.
874 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
876         * config/s390/constraints.md ("jKK"): New constraint.
877         * config/s390/s390.c (tm-constrs.h): Include for
878         satisfies_constraint_*.
879         (s390_legitimate_constant_p): Allow jKK constants.  Use
880         satisfies_constraint_* also for the others.
881         (legitimate_reload_vector_constant_p): Likewise.
882         (print_operand): Allow h output modifier on vectors.
883         * config/s390/vector.md ("mov<mode>"): Add vrepi.
885 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
887         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
888         latter I->K.
890 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
892         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
893         strvg.
894         ("bswaphi2"): New pattern.
895         New splitter for HI reg-reg bswap.
897 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
899         PR driver/68029
900         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color 
901         if it is the first parameter.
903 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
905         PR tree-optimization/68577
906         * tree-vect-stmts.c (simple_integer_narrowing): New function.
907         (vectorizable_call): Restrict internal function handling
908         to NONE and NARROW cases, using simple_integer_narrowing
909         to test for the latter.  Add cost of narrowing operation
910         and insert it where necessary.
912 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
914         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
915         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
916         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
918 2015-12-01  Nathan Sidwell  <nathan@acm.org>
920         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
921         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
922         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
923         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
924         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
925         (init_output_initializer): Call write_var_marker.
926         (nvptx_output_aligned_decl): New.
927         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
929 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
931         * c-common.c (parse_optimize_options): Do not silently ignore
932         -fstrict-aliasing changes.
934 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
936         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
937         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
938         stream TYPE_ALIAS_SET.
939         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
940         stream TYPE_ALIAS_SET.
942 2015-12-01  Nathan Sidwell  <nathan@acm.org>
944         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
945         consider mode.
947 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
949         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
950         indirection for large and small code models.
951         (adjust_vperm): Likewise.
953 2015-12-01  Julian Brown  <julian@codesourcery.com>
954             Cesar Philippidis  <cesar@codesourcery.com>
955             James Norris  <James_Norris@mentor.com>
957         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
958         support.
959         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
960         (is_gimple_omp_oacc): Add support for above.
961         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
962         (omp_notice_variable): Diagnose undefined implicit uses of
963         use_device variables in offloaded regions.
964         (gimplify_scan_omp_clauses): Add host_data, use_device
965         support. Diagnose undefined mapping of use_device variables in
966         OpenACC clauses.
967         (gimplify_omp_workshare): Add host_data support.
968         (gimplify_expr): Likewise.
969         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
970         * omp-low.c (lookup_decl_in_outer_ctx)
971         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
972         host_data regions.
973         (scan_sharing_clauses): Support use_device.
974         (check_omp_nesting_restrictions): Support host_data.
975         (expand_omp_target): Support host_data.
976         (lower_omp_target): Skip over outer host_data regions when looking
977         up decls. Support use_device.
978         (make_gimple_omp_edges): Support host_data.
979         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
980         clause.
982 2015-12-01  Marek Polacek  <polacek@redhat.com>
984         PR middle-end/68582
985         * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
986         for VAR_DECLs.
988 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
990         PR tree-optimization/68474
991         * tree-call-cdce.c (use_internal_fn): Protect call to
992         gen_shrink_wrap_conditions.
994 2015-12-01  Christian Bruel  <christian.bruel@st.com>
996         PR target/68617
997         * config/arm/arm.opt (unaligned_access): Save.
998         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
999         * config/arm/arm.c (arm_option_override): Move unaligned_access setting
1000         (arm_option_override_internal): ... here.
1001         * config/arm/arm.h (TARGET_32BIT_P): New macro.
1003 2015-12-01  Richard Biener  <rguenther@suse.de>
1005         PR tree-optimization/68379
1006         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1007         always base loads on the first used DR of a group.
1008         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1009         Compute alignment of the first scalar element unconditionally.
1011 2015-12-01  Richard Biener  <rguenther@suse.de>
1013         PR middle-end/68590
1014         * genmatch.c (struct capture_info): Add match_use_count.
1015         (capture_info::walk_match): Increment match_use_count.
1016         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1017         replacements in a save_expr if they occur more often than
1018         in the original expression.
1020 2015-12-01  Richard Biener  <rguenther@suse.de>
1022         PR ipa/68470
1023         * ipa-split.c (split_function): Handle main part not returning.
1025 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1027         PR middle-end/68595
1028         * tree-vect-stmts.c (vect_init_vector): Cast boolean
1029         scalars to a proper value before building a vector.
1031 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1033         * genattrtab.c (check_attr_test): Take an attr_desc instead of
1034         an is_const flag.  Put the file_location argument first.
1035         Update recursive calls.  Improve error messages.
1036         (check_attr_value): Take a file location and use it instead
1037         of attr->loc.  Improve error messages.  Update calls to
1038         check_attr_test.
1039         (check_defs): Update call to check_attr_value.
1040         (make_canonical): Likewise.
1041         (gen_attr): Likewise.
1042         (main): Likewise.
1043         (gen_insn_reserv): Update call to check_attr_test.
1045 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1047         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1049 2015-12-01  Richard Biener  <rguenther@suse.de>
1051         PR middle-end/68590
1052         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1054 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1056         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1057         odr_type_p): Move to ...
1058         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1059         odr_type_p): here; miscro-optimize.
1061 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
1063         PR tree-optimization/68529
1064         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1065         Compute no-overflow information for control iv.
1066         (number_of_iterations_lt, number_of_iterations_le): Add new param.
1067         (number_of_iterations_cond): Pass new argument to above functions.
1069 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
1071         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1072         inlining -fno-strict-aliasing into -fstrict-aliasing body.
1074 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1075             Sebastian Pop  <s.pop@samsung.com>
1077         PR tree-optimization/68565
1078         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1079         codegen_error.  Fail when rhs of division operations is integer_zerop.
1080         (ternary_op_to_tree): Early return on codegen_error.
1081         (unary_op_to_tree): Same.
1082         (nary_op_to_tree): Same.
1083         (gcc_expression_from_isl_expr_op): Same.
1084         (gcc_expression_from_isl_expression): Same.
1085         (graphite_create_new_loop): On codegen_error continue generating
1086         wrong code.
1087         (graphite_create_new_loop_guard): Same.
1088         (build_iv_mapping): Same.
1089         (graphite_create_new_guard): Same.
1091 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1092             Sebastian Pop  <s.pop@samsung.com>
1094         * graphite-isl-ast-to-gimple.c: Fix dump messages.
1095         * graphite-scop-detection.c: Same.
1096         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1098 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
1100         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1101         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1102         (convert_local_omp_clauses): Likewise.
1104 2015-11-30  Tom de Vries  <tom@codesourcery.com>
1106         PR tree-optimization/46032
1107         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1108         factored out of ...
1109         (find_func_aliases_for_call): ... here.
1110         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1111         BUILT_IN_GOMP_PARALLEL.
1112         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
1113         function.
1115 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
1117         PR tree-optimization/68501
1118         * target.def (builtin_reciprocal): Replace the 3 arguments with
1119         a gcall * one, adjust description.
1120         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1121         with a gcall * one.
1122         * targhooks.c (default_builtin_reciprocal): Likewise.
1123         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1124         targetm.builtin_reciprocal even on internal functions, adjust
1125         the arguments and allow replacing an internal function with normal
1126         built-in.
1127         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1128         with a gcall * one.  Handle internal fns too.
1129         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1130         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1131         * doc/tm.texi (builtin_reciprocal): Document.
1133 2015-11-30  Richard Biener  <rguenther@suse.de>
1135         PR tree-optimization/68592
1136         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1137         on the pattern def sequence.
1139 2015-11-30  Nathan Sidwell  <nathan@acm.org>
1141         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1142         (write_one_arg): Reorder parms, add 'sep' param.
1143         (nvptx_write_function_decl): Rename to ...
1144         (write_fn_proto): ... here.  Do name replacement. Emit linaer
1145         comment marker. Deal with both decls and defns. Simplify argument
1146         formatting.
1147         (write_function_decl_and_comment): Delete.
1148         (write_func_decl_from_insn): Rename to ...
1149         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
1150         (nvptx_record_fndecl): Call write_fn_proto.
1151         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1152         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1153         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1155 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
1157         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1158         (define_insn "*k<logic><mode>"): Use new iterator.
1160 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
1162         PR target/28115
1163         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1164         (sparc_adjust_cost): Add missing space.
1166 2015-11-30  Richard Biener  <rguenther@suse.de>
1168         PR c/68162
1169         * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1170         of arrays.
1172 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1174         * tree-if-conv.c (struct ifc_dr): Add new tree
1175         base_predicate field.
1176         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1177         base ref, DR pairs and store base_predicate for write type DRs.
1178         (ifcvt_memrefs_wont_trap): Guard checks with
1179         -ftree-loop-if-convert-stores flag.
1181 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1183         * cgraph.c (cgraph_node::make_local): No name is unique during
1184         incremental linking.
1185         * cgraph.h (can_be_discarded_p): Update comment; also common and
1186         WEAK in named sections can be discarded; when doing incremental
1187         link do not rely on resolution being the final one.
1188         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1189         When symbol can be discarded, do not rely on resolution info.
1190         * symtab.c (symtab_node::nonzero_address): Take into account that
1191         symbol can be discarded.
1192         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1193         definition correctly.
1194         (function_and_variable_visibility): Do not set unique_name when
1195         incrementally linking.
1197 2015-11-29  Nathan Sidwell  <nathan@acm.org>
1199         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1200         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1201         (ctrap<mode>): Use const0_operand.
1203 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1205         * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1206         dump
1208 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
1210         PR target/28115
1211         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1212         recog_memoized test for insn and check recog_memoized for dep_insn.
1214 2015-11-28  Nathan Sidwell  <nathan@acm.org>
1216         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1217         (FRAME_POINTER_CFA_OFFSET): Define.
1218         (struct nvptx_args): Use 'tree' type.
1219         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1221 2015-11-28  Tom de Vries  <tom@codesourcery.com>
1223         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1225 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
1227         * doc/invoke.texi (Option Summary): Use negative form of
1228         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1229         sort alphabetically and re-justify.
1231 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
1233         PR rtl-optimization/68536
1234         * lra.c (lra_emit_add): Add code for null base.
1235         * lra-constraints.c (curr_insn_transform): Skip operators for
1236         subreg reloads.
1238 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1240         Revert
1241         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1243         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1244         multiple_sets.
1245         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1246         are not modified by the final modified insns in the basic blocks.
1248 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1250         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1251         Don't declare.
1252         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1253         (nvptx_maybe_convert_symbolic_operand): Simplify.
1254         (nvptx_addr_space_from_address): Delete.
1255         (nvptx_print_operand): Adjust 'A' case.
1257 2015-11-27  Richard Biener  <rguenther@suse.de>
1259         PR tree-optimization/68559
1260         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1261         peeling for gap checks ...
1262         * tree-vect-stmts.c (vectorizable_load): ... here and relax
1263         for SLP.
1264         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1265         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1267 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1269         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1270         declare.
1271         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1272         (nvptx_record_fndecl): Don't return value, remove force
1273         argument. Require fndecl.
1274         (nvptx_record_libfunc): New.
1275         (nvptx_record_needed_decl): Deteermine how to record decl here.
1276         (nvptx_maybe_record_fnsym): New.
1277         (nvptx_expand_call): Don't record libfuncs here,
1278         (nvptx_maybe_convert_symbolic_operand): Use
1279         nvptx_maye_record_fnsym.
1280         (nvptx_assemble_integer): Reimplement with single switch.
1281         (nvptx_output_call_insn): Register libfuncs here.
1282         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
1283         * config/nvptx/nvptx.md (expand_movdi): Don't call
1284         nvptx_record_needed_decl.
1286 2015-11-27  Richard Biener  <rguenther@suse.de>
1288         PR tree-optimization/68553
1289         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1290         generation for 1:1 permutations.
1291         (vect_transform_slp_perm_load): Detect 1:1 permutations.
1293 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
1295         * gimple.h (nonbarrier_call_p): Declare.
1296         * gimple.c (nonbarrier_call_p): New function.
1297         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1298         Also increment call phase for ASMs with vdef and potential barrier
1299         calls.
1301 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1303         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1304         multiple_sets.
1305         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1306         are not modified by the final modified insns in the basic blocks.
1308 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1310         PR rtl-optimization/68506
1311         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1312         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
1313         blocks.
1315 2015-11-27  Martin Liska  <mliska@suse.cz>
1317         PR c++/68312
1318         * vec.h (release_vec_vec): New function.
1320 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1322         PR tree-optimization/68552
1323         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1324         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
1325         or whether v0 == v1.
1327 2015-11-27  Martin Liska  <mliska@suse.cz>
1329         * tree-ssa-uninit.c: Fix whitespaces in the source file.
1330         The change is just automatical.
1332 2015-11-27  Martin Liska  <mliska@suse.cz>
1334         * tree-chkp.c (chkp_make_static_bounds): Release buffer
1335         used for string.
1337 2015-11-27  Martin Liska  <mliska@suse.cz>
1339         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1340         Do not release memory for comp_alias_ddrs.
1341         * tree-vect-loop.c (destroy_loop_vec_info): Release
1342         the memory for all loop_vec_info.
1344 2015-11-27  Martin Liska  <mliska@suse.cz>
1346         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1347         of a local-scope vec.
1348         (struct final_warning_record): Use auto_vec instead
1349         of vec.
1351 2015-11-27  Richard Biener  <rguenther@suse.de>
1353         PR tree-optimization/68553
1354         * tree-vect-slp.c (vect_get_mask_element): Remove.
1355         (vect_transform_slp_perm_load): Implement in a simpler way.
1357 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
1359         PR rtl-optimization/67753
1360         PR rtl-optimization/64164
1361         * function.c (assign_parm_setup_block): Right-shift
1362         upward-padded big-endian args when bypassing the stack slot.
1364 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
1366         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1367         `-mcompact-branches='.
1368         (MIPS Options): Likewise.
1370 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1372         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1374 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
1376         * doc/install.texi (Prerequisites): Increase ISL requirement to
1377         0.14 or 0.15.
1379 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1381         * config/aarch64/arm_neon.h
1382         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1383         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1384         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1385         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1386         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1387         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1388         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1389         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1390         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1391         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1392         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1393         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1395 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1397         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1398         (vqrdmlahq_s16, vqrdmlahq_s32): New.
1399         (vqrdmlsh_s16, vqrdmlsh_s32): New.
1400         (vqrdmlshq_s16, vqrdmlshq_s32): New.
1402 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1404         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1405         ARM_FEATURE_QRDMX.
1407 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
1409         PR debug/53927
1410         * tree-nested.c (finalize_nesting_tree_1): Append a field to
1411         hold the frame base address.
1412         * dwarf2out.c (gen_subprogram_die): Generate for
1413         DW_AT_static_link a location description that computes the value
1414         of this field.
1416 2015-11-26  Tom de Vries  <tom@codesourcery.com>
1418         revert:
1419         2015-11-25  Tom de Vries  <tom@codesourcery.com>
1421         * cfgloop.c (find_single_latch): New function, factored out of ...
1422         (flow_loops_find): ... here.
1423         (verify_loop_structure): Improve verification of loop->latch.
1424         * cfgloop.h (find_single_latch): Declare.
1425         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1427 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1429         * config/aarch64/aarch64-simd-builtins.def:
1430         Add missing changes from r230962.
1432 2015-11-26  Nathan Sidwell  <nathan@acm.org>
1434         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1435         arg with name.  Don't deal with split regs.  Tweak formatting.
1436         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1437         (nvptx_output_call_insn): Don't deal with split regs here.
1439 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1441         * config/aarch64/aarch64-simd-builtins.def
1442         (sqrdmlah, sqrdmlsh): New.
1443         (sqrdmlah_lane, sqrdmlsh_lane): New.
1444         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1446 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1448         * config/aarch64/aarch64-simd.md
1449         (aarch64_sqmovun<mode>): Fix some white-space.
1450         (aarch64_<sur>qmovun<mode>): Likewise.
1451         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1452         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1453         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1454         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1455         (UNSPEC_SQRDMLSH): New.
1456         (SQRDMLH_AS): New.
1457         (rdma_as): New.
1459 2015-11-26  Richard Biener  <rguenther@suse.de>
1461         PR tree-optimization/66721
1462         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1463         iteration cost earlier.  Re-do analysis without SLP when
1464         vectorization using SLP fails and without has a chance to succeed.
1466 2015-11-26  Richard Biener  <rguenther@suse.de>
1468         * genmatch.c (dt_simplify::gen_1): For generic wrap all
1469         multi-result-use captures in a SAVE_EXPR.
1471 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1473         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1474         (TARGET_SIMD_RDMA): New.
1476 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1478         * combine.c (subst): Do not return clobber of zero in widening mult
1479         case.  Just return x unchanged if it is a no-op substitution.
1481 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
1483         PR target/68416
1484         * config/i386/i386.h (enum reg_class): Add
1485         bounds registers to ALL_REGS.
1487 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1489         PR tree-optimization/68128
1490         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1491         * gimplify.c: Include gimple-walk.h.
1492         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1493         (omp_notice_variable): Set flags to n->value if n already
1494         exists in target region, but we need to jump to do_outer.
1495         (omp_shared_to_firstprivate_optimizable_decl_p,
1496         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1497         functions.
1498         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1499         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1500         not modified in the body.  Call omp_mark_stores for outer
1501         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1502         in the body or on OMP_CLAUSE_LASTPRIVATE.
1503         (gimplify_adjust_omp_clauses): Add body argument, call
1504         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1505         Set OMP_CLAUSE_SHARED_READONLY
1506         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1507         not modified in the body.  Call omp_mark_stores for outer
1508         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1509         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1510         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1511         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1512         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1513         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1514         * tree-nested.c (convert_nonlocal_omp_clauses,
1515         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1516         non-local vars or local vars referenced from nested routines.
1517         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1518         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
1519         TREE_READONLY, don't call use_pointer_for_field with non-NULL
1520         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1522 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
1524         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1525         about signed left shift stronger and clarify the cases when they're
1526         broken.
1528 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1529             Bernd Schmidt  <bschmidt@redhat.com>
1531         PR rtl-optimization/67226
1532         * calls.c (store_one_arg): Take into account
1533         crtl->args.pretend_args_size when checking for overlap between
1534         arg->value and argblock + arg->locate.offset during sibcall
1535         optimization.
1537 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
1539         * config/aarch64/aarch64.md (cbranch<mode>4): Use
1540         aarch64_fp_compare_operand.
1541         (store_pairsf): Use aarch64_reg_or_fp_zero.
1542         (store_pairdf): Likewise.
1543         (cstore<mode>4): Use aarch64_fp_compare_operand.
1544         (cmov<mode>6): Likewise.
1545         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1547 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
1548             Sebastian Pop  <s.pop@samsung.com>
1550         PR tree-optimization/68453
1551         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1552         not redirect edges already pointing to their destination.
1553         (translate_isl_ast_node_for): Split edges after loops to create
1554         basic blocks for close phi nodes.  Save merge points at the end of
1555         a loop guard.
1556         (translate_isl_ast_node_if): Save merge points at the end of the
1557         if region.
1558         (add_close_phis_to_outer_loops): New.
1559         (add_close_phis_to_merge_points): New.
1560         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1561         (copy_bb_and_scalar_dependences): Do not split basic blocks on
1562         loop close phi locations.
1564 2015-11-25  Jan Hubicka  <jh@suse.cz>
1566         * ipa-visibility.c (cgraph_externally_visible_p,
1567         varpool_node::externally_visible_p): When doing incremental linking,
1568         hidden symbols may be still used later.
1569         (update_visibility_by_resolution_info): Do not drop weak during
1570         incremental link.
1571         (function_and_variable_visibility): Fix formating.
1572         * flag-types.h (lto_linker_output): Declare.
1573         * common.opt 9flag_incremental_link): New flag.
1575 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1577         * config/rs6000/constraints.md (wb constraint): New constraint for
1578         ISA 3.0 d-form scalar addressing.
1580         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1581         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1582         Altivec registers.  Add wb constraint for Altivec registers with
1583         D-form addressing.  If we have ISA 3.0 d-form support, undo
1584         secondary reload support for using FPR registers if we want to do
1585         D-form addressing.
1586         (rs6000_debug_reg_global): Likewise.
1587         (rs6000_setup_reg_addr_masks): Likewise.
1588         (rs6000_init_hard_regno_mode_ok): Likewise.
1589         (rs6000_secondary_reload): Likewise.
1590         (rs6000_preferred_reload_class): Likewise.
1591         (rs6000_secondary_reload_class): Likewise.
1593         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1594         constraint.
1596         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1597         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1598         (f32_lm2): Likewise.
1599         (f32_li2): Likewise.
1600         (f32_sr2): Likewise.
1601         (f32_sm2): Likewise.
1602         (f32_si2): Likewise.
1603         (f64_p9): Likewise.
1604         (extendsfdf2_fpr): Likewise.
1605         (mov<mode>_hardfloat): Likewise.
1606         (mov<mode>_hardfloat32): Likewise.
1607         (mov<mode>_hardfloat64): Likewise.
1609         * doc/md.texi (RS/6000 constraints): Document wb constraint.
1610         Fixup we constraint documentation.
1612 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1614         * omp-low.c (pass_expand_omp_ssa::clone): New function.
1615         * passes.def: Add pass_oacc_kernels pass group.
1616         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1618 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1620         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1621         Declare.
1622         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1623         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1624         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1625         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1627 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1629         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1630         TV_IPA_LTO_OUTPUT): New.
1631         * lto-compress.c: Include timevar.h
1632         (lto_end_compression, lto_end_uncompression): Add timers.
1633         * langhooks.c: Include timevar.h
1634         (lhd_append_data): Add timer.
1636 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1638         * varasm.c (default_elf_asm_output_limited_string,
1639         default_elf_asm_output_ascii): Replace fprintf by putc.
1641 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1643         PR rtl-optimization/67954
1644         * lra-constraints.c (curr_insn_transform): Add check on scratch
1645         pseudo when change class to NO_REGS.  Add an assert.
1647 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1649         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1650         constraint is 'n'.
1651         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1652         number.
1653         (nvptx_write_function_decl): Number args from 0.
1654         (nvptx_declare_function_name): Likewise.
1655         (nvptx_function_incoming_arg): Likewise.
1656         (nvptx_output_call_insn): Correct formatting.
1658 2015-11-25  David Sherwood  <david.sherwood@arm.com>
1660         * optabs.def: Add new optabs fmax_optab/fmin_optab.
1661         * internal-fn.def: Add new fmax/fmin internal functions.
1662         * doc/md.texi: Add fmin and fmax patterns.
1664 2015-11-25  Jason Merrill  <jason@redhat.com>
1666         PR c++/68385
1667         * tree.c (integer_zerop, integer_onep, integer_each_onep)
1668         (integer_all_onesp, integer_minus_onep, integer_pow2p)
1669         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1670         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1672 2015-11-25  Richard Biener  <rguenther@suse.de>
1674         PR middle-end/68528
1675         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1676         on stripped operands.
1678 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1680         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1681         (nvptx_declare_function_name): Move assignments next to register
1682         declarations, and process params here.
1684 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
1686         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1687         both the symbol and the "dot" symbol for function descriptors. Fix
1688         inversion for rename of symbols with dollar sign.
1690 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1692         * cfgloop.c (find_single_latch): New function, factored out of ...
1693         (flow_loops_find): ... here.
1694         (verify_loop_structure): Improve verification of loop->latch.
1695         * cfgloop.h (find_single_latch): Declare.
1696         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1698 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1700         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1701         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1702         (STARTFILE_SPEC): Use %(startfile_vtv).
1703         (ENDFILE_SPEC): Use %(endfile_vtv).
1704         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1705         ENDFILE_VTV_SPEC.
1707         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1709 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
1711         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1712         noce_can_store_speculate): Delete.
1713         (noce_process_if_block): Don't try to handle single MEM stores.
1714         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1715         * alias.c (memory_must_be_modified_in_insn_p): Delete.
1717 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1719         PR rtl-optimization/68435
1720         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1721         for conflicts between a, b and the set destinations.
1723 2015-11-25  Richard Biener  <rguenther@suse.de>
1725         PR tree-optimization/68517
1726         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1727         Properly handle zero-sized types.
1729 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1731         * ipa-inline-analysis.c: Include gimplify.h
1732         (set_cond_stmt_execution_predicate,
1733         set_switch_stmt_execution_predicate): Be sure to not leak locations
1734         to function body.
1736 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
1738         PR target/67089
1739         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1740         match_uaddsub_overflow): New functions.
1741         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1743 2015-11-25  Richard Biener  <rguenther@suse.de>
1745         PR tree-optimization/68492
1746         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1747         op from scalars after operand swapping.
1749 2015-11-25  Richard Biener  <rguenther@suse.de>
1751         PR tree-optimization/68502
1752         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1753         check that the step is a multiple of the type size.
1755 2015-11-24  Michael Collison  <michael.collison@linaro.org>
1757         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1758         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1759         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1761 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
1763         * frame-header-opt.c (gate): Check for optimize > 0.
1764         (has_inlined_assembly): New function.
1765         (needs_frame_header_p): Remove is_leaf_function check,
1766         add argument type check.
1767         (callees_functions_use_frame_header): Add is_leaf_function
1768         and has_inlined_assembly calls..
1769         (set_callers_may_not_allocate_frame): New function.
1770         (frame_header_opt): Add is_leaf_function call, add
1771         set_callers_may_not_allocate_frame call.
1772         * config/mips/mips.c (mips_compute_frame_info): Add check
1773         to see if callee saved regs can be put in frame header.
1774         (mips_expand_prologue): Add check to see if step1 is zero,
1775         fix cfa restores when using frame header to store regs.
1776         (mips_can_use_return_insn): Check to see if registers are
1777         stored in frame header.
1778         * config/mips/mips.h (machine_function): Add
1779         callers_may_not_allocate_frame and
1780         use_frame_header_for_callee_saved_regs fields.
1782 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1784         PR rtl-optimization/68520
1785         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1786         its bit was already set in BB_WITH.
1788 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1790         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1791         double check that type is main variant.
1792         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1793         variant.
1794         (verify_type_variant): Verify that variants have no
1795         TYPE_ALIAS_SET_KNOWN_P set
1796         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1797         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1798         only for main variants; stream TYPE_ALIAS_SET as a bit.
1799         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1800         accordingly.
1802 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1804         * tree.c (make_vector_type): Properly compute canonical type of the
1805         main variant.
1806         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1807         a main variant.
1809 2015-11-24  Nathan Sidwell  <nathan@acm.org>
1811         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1812         VOIDmode, don't alter incoming mode.
1813         (nvptx_split_reg_p): Delete.
1814         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1815         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1816         maybe_split_mode calls.
1817         (nvptx_print_operand): Use maybe_split_mode.
1819 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1821         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1822         only for types where LTO sets them.
1823         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1824         (make_vector_type): Likewise.
1825         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1826         * tree.h (canonical_type_used_p): New inline.
1827         * alias.c (get_alias_set): Handle structural equality for all
1828         types that pass canonical_type_used_p.
1829         (record_component_aliases): Look through all types with
1830         record_component_aliases for possible pointers; sanity check that
1831         the alias sets match.
1833 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1835         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1837 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1839         * tree.c (free_node): New function.
1840         (type_hash_canon): Use it.
1841         * tree.h (free_node): Declare.
1843 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
1844             Michael Meissner  <meissner@linux.vnet.ibm.com>
1846         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1847         (Fv2): New mode attribute to be used when ISA 2.07 instructions
1848         are used on SF values, and ISA 2.06 instructions on DF values.
1849         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1850         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1851         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1852         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1853         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1854         (fre<Fs>): Use <Fv2> instead of <Fv>.
1855         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1856         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1857         (xsrdpi<mode>): Add support for the lround function.
1858         (lround<mode>di2): Likewise.
1859         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1860         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1861         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1862         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1864 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1865             Sebastian Pop  <s.pop@samsung.com>
1867         PR tree-optimization/67984
1868         * graphite-isl-ast-to-gimple.c (is_constant): New.
1869         (get_rename): Call is_constant.
1870         (get_new_name): Same.
1872 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1873             Sebastian Pop  <s.pop@samsung.com>
1875         * graphite-dependences.c: Only include graphite.h.
1876         * graphite-isl-ast-to-gimple.c: Same.
1877         * graphite-optimize-isl.c: Same.
1878         * graphite-poly.c: Same.
1879         * graphite-scop-detection.c: Same.
1880         * graphite-sese-to-poly.c: Same.
1881         * graphite.c: Same.
1882         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1883         * graphite-poly.h: Same.
1884         * graphite-scop-detection.h: Same.
1885         * graphite.h: New.
1887 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
1889         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1890         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
1891         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1892         function already takes care of checking what it can emit.
1894 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1896         * doc/invoke.texi (-fpic): Add the AArch64 limit.
1897         (-fPIC): Add AArch64.
1899 2015-11-24  Tom de Vries  <tom@codesourcery.com>
1901         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1902         (pass_lim::execute): Allow to run outside pass_tree_loop.
1904 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
1906         * config/aarch64/aarch64.md (add<mode>3):
1907         Block early expansion into 2 add instructions.
1908         (add<mode>3_pluslong): New pattern to combine complex
1909         immediates into 2 additions.
1911 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1913         PR target/66217
1914         PR target/67677
1915         PR target/68332
1916         * config/rs6000/predicates.md (and_operand): Check that the operand
1917         is a const_int before calling rs6000_is_valid_and_mask.
1919 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1921         * config/aarch64/aarch64.md (*condjump): Rename to...
1922         (condjump): ... This.
1923         (*compare_condjump<mode>): New define_insn_and_split.
1924         (*compare_cstore<mode>_insn): Likewise.
1925         (*cstore<mode>_insn): Rename to...
1926         (cstore<mode>_insn): ... This.
1927         * config/aarch64/iterators.md (CMP): Handle ne code.
1928         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1930 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
1932         PR target/68497
1933         * config/i386/i386.c (output_387_binary_op): Fix assertion for
1934         -fno-checking case.
1936 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1938         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1939         (val_ssa_equiv_hash_traits::remove): Likewise.
1940         (pass_uncprop::execute): Adjust.
1942 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1944         * hash-map-traits.h (simple_hashmap_traits ::remove): call
1945         destructors on values that are being removed.
1946         * mem-stats.h (hash_map): Pass type of values to
1947         simple_hashmap_traits.
1948         * tree-sra.c (sra_deinitialize): Remove work around for hash
1949         maps not destructing values.
1950         * genmatch.c (sinfo_hashmap_traits): Adjust.
1951         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1953 2015-11-24  Richard Biener  <rguenther@suse.de>
1954             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1956         PR middle-end/68375
1957         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1958         bogus assertion.
1960 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
1962         PR target/68483
1963         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1964         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1965         returns false.
1966         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1967         whenever first is nelt or above.  Don't mask expected with
1968         2 * nelt - 1.
1970 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1972         PR c/68337
1973         * gimple-fold.c: Include ipa-chkp.h.
1974         (gimple_fold_builtin_memory_op): Don't fold call if we
1975         are going to instrument it and it may copy pointers.
1977 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
1978             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1980         PR rtl-optimization/68194
1981         PR rtl-optimization/68328
1982         PR rtl-optimization/68185
1983         * ree.c (combine_reaching_defs): Reject copy_needed case if
1984         copies_list is not empty.
1986 2015-11-24  Richard Biener  <rguenther@suse.de>
1988         PR middle-end/68221
1989         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1990         use mem_ref_offset.
1992 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1994         PR rtl-optimization/68381
1995         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1996         is poisoned.
1998 2015-11-23  Nick Clifton  <nickc@redhat.com>
1999             Jeff Law  <law@redhat.com>
2001         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2002         the source/dest of the target extension require a different number of
2003         hard registers.
2004         (combine_set_extension): Remove #if 0 code.
2006 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2007             Sebastian Pop  <s.pop@samsung.com>
2009         PR tree-optimization/68314
2010         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
2011         * graphite-poly.c (new_scop): Remove original_schedule.
2012         (free_scop): Same.
2013         * graphite-poly.h (struct scop): Same.
2014         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
2015         (build_pbb_scattering_polyhedrons): Add back.
2016         (build_scop_minimal_scattering): Remove.
2017         (build_scop_scattering): Add back.
2018         (build_scop_original_schedule): Remove.
2019         (build_poly_scop): Revert to only call build_scop_scattering.
2021 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2022             Sebastian Pop  <s.pop@samsung.com>
2024         PR tree-optimization/68493
2025         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2026         missing early return when codegen_error is set.
2028 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2029             Sebastian Pop  <s.pop@samsung.com>
2031         PR tree-optimization/68279
2032         * graphite-poly.c (new_scop): Remove poly_scop_p.
2033         * graphite-poly.h (struct scop): Same.
2034         (build_poly_scop): Declare.
2035         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2036         (cleanup_loop_iter_dom): New.
2037         (build_loop_iteration_domains): Early return when scev analysis fails.
2038         (create_pw_aff_from_tree): Same.
2039         (add_condition_to_pbb): Same.
2040         (add_conditions_to_domain): Same.
2041         (add_conditions_to_constraints): Same.
2042         (build_scop_iteration_domain): Same.
2043         (build_poly_scop): Same.  Do not initialize poly_scop_p.
2044         * graphite-sese-to-poly.h: Remove.
2045         * graphite.c: Do not include graphite-sese-to-poly.h.
2046         (graphite_transform_loops): Stop before code generation when
2047         build_poly_scop fails.
2048         * sese.c (scalar_evolution_in_region): Add fixme note about scev
2049         analysis.
2051 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2052             Sebastian Pop  <s.pop@samsung.com>
2054         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2055         Remove call to update_ssa.
2056         * sese.c (sese_insert_phis_for_liveouts): Same.
2058 2015-11-23  Marek Polacek  <polacek@redhat.com>
2060         PR tree-optimization/68455
2061         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2062         extract_range_from_multiplicative_op_1 on symbolic ranges.
2064 2015-11-23  Richard Henderson  <rth@redhat.com>
2066         * optabs.def (uaddv4_optab, usubv4_optab): New.
2067         * internal-fn.c (expand_addsub_overflow): Use them.
2068         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2070         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2071         to reversed operands.
2072         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2073         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2074         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2075         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2076         (*add<SWI>3_cconly_overflow_2): New.
2077         (*add<SWI>3_cc_overflow_2): New.
2078         (*addsi3_zext_cc_overflow_2): New.
2080 2015-11-23  Richard Biener  <rguenther@suse.de>
2082         PR tree-optimization/68465
2083         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2084         Also record equalities from multiple predecessor blocks if
2085         only one non-backedge exists.
2087 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2089         PR target/68363
2090         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2091         that are not INSN_P.
2093 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
2095         * config/aarch64/aarch64-builtins.c
2096         (aarch64_gimple_fold_builtin): Fold FMULX.
2098 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
2100         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2101         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
2102         after GCC header files and before graphite header files.
2103         * graphite-dependences.c: Same.
2104         * graphite-isl-ast-to-gimple.c: Same.
2105         * graphite-optimize-isl.c: Same.
2106         * graphite-poly.c: Same.
2107         * graphite-scop-detection.c: Same.
2108         * graphite-sese-to-poly.c: Same.
2109         * graphite.c: Same.
2111 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
2112             Jiong Wang  <jiong.wang@arm.com>
2114         PR tree-optimization/68317
2115         PR tree-optimization/68326
2116         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2117         final min and max are not infinity.
2119 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2120             Richard Biener  <rguenther@suse.de>
2122         PR tree-optimization/68327
2123         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2124         compute vectype for non-relevant mask producers.
2125         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2126         relevance earlier.
2128 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2130         PR tree-optimization/68460
2131         * tree-parloops.c (gather_scalar_reductions): Also call
2132         free_stmt_vec_info_vec if simple_loop_info == NULL.
2134 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
2136         * opts.c (finish_options): Allow -fsanitize-recover=address for
2137         userspace sanitization.
2138         * asan.c (asan_expand_check_ifn): Redefine recover_p.
2139         * doc/invoke.texi (fsanitize-recover): Update documentation.
2141 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2143         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2145 2015-11-23  Richard Biener  <rguenther@suse.de>
2147         PR tree-optimization/68445
2148         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2149         two different strides.
2151 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2153         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2154         * config/s390/s390.c (s390_check_symref_alignment): Use new
2155         symref flags, early abort on wrong alignment
2156         (s390_secondary_reload): Use new symref flags.
2157         (s390_encode_section_info): Likewise.
2158         * config/s390/predicates.md: Likewise.
2160 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2162         PR target/68390
2163         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2164         for indirect function call.
2166 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
2168         * config/aarch64/aarch64-simd.md
2169         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2170         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2171         (*aarch64_mulx_elt_to_64v2df): Likewise.
2172         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2173         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2174         (vmulx_lane_f64): Likewise.
2175         (vmulxq_lane_f32): Refactored & moved.
2176         (vmulxq_lane_f64): Likewise.
2177         (vmulx_laneq_f32): New.
2178         (vmulx_laneq_f64): Likewise.
2179         (vmulxq_laneq_f32): Likewise.
2180         (vmulxq_laneq_f64): Likewise.
2181         (vmulxs_lane_f32): Likewise.
2182         (vmulxs_laneq_f32): Likewise.
2183         (vmulxd_lane_f64): Likewise.
2184         (vmulxd_laneq_f64): Likewise.
2186 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
2188         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2189         In LTO we do not compute TYPE_CANONICAL of pointers.
2190         (gimple_canonical_types_compatible_p): Improve coments; sanity check
2191         that pointers do not have canonical type that would make us believe
2192         they are different.
2193         * alias.c (get_alias_set): Do structural type equality on pointers;
2194         enable pointer path for LTO; also glob pointer to vector with pointer
2195         to vector element; glob pointers and references for LTO; do more strict
2196         sanity checking about build_pointer_type returning the canonical type
2197         which is also the main variant.
2198         (record_component_aliases): When component type is pointer and we
2199         do LTO; record void_type_node alias set.
2201 2015-11-21  Nathan Sidwell  <nathan@acm.org>
2203         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2205         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2206         leading blank line.
2207         (write_func_decl_from_insn): Likewise.
2208         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2209         (nvptx_file_end): Likewise.
2210         (nvptx_function_end): Undent output.
2211         (nvptx_expand_call): Fix formatting.
2212         (nvptx_output_call_insn): Indent output.
2213         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2214         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2216 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
2218         PR debug/66432
2219         * tree-inline.c (copy_debug_stmt): If
2220         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2221         in decl_debug_args, don't call remap_gimple_op_r on it.
2223 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2225         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2226         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2227         Check that all record types are complete.
2228         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2229         compare alias sets for types w/o alias sets.
2231 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2233         * config/sparc/sparc.md (umulxhi_vis): Move around.
2234         (*umulxhi_sp64): Likewise.
2235         (umulxhi_v8plus): Likewise.
2236         (xmulx_vis): Likewise.
2237         (*xmulx_sp64): Likewise.
2238         (xmulx_v8plus): Likewise.
2239         (xmulxhi_vis): Likewise.
2240         (*xmulxhi_sp64): Likewise.
2241         (xmulxhi_v8plus): Likewise.
2243 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
2245         PR 62314
2246         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2247         (class layout): Update comment
2248         (layout::print_any_fixits): New method.
2249         (layout::move_to_column): New method.
2250         (diagnostic_show_locus): Add call to layout.print_any_fixits.
2252 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
2254         PR middle-end/68221
2255         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2256         has non-zero bias, subtract it in integer type instead of
2257         pointer plus of negated bias.
2259         PR middle-end/68339
2260         * omp-low.c (expand_simd_clones): Call node->get_body () before
2261         allocating stuff in GC.
2263 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
2265         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2267 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
2269         * config/aarch64/aarch64.md (predicated): Copy attribute from
2270         "arm.md".
2271         * config/arm/arm.md (predicated): Added description.
2273 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2275         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2276         for unaligned_access.
2277         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2278         from matching condition.
2279         (unaligned_loadhis): Likewise.
2280         (unaligned_loadhiu): Likewise.
2281         (unaligned_storesi): Likewise.
2282         (unaligned_storehi): Likewise.
2284 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2286         PR target/68149
2287         * config/arm/arm.md (unaligned_loaddi): Delete.
2288         (unaligned_storedi): Likewise.
2289         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2290         unaligned DImode memory ops.  Instead perform two back-to-back
2291         unaligned SImode ops.
2293 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
2294             James Norris  <jnorris@codesourcery.com>
2296         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2297         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2299 2015-11-20  Alan Hayward <alan.hayward@arm.com>
2301         PR tree-optimization/68413
2302         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2303         evolution base
2304         (vectorizable_reduction): Use cached base
2306 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2308         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2309         dump-file string.
2310         (try_create_reduction_list): Same.  Fix typo in dump-file string.
2312 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2314         * doc/md.texi (Standard Names): Move entry for addptr3 around,
2315         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2316         glitch in entries for cbranch4 and jump.
2318 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2320         PR tree-optimization/68373
2321         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2322         of ...
2323         (scev_const_prop): ... here.
2324         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2325         * tree-parloops.c (try_create_reduction_list): Call
2326         final_value_replacement_loop.
2328 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
2330         PR tree-optimization/52272
2331         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2332         (struct iv_common_cand_hasher): New struct.
2333         (iv_common_cand_hasher::hash): New function.
2334         (iv_common_cand_hasher::equal): New function.
2335         (struct ivopts_data): New fields, iv_common_cand_tab and
2336         iv_common_cands.
2337         (tree_ssa_iv_optimize_init): Initialize above fields.
2338         (record_common_cand, common_cand_cmp): New functions.
2339         (add_iv_candidate_derived_from_uses): New function.
2340         (add_iv_candidate_for_use): Record iv_common_cands derived from
2341         iv use in hash table, instead of adding candidates directly.
2342         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2343         (record_important_candidates): Add important candidates to iv uses'
2344         related_cands.  Always keep related_cands for future use.
2345         (try_add_cand_for): Use iv uses' related_cands.
2346         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2347         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2349 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2351         * config/s390/s390.md ("bswaphi2"): New pattern.
2353 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2355         * config/s390/s390.md (GPR1_REGNUM): New constant.
2356         ("*trunc<BFP:mode><DFP_ALL:mode>2")
2357         ("*trunc<DFP_ALL:mode><BFP:mode>2")
2358         ("trunc<BFP:mode><DFP_ALL:mode>2")
2359         ("trunc<DFP_ALL:mode><BFP:mode>2")
2360         ("*extend<BFP:mode><DFP_ALL:mode>2")
2361         ("*extend<DFP_ALL:mode><BFP:mode>2")
2362         ("extend<BFP:mode><DFP_ALL:mode>2")
2363         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2365 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2366             Sebastian Pop  <s.pop@samsung.com>
2368         PR tree-optimization/68428
2369         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2370         over basic blocks outside the scop.
2372 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2373             Sebastian Pop  <s.pop@samsung.com>
2375         PR tree-optimization/68341
2376         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2377         gcc_unreachable and safely fail codegen.
2378         (copy_loop_close_phi_args): Do not insert merge phis in a basic
2379         block with loop phi nodes.
2380         (edge_for_new_close_phis): New.
2381         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2383 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2385         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2386         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2387         (nvptx_declare_objec_name): Likewise.
2389 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2391         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2392         (get_false_edge_from_guard_bb): Move...
2393         * sese.c (get_false_edge_from_guard_bb)
2394         (get_true_edge_from_guard_bb): ... here.
2396 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
2398         Revert
2399         2015-11-18  Alan Modra  <amodra@gmail.com>
2401         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2402         type-limits warning.
2405 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2407         * tree.h (desired_pro_or_demotion_p): New function.
2408         * tree-vrp.c (simplify_cond_using_ranges): Call it.
2410 2015-11-19  Michael Matz  <matz@suse.de>
2412         * fwprop.c (update_uses): Use flag_checking instead of
2413         gcc_checking_assert.
2415 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
2417         * doc/gty.texi (Support for inheritance): Fix missing
2418         parentheses in example.
2420 2015-11-19  Marek Polacek  <polacek@redhat.com>
2422         PR tree-optimization/68431
2423         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2425 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2427         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2428         atomic_exchange<mode>): Input values can be immediates.
2430 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2432         PR lto/61313
2433         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2434         by the user.
2435         * configure: Regenerate.
2437 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2439         PR target/68408
2440         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2441         (DTORS_SECTION_ASM_OP): Likewise.
2443 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2445         PR rtl-optimization/68376
2446         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2447         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2449 2015-11-19  Richard Biener  <rguenther@suse.de>
2451         PR middle-end/68117
2452         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2453         redirect_edge_var_map_destroy.
2455 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2457         PR target/67770
2458         * config/i386/i386.md (simple_return): Disable if
2459         ix86_static_chain_on_stack is true.
2461 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2463         PR bootstrap/68393
2464         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2465         destinations.
2467 2015-11-18  Jeff Law  <law@redhat.com>
2469         PR tree-optimization/68198
2470         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2471         between threading a multi-way branch and a thread path that contains
2472         a multi-way branch.  Disallow the case where a path contains a
2473         multi-way branch and does not thread a multi-way branch.
2474         (thread_through_all_blocks): Update comment.
2476 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
2478         PR c/65083
2479         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2480         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2481         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2482         functions before defining as macros.
2484 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2486         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2487         (nvptx_record_offload_symbol): Remove code compensating for lack
2488         of default dimension handling.
2489         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2491 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2493         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2494         type to bool for early exit.
2495         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2496         in case of error.
2497         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2498         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2499         predecessor dominates the other.
2500         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2501         element is not found it returns -1.
2502         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2503         out early when codegen fails.
2504         (graphite_regenerate_ast_isl): Remove codegen region when pending
2505         phis could not be generated.
2507 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2509         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2510         semicolon.
2511         (class translate_isl_ast_to_gimple): Indentation.
2512         (translate_pending_phi_nodes): Comment.
2513         (add_parameters_to_ivs_params): Moved from sese.c inside class
2514         translate_isl_ast_to_gimple.
2515         (get_max_schedule_dimensions): Same.
2516         (generate_isl_context): Same.
2517         (extend_schedule): Same.
2518         (generate_isl_schedule): Same.
2519         (set_options): Same.
2520         (scop_to_isl_ast): Same.
2521         (is_valid_rename): Same.
2522         (get_rename): Same.
2523         (get_rename_from_scev): Same.
2524         (get_def_bb_for_const): Same.
2525         (get_new_name): Same.
2526         (collect_all_ssa_names): Same.
2527         (copy_loop_phi_args): Same.
2528         (copy_loop_phi_nodes): Same.
2529         (copy_loop_close_phi_args): Same.
2530         (copy_loop_close_phi_nodes): Same.
2531         (copy_cond_phi_args): Same.
2532         (copy_cond_phi_nodes): Same.
2533         (graphite_copy_stmts_from_block): Same.
2534         (copy_bb_and_scalar_dependences): Same.
2535         (add_phi_arg_for_new_expr): Same.
2536         (rename_uses): Same.
2537         (set_rename): Same.
2538         (set_rename_for_each_def): Same.
2539         (gsi_insert_earliest): Same.
2540         (rename_all_uses): Same.
2541         (codegen_error_p): Same.
2542         (print_isl_ast_node): Same.
2543         (translate_isl_ast_for_loop): Call function codegen_error_p.
2544         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2545         (translate_isl_ast_node_user): Make nb_loops const and release
2546         iv_map before exit.
2547         (get_true_edge_from_guard_bb): Move all free-functions early.
2548         (get_false_edge_from_guard_bb): Same.
2549         (bb_contains_loop_close_phi_nodes): Same.
2550         (bb_contains_loop_phi_nodes): Same.
2551         (is_loop_closed_ssa_use):  Same.
2552         (number_of_phi_nodes): Same.
2553         (phi_uses_name): Same.
2554         (later_of_the_two): Same.
2555         (substitute_ssa_name):
2556         (get_edges): Same.
2557         (get_loc): Same.
2558         (get_loop_init_value): Same.
2559         (find_init_value): Same.
2560         (find_init_value_close_phi): Same.
2561         (ast_build_before_for): Same.
2562         (graphite_regenerate_ast_isl): Formatting changes.
2563         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2564         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2565         (set_rename): Same.
2566         (gsi_insert_earliest): Same.
2567         (collect_all_ssa_names): Same.
2568         (rename_all_uses): Same.
2569         (rename_uses): Same.
2570         (get_def_bb_for_const): Same.
2571         (copy_loop_phi_nodes): Same.
2572         (copy_loop_close_phi_args): Same.
2573         (copy_loop_close_phi_nodes): Same.
2574         (copy_cond_phi_args): Same.
2575         (copy_cond_phi_nodes): Same.
2576         (set_rename_for_each_def): Same.
2577         (graphite_copy_stmts_from_block): Same.
2578         (copy_bb_and_scalar_dependences): Same.
2579         (if_region_set_false_region): Same.
2580         (scev_analyzable_p): Same.
2581         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2583 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
2585         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2586         commit from r125920 for FreeBSD.
2588 2015-11-18  Jason Merrill  <jason@redhat.com>
2590         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2591         to be vecs of vecs.
2592         (add_finalizer): Split out from ggc_internal_alloc.
2593         (ggc_handle_finalizers): Run finalizers for the current depth.
2594         (init_ggc, ggc_pch_read): Reserve space for finalizers.
2596 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
2598         PR target/68410
2599         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2600         from || expression.
2602 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2604         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2605         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2606         and atmega328pb.
2607         * doc/avr-mmcu.texi: Regenerate.
2609 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2611         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2612         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2613         (struct bb_sese): New struct.
2614         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2615         (BB_GET_SESE, BB_SET_SESE): Define.
2616         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2617         (nvptx_find_sese): New.
2618         (nvptx_neuter_pars): Find SESE regions when optimizing.
2620 2015-11-18  Alan Modra  <amodra@gmail.com>
2622         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2623         type-limits warning.
2625 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2627         PR bootstrap/68406
2628         * hash-set.h (hash_set::traverse): Expand Key typedef.
2630 2015-11-18  Martin Liska  <mliska@suse.cz>
2632         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2633         options struct.
2635 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2637         * config/nvptx/nvptx.c (global_lock_var): New.
2638         (nvptx_global_lock_addr): New.
2639         (nvptx_lockless_update): Recomment and adjust for clarity.
2640         (nvptx_lockfull_update): New.
2641         (nvptx_reduction_update): New.
2642         (nvptx_goacc_reduction_fini): Call it.
2644 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
2646         * regrename.h (struct du_head): Add target_data_1 and target_data_2
2647         fields.
2648         * regrename.c (create_new_chain): Clear entire struct after allocating.
2650         * config/i386/i386.opt (mmitigate-rop): New option.
2651         * doc/invoke.texi (mmitigate-rop): Document.
2652         * config/i386/i386.c: Include "regrename.h".
2653         (ix86_rop_should_change_byte_p, reg_encoded_number,
2654         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2655         static functions.
2656         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2657         * config/i386/i386.md (attr "modrm_class"): New.
2658         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2659         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2660         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2662 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2664         PR target/68405
2665         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2667 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
2669         PR tree-optimization/68157
2670         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2671         pow_stmt or mul_stmt from stmt's uid.
2672         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2674 2015-11-18  Martin Liska  <mliska@suse.cz>
2676         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2678 2015-11-18  Martin Liska  <mliska@suse.cz>
2680         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2681         Fix GNU coding style.
2682         (find_def_preds): Use auto_vec.
2683         (destroy_predicate_vecs): Change signature of the function.
2684         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2685         new signature.
2686         (simplify_preds_4): Use destroy_predicate_vecs instread of
2687         just releasing preds vector.
2688         (normalize_preds): Likewise.
2689         (is_use_properly_guarded): Use new signature of
2690         destroy_predicate_vecs.
2691         (find_uninit_use): Likewise.
2693 2015-11-18  Richard Biener  <rguenther@suse.de>
2695         PR tree-optimization/67790
2696         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2697         IL rewrite for MINUS_EXPR reductions, rename back to ...
2698         (vect_is_simple_reduction): ... this, removing the wrapper.
2699         (vect_force_simple_reduction): Adjust.
2700         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2701         reductions and make use if reduc_index in all places.  For
2702         the final reduction of MINUS_EXPR use PLUS_EXPR.
2704 2015-11-18  Alan Modra  <amodra@gmail.com>
2706         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2707         to ld.
2708         * configure: Regenerate.
2710 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2712         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2714 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2716         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2717         uses of ssa_name with constant.
2719 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2721         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2722         something changed.
2724 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2726         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2727         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2728         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2730 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
2732         * regrename.c (regrename_find_superclass): New function, code moved
2733         from ...
2734         (rename_chains): ... here.  Call it.
2735         * regrename.h (regrename_find_superclass): Declare.
2737         * regrename.c (record_out_operands): Terminate earlyclobbered
2738         operands here.
2740         PR target/66785
2741         * regrename.c (record_operand_use): Keep track of failed operands
2742         and stop appending if we see any.
2743         * regrename.h (struct operand_rr_info): Add a failed field and shrink
2744         n_chains to short.
2746 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2748         PR 48568
2749         * doc/extend.texi (Common Function Attributes) [visibility]:
2750         Add cross-references to matching variable and type attributes.
2751         (Common Variable Attributes) [visibility]: Add missing entry.
2753 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2755         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2756         entries that map directly to optabs.
2758 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2760         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2761         entries that map directly to optabs.
2763 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2765         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2766         * internal-fn.c (direct_internal_fn_array): Update accordingly.
2767         * tree-vectorizer.h (vectorizable_function): Delete.
2768         * tree-vect-stmts.c: Include internal-fn.h.
2769         (vectorizable_internal_function): New function.
2770         (vectorizable_function): Inline into...
2771         (vectorizable_call): ...here.  Explicitly reject calls that read
2772         from or write to memory.  Try using an internal function before
2773         falling back on the old vectorizable_function behavior.
2775 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2777         * target.def (builtin_vectorized_function): Take a combined_fn (in
2778         the form of an unsigned int) rather than a function decl.
2779         (builtin_md_vectorized_function): New.
2780         * targhooks.h (default_builtin_vectorized_function): Replace the
2781         fndecl argument with an unsigned int.
2782         (default_builtin_md_vectorized_function): Declare.
2783         * targhooks.c (default_builtin_vectorized_function): Replace the
2784         fndecl argument with an unsigned int.
2785         (default_builtin_md_vectorized_function): New function.
2786         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2787         New hook.
2788         * doc/tm.texi: Regenerate.
2789         * tree-vect-stmts.c (vectorizable_function): Update call to
2790         builtin_vectorized_function, also passing internal functions.
2791         Call builtin_md_vectorized_function for target-specific builtins.
2792         * config/aarch64/aarch64-protos.h
2793         (aarch64_builtin_vectorized_function): Replace fndecl argument
2794         with an unsigned int.
2795         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2796         (aarch64_builtin_vectorized_function): Update after above changes.
2797         Use CASE_CFN_*.
2798         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2799         fndecl argument with an unsigned int.
2800         * config/arm/arm-builtins.c: Include case-cfn-macros.h
2801         (arm_builtin_vectorized_function): Update after above changes.
2802         Use CASE_CFN_*.
2803         * config/i386/i386.c: Include case-cfn-macros.h
2804         (ix86_veclib_handler): Take a combined_fn rather than a
2805         built_in_function.
2806         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
2807         mathfn_built_in rather than calling builtin_decl_implicit directly.
2808         (ix86_builtin_vectorized_function) Update after above changes.
2809         Use CASE_CFN_*.
2810         * config/rs6000/rs6000.c: Include case-cfn-macros.h
2811         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2812         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
2813         than calling builtin_decl_implicit directly.
2814         (rs6000_builtin_vectorized_function): Update after above changes.
2815         Use CASE_CFN_*.  Move BUILT_IN_MD to...
2816         (rs6000_builtin_md_vectorized_function): ...this new function.
2817         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2819 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2821         * tree-vect-patterns.c: Include internal-fn.h.
2822         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2824 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2826         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2827         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2829 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2831         * builtins.c (expand_errno_check, expand_builtin_mathfn)
2832         (expand_builtin_mathfn_2): Delete.
2833         (expand_builtin): Remove handling of functions with
2834         internal function equivalents.
2835         * internal-fn.def (SET_EDOM): New internal function.
2836         * internal-fn.h (set_edom_supported_p): Declare.
2837         * internal-fn.c (expand_SET_EDOM): New function.
2838         (set_edom_supported_p): Likewise.
2839         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2840         Rewrite comment at head of file.
2841         (is_call_dce_candidate): Rename to...
2842         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
2843         or gimple_call_builtin_p here.
2844         (edom_only_function): New function.
2845         (shrink_wrap_one_built_in_call_with_conds): New function, split out
2846         from...
2847         (shrink_wrap_one_built_in_call): ...here.
2848         (can_use_internal_fn, use_internal_fn): New functions.
2849         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2850         for calls that have an lhs.
2851         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2852         (pass_call_cdce::execute): Skip blocks that are optimized for size.
2853         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
2854         calls with an lhs.
2855         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2856         at -O and above.
2858 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2860         * builtins.h (called_as_built_in): Declare.
2861         * builtins.c (called_as_built_in): Make external.
2862         * internal-fn.h (expand_internal_call): Define a variant that
2863         specifies the internal function explicitly.
2864         * internal-fn.c (expand_load_lanes_optab_fn)
2865         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2866         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2867         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2868         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2869         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2870         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2871         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2872         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2873         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2874         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2875         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2876         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2877         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2878         argument.
2879         (internal_fn_expanders): Update prototype.
2880         (expand_internal_call): Define a variant that specifies the
2881         internal function explicitly. Use it to implement the previous
2882         interface.
2883         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2884         functions as calls to internal functions.
2886 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2888         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2889         (generated_files): Likewise.
2890         (s-cfn-operators, cfn-operators.pd): New rules.
2891         (s-match): Depend on cfn-operators.pd.
2892         * gencfn-macros.c: Expand comment to describe -o behavior.
2893         (print_define_operator_list): New function.
2894         (main): Accept -o.  Call print_define_operator_list.
2895         * genmatch.c (main): Add the current directory to the include path.
2896         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
2897         instead.
2899 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2901         * doc/match-and-simplify.texi: Document the "null" identifier.
2902         * genmatch.c (id_base::NULL_ID): New kind.
2903         (null_id): New variable.
2904         (get_operator): Add a parameter that says whether null identifiers
2905         are allowed.
2906         (contains_id): New function.
2907         (lower_for): Skip substitutions that would have a null_id in
2908         either the match or the result.
2909         (parser::parse_for): Allow the null identifier to be used.
2910         (parser::parse_operator_list): Likewise.
2911         (main): Initialize null_id.
2913 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2915         * match.pd: Use HYPOT and COS rather than hypot and cos.
2916         Use CASE_CFN_* macros.  Guard log/exp folds with
2917         SCALAR_FLOAT_TYPE_P.
2918         * genmatch.c (internal_fn): New enum.
2919         (fn_id::fn): Change to an unsigned int.
2920         (fn_id::fn_id): Accept internal_fn too.
2921         (add_builtin): Rename to...
2922         (add_function): ...this and turn into a template.
2923         (get_operator): Only try one variation if the original name fails.
2924         Only add _EXPR if the original name was all lower case.
2925         Try converting internal and built-in function names to their
2926         CFN equivalents.
2927         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2928         (dt_simplify::gen_1): Likewise.
2929         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2930         and get_call_combined_fn for generic.
2931         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2932         (decision_tree::gen): Likewise.
2933         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2934         Use add_function rather than add_builtin.  Register internal
2935         functions too.
2936         * generic-match-head.c: Include case-cfn-macros.h.
2937         * gimple-fold.c (replace_stmt_with_simplification): Use
2938         gimple_call_combined_fn to test whether we can keep an
2939         existing call.
2940         * gimple-match.h (code_helper): Replace built_in_function
2941         with combined_fn.
2942         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2943         and case-fn-macros.h.
2944         (gimple_resimplify1): Use fold_const_call.
2945         (gimple_resimplify2, gimple_resimplify3): Likewise.
2946         (build_call_internal, build_call): New functions.
2947         (maybe_push_res_to_seq): Use them.
2948         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
2949         rather than a built-in function.
2950         * tree.h (build_call_expr_internal_loc): Declare.
2951         (maybe_build_call_expr_loc): Likewise.
2952         * tree.c (build_call_expr_internal_loc_array): New function.
2953         (maybe_build_call_expr_loc): Likewise.
2955 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2957         * builtins.h (mathfn_built_in): Add a variant that takes
2958         a combined_fn.
2959         * builtins.c: Include case-cfn-macros.h.
2960         (CASE_MATHFN): Use CASE_CFN_*.
2961         (CASE_MATHFN_REENT): Use CFN_ codes.
2962         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2963         argument with a combined_fn.
2964         (mathfn_built_in): Add a variant that takes a combined_fn.
2965         (expand_builtin_int_roundingfn_2): Update callers accordingly.
2966         (fold_builtin_sincos, fold_builtin_classify): Likewise.
2968 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2970         * tree-vect-patterns.c: Include case-cfn-macros.h.
2971         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2973 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2975         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2976         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2977         (pass_cse_sincos::execute): Likewise.
2979 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2981         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2982         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2983         (decrement_power, acceptable_pow_call): Likewise.
2984         (attempt_builtin_copysign): Likewise.
2986 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2988         * tree-vrp.c: Include case-cfn-macros.h.
2989         (extract_range_basic): Switch on combined_fn rather than handling
2990         built-in functions and internal functions separately.
2992 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2994         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2995         than a built_in_function.
2996         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2997         a function decl.
2998         (integer_valued_real_call_p): Likewise.
2999         * fold-const.c: Include case-cfn-macros.h
3000         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3001         (negate_expr_p): Update accordingly.
3002         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3003         a function decl.
3004         (integer_valued_real_call_p): Likewise.
3005         (tree_invalid_nonnegative_warnv_p): Update accordingly.
3006         (integer_valued_real_p): Likewise.
3007         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3008         to tree_call_nonnegative_warnv_p.
3009         (gimple_call_integer_valued_real_p): Likewise
3010         integer_valued_real_call_p.
3011         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3012         (backprop::process_builtin_call_use): Extend to combined_fn.
3013         (strip_sign_op_1): Likewise.
3014         (backprop::process_use): Don't check for built-in calls here.
3015         (backprop::execute): Likewise.
3016         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3018 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3020         * fold-const-call.h (fold_const_call): Replace built_in_function
3021         arguments with combined_fn arguments.
3022         * fold-const-call.c: Include case-cfn-macros.h.
3023         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3024         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3025         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3026         built_in_function arguments with combined_fn arguments.
3027         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3028         (fold_builtin_3): Update calls to fold_const_call.
3030 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3032         * Makefile.in (HASH_TABLE_H): Add GGC_H.
3033         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3034         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3035         (build/gencfn-macros$(build_exeext): New rules.
3036         (genprogerr): Add cfn-macros.
3037         * hash-set.h (hash_set): Use the traits value_type as the key.
3038         * gencfn-macros.c: New file.
3040 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3042         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3043         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3044         * builtins.c (associated_internal_fn): Handle them.
3046 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3048         * builtins.h (associated_internal_fn): Declare.
3049         (replacement_internal_fn): Likewise.
3050         * builtins.c: Include internal-fn.h
3051         (associated_internal_fn, replacement_internal_fn): New functions.
3052         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3053         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3054         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3055         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3056         (LDEXP): New functions.
3057         * internal-fn.c: Include recog.h.
3058         (unary_direct, binary_direct): New macros.
3059         (expand_direct_optab_fn): New function.
3060         (expand_unary_optab_fn): New macro.
3061         (expand_binary_optab_fn): Likewise.
3062         (direct_unary_optab_supported_p): Likewise.
3063         (direct_binary_optab_supported_p): Likewise.
3065 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3067         * coretypes.h (tree_pair): New type.
3068         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
3069         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3070         * internal-fn.h (direct_internal_fn_info): New structure.
3071         (direct_internal_fn_array): Declare.
3072         (direct_internal_fn_p, direct_internal_fn): New functions.
3073         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3074         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3075         (mask_store_direct, store_lanes_direct): New macros.
3076         (direct_internal_fn_array) New array.
3077         (get_multi_vector_move): Return the optab handler without asserting
3078         that it is available.
3079         (expand_LOAD_LANES): Rename to...
3080         (expand_load_lanes_optab_fn): ...this and add an optab argument.
3081         (expand_STORE_LANES): Rename to...
3082         (expand_store_lanes_optab_fn): ...this and add an optab argument.
3083         (expand_MASK_LOAD): Rename to...
3084         (expand_mask_load_optab_fn): ...this and add an optab argument.
3085         (expand_MASK_STORE): Rename to...
3086         (expand_mask_store_optab_fn): ...this and add an optab argument.
3087         (direct_internal_fn_types, direct_optab_supported_p)
3088         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3089         (direct_internal_fn_supported_p): New functions.
3090         (direct_mask_load_optab_supported_p): New macro.
3091         (direct_load_lanes_optab_supported_p): Likewise.
3092         (direct_mask_store_optab_supported_p): Likewise.
3093         (direct_store_lanes_optab_supported_p): Likewise.
3095 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3097         * tree-core.h (internal_fn): Move immediately after the definition
3098         of built_in_function.
3099         (combined_fn): New enum.
3100         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3101         (internal_fn_p, as_internal_fn): New functions.
3102         (get_call_combined_fn, combined_fn_name): Declare.
3103         * tree.c (get_call_combined_fn): New function.
3104         (combined_fn_name): Likewise.
3105         * gimple.h (gimple_call_combined_fn): Declare.
3106         * gimple.c (gimple_call_combined_fn): New function.
3108 2015-11-17  Martin Sebor  <msebor@redhat.com>
3110         PR c++/68308
3111         * cp/init.c (build_new_1): Check for expression constness
3112         the right way.
3114 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3116         PR target/53587
3117         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3118         option list.
3119         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
3120         discussion of the Microsoft structure layout details here from
3121         its former home in extend.texi.
3122         * doc/extend.texi (x86 Variable Attributes): Replace detailed
3123         discussion with pointer to its new location.  Add cross-reference
3124         to corresponding type attributes.
3125         (x86 Type Attributes): Add cross-references to command-line options
3126         and variable attributes.
3128 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3130         PR middle-end/68134
3131         * targhooks.c (default_get_mask_mode): Filter out
3132         scalar modes returned by mode_for_vector.
3134 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3136         PR target/68143
3137         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3138         offset from dstbase and use it appropriately in
3139         adjust_automodify_address.
3140         (arm_block_set_aligned_vect): Likewise.
3142 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3144         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3145         (MULTILIB_DIRNAMES): Adjust accordingly.
3147 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
3149         * config/aarch64/aarch64-cores.def (cortex-a35): New.
3150         * config/aarch64/aarch64.c (cortexa35_tunings): New.
3151         * config/aarch64/aarch64-tune.md: Regenerate.
3152         * doc/invoke.texi (-mcpu): Add Cortex-A35
3154 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
3156         PR target/68263
3157         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3158         to 32 for IAMCU.
3159         * config/i386/sse.md (*mov<mode>_internal): Always enable
3160         AVX and SSE unaligned moves for IAMCU.
3162 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
3164         * tree-if-conv.c: Include varasm.h
3165         (ref_DR_map): Define.
3166         (baseref_DR_map): Like wise
3167         (struct ifc_dr): Add new tree predicate field.
3168         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3169         (memrefs_read_or_written_unconditionally): Remove.
3170         (write_memrefs_written_at_least_once): Remove.
3171         (ifcvt_memrefs_wont_trap): Use hash maps to query
3172         unconditional read/written information.
3173         (if_convertible_loop_p_1):  Initialize hash maps and predicates
3174         before hashing data references and delete hashmaps at the end.
3176 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
3178         PR 56036
3179         * doc/invoke.texi (Optimize Options): Move @end table to the right
3180         place.
3182 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
3184         PR 65129
3185         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3186         return value.
3188 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
3190         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3191         128-bit types, just types that fit in a single vector.
3192         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3194 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
3196         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3197         in the user documentation.
3198         (define_peephole2, define_split): Similarly.
3200 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3202         * lto-streamer-out.c (write_global_references): Adjust integer type.
3203         (lto_output_decl_state_refs): Likewise.
3205 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3207         * config/arm/arm-cores.def (cortex-a35): New.
3208         * config/arm/arm.c (arm_cortex_a35_tune): New.
3209         * config/arm/arm-tables.opt: Regenerate.
3210         * config/arm/arm-tune.md: Regenerate.
3211         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3212         * config/arm/t-aprofile: Likewise.
3213         * doc/invoke.texi (-mcpu): Likewise.
3215 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
3217         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3218         and qdf24xx and xgene1 to match -march=armv8-a.
3220 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3222         PR rtl-optimization/68330
3223         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3224         of LSHIFTRT by a non-zero constant integer.
3226 2015-11-16  Richard Biener  <rguenther@suse.de>
3228         PR tree-optimization/68306
3229         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3230         bogus copying from verify_data_ref_alignment and use continue
3231         instead of return.
3233 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
3234             Kaz Kojima  <kkojima@gcc.gnu.org>
3236         PR target/68277
3237         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3238         operands[2].
3239         (*addsi3): Add another insn_and_split variant for reload.
3241 2015-11-16  Richard Biener  <rguenther@suse.de>
3243         PR middle-end/68117
3244         * cfgexpand.c (pass_expand::execute): Destroy the edge
3245         redirection var map before setting RTL CFG hooks.
3247 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
3249         * config/i386/sse.md (reduc_splus_v8df): Rename to...
3250         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3252         (reduc_splus_v4df): Rename to...
3253         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3255         (reduc_splus_v2df): Rename to...
3256         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3258         (reduc_splus_v16sf): Rename to...
3259         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3261         (reduc_splus_v8sf): Rename to...
3262         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3264         (reduc_splus_v4sf): Rename to...
3265         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3267         (reduc_<code>_<mode>, all 3 variants): Rename each to...
3268         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3270         (reduc_umin_v8hf): Rename to...
3271         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3273 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
3275         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3276         without additional conditions.
3277         * doc/extend.texi (@item simd): New.
3279 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3281         * passes.c (first_pass_instance): Remove variable.
3282         (execute_todo): Remove setting of first_pass_instance.
3283         * tree-pass.h (first_pass_instance): Remove declaration.
3285 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3287         * passes.def: Add arg to pass_ccp pass instantiation.
3288         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
3289         instead of first_pass_instance.
3290         (do_ssa_ccp): Add and handle param nonzero_p.
3291         (pass_ccp::pass_ccp): Initialize nonzero_p.
3292         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
3293         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3294         (pass_ccp::nonzero_p): New private member.
3296 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3298         * passes.def: Add arg to pass_object_sizes pass instantiation.
3299         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3300         insert_min_max_p.
3301         (pass_object_sizes::set_pass_param): New member function.  Set
3302         insert_min_max_p.
3303         (pass_object_sizes::insert_min_max_p): New private member.
3304         (pass_object_sizes::execute): Use insert_min_max_p instead of
3305         first_pass_instance.
3307 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3309         * passes.def: Add arg to pass_dominator pass instantiation.
3310         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3311         of comment.
3312         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3313         may_peel_loop_headers_p.
3314         (pass_dominator::set_pass_param): New member function.  Set
3315         may_peel_loop_headers_p.
3316         (pass_dominator::may_peel_loop_headers_p): New private member.
3317         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3318         first_pass_instance.
3320 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3322         * passes.def: Add arg to pass_reassoc pass instantiation.
3323         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3324         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3325         of first_pass_instance.
3326         (execute_reassoc): Add and handle insert_powi_p parameter.
3327         (pass_reassoc::insert_powi_p): New private member.
3328         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3329         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
3330         (pass_reassoc::execute): Call execute_reassoc with extra arg.
3332 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3334         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3335         * gen-pass-instances.awk (handle_line): Same.
3336         * pass_manager.h (class pass_manager): Define and undefine
3337         NEXT_PASS_WITH_ARG.
3338         * passes.c (opt_pass::set_pass_param): New function.
3339         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3340         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3341         * tree-pass.h (gimple_opt::set_pass_param): Declare.
3342         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3343         warn_array_bounds_p parameter.
3344         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3345         (pass_vrp::set_pass_param): New function.
3346         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3347         (pass_vrp::warn_array_bounds_p): New private member.
3349 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3351         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3352         (output_probe_stack_range): Rotate the loop and simplify.
3354 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3356         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3357         (output_probe_stack_range): Rotate the loop and simplify.
3359 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3361         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3362         an lea instruction when possible.
3363         (output_adjust_stack_and_probe): Rotate the loop and simplify.
3364         (ix86_emit_probe_stack_range): Adjust.
3365         (output_probe_stack_range): Rotate the loop and simplify.
3367 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3369         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3370         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3371         with appropriate pragma GCC target.
3373 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3375         PR target/65837
3376         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3377         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3379 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3381         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3382         (cortexa57_tunings): Use it.
3384 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3386         PR target/65837
3387         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3388         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3389         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3390         undefine __ARM_FP.
3391         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3392         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3393         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3394         * doc/extend.texi (-mfpu=): Describe attribute.
3396 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3398         PR target/65837
3399         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3400         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3401         arm_init_neon_builtins.
3402         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3403         (arm_init_neon_builtins_internal)
3404         (arm_init_crypto_builtins_internal):
3405         Test and set neon_set_p, neon_crypto_set_p.
3406         (neon_set_p, neon_crypto_set_p): New static booleans.
3408 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3410         PR target/65837
3411         * config/arm/arm.c (arm_fpu_desc): Remove.
3412         (all_fpus): Make global.
3413         (arm_option_override): Use FPU TARGET accessors.
3414         (arm_declare_function_name): Likewise.
3415         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3416         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3417         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3418         (TARGET_NEON): Likewise.
3419         (all_fpus): Declare extern.
3420         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3421         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3423 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3425         PR middle-end/68366
3426         * sdbout.c: Include emit-rtl.h and function.h.
3428 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
3430         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3431         Remove support for FreeBSD 5 and earlier.
3433 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3435         * configure: Regenerate.
3436         * configure.ac: Always define ENABLE_OFFLOADING.
3437         * cgraph.c (cgraph_node::create): Adjust.
3438         * gcc.c (process_command): Likewise.
3439         * omp-low.c (create_omp_child_function): Likewise.
3440         (expand_omp_target): Likewise.
3441         * varpool.c (varpool_node::get_create): Likewise.
3443 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3445         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3446         * df-scan.c (df_get_exit_block_use_set): Adjust.
3447         * except.c (expand_eh_return): Likewise.
3449 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3451         * config/i386/i386.h (TARGET_PECOFF): Remove define.
3452         * defaults.h (TARGET_PECOFF): New default definition.
3453         * varasm.c (handle_vtv_comdat_section): Adjust.
3455 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3457         * defaults.h: New definition of SDB_DEBUGGING_INFO.
3458         * doc/tm.texi: Regenerate.
3459         * doc/tm.texi.in: Adjust.
3460         * final.c (rest_of_clean_state): Remove check if
3461         SDB_DEBUGGING_INFO is defined.
3462         * function.c (number_blocks): Likewise.
3463         * output.h: Likewise.
3464         * sdbout.c: Likewise.
3465         * toplev.c (process_options): Likewise.
3467 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3469         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3470         (enum sdb_masks): Likewise.
3471         * sdbout.c (plain_type_1): Likewise.
3472         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3474 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
3476         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3477         internal calls - 0 if ordered simd and 1 for ordered threads simd.
3478         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3479         argument is 1, replace it with GOMP_ordered_* call instead of removing
3480         it.
3482 2015-11-13  Rich Felker <dalias@libc.org>
3484         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3485         address loading hack for FDPIC targets.
3487 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
3488             Jeff Law  <law@redhat.com>
3490         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3491         * common.opt (-fsplit-paths): New flag controlling path splitting.
3492         * doc/invoke.texi (fsplit-paths): Document.
3493         * opts.c (default_options_table): Add -fsplit-paths to -O2.
3494         * passes.def: Add split_paths pass.
3495         * timevar.def (TV_SPLIT_PATHS): New timevar.
3496         * tracer.c: Include "tracer.h"
3497         (ignore_bb_p): No longer static.
3498         (transform_duplicate): New function, broken out of tail_duplicate.
3499         (tail_duplicate): Use transform_duplicate.
3500         * tracer.h (ignore_bb_p): Declare
3501         (transform_duplicate): Likewise.
3502         * tree-pass.h (make_pass_split_paths): Declare.
3503         * gimple-ssa-split-paths.c: New file.
3505 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
3506             Marek Polacek  <polacek@redhat.com>
3507             Jason Merrill  <jason@redhat.com>
3509         * convert.c (maybe_fold_build1_loc): New.
3510         (maybe_fold_build2_loc): New.
3511         (convert_to_pointer_1): Split out from convert_to_pointer.
3512         (convert_to_pointer_nofold): New.
3513         (convert_to_real_1): Split out from convert_to_real.
3514         (convert_to_real_nofold): New.
3515         (convert_to_integer_1): Split out from convert_to_integer.
3516         (convert_to_integer_nofold): New.
3517         (convert_to_complex_1): Split out from convert_to_complex.
3518         (convert_to_complex_nofold): New.
3519         * convert.h: Declare new functions.
3520         * tree-complex.c (create_one_component_var): Break up line to
3521         avoid sequence point issues.
3523 2015-11-13  Jason Merrill  <jason@redhat.com>
3525         * fold-const.c (fold_convert_const): Fold changing cv-quals on
3526         VECTOR_CST.
3528         * hash-map.h (hash_map::empty): New.
3530 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3532         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3533         (oacc_loop_fixed_partitions): Correct return type to bool.
3534         (oacc_loop_auto_partitions): New.
3535         (oacc_loop_partition): Take mask argument, call
3536         oacc_loop_auto_partitions.
3537         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3539 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
3541         * config/rs6000/constraints.md (we constraint): New constraint for
3542         64-bit power9 vector support.
3543         (wL constraint): New constraint for the element in a vector that
3544         can be addressed by the MFVSRLD instruction.
3546         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3547         declaration.
3548         (convert_int_to_float128): Likewise.
3549         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3550         hardware support for IEEE 128-bit floating point.
3551         (rs6000_expand_float128_convert): Likewise.
3552         (convert_float128_to_int): Likewise.
3553         (convert_int_to_float128): Likewise.
3555         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3556         ISA 3.0 hardware IEEE 128-bit floating point.
3557         (UNSPEC_IEEE128_MOVE): Likewise.
3558         (UNSPEC_IEEE128_CONVERT): Likewise.
3559         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3560         (Ff): Add support for DImode.
3561         (Fv): Likewise.
3562         (any_fix code iterator): New and updated iterators for IEEE
3563         128-bit floating point hardware support.
3564         (any_float code iterator): Likewise.
3565         (s code attribute): Likewise.
3566         (su code attribute): Likewise.
3567         (az code attribute): Likewise.
3568         (uns code attribute): Likewise.
3569         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3570         floating point hardware support.
3571         (abs<mode>2, FLOAT128 iterator): Likewise.
3572         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3573         floating point hardware.
3574         (sub<mode>3, IEEE128 iterator): Likewise.
3575         (mul<mode>3, IEEE128 iterator): Likewise.
3576         (div<mode>3, IEEE128 iterator): Likewise.
3577         (copysign<mode>3, IEEE128 iterator): Likewise.
3578         (sqrt<mode>2, IEEE128 iterator): Likewise.
3579         (neg<mode>2, IEEE128 iterator): Likewise.
3580         (abs<mode>2, IEEE128 iterator): Likewise.
3581         (nabs<mode>2, IEEE128 iterator): Likewise.
3582         (fma<mode>4_hw, IEEE128 iterator): Likewise.
3583         (fms<mode>4_hw, IEEE128 iterator): Likewise.
3584         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3585         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3586         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3587         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3588         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3589         (fix_fixuns code attribute): Likewise.
3590         (float_floatuns code attribute): Likewise.
3591         (fix<uns>_<mode>si2_hw): Likewise.
3592         (fix<uns>_<mode>di2_hw): Likewise.
3593         (float<uns>_<mode>si2_hw): Likewise.
3594         (float<uns>_<mode>di2_hw): Likewise.
3595         (xscvqp<su>wz_<mode>): Likewise.
3596         (xscvqp<su>dz_<mode>): Likewise.
3597         (xscv<su>dqp_<mode): Likewise.
3598         (ieee128_mfvsrd): Likewise.
3599         (ieee128_mfvsrwz): Likewise.
3600         (ieee128_mtvsrw): Likewise.
3601         (ieee128_mtvsrd): Likewise.
3602         (trunc<mode>df2_odd): Likewise.
3603         (cmp<mode>_h): Likewise.
3604         (128-bit GPR splitters): Don't split a 128-bit move that is a
3605         direct move between GPR and vector registers using ISA 3.0 direct
3606         move instructions.
3607         (maddld4): Add support for the ISA 3.0 integer multiply-add
3608         instruction.
3610         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3611         debugging.
3612         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3613         constraint.  Disable the VSX<->GPR direct move helpers if we have
3614         the MFVSRLD and MTVSRDD instructions.
3615         (rs6000_secondary_reload_simple_move): Add support for doing
3616         vector direct moves directly without additional scratch registers
3617         if we have ISA 3.0 instructions.
3618         (rs6000_secondary_reload_direct_move): Update comments.
3619         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3620         instructions.
3622         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3623         direct move instructions.
3624         (vsx_movti_64bit): Likewise.
3625         (vsx_extract_<mode>): Likewise.
3627         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3628         macros for ISA 3.0 direct move instructions.
3629         (TARGET_DIRECT_MOVE_128): Likewise.
3630         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3631         instruction.
3633         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3634         constraints.  Update wa documentation to say not to use %x<n> on
3635         instructions that only take Altivec registers.
3637 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3639         * Makefile.in (OBJS): Add gcc-rich-location.o.
3640         * diagnostic.c (diagnostic_append_note): Pass line_table to
3641         rich_location ctor.
3642         (emit_diagnostic): Likewise.
3643         (inform): Likewise.
3644         (inform_n): Likewise.
3645         (warning): Likewise.
3646         (warning_at): Likewise.
3647         (warning_n): Likewise.
3648         (pedwarn): Likewise.
3649         (permerror): Likewise.
3650         (error): Likewise.
3651         (error_n): Likewise.
3652         (error_at): Likewise.
3653         (sorry): Likewise.
3654         (fatal_error): Likewise.
3655         (internal_error): Likewise.
3656         (internal_error_no_backtrace): Likewise.
3657         (source_range::debug): Likewise.
3658         * gcc-rich-location.c: New file.
3659         * gcc-rich-location.h: New file.
3660         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3661         (warning_at): Likewise.
3662         * gimple.h (gimple_set_block): Use set_block function.
3663         * input.c (dump_line_table_statistics): Dump stats on how many
3664         ranges were optimized vs how many needed ad-hoc table.
3665         (write_digit_row): Add "map" param; use its range_bits
3666         to calculate the per-character offset.
3667         (dump_location_info): Print the range and column bits for each
3668         ordinary map.  Use the range bits to calculate the per-character
3669         offset.  Pass the map as a new param to the various calls to
3670         write_digit_row.  Eliminate uses of
3671         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3672         * print-tree.c (print_node): Print any source range information.
3673         * rtl-error.c (diagnostic_for_asm): Likewise.
3674         * toplev.c (general_init): Initialize line_table's
3675         default_range_bits.
3676         * tree-cfg.c (move_block_to_fn): Likewise.
3677         (move_block_to_fn): Likewise.
3678         * tree-inline.c (copy_phis_for_bb): Likewise.
3679         * tree.c (tree_set_block): Likewise.
3680         (get_pure_location): New function.
3681         (set_source_range): New functions.
3682         (set_block): New function.
3683         (set_source_range): New functions.
3684         * tree.h (CAN_HAVE_RANGE_P): New.
3685         (EXPR_LOCATION_RANGE): New.
3686         (EXPR_HAS_RANGE): New.
3687         (get_expr_source_range): New inline function.
3688         (DECL_LOCATION_RANGE): New.
3689         (set_source_range): New decls.
3690         (get_decl_source_range): New inline function.
3692 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
3694         PR tree-optimization/67682
3695         * tree-vect-slp.c (vect_split_slp_store_group): New.
3696         (vect_analyze_slp_instance): During basic block SLP, recurse on
3697         subgroups if vect_build_slp_tree fails after 1st vector.
3699 2015-11-13  Christian Bruel  <christian.bruel@st.com>
3701         PR target/65837
3702         * config/arm/arm.c (arm_option_override): Move NEON check...
3703         (arm_option_check_internal): here
3704         (arm_file_start): Move .fpu print...
3705         (arm_declare_function_name): here
3706         (arm_option_print): Dump current fpu name.
3707         * config/arm/arm.opt (arm_fpu_index): Mark Save.
3709 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
3710             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3712         * combine.c (subst): Don't substitute or simplify when
3713         handling register-wise widening multiply.
3714         (force_to_mode): Likewise.
3716 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3718         PR tree-optimization/68264
3719         * tree-call-cdce.c (gen_one_condition): Update commentary.
3720         (gen_conditions_for_pow_int_base): Invert the sense of the tests
3721         passed to gen_one_condition.
3722         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
3723         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3724         using EDGE_FALSE_VALUE for edges to the call block and
3725         EDGE_TRUE_VALUE for the others.
3727 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3729         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3730         complex types.
3732 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3734         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3736 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3738         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3739         len_of_prefix.
3741 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3743         * gen-pass-instances.awk (handle_line): Add args_str variable.
3745 2015-11-13  Martin Liska  <mliska@suse.cz>
3747         * graphite-poly.c (free_scop): Release scop->drs vector.
3748         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3749         Release dom vector.
3750         (try_generate_gimple_bb): Use vNULL as a default initialization
3751         for vectors.
3753 2015-11-13  Martin Liska  <mliska@suse.cz>
3755         PR ipa/68311
3756         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3757         Replace array initialization (using a variable post-increment)
3758         that possible triggers multiple unsequenced modifications
3759         with a pair of pushes to a vector.
3761 2015-11-13  Richard Biener  <rguenther@suse.de>
3763         PR tree-optimization/68306
3764         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3765         loop related checks ...
3766         (vect_verify_datarefs_alignment): ... here.
3767         (vect_slp_analyze_and_verify_node_alignment): Compute and
3768         verify alignment of the single DR that it matters.
3769         * tree-vect-stmts.c (vectorizable_store): Add an assert.
3770         (vectorizable_load): Add a comment.
3771         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3772         for determining load cost.
3774 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3776         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3777         mix of boolean and integer vectors in a single statement.
3778         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3779         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3780         determine constant type.
3781         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3782         for loop invariants.
3784 2015-11-13  Alan Hayward <alan.hayward@arm.com>
3786         PR tree-optimization/66558
3787         * tree-vect-loop.c (is_integer_induction):Add.
3788         (vectorizable_reduction): Add integer induction checks.
3790 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3792         Revert [ARM] Remove neon-testgen.ml and generated tests.
3794         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3796         [ARM] Remove neon-testgen.ml and generated tests.
3798         * config/arm/neon-testgen.ml: Remove.
3800 2015-11-13  Richard Biener  <rguenther@suse.de>
3802         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3803         Signal fatal failure if early checks fail.
3804         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3805         do not bother testing further vector sizes.
3807 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
3809         * config/i386/predicates.md (misaligned_operand): Return true if
3810         operand is aligned to less than its natural alignmnet.
3812 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3814         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3815         (vec_cmpu@var{m}@var{n}): New item.
3816         (vcond@var{m}@var{n}): Specify comparison is signed.
3817         (vcondu@var{m}@var{n}): New item.
3818         (vcond_mask_@var{m}@var{n}): New item.
3819         (maskload@var{m}@var{n}): New item.
3820         (maskstore@var{m}@var{n}): New item.
3822 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3824         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3825         types of stored value and storage are compatible.
3827 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
3829         * gcc.c (POST_LINK_SPEC): Define if not already defined.
3830         (LINK_COMMAND_SPEC): Use post_link.
3831         (post_link_spec): New, initialize to POST_LINK_SPEC.
3832         (post_link): Initialize new static spec.
3833         * doc/tm.texi.in (POST_LINK_SPEC): Document.
3834         * doc/tm.texi: Regenerated.
3836 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3838         PR driver/67613
3839         * Makefile.in (GCC_OBJS): Add spellcheck.o.
3840         (OBJS): Add spellcheck-tree.o.
3841         * gcc.c: Include "spellcheck.h".
3842         (suggest_option): New function.
3843         (driver::handle_unrecognized_options): Call suggest_option to
3844         provide a hint about misspelled options.
3845         * spellcheck.c: Update file comment.
3846         (levenshtein_distance): Convert 4-param implementation from static
3847         to extern scope.  Remove note about unit tests from leading
3848         comment for const char * implementation.  Move tree
3849         implementation to...
3850         * spellcheck-tree.c: New file.
3851         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
3853 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3855         * Makefile.in (OBJS): Add spellcheck.o.
3856         * spellcheck.c: New file.
3857         * spellcheck.h: New file.
3859 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
3861         * config/ft32/ft32.md (*sne): New insn pattern.
3863 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
3865         * cprop.c (is_too_expensive): Remove.
3866         (gcse.h): Include.
3867         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3868         is_too_expensive.
3869         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3870         * gcse.c (is_too_expensive): Rename to ...
3871         (gcse_or_cprop_is_too_expensive): ... this.
3872         Expand warning to add required size of max-gcse-memory.
3873         (one_pre_gcse_pass): Use it.
3874         (one_code_hoisting_pass): Use it.
3875         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3877 2015-11-12  James Norris  <jnorris@codesourcery.com>
3878             Joseph Myers  <joseph@codesourcery.com>
3880         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3881         GF_OMP_TARGET_KIND_OACC_DECLARE.
3882         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3883         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3884         * gimplify.c (oacc_declare_returns): New.
3885         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3886         (device_resident_p): New function.
3887         (oacc_default_clause): Handle device_resident clause.
3888         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3889         (gimplify_expr): Handle OACC_DECLARE.
3890         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3891         * omp-low.c (expand_omp_target): Handle
3892         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3893         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3894         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3895         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3896         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3897         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3898         GOMP_MAP_DEVICE_RESIDENT.
3900 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3902         [ARM] Remove neon-testgen.ml and generated tests.
3904         * config/arm/neon-testgen.ml: Remove.
3906 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
3908         * config/aarch64/aarch64-cores.def (qdf24xx): New.
3909         * config/aarch64/aarch64-tune.md: Regenerated.
3910         * config/arm/arm-cores.def (qdf24xx): New.
3911         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3912         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3913         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3914         (ARM Options/-mtune): Likewise.
3916 2015-11-12  Martin Liska  <mliska@suse.cz>
3918         * config/i386/i386.c (ix86_valid_target_attribute_p):
3919         Finalize options at the of the function.
3920         * gcc.c (driver_get_configure_time_options): Call newly
3921         introduced init_opts_obstack.
3922         * lto-wrapper.c (main): Likewise.
3923         * opts.c (init_opts_obstack): New function.
3924         (init_options_struct): Call newly introduced init_opts_obstack.
3925         * opts.h (init_options_struct): Declare.
3927 2015-11-12  Martin Liska  <mliska@suse.cz>
3929         PR ipa/68035
3930         * ipa-icf.c (void sem_item::set_hash): New function.
3931         (sem_function::get_hash): Use renamed m_hash member variable.
3932         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3933         (sem_item::update_hash_by_local_refs): Likewise.
3934         (sem_variable::get_hash): Use renamed m_hash member variable.
3935         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3936         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3937         (sem_item_optimizer::build_graph): As the hash value of an item
3938         is lazy initialized, force the calculation.
3939         * ipa-icf.h (set_hash): Declare new function and rename hash member
3940         variable to m_hash.
3942 2015-11-12  Richard Biener  <rguenther@suse.de>
3944         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3945         Rename to vect_slp_analyze_instance_dependence.
3946         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3947         Remove WAR special-case.
3948         (vect_slp_analyze_node_dependences): Instead add more specific
3949         code here, not relying on other instances being vectorized.
3950         (vect_slp_analyze_instance_dependence): Adjust accordingly.
3951         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3952         vertical space in dump files.
3953         (vect_print_slp_tree): Likewise.
3954         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3955         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3956         not vectorized stmts until after dependence analysis removed
3957         instances.  Merge alignment and dependence checks.
3958         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3959         flag on all stmts.
3961 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
3963         * config/aarch64/aarch64-protos.h (tune_params): Add new members
3964         "max_case_values" and "cache_line_size".
3965         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3966         function.
3967         (aarch64_override_options_internal): Tune heuristics based on new
3968         members in "tune_params".
3969         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3971 2015-11-12  Richard Biener  <rguenther@suse.de>
3973         PR tree-optimization/68306
3974         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3975         relevant and vectorizable checks here.
3976         (vect_verify_datarefs_alignment): Add relevant check here.
3978 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
3980         * gimplify.c (oacc_default_clause): New.
3981         (omp_notice_variable): Call it.
3983 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3985         PR tree-optimization/68305
3986         * tree-vect-slp.c (vect_get_constant_vectors): Support
3987         COND_EXPR with SSA_NAME as a condition.
3989 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3991         * config/visium/visium-protos.h (notice_update_cc): Delete.
3992         (print_operand): Likewise.
3993         (print_operand_address): Likewise.
3995 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3997         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3998         FUNCTION_VALUE_REGNO_P): Remove.
3999         * config/alpha/alpha-protos.h (function_value): Remove.
4000         * config/alpha/alpha.c (function_value): Rename to...
4001         (alpha_function_value_1): ... this.  Make static.
4002         (alpha_function_value, alpha_libcall_value,
4003         alpha_function_value_regno_p): New functions.
4004         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4005         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4007 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4009         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4010         * config/alpha/alpha.c (alpha_memory_latency): Make static.
4011         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4012         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4014 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4016         PR target/67265
4017         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4018         assertion on the CFA register.
4020 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4022         * expr.c (do_store_flag): Expand vector comparison as
4023         VEC_COND_EXPR if vector comparison is not supported by target.
4025 2015-11-12  Renlin Li  <renlin.li@arm.com>
4027         * config/arm/arm.md (addsi3_compare_op2): Make the order of
4028         assembly pattern consistent with constraint order.
4030 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4032         * gen-pass-instances.awk (handle_line): Simplify match regexp.
4034 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4036         * gen-pass-instances.awk (handle_line): Simplify init of
4037         postfix_starts_at.
4039 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4041         * gen-pass-instances.awk (handle_line): Rename var where to
4042         call_starts_at.
4044 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
4046         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4047         do not expand to rtl.
4049 2015-11-12  Richard Biener  <rguenther@suse.de>
4051         PR tree-optimization/58497
4052         * tree-vect-generic.c: Include gimplify.h.
4053         (tree_vec_extract): Lookup constant/constructor DEFs.
4054         (do_cond): Unshare cond.
4056 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4058         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4059         combined insn if the alignment of vector mode memory operand
4060         is less than ssememalign.
4062 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4064         * gen-pass-instances.awk (handle_line): Print parentheses and
4065         pass_name explicitly.
4067 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4069         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4070         and postfix vars.
4072 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4074         * gen-pass-instances.awk (handle_line): Add comments.
4076 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4078         * gen-pass-instances.awk (handle_line): Rename len_of_end to
4079         len_of_close.
4081 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4083         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4085 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4087         * gen-pass-instances.awk (handle_line): Restructure using early-out.
4089 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4091         * gen-pass-instances.awk (handle_line): Unify semicolon use.
4093 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4095         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4097 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4099         * gen-pass-instances.awk: Add emacs indent setting.
4101 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4103         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4104         to match.pd.
4105         Move Convert A/(B/C) to (A/B)*C to match.pd.
4106         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4107         Move Optimize (X & (-A)) / A where A is a power of 2, to
4108         X >> log2(A) to match.pd.
4110         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4111         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4112         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4113         New simplifier.
4114         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4116 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
4118         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4119         variable.
4120         (neon_vst2_lane<mode>): Likewise.
4121         (neon_vld3_lane<mode>): Likewise.
4122         (neon_vst3_lane<mode>): Likewise.
4123         (neon_vld4_lane<mode>): Likewise.
4124         (neon_vst4_lane<mode>): Likewise.
4126 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
4127             Sebastian Pop  <s.pop@samsung.com>
4129         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4130         New member codegen_error
4131         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4132         early return.
4133         (translate_isl_ast_node_user): Early return in case of error.
4134         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4135         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4136         (add_parameters_to_ivs_params): Remove macro.
4137         (graphite_regenerate_ast_isl): Add if_region pointer to region.
4138         * graphite-poly.c (new_poly_dr): Remove macro.
4139         (print_pdr): Same.
4140         (new_gimple_poly_bb): Same.
4141         (free_gimple_poly_bb): Same.
4142         (print_scop_params): Same.
4143         * graphite-poly.h (struct poly_dr): Same.
4144         (struct poly_bb): Add new_bb.
4145         (gbb_from_bb): Remove dead code.
4146         (pbb_from_bb): Same.
4147         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4148         (parameter_index_in_region): Same.
4149         (find_scop_parameters): Same.
4150         (build_cross_bb_scalars_def): New.
4151         (build_cross_bb_scalars_use): New.
4152         (graphite_find_cross_bb_scalar_vars): New
4153         (try_generate_gimple_bb): Reads and Writes.
4154         (build_alias_set): Move.
4155         (gather_bbs::before_dom_children): Gather bbs visited.
4156         (build_scops): call build_alias_set.
4157         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4158         (remove_simple_copy_phi): Delete.
4159         (remove_invariant_phi): Delete.
4160         (simple_copy_phi_p): Delete.
4161         (reduction_phi_p): Delete.
4162         (isl_id_for_dr): Remove unused param.
4163         (parameter_index_in_region_1): Remove macro usage.
4164         (set_scop_parameter_dim): Same.
4165         (add_param_constraints): Same.
4166         (add_conditions_to_constraints): Same
4167         (build_scop_iteration_domain): Same.
4168         (pdr_add_alias_set): Comment.
4169         (add_scalar_version_numbers): New.
4170         (build_poly_dr): ISL id.
4171         (build_scop_drs): Move.
4172         (build_poly_sr_1): Same.
4173         (insert_stmts): Remove.
4174         (build_poly_sr): New.
4175         (new_pbb_from_pbb): Delete.
4176         (insert_out_of_ssa_copy_on_edge): Delete.
4177         (create_zero_dim_array): Delete.
4178         (scalar_close_phi_node_p): Delete.
4179         (propagate_expr_outside_region): Delete.
4180         (rewrite_close_phi_out_of_ssa): Delete.
4181         (rewrite_phi_out_of_ssa): Delete.
4182         (rewrite_degenerate_phi): Delete.
4183         (rewrite_reductions_out_of_ssa): Delete.
4184         (rewrite_cross_bb_scalar_dependence): Delete.
4185         (handle_scalar_deps_crossing_scop_limits):
4186         (rewrite_cross_bb_scalar_deps): Delete.
4187         (build_poly_scop): Remove calls to out-of-ssa functions.
4188         * graphite.c (graphite_transform_loops): Early return in case of
4189         codegen error.
4190         * sese.c (debug_rename_map_1): Delete.
4191         (debug_rename_map): Delete.
4192         (sese_record_loop): Remove macro.
4193         (build_sese_loop_nests): Same.
4194         (new_sese_info): Same.
4195         (free_sese_info): Same.
4196         (sese_insert_phis_for_liveouts):
4197         (is_loop_closed_ssa_use): New.
4198         (number_of_phi_nodes): New.
4199         (bb_contains_loop_close_phi_nodes): New.
4200         (bb_contains_loop_phi_nodes): New.
4201         (phi_uses_name): New.
4202         (is_valid_rename):
4203         (get_rename): Add old_bb and loop_phi for more precise matching of
4204         exprs.
4205         (set_rename): Pass region.
4206         (later_of_the_two): New.
4207         (gsi_insert_earliest): New.
4208         (collect_all_ssa_names): New.
4209         (substitute_ssa_name): New.
4210         (rename_all_uses): New.
4211         (get_rename_from_scev): New.
4212         (rename_uses): Pass old_bb for more precise matching of exprs.
4213         (get_def_bb_for_const): New.
4214         (get_new_name): New.
4215         (get_loc): New.
4216         (get_edges): New.
4217         (copy_loop_phi_args): New.
4218         (copy_loop_phi_nodes): New.
4219         (get_loop_init_value): New.
4220         (find_init_value): New.
4221         (find_init_value_close_phi): New.
4222         (copy_loop_close_phi_args): New.
4223         (copy_loop_close_phi_nodes): New.
4224         (add_phi_arg_for_new_expr): New.
4225         (copy_cond_phi_args): New.
4226         (copy_cond_phi_nodes): New.
4227         (copy_phi_nodes): New.
4228         (should_copy_to_new_region): New.
4229         (set_rename_for_each_def): New.
4230         (graphite_copy_stmts_from_block): Early return in case of error.
4231         (copy_bb_and_scalar_dependences): Same.
4232         * sese.h (vec_find): New.
4233         (SESE_PARAMS): Delete.
4234         (SESE_LOOPS): Delete.
4235         (SESE_LOOP_NEST): Delete.
4236         (sese_contains_loop): Remove macro usage.
4237         (sese_nb_params): Same.
4238         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4240 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4242         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4243         isl_union_map_add_map on every pbb->schedule.
4245 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4247         * tree-parloops.c (create_parallel_loop): Return void.
4249 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4251         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4252         block only when needed.
4254 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
4256         * config/alpha/alpha-protos.h (print_operand): Remove.
4257         (print_operand_address): Remove.
4258         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4259         (PRINT_OPERAND_ADDRESS): Remove.
4260         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4261         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4262         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4263         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4264         (print_operand_address): Rename to...
4265         (alpha_print_operand_address): ...this and make static.
4266         (print_operand): Rename to...
4267         (alpha_print_operand): ...this and make static.
4268         (alpha_print_operand_punct_valid_p): New static function.
4270 2015-11-11  Richard Biener  <rguenther@suse.de>
4272         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4273         Declare.
4274         (vect_analyze_data_refs_alignment): Make loop vect specific.
4275         (vect_verify_datarefs_alignment): Likewise.
4276         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4277         Add missing continue.
4278         (vect_compute_data_ref_alignment): Export.
4279         (vect_compute_data_refs_alignment): Merge into...
4280         (vect_analyze_data_refs_alignment): ... this.
4281         (verify_data_ref_alignment): Split out from ...
4282         (vect_verify_datarefs_alignment): ... here.
4283         (vect_slp_analyze_and_verify_node_alignment): New function.
4284         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4285         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4286         misplaced checks on alignment.
4287         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
4288         alignment analysis after SLP discovery and do it per instance.
4289         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4290         bother to re-try using different vector sizes.
4292 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4293             Cesar Philippidis  <cesar@codesourcery.com>
4295         * gimplify.c (enum omp_region_type): Add ORT_ACC,
4296         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
4297         (gimple_add_tmp_var): Add ORT_ACC checks.
4298         (gimplify_var_or_parm_decl): Likewise.
4299         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4300         (omp_add_variable): Look in outer contexts for openacc and allow
4301         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4302         (omp_notice_variable, omp_is_private, omp_check_private): Add
4303         ORT_ACC checks.
4304         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4305         Permit private openacc reductions.
4306         (gimplify_oacc_cache): Specify ORT_ACC.
4307         (gimplify_omp_workshare): Adjust OpenACC region types.
4308         (gimplify_omp_target_update): Likewise.
4309         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4310         (lower-rec_input_clauses): Don't handle openacc firstprivate
4311         references here.
4312         (lower_omp_target): Emit initializers for openacc firstprivate vars.
4314 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
4316         PR target/67265
4317         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4318         frame pointer for stack checking if non-call exceptions aren't used.
4319         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4321 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
4323         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4324         [LA]SHIFTRT.
4326 2015-11-11  Martin Liska  <mliska@suse.cz>
4327             Richard Biener  <rguenther@suse.de>
4329         PR rtl-optimization/68287
4330         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4331         number of elements.
4333 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
4335         * config/mips/mips.c (mips_breakable_sequence_p): New function.
4336         (mips_break_sequence): New function.
4337         (mips_reorg_process_insns): Use them. Use compact branches in selected
4338         situations.
4340 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
4342         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4344 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
4345             Jim Wilson  <wilson@gcc.gnu.org>
4347         PR target/67305
4348         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4349         be true and eliminable registers mentioned.
4351 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
4353         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4354         options.
4355         * config/arc/arc-opts.h: Add ARCv2 CPUs.
4356         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4357         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4358         situation, and store instructions with large offsets.
4359         (arc_secondary_reload_conv): New function.
4360         (arc_init): Add ARCv2 options.
4361         (arc_conditional_register_usage): Select the proper register usage
4362         for ARCv2 processors.
4363         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4364         architecture.
4365         (arc_compute_function_type): Likewise.
4366         (arc_print_operand): Handle new ARCv2 punctuation characters.
4367         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4368         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4369         function.
4370         (arc_reorg, arc_hazard): Use it.
4371         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4372         (ASM_SPEC): Add ARCv2 options.
4373         (TARGET_NORM): ARC HS has norm instructions by default.
4374         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4375         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4376         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4377         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4378         Likewise.
4379         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4380         (TARGET_LP_WR_INTERLOCK): Likewise.
4381         * config/arc/arc.md
4382         (commutative_binary_mult_comparison_result_used, movsicc_insn)
4383         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4384         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4385         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4386         Use it for ARCv2.
4387         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4388         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4389         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4390         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4391         (extzvsi): New pattern.
4392         * config/arc/arc.opt: New ARCv2 options.
4393         * config/arc/arcEM.md: New file.
4394         * config/arc/arcHS.md: Likewise.
4395         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4396         values.
4397         (Cm2): A signed 9-bit integer constant constraint.
4398         (C62): An unsigned 6-bit integer constant constraint.
4399         (C16): A signed 16-bit integer constant constraint.
4400         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4401         (short_const_int_operand): New predicate.
4402         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4403         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4404         -mcode-density and -mdiv-rem.
4406 2015-11-11  Julia Koval  <julia.koval@intel.com>
4408         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4410 2015-11-11  Julia Koval  <julia.koval@intel.com>
4412         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4414 2015-11-11  Martin Liska  <mliska@suse.cz>
4416         * gimple-ssa-strength-reduction.c (create_phi_basis):
4417         Use auto_vec.
4418         * passes.c (release_dump_file_name): New function.
4419         (pass_init_dump_file): Used from this function.
4420         (pass_fini_dump_file): Likewise.
4421         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4422         * var-tracking.c (vt_initialize): Use pool_allocator.
4424 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
4425             Jiong Wang      <jiong.wang@arm.com>
4427         PR tree-optimization/68234
4428         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4429         node which estimiated to be VR_VARYING initially.
4431 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
4433         * regname.c (scan_rtx_reg): Check the matching number of consecutive
4434         registers when tying chains.
4435         (build_def_use): Move terminated_this_insn earlier in the function.
4437 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
4439         * configure.ac: Use = with test and not ==.
4440         * configure: Regenerated.
4442 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
4444         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4445         machine asserts.  Update defines for 64 bit.
4447 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4449         PR target/63870
4450         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4451         lane number.
4452         (neon_vst1_lane<mode>): Likewise.
4453         (neon_vld2_lane<mode>): Likewise.
4454         (neon_vst2_lane<mode>): Likewise.
4455         (neon_vld3_lane<mode>): Likewise.
4456         (neon_vst3_lane<mode>): Likewise.
4457         (neon_vld4_lane<mode>): Likewise.
4458         (neon_vst4_lane<mode>): Likewise.
4460 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4462         PR target/63870
4463         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4464         qualifier_struct_load_store_lane_index.
4465         (arm_storestruct_lane_qualifiers) Likewise.
4466         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4467         big-endian.
4468         (neon_vst1_lane<mode>) Likewise.
4469         (neon_vld2_lane<mode>) Likewise.
4470         (neon_vst2_lane<mode>) Likewise.
4471         (neon_vld3_lane<mode>) Likewise.
4472         (neon_vst3_lane<mode>) Likewise.
4473         (neon_vld4_lane<mode>) Likewise.
4474         (neon_vst4_lane<mode>) Likewise.
4476 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4478         PR target/63870
4479         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4480         qualifier_struct_load_store_lane_index.
4481         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4482         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4483         argument qualifiers.
4484         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4485         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4487 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
4489         * config/nvptx/nvptx.opt (moptimize): New flag.
4490         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4491         default.
4492         (nvptx_optimize_inner): New.
4493         (nvptx_process_pars): Call it when optimizing.
4494         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4496 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4498         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4499         Remove redundant code.
4501 2015-11-10  Jeff Law  <law@redhat.com>
4503         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4504         call to output_address.
4505         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4506         Add unnamed machine_mode argument.
4508 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4510         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4511         default to 64-bit.
4513 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4515         * config/i386/i386.md (*movabs<mode>_1): Add explicit
4516         size directives for -masm=intel.
4517         (*movabs<mode>_2): Ditto.
4519 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4521         * config/i386/i386.c (ix86_print_operand): Remove dead code that
4522         tried to avoid (%rip) for call operands.
4524 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4526         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4527         argument.  Do not use RIP relative addressing when no_rip is set.
4528         (ix86_print_operand): Update call to ix86_print_operand_address_as.
4529         (ix86_print_operand_address): Ditto.
4530         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4531         absolute movabs operand 0.  Add square braces for -masm=intel.
4532         (*movabs<mode>_2): Ditto for operand 1.
4534 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4536         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4537         combine_vcvtf2i pattern.
4539 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4541         * config/arm/arm.c (neon_valid_immediate): Remove integer
4542         CONST_DOUBLE handling.  It should never occur.
4544 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
4546         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4547         (ATOMIC_LDOP): Likewise.
4548         (atomic_ldop): Likewise.
4549         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4550         (ATOMIC_LDOP): Likewise.
4551         (atomic_ldop): Likewise.
4553 2015-11-10  Martin Liska  <mliska@suse.cz>
4555         * alloc-pool.h (allocate_raw): New function.
4556         (operator new (size_t, object_allocator<T> &a)): Use the
4557         function instead of object_allocator::allocate).
4559 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4561         * config/i386/sse.md (HALFMASKMODE): New attribute.
4562         (DOUBLEMASKMODE): New attribute.
4563         (vec_pack_trunc_qi): New.
4564         (vec_pack_trunc_<mode>): New.
4565         (vec_unpacks_lo_hi): New.
4566         (vec_unpacks_lo_si): New.
4567         (vec_unpacks_lo_di): New.
4568         (vec_unpacks_hi_hi): New.
4569         (vec_unpacks_hi_<mode>): New.
4571 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4573         * optabs.c (expand_binop_directly): Allow scalar mode for
4574         vec_pack_trunc_optab.
4575         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4576         boolean vector producers from pattern sequence when computing VF.
4577         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4578         vect_recog_mask_conversion_pattern.
4579         (search_type_for_mask): Choose the smallest
4580         type if different size types are mixed.
4581         (build_mask_conversion): New.
4582         (vect_recog_mask_conversion_pattern): New.
4583         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4584         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4585         load with pattern.
4586         (vectorizable_conversion): Support boolean vectors.
4587         (free_stmt_vec_info): Allow patterns for statements with no lhs.
4588         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4590 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4592         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4593         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4594         Cast mask to FP mode if required.
4595         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4596         (vcond_mask_<mode><avx512fmaskmodelower>): New.
4597         (vcond_mask_<mode><sseintvecmodelower>): New.
4598         (vcond_mask_<mode><sseintvecmodelower>): New.
4599         (vcond_mask_v2div2di): New.
4600         (vcond_mask_<mode><sseintvecmodelower>): New.
4601         (vcond_mask_<mode><sseintvecmodelower>): New.
4603 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4605         * optabs-query.h (get_vcond_mask_icode): New.
4606         * optabs-tree.c (expand_vec_cond_expr_p): Use
4607         get_vcond_mask_icode for VEC_COND_EXPR with mask.
4608         * optabs.c (expand_vec_cond_mask_expr): New.
4609         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4610         * optabs.def (vcond_mask_optab): New.
4611         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4612         generate redundant comparison for COND_EXPR.
4613         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4614         as a condition.
4615         (vectorizable_condition): Likewise.
4616         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4617         cond_exp with no embedded comparison.
4618         (vect_build_slp_tree_1): Likewise.
4620 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4622         * config/i386/sse.md (maskload<mode>): Rename to ...
4623         (maskload<mode><sseintvecmodelower>): ... this.
4624         (maskstore<mode>): Rename to ...
4625         (maskstore<mode><sseintvecmodelower>): ... this.
4626         (maskload<mode><avx512fmaskmodelower>): New.
4627         (maskstore<mode><avx512fmaskmodelower>): New.
4629 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4631         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4632         (expand_MASK_STORE): Adjust to maskstore optab changes.
4633         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4634          Adjust to maskload, maskstore optab changes.
4635         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4636         * optabs.def (maskload_optab): Transform into convert optab.
4637         (maskstore_optab): Likewise.
4638         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4639         can_vec_mask_load_store_p signature change.
4640         (predicate_mem_writes): Use boolean mask.
4641         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4642         can_vec_mask_load_store_p signature change.  Allow invariant masks.
4643         (vectorizable_operation): Ignore type precision for boolean vectors.
4645 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4647         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4648         (const_vector_mask_from_tree): New.
4649         (const_vector_from_tree): Use const_vector_mask_from_tree
4650         for boolean vectors.
4651         * optabs-query.h (get_vec_cmp_icode): New.
4652         * optabs-tree.c (expand_vec_cmp_expr_p): New.
4653         * optabs-tree.h (expand_vec_cmp_expr_p): New.
4654         * optabs.c (vector_compare_rtx): Add OPNO arg.
4655         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4656         (expand_vec_cmp_expr): New.
4657         * optabs.def (vec_cmp_optab): New.
4658         (vec_cmpu_optab): New.
4659         * optabs.h (expand_vec_cmp_expr): New.
4660         * tree-vect-generic.c (expand_vector_comparison): Add vector
4661         comparison optabs check.
4662         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
4663         operations for VF.  Add mask type computation.
4664         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4665         (vectorizable_comparison): New.
4666         (vect_analyze_stmt): Add vectorizable_comparison.
4667         (vect_transform_stmt): Likewise.
4668         (vect_init_vector): Support boolean vector invariants.
4669         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4670         (vectorizable_condition): Directly provide vectype for invariants
4671         used in comparison.
4672         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4673         (enum vect_var_kind): Add vect_mask_var.
4674         (enum stmt_vec_info_type): Add comparison_vec_info_type.
4675         (vectorizable_comparison): New.
4676         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4677         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4678         (vect_create_destination_var): Likewise.
4679         * tree-vect-patterns.c (check_bool_pattern): Check fails
4680         if we can vectorize comparison directly.
4681         (search_type_for_mask): New.
4682         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4683         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4684         comparison statements.
4685         (vect_get_constant_vectors): Support boolean vector constants.
4686         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4687         (ix86_expand_int_vec_cmp): New.
4688         (ix86_expand_fp_vec_cmp): New.
4689         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4690         op_true and op_false.
4691         (ix86_int_cmp_code_to_pcmp_immediate): New.
4692         (ix86_fp_cmp_code_to_pcmp_immediate): New.
4693         (ix86_cmp_code_to_pcmp_immediate): New.
4694         (ix86_expand_mask_vec_cmp): New.
4695         (ix86_expand_fp_vec_cmp): New.
4696         (ix86_expand_int_sse_cmp): New.
4697         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4698         (ix86_expand_int_vec_cmp): New.
4699         (ix86_get_mask_mode): New.
4700         (TARGET_VECTORIZE_GET_MASK_MODE): New.
4701         * config/i386/sse.md (avx512fmaskmodelower): New.
4702         (vec_cmp<mode><avx512fmaskmodelower>): New.
4703         (vec_cmp<mode><sseintvecmodelower>): New.
4704         (vec_cmpv2div2di): New.
4705         (vec_cmpu<mode><avx512fmaskmodelower>): New.
4706         (vec_cmpu<mode><sseintvecmodelower>): New.
4707         (vec_cmpuv2div2di): New.
4709 2015-11-10  Richard Biener  <rguenther@suse.de>
4711         PR tree-optimization/68240
4712         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4713         properly.
4714         (visit_phi): For PHIs with just a single executable edge
4715         take its value directly.
4716         (expressions_equal_p): Handle VN_TOP properly.
4718 2015-11-10  Richard Biener  <rguenther@suse.de>
4720         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4721         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4722         conservatively.
4724 2015-11-10  Richard Biener  <rguenther@suse.de>
4726         PR tree-optimization/56118
4727         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4728         cost favor vectorized version.
4730 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4732         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4733         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4734         (neg_not_op): New code attribute.
4736 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4738         * ifcvt.c (noce_try_inverse_constants): New function.
4739         (noce_process_if_block): Call it.
4740         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4741         * optabs.def (negcc_optab, notcc_optab): Declare.
4742         * optabs.c (emit_conditional_neg_or_complement): New function.
4743         * doc/tm.texi (Standard Names): Document negcc, notcc names.
4745 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4747         PR rtl-optimization/68236
4748         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4749         if insn_queue doesn't exist.
4750         (haifa_sched_finish): Reset insn_queue to NULL.
4752 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
4754         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4755         (build_def_use): Initialize terminated_this_insn.
4756         (find_best_rename_reg): Pick and check register from the tied chain.
4757         (regrename_do_replace): Mark head as renamed.
4758         (struct du_head *terminated_this_insn). New static variable.
4759         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
4760         * regrename.h (struct du_head): Add tied_chain, renamed members.
4762 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4764         PR bootstrap/68256
4765         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4766         Return false.
4768 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4770         PR target/57845
4771         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4772         not promote the mode for aggregate types.
4774 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4776         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4777         * omp-low.c (build_oacc_routine_dims): New.
4779 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4781         * config/rs6000/constraints.md (wF constraint): New constraints
4782         for power9/toc fusion.
4783         (wG constraint): Likewise.
4785         * config/rs6000/predicates.md (u6bit_cint_operand): New
4786         predicate, recognize 0..63.
4787         (upper16_cint_operand): New predicate for power9 and toc fusion.
4788         (fpr_reg_operand): Likewise.
4789         (toc_fusion_or_p9_reg_operand): Likewise.
4790         (toc_fusion_mem_raw): Likewise.
4791         (toc_fusion_mem_wrapped): Likewise.
4792         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4793         address range.
4794         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4795         instead.
4796         (fusion_addis_mem_combo_load): Add support for power9 fusion of
4797         floating point loads, floating point stores, and gpr stores.
4798         (fusion_addis_mem_combo_store): Likewise.
4799         (fusion_offsettable_mem_operand): Likewise.
4801         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4802         (emit_fusion_load_store): Likewise.
4803         (fusion_p9_p): Likewise.
4804         (expand_fusion_p9_load): Likewise.
4805         (expand_fusion_p9_store): Likewise.
4806         (emit_fusion_p9_load): Likewise.
4807         (emit_fusion_p9_store): Likewise.
4808         (fusion_wrap_memory_address): Likewise.
4810         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4811         elements for power9 fusion.
4812         (rs6000_debug_print_mode): Rework debug information to print more
4813         information about fusion.
4814         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4815         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4816         offsettable memory address.
4817         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4818         (emit_fusion_gpr_load): Move most of the code from
4819         emit_fusion_gpr_load into emit_fusion-addis that handles both
4820         power8 and power9 fusion.
4821         (emit_fusion_addis): Likewise.
4822         (emit_fusion_load_store): Likewise.
4823         (fusion_wrap_memory_address): Add support for TOC fusion.
4824         (fusion_split_address): Likewise.
4825         (fusion_p9_p): Add support for power9 fusion.
4826         (expand_fusion_p9_load): Likewise.
4827         (expand_fusion_p9_store): Likewise.
4828         (emit_fusion_p9_load): Likewise.
4829         (emit_fusion_p9_store): Likewise.
4831         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4832         new instructions in ISA 3.0.
4833         (TARGET_CTZ): Likewise.
4834         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4835         (TARGET_TOC_FUSION_FP): Likewise.
4837         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4838         fusion unspecs.
4839         (UNSPEC_FUSION_ADDIS): Likewise.
4840         (QHSI mode iterator): New iterator for power9 fusion.
4841         (GPR_FUSION): Likewise.
4842         (FPR_FUSION): Likewise.
4843         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4844         (umod<mode>3): Likewise.
4845         (divmod peephole): Likewise.
4846         (udivmod peephole): Likewise.
4847         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4848         instructions.
4849         (ctz<mode>2_h): Likewise.
4850         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4851         (ashdi3_extswsli_dot): Likewise.
4852         (ashdi3_extswsli_dot2): Likewise.
4853         (power9 fusion splitter): New power9/toc fusion support.
4854         (toc_fusionload_<mode>): Likewise.
4855         (toc_fusionload_di): Likewise.
4856         (fusion_gpr_load_<mode>): Update predicate function.
4857         (power9 fusion peephole2s): New power9/toc fusion support.
4858         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4859         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4860         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4861         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4862         (fusion_p9_<mode>_constant): Likewise.
4864 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
4866         * optabs.c (prepare_libcall_arg): New function.
4867         (expand_fixed_convert): Add call to prepare_libcall_arg.
4869 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
4871         * sched-int.h (dump_rgn_dependencies_dot): Declare
4872         * sched-rgn.c (dump_rgn_dependencies_dot): New function
4873         * print-rtl.h (print_insn): Add prototype
4875         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4876         * common.opt (-fsched-verbose): Set default value to 1.
4877         * invoke.texi (-fsched-verbose): Update the option's description.
4879 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4881         * config/visium/visium.h (PRINT_OPERAND): Delete.
4882         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4883         (PRINT_OPERAND_ADDRESS): Likewise.
4884         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4885         to...
4886         (visium_print_operand_punct_valid_p): ...this.  New function.
4887         (TARGET_PRINT_OPERAND): Define to...
4888         (print_operand): Rename to...
4889         (visium_print_operand): ...this.
4890         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4891         (visium_output_address): Rename to...
4892         (visium_print_operand_address): ...this.
4893         (print_operand_address): Delete.
4895 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4897         PR middle-end/68259
4898         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4899         Check that the type of the first operand is an aggregate type.
4901 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4903         * omp-low.c: Fix some OpenACC comment typos.
4904         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4905         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4906         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4908 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
4910         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4912 2015-11-09  Jeff Law  <law@redhat.com>
4914         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4915         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
4916         Fix comment typo.
4918 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4919             Peter Bergner  <bergner@vnet.ibm.com>
4921         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4922         ISA 3.0 (power9).
4923         (-mpower9-vector): Likewise.
4924         (-mpower9-dform): Likewise.
4925         (-mpower9-minmax): Likewise.
4926         (-mtoc-fusion): Likewise.
4927         (-mmodulo): Likewise.
4928         (-mfloat128-hardware): Likewise.
4930         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4931         mask for ISA 3.0 (power9).
4932         (POWERPC_MASKS): Add new ISA 3.0 switches.
4933         (power9 cpu): Add power9 cpu.
4935         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4936         (ASM_CPU_SPEC): Likewise.
4937         (EXTRA_SPECS): Likewise.
4939         * config/rs6000/rs6000-opts.h (enum processor_type): Add
4940         PROCESSOR_POWER9.
4942         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4943         (rs6000_debug_reg_global): Add support for power9 fusion.
4944         (rs6000_setup_reg_addr_masks): Cache mode size.
4945         (rs6000_option_override_internal): Until real power9 tuning is
4946         added, use -mtune=power8 for -mcpu=power9.
4947         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4948         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4949         of Altivec registers.
4950         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4951         (rs6000_loop_align): Add support for power9 cpu.
4952         (rs6000_file_start): Likewise.
4953         (rs6000_adjust_cost): Likewise.
4954         (rs6000_issue_rate): Likewise.
4955         (insn_must_be_first_in_group): Likewise.
4956         (insn_must_be_last_in_group): Likewise.
4957         (force_new_group): Likewise.
4958         (rs6000_register_move_cost): Likewise.
4959         (rs6000_opt_masks): Likewise.
4961         * config/rs6000/rs6000.md (cpu attribute): Add power9.
4962         * config/rs6000/rs6000-tables.opt: Regenerate.
4964         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4965         _ARCH_PWR9 if power9 support is available.
4967         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4968         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4970         * configure.ac: Determine if the assembler supports the ISA 3.0
4971         instructions.
4972         * config.in (HAVE_AS_POWER9): Likewise.
4973         * configure: Regenerate.
4975         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4976         switches.
4978 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4980         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4981         Remove integer CONST_DOUBLE handling.  It should never occur.
4983 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4985         PR target/68129
4986         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4987         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4988         Delete VOIDmode case.  Assert that mode is not VOIDmode.
4989         * config/aarch64/predicates.md (const0_operand): Remove const_double
4990         match.
4992 2015-11-09  Martin Liska  <mliska@suse.cz>
4994         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4995         body_info release function.
4996         * ipa-prop.c (ipa_release_body_info): New function.
4997         (ipa_analyze_node): Call the function.
4998         (ipa_node_params::~ipa_node_params): Release known_csts.
4999         * ipa-prop.h (ipa_release_body_info): Declare.
5001 2015-11-09  Martin Liska  <mliska@suse.cz>
5003         * gcc.c (record_temp_file): Release name string.
5004         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5005         * lra-lives.c (free_live_range_list): Utilize
5006         lra_live_range_pool for allocation and deallocation.
5007         (create_live_range): Likewise.
5008         (copy_live_range): Likewise.
5009         (lra_merge_live_ranges): Likewise.
5010         (remove_some_program_points_and_update_live_ranges): Likewise.
5011         (lra_create_live_ranges_1): Release point_freq_vec that can
5012         be not freed from previous iteration of the function.
5013         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5014         * tree-sra.c (sra_deinitialize): Release all vectors in
5015         base_access_vec.
5016         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5017         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5018         Release edge_info for a removed edge.
5019         (thread_through_all_blocks): Free region vector.
5020         * tree-ssa.h (free_dom_edge_info): Declare function extern.
5022 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
5024         * optabs.c (expand_vec_cond_expr): Always get sign from type.
5025         * tree.c (wide_int_to_tree): Support negative values for boolean.
5026         (build_nonstandard_boolean_type): Use signed type for booleans.
5028 2015-11-09  Richard Biener  <rguenther@suse.de>
5030         PR tree-optimization/68248
5031         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5033 2015-11-09  Richard Biener  <rguenther@suse.de>
5035         PR tree-optimization/56118
5036         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5037         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5038         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5039         function.
5040         (vect_slp_analyze_data_ref_dependences): Instead of computing
5041         all dependences of the region DRs just analyze the code motions
5042         SLP vectorization will perform.  Remove SLP instances that
5043         cannot have their store/load motions applied.
5044         (vect_analyze_data_refs): Allow DRs without a vectype
5045         in BB vectorization.
5047 2015-11-09  Julian Brown  <julian@codesourcery.com>
5049         * final.c (output_asm_insn): Pass VOIDmode to output_address.
5050         (output_address): Add MODE argument. Pass to print_operand_address
5051         hook.
5052         * targhooks.c (default_print_operand_address): Add MODE argument.
5053         * targhooks.h (default_print_operand_address): Update prototype.
5054         * output.h (output_address): Update prototype.
5055         * target.def (print_operand_address): Add MODE argument.
5056         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5057         output_address.
5058         (print_operand): Pass access mode to output_address.
5059         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5060         argument.
5061         (mcore_print_operand): Update calls to mcore_print_operand_address.
5062         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5063         output_address.
5064         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5065         output_address.
5066         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5067         global.
5068         (tilegx_print_operand): Don't set above global. Update calls to
5069         output_address.
5070         (tilegx_print_operand_address): Add MODE argument. Use instead of
5071         output_memory_reference_mode global.
5072         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5073         (frv_print_operand): Pass mode to frv_print_operand_address calls.
5074         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5075         output_address.
5076         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5077         (cris_print_operand): Pass mode to output_address calls.
5078         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5079         * config/aarch64/aarch64.h (aarch64_print_operand)
5080         (aarch64_print_operand_address): Remove prototypes.
5081         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5082         global.
5083         (aarch64_print_operand): Make static. Update calls to output_address.
5084         (aarch64_print_operand_address): Add MODE argument. Use instead of
5085         aarch64_memory_reference_mode global.
5086         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5087         hooks.
5088         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5089         Delete macro definitions.
5090         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5091         * config/xtensa/xtensa.c (print_operand): Pass mode in
5092         output_address calls.
5093         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5094         argument.
5095         (h83000_print_operand): Update calls to h8300_print_operand_address
5096         and output_address.
5097         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5098         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5099         global.
5100         (tilepro_print_operand): Pass mode to output_address.
5101         (tilepro_print_operand_address): Add MODE argument. Use instead of
5102         output_memory_reference_mode.
5103         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5104         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5105         to output_address calls.
5106         (nvptx_print_operand_address): Add MODE argument.
5107         * config/alpha/alpha.c (print_operand): Pass mode argument in
5108         output_address calls.
5109         * config/m68k/m68k.c (print_operand): Pass mode argument in
5110         output_address call.
5111         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5112         (avr_print_operand): Update calls to avr_print_operand_address.
5113         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5114         argument. Update calls to output_address.
5115         (sparc_print_operand): Pass mode to output_address.
5116         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5117         argument.
5118         (iq2000_print_operand): Pass mode in output_address calls.
5119         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5120         MODE argument.
5121         (xstormy16_print_operand): Pass mode to
5122         xstormy16_print_operand_address calls.
5123         * config/mips/mips.c (mips_print_operand): Update calls to
5124         output_address.
5125         (mips_print_operand_address): Add MODE argument.
5126         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5127         to output_address.
5128         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5129         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5130         output_address.
5131         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5132         (rx_print_operand): Update calls to output_address,
5133         rx_print_operand_address.
5134         * config/nds32/nds32.c (nds32_print_operand): Update calls to
5135         output_address.
5136         (nds32_print_operand_address): Add MODE argument.
5137         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5138         output_address calls.
5139         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5140         output_address call.
5141         (c6x_print_address_operand): Update calls to output_address.
5142         (c6x_print_operand_address): Pass mode to above.
5143         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5144         (v850_print_operand): Pass mode to v850_print_operand_address,
5145         output_address.
5146         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5147         (mmix_print_operand): Pass mode in output_address calls.
5148         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5149         (sh_print_operand): Pass mem mode to output_address,
5150         sh_print_operand_address.
5151         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5152         (cr16_print_operand): Pass mode to output_address,
5153         cr16_print_operand_address.
5154         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5155         output_address.
5156         * config/microblaze/microblaze.c (print_operand): Pass mode to
5157         output_address.
5158         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5159         output_address.
5160         (nios2_print_operand_address): Add MODE argument. Update call to
5161         nios2_print_operand_address.
5162         * config/s390/s390.c (print_operand): Pass mode to output_address.
5163         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5164         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5165         output_address.
5166         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5167         Use instead of output_memory_reference_mode.
5168         (output_memory_reference_mode): Delete global.
5169         (arm_print_operand): Pass mem mode to output_address.
5170         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5171         (m32r_print_operand): Pass mode to output_address.
5172         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5173         argument.
5174         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5175         * config/i386/i386.c (ix86_print_operand): Pass mode to
5176         output_address calls.
5177         (ix86_print_operand_address): Add MODE argument.
5179 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5181         PR middle-end/68251
5182         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5183         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5184         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5185         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5187 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5189         PR rtl-optimization/67749
5190         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5191         case before emitting the two blocks.  Instead modify the register
5192         in the corresponding final insn of the basic block.
5194 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5196         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5197         assembler syntax.
5198         Support Solaris ld.
5199         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5201         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5202         HAVE_INITFINI_ARRAY_SUPPORT.
5203         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5205         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5206         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5207         Don't check HAVE_AS_SPARC_NOBITS.
5208         Heed SECTION_NOTYPE.
5210         * configure: Regenerate.
5211         * config.in: Regenerate.
5213 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5215         PR middle-end/68253
5216         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5218 2015-11-09  Richard Henderson  <rth@redhat.com>
5220         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5221         __SEG_GS, __SEG_TLS.
5222         (ix86_register_pragmas): Register address spaces __seg_fs,
5223         __seg_gs, __seg_tls.
5224         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5225         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5226         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5227         * config/i386/i386.c (ix86_decompose_address): Likewise.
5228         (ix86_legitimate_address_p): Likewise.
5229         (memory_address_length): Likewise.  Check mem address space too.
5230         (ix86_print_operand): Use ix86_print_operand_address_as.
5231         (ix86_print_operand_address_as): Rename from
5232         ix86_print_operand_address, add new addr_space_t parameter.
5233         Validate that either the parameter or the ix86_address segment
5234         is default address space.  Handle ADDR_SPACE_SEG_TLS.
5235         (ix86_print_operand_address): New.
5236         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5237         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5238         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5239         (ix86_addr_space_zero_address_valid): New.
5240         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5241         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5242         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5243         * config/i386/predicates.md (address_no_seg_operand): Likewise.
5244         (vsib_address_operand): Likewise.
5245         (address_mpx_no_base_operand): Likewise.
5246         (address_mpx_no_index_operand): Likewise.
5247         * doc/extend.texi (x86 Named Address Spaces): New section.
5249         * config/i386/i386.c (ix86_check_no_addr_space): New.
5250         (decide_alg): Add have_as parameter.
5251         (alg_usable_p): Likewise; disable rep algorithms if set.
5252         (ix86_expand_set_or_movmem): Notice if either MEM has a
5253         non-default address space.
5254         (ix86_expand_strlen): Likewise.
5255         * config/i386/i386.md (strmov, strset): Likewise.
5256         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5257         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5258         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5259         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5260         *cmpstrnqi_1, *strlenqi_1): Likewise.
5262         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5263         (*movabs<mode>_2): Likewise.
5265         * dwarf2out.c (modified_type_die): Pass the address space number
5266         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5267         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5268         * targhooks.c (default_addr_space_debug): New.
5269         * targhooks.h (default_addr_space_debug): Declare.
5270         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5271         * doc/tm.texi: Rebuild.
5273         * gimple.c (check_loadstore): Return false when 0 is a valid address.
5274         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5275         null when 0 is valid in the source address space.
5276         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5277         * targhooks.c (default_addr_space_zero_address_valid): New.
5278         * targhooks.h (default_addr_space_zero_address_valid): Declare.
5279         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5280         * doc/tm.texi: Rebuild.
5282         * cselib.c (add_mem_for_addr): Compare address spaces when
5283         matching memories.
5284         (cselib_lookup_mem): Likewise.
5285         * fold-const.c (operand_equal_p): Check address spaces of
5286         pointer types before checking integer constants.
5288         PR tree-opt/66768
5289         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5290         the correct type for the base.
5292 2015-11-09  Jeff Law  <law@redhat.com>
5294         * tree-into-ssa.c (names_to_release): No longer static.
5295         * tree-into-ssa.h (names_to_release): Declare.
5296         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5297         (release_free_names_and_compact_live_names): New function extracted
5298         from pass_release_ssa_names::execute.
5299         (pass_release_ssa_names::execute): Use it.
5301 2015-11-09  Alan Modra  <amodra@gmail.com>
5303         * gensupport.c (add_mnemonic_string): Make len param a size_t.
5304         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
5305         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
5306         return value.
5308 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
5310         PR rtl-optimization/68182
5311         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5312         branch with only one successor just like unconditional branches.
5314 2015-11-08  Jeff Law  <law@redhat.com>
5316         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5317         non-FSM path has no edges marked with EDGE_DFS_BACK.
5318         (ssa_redirect_edges): No longer call mark_loop_for_removal.
5319         (thread_single_edge, def_split_header_continue_p): Remove.
5320         (bb_ends_with_multiway_branch): Likewise.
5321         (thread_through_loop_header): Remove cases of threading from
5322         latch through the header.  Simplify knowing we won't thread
5323         the latch.
5324         (thread_through_all_blocks): Simplify knowing that only the FSM
5325         threader needs to handle backedges.
5327 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5329         * doc/extend.texi (type attributes): Document scalar_storage_order.
5330         (Structure-Packing Pragmas): Rename into...
5331         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
5332         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5333         (Warnings): Document -Wno-scalar-storage-order.
5334         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5335         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5336         extract_bit_field and store_bit_field.
5337         (initialize_argument_information): Adjust call to store_expr.
5338         (load_register_parameters): Adjust call to extract_bit_field.
5339         * expmed.c (check_reverse_storage_order_support): New function.
5340         (check_reverse_float_storage_order_support): Likewise.
5341         (flip_storage_order): Likewise.
5342         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
5343         of the value if it is true.  Pass REVERSE to recursive call after
5344         adjusting the target offset.
5345         Do not use extraction or movstrict instruction if REVERSE is true.
5346         Pass REVERSE to store_fixed_bit_field.
5347         (store_bit_field): Add REVERSE parameter and pass to it to above.
5348         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5349         store_split_bit_field and store_fixed_bit_field_1.
5350         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
5351         order of the value if it is true and adjust the target offset.
5352         (store_split_bit_field): Add REVERSE parameter and pass it to
5353         store_fixed_bit_field.  Adjust the target offset if it is true.
5354         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
5355         of the value if it is true.  Pass REVERSE to recursive call after
5356         adjusting the target offset.
5357         Do not use extraction or subreg instruction if REVERSE is true.
5358         Pass REVERSE to extract_fixed_bit_field.
5359         (extract_bit_field): Add REVERSE parameter and pass to it to above.
5360         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5361         extract_split_bit_field and extract_fixed_bit_field_1.
5362         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
5363         order of the value if it is true and adjust the target offset.
5364         (extract_split_bit_field): Add REVERSE parameter and pass it to
5365         extract_fixed_bit_field.  Adjust the target offset if it is true.
5366         * expmed.h (flip_storage_order): Declare.
5367         (store_bit_field): Adjust prototype.
5368         (extract_bit_field): Likewise.
5369         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5370         (emit_group_store): Adjust call to store_bit_field.
5371         (copy_blkmode_from_reg): Likewise.
5372         (copy_blkmode_to_reg): Likewise.
5373         (write_complex_part): Likewise.
5374         (read_complex_part): Likewise.
5375         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
5376         that it isn't true if the target is a register.
5377         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5378         and flip the storage order of the value.
5379         <BIT_IOR_EXPR>: Flip the storage order of the value.
5380         (get_bit_range): Adjust call to get_inner_reference.
5381         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5382         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
5383         with reverse storage order.
5384         (store_expr_with_bounds): Add REVERSE parameter and pass it to
5385         recursive calls and call to store_bit_field.  Force the value into a
5386         register if it is true and then flip the storage order of the value.
5387         (store_expr): Add REVERSE parameter and pass it to above.
5388         (categorize_ctor_elements_1): Adjust call to
5389         initializer_constant_valid_p.
5390         (store_constructor_field): Add REVERSE parameter and pass it to
5391         recursive calls and call to store_field.
5392         (store_constructor): Add REVERSE parameter and pass it to calls to
5393         store_constructor_field and store_expr.  Set it to true for an
5394         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5395         (store_field): Add REVERSE parameter and pass it to recursive calls
5396         and calls to store_expr and store_bit_field.  Temporarily flip the
5397         storage order of the value with record type and integral mode and
5398         adjust the shift if it is true.
5399         (get_inner_reference): Add PREVERSEP parameter and set it to true
5400         upon encoutering a reference with reverse storage order.
5401         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5402         (expand_constructor): Adjust call to store_constructor.
5403         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5404         of the union type to store_expr in the MEM case and assert that it
5405         isn't set in the REG case.  Adjust call to store_field.
5406         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5407         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5408         get_inner_reference and extract_bit_field. Temporarily flip the
5409         storage order of the value with record type and integral mode and
5410         adjust the shift if it is true.  Flip the storage order of the value
5411         at the end if it is true.
5412         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5413         get_inner_reference.  Do not fetch an inner reference if it is true.
5414         * expr.h (store_expr_with_bounds): Ajust prototype.
5415         (store_expr): Likewise.
5416         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5417         REF_REVERSE_STORAGE_ORDER on the reference according to it.
5418         (optimize_bit_field_compare): Deal with reverse storage order.
5419         Adjust calls to get_inner_reference and make_bit_field_ref.
5420         (decode_field_reference): Add PREVERSEP parameter and adjust call to
5421         get_inner_reference.
5422         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
5423         to decode_field_reference and make_bit_field_ref.
5424         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5425         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5426         (fold_comparison): Adjust call to get_inner_reference.
5427         (split_address_to_core_and_offset): Adjust call to
5428         get_inner_reference.
5429         * gimple-expr.c (useless_type_conversion_p): Return false for array
5430         types with different TYPE_REVERSE_STORAGE_ORDER flag.
5431         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5432         REF_REVERSE_STORAGE_ORDER flag.
5433         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5434         * output.h (assemble_real): Adjust prototype.
5435         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5436         * stor-layout.c (finish_record_layout): Propagate the
5437         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5438         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5439         (TYPE_SATURATING): Adjust.
5440         (REF_REVERSE_STORAGE_ORDER): Document.
5441         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5442         set it to true upon encoutering a reference with reverse storage order.
5443         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5444         * tree-inline.c (remap_gimple_op_r): Propagate the
5445         REF_REVERSE_STORAGE_ORDER flag.
5446         (copy_tree_body_r): Likewise.
5447         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5448         store_expr.
5449         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5450         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5451         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5452         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5453         REF_REVERSE_STORAGE_ORDER flag.
5454         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5455         (gimple_canonical_types_compatible_p): Likewise.
5456         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5457         (TYPE_SATURATING): Adjust.
5458         (REF_REVERSE_STORAGE_ORDER): New flag.
5459         (reverse_storage_order_for_component_p): New inline predicate.
5460         (storage_order_barrier_p): Likewise.
5461         (get_inner_reference): Adjust prototype.
5462         * varasm.c: Include expmed.h.
5463         (assemble_variable_contents): Adjust call to output_constant.
5464         (assemble_real): Add REVERSE parameter.  Flip the storage
5465         order of the value if REVERSE is true.
5466         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5467         (assemble_constant_contents): Adjust call to output_constant.
5468         (output_constant_pool_2): Adjust call to assemble_real.
5469         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5470         TYPE_REVERSE_STORAGE_ORDER.
5471         (initializer_constant_valid_p): Add REVERSE parameter.
5472         (output_constant): Add REVERSE parameter.
5473         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5474         <REAL_TYPE>: Adjust call to assemble_real.
5475         <COMPLEX_TYPE>: Pass it to recursive calls.
5476         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
5477         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
5478         (struct oc_local_state): Add REVERSE field.
5479         (output_constructor_array_range): Adjust calls to output_constant.
5480         (output_constructor_regular_field): Likewise.
5481         (output_constructor_bitfield): Adjust call to output_constructor.
5482         Flip the storage order of the value if REVERSE is true.
5483         (output_constructor): Add REVERSE parameter.  Set it to true for an
5484         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
5485         output_constructor_bitfield.
5486         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5487         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5488         * builtins.c (get_object_alignment_2): Likewise.
5489         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5490         and get_ref_base_and_extent.
5491         * dbxout.c (dbxout_expand_expr): Likewise.
5492         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5493         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5494         (loc_list_from_tree): Likewise.
5495         (fortran_common): Likewise.
5496         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5497         get_ref_base_and_extent.
5498         (get_base_constructor): Likewise.
5499         (fold_const_aggregate_ref_1): Likewise.
5500         * gimple-laddress.c (pass_laddress::execute): Adjust call to
5501         get_inner_reference.
5502         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5503         get_inner_reference and bail out on reverse storage order.
5504         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5505         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5506         build_ref_for_offset.
5507         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5508         get_ref_base_and_extent.
5509         (ipa_polymorphic_call_context): Likewise.
5510         (extr_type_from_vtbl_ptr_store): Likewise.
5511         (check_stmt_for_type_change): Likewise.
5512         (get_dynamic_type): Likewise.
5513         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5514         get_ref_base_and_extent.
5515         (compute_complex_assign_jump_func): Likewise.
5516         (get_ancestor_addr_info): Likewise.
5517         (compute_known_type_jump_func): Likewise.
5518         (determine_known_aggregate_parts): Likewise.
5519         (ipa_get_adjustment_candidate): Likewise.
5520         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5521         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5522         (build_ref_for_offset): Adjust prototype.
5523         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5524         get_inner_reference.
5525         * tree-affine.c (tree_to_aff_combination): Adjust call to
5526         get_inner_reference.
5527         (get_inner_reference_aff): Likewise.
5528         * tree-data-ref.c (split_constant_offset_1): Likewise.
5529         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
5530         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5531         get_inner_reference.
5532         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5533         (dump_access): Print new fields.
5534         (create_access): Adjust call to get_ref_base_and_extent and set the
5535         REVERSE flag according to the result.
5536         (completely_scalarize_record): Set the REVERSE flag.
5537         (scalarize_elem): Add REVERSE parameter.
5538         (build_access_from_expr_1): Preserve storage order barriers.
5539         (build_accesses_from_assign): Likewise.
5540         (build_ref_for_offset): Add REVERSE parameter and set the
5541         REF_REVERSE_STORAGE_ORDER flag accordingly.
5542         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5543         the REF_REVERSE_STORAGE_ORDER flag if there are components.
5544         (analyze_access_subtree): Likewise.
5545         (create_artificial_child_access): Set the REVERSE flag.
5546         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5547         (turn_representatives_into_adjustments): Propagate REVERSE flag.
5548         (ipa_sra_check_caller): Adjust call to get_inner_reference.
5549         * tree-ssa-alias.c (ao_ref_base): Adjust call to
5550         get_ref_base_and_extent.
5551         (aliasing_component_refs_p): Likewise.
5552         (stmt_kills_ref_p_1): Likewise.
5553         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5554         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5555         Return true if reverse storage order.
5556         <BIT_FIELD_REF>: Likewise.
5557         <COMPONENT_REF>: Likewise.
5558         <ARRAY_REF>: Likewise.
5559         <ARRAY_RANGE_REF>: Likewise.
5560         (split_address_cost): Likewise.  Bail out if reverse storage order.
5561         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5562         get_inner_reference.  Bail out if reverse storage order.
5563         (bswap_replace): Adjust call to get_inner_reference.
5564         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5565         the REF_REVERSE_STORAGE_ORDER flag.
5566         <BIT_FIELD_REF>: Likewise.
5567         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5568         barriers.
5569         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5570         to the REF_REVERSE_STORAGE_ORDER flag.
5571         <BIT_FIELD_REF>: Likewise.
5572         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5573         (contains_storage_order_barrier_p): New predicate.
5574         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5575         Punt on storage order barriers if necessary.
5576         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5577         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5578         call to get_ref_base_and_extent.
5579         (do_structure_copy): Likewise.
5580         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5581         get_inner_reference.
5582         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
5583         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5584         * ubsan.c (instrument_bool_enum_load): Likewise.
5585         (instrument_object_size): Likewise.
5586         * var-tracking.c (track_expr_p): Adjust call to
5587         get_ref_base_and_extent.
5588         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5589         get_inner_reference.
5590         * config/s390/s390.c (s390_expand_atomic): Adjust call to
5591         store_bit_field.
5592         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5593         extract_bit_field.
5594         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5596 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
5598         * config/sparc/sparc.opt (mfix-at697f): Add final period.
5600 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5602         PR rtl-optimization/67864
5603         * common/config/i386/i386-common.c (ix86_option_optimization_table)
5604         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5605         at -Os and up.
5607 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5609         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5610         internal functions.
5612 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5614         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5615         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5617 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5619         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5620         * internal-fn.c: Don't undef it here.
5621         * tree-core.h: Likewise.
5623 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5625         * builtins.c (fold_builtin_nan): Delete.
5626         (fold_builtin_memcmp): Remove case where both arguments are constant.
5627         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5628         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5629         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5630         * fold-const-call.c: Include fold-const.h.
5631         (host_size_t_cst_p): New function.
5632         (build_cmp_result, fold_const_builtin_nan): Likewise.
5633         (fold_const_call_1): New function, split out from...
5634         (fold_const_call): ...here (for all three interfaces).  Handle
5635         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5637 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5639         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5640         (fold_builtin_1): Don't call them.
5641         * fold-const-call.c: Include tm.h.
5642         (fold_const_call_ss): New variant for integer-to-integer folds.
5643         (fold_const_call): Call it.
5645 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5647         * builtins.c (fold_builtin_classify): Move constant cases to...
5648         * fold-const-call.c (fold_const_call_ss): ...here.
5650 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5652         * builtins.h (c_getstr): Move to...
5653         * fold-const.h (c_getstr): ...here.
5654         * builtins.c (c_getstr): Move to...
5655         * fold-const.c (c_getstr): ...here.
5657 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5659         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5660         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5662 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5664         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5665         the dominance info; free it if we can't.
5666         (pass_call_cdce::execute): Don't free the dominance info here.
5668 2015-11-06  Jeff Law <law@redhat.com>
5670         * tree-ssa-threadedge.c (dummy_simplify): Remove.
5671         (thread_around_empty_blocks): Remove backedge_seen_p argument.
5672         If we thread to a backedge, then return false.  Update recursive
5673         call to eliminate backedge_seen_p argument.
5674         (thread_through_normal_block): Remove backedge_seen_p argument.
5675         Remove backedge_seen_p argument from calls to
5676         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
5677         If we thread to a backedge, then return 0.
5678         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
5679         pass it to thread_through_normal_block or thread_through_empty_blocks.
5680         For joiner handling, if we see a backedge, do not try normal
5681         threading.
5683 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5685         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5686         * graphite-poly.c (new_scop): Initialize original_schedule.
5687         (free_scop): Free original_schedule.
5688         * graphite-poly.h (struct scop): Add field original_schedule.
5689         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5690         (build_poly_scop): Call build_scop_original_schedule.
5692 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5694         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5695         (build_pbb_minimal_scattering_polyhedrons): New.
5696         (build_scop_scattering): Remove.
5697         (build_scop_minimal_scattering): New.
5698         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5699         (build_poly_scop): Call build_scop_minimal_scattering.
5701 2015-11-06  Jeff Law <law@redhat.com>
5703         * cfg-flags.def (IGNORE): New edge flag.
5704         * tree-vrp.c (identify_jump_threads): Mark and clear edges
5705         scheduled for removal with EDGE_IGNORE around call into
5706         jump threader.  Do no thread across edges with EDGE_IGNORE,
5707         but do allow threading across those with EDGE_DFS_BACK.
5709 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
5711         * doc/md.texi (multi-alternative constraints): Don't document
5712         alternatives inherently tied to reload for the user documentation.
5714 2015-11-06  Michael Collison  <michael.collison@linaro.org>
5715             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5717         Revert:
5718         2015-08-01  Michael Collison  <michael.collison@linaro.org
5719                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5721         * config/arm/arm.md (*arm_smin_cmp): New pattern.
5722         (*arm_umin_cmp): Likewise.
5724 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
5726         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5727         * omp-low.c (check_omp_nesting_restrictions): Update for the
5728         various new OpenMP 4.5 nesting restrictions, clarified
5729         nesting glossary, closely nested region relationship clarified
5730         to mean explicit or implicit parallel regions (target/teams),
5731         use %</%> or %qs where appropriate.
5733 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5734             Sebastian Pop  <s.pop@samsung.com>
5736         * graphite-scop-detection.c (loop_is_valid_scop): Call
5737         optimize_loop_nest_for_speed_p.
5739 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5740             Sebastian Pop  <s.pop@samsung.com>
5742         * graphite-optimize-isl.c (optimize_isl): Call
5743         isl_options_set_schedule_maximize_band_depth.
5745 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5746             Sebastian Pop  <s.pop@samsung.com>
5748         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5749         and exit edges should not be a part of irreducible loop.
5750         (scop_detection::can_represent_loop_1): Loops should not be
5751         irreducible.
5752         (scop_detection::harmful_stmt_in_region): All the basic block
5753         should belong to reducible loops.
5755 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
5757         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5758         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5759         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5760         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5761         (aarch64_tbx4v8qi): Rename to...
5762         aarch64_tbx4<mode>): ... this.
5763         (aarch64_qtbl3<mode>): New pattern.
5764         (aarch64_qtbx3<mode>): New pattern.
5765         (aarch64_qtbl4<mode>): New pattern.
5766         (aarch64_qtbx4<mode>): New pattern.
5767         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5768         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5769         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5770         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5771         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5772         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5773         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5774         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5775         functions.
5777 2015-11-06  Mike Stump  <mikestump@comcast.net>
5779         PR debug/66728
5780         * dwarf2out.c (get_full_len): Return a value based upon the actual
5781         precision needed for the value.
5782         (add_const_value_attribute): Use a maximal wide-int for
5783         CONST_WIDE_INTs, not VOIDmode.
5784         (output_die): Don't ever output NULL with printf.
5786         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5787         BLKmode nor VOIDmode values.
5789 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5791         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5792         and "range2".
5793         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5794         * diagnostic-core.h (warning_at_rich_loc): New declaration.
5795         (error_at_rich_loc): New declaration.
5796         (permerror_at_rich_loc): New declaration.
5797         (inform_at_rich_loc): New declaration.
5798         * diagnostic-show-locus.c (adjust_line): Delete.
5799         (struct point_state): New struct.
5800         (class colorizer): New class.
5801         (class layout_point): New class.
5802         (class layout_range): New class.
5803         (struct line_bounds): New.
5804         (class layout): New class.
5805         (colorizer::colorizer): New ctor.
5806         (colorizer::~colorizer): New dtor.
5807         (layout::layout): New ctor.
5808         (layout::print_source_line): New method.
5809         (layout::print_annotation_line): New method.
5810         (layout::get_state_at_point): New method.
5811         (layout::get_x_bound_for_row): New method.
5812         (diagnostic_show_locus): Reimplement in terms of class layout.
5813         (diagnostic_print_caret_line): Delete.
5814         * diagnostic.c (diagnostic_initialize): Replace
5815         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5816         (diagnostic_set_info_translated): Convert param from location_t
5817         to rich_location *.  Eliminate calls to set_location on the
5818         message in favor of storing the rich_location ptr there.
5819         (diagnostic_set_info): Convert param from location_t to
5820         rich_location *.
5821         (diagnostic_build_prefix): Break out array into...
5822         (diagnostic_kind_color): New variable.
5823         (diagnostic_get_color_for_kind): New function.
5824         (diagnostic_report_diagnostic): Colorize the option_text
5825         using the color for the severity.
5826         (diagnostic_append_note): Update for change in signature of
5827         diagnostic_set_info.
5828         (diagnostic_append_note_at_rich_loc): New function.
5829         (emit_diagnostic): Update for change in signature of
5830         diagnostic_set_info.
5831         (inform): Likewise.
5832         (inform_at_rich_loc): New function.
5833         (inform_n): Update for change in signature of diagnostic_set_info.
5834         (warning): Likewise.
5835         (warning_at): Likewise.
5836         (warning_at_rich_loc): New function.
5837         (warning_n): Update for change in signature of diagnostic_set_info.
5838         (pedwarn): Likewise.
5839         (permerror): Likewise.
5840         (permerror_at_rich_loc): New function.
5841         (error): Update for change in signature of diagnostic_set_info.
5842         (error_n): Likewise.
5843         (error_at): Likewise.
5844         (error_at_rich_loc): New function.
5845         (sorry): Update for change in signature of diagnostic_set_info.
5846         (fatal_error): Likewise.
5847         (internal_error): Likewise.
5848         (internal_error_no_backtrace): Likewise.
5849         (source_range::debug): New function.
5850         * diagnostic.h (struct diagnostic_info): Eliminate field
5851         "override_column".  Add field "richloc".
5852         (struct diagnostic_context): Add field "colorize_source_p".
5853         (diagnostic_override_column): Delete.
5854         (diagnostic_set_info): Convert param from location_t to
5855         rich_location *.
5856         (diagnostic_set_info_translated): Likewise.
5857         (diagnostic_append_note_at_rich_loc): New function.
5858         (diagnostic_num_locations): New function.
5859         (diagnostic_expand_location): Get the location from the
5860         rich_location.
5861         (diagnostic_print_caret_line): Delete.
5862         (diagnostic_get_color_for_kind): New declaration.
5863         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5864         (error_cb): Update for change in signature of "error" callback.
5865         (fatal_at): Likewise.
5866         (warning_at): Likewise.
5867         * input.c (linemap_client_expand_location_to_spelling_point): New.
5868         * pretty-print.c (text_info::set_range): New method.
5869         (text_info::get_location): New method.
5870         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5871         (struct text_info): Eliminate "locations" array in favor of
5872         "m_richloc", a rich_location *.
5873         (textinfo::set_location): Add a "caret_p" param, and reimplement
5874         in terms of a call to set_range.
5875         (textinfo::get_location): Eliminate inline implementation in favor of
5876         an out-of-line reimplementation.
5877         (textinfo::set_range): New method.
5878         * rtl-error.c (diagnostic_for_asm): Update for change in signature
5879         of diagnostic_set_info.
5880         * tree-diagnostic.c (default_tree_printer): Update for new
5881         "caret_p" param for textinfo::set_location.
5882         * tree-pretty-print.c (percent_K_format): Likewise.
5884 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5886         Properly apply.
5887         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5888         * config/aarch64/aarch64.c
5889         (aarch64_can_use_per_function_literal_pools_p): New.
5890         (aarch64_use_blocks_for_constant_p): Adjust declaration
5891         and use aarch64_can_use_function_literal_pools_p.
5892         (aarch64_select_rtx_section): Update.
5894 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5896         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5897         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5898         (arm_output_multireg_pop): Likewise.
5899         (output_move_double):  Likewise.
5900         (output_move_quad):  Likewise.
5901         (output_return_instruction): Likewise.
5902         (arm_print_operand): Remove support for %( and %. print modifiers.
5903         (arm_output_shift): Make unified asm.
5904         (arm_declare_function_name): Likewise.
5905         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5906         (ASM_APP_OFF): Adjust.
5907         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5908         (ASM_OUTPUT_REG_POP): Likewise.
5909         * config/arm/arm.md: Adjust uses of %., %(, %)
5910         * config/arm/sync.md: Likewise.
5911         * config/arm/thumb2.md: Likewise.
5912         * config/arm/ldmstm.md: Regenerate.
5913         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5914         * doc/invoke.texi (masm-unified-syntax): Update documentation.
5916 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5918         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5920 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5922         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5923         add OEP_MATCH_SIDE_EFFECTS.
5924         * fold-const.c (operand_equal_p): Update documentation; handle
5925         OEP_MATCH_SIDE_EFFECTS.
5926         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5927         OEP_MATCH_SIDE_EFFECTS.
5929 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
5930             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5932         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5933         * config/aarch64/aarch64-protos.h: Declare.
5934         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5935         frsqrts.
5936         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5937         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5938         code when applicable.
5939         * config/aarch64/aarch64.md: Added enum entries.
5940         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5942 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5944         PR ipa/68057
5945         PR ipa/68220
5946         * ipa-polymorphic-call.c
5947         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5948         issue when offset is out of range.
5949         (contains_type_p): Fix out of range check, clear dynamic flag.
5951 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
5953         * config.gcc (e6500): Fix cpu_is_64bit typo.
5955 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
5957         * tree-sra.c (completely_scalarize): Properly handle negative array
5958         indices using offset_int.
5960 2015-11-06  Richard Biener  <rguenther@suse.de>
5962         * alloc-pool.h (object_allocator::allocate): Default-initialize
5963         object.
5965 2015-11-06  Richard Biener  <rguenther@suse.de>
5967         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5968         * lra.c (init_reg_info): Truncate copy_vec instead of
5969         re-allocating a new one and leaking the old.
5970         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5971         bb_infos vec.
5972         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5973         * postreload-gcse.c (free_mem): Free modify_mem_list and
5974         canon_modify_mem_list.
5976 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
5978         PR tree-optimization/68145
5979         * tree-vect-stmts.c (vectorizable_operation): Fix
5980         determination for booleans.
5982 2015-11-06  Tom de Vries  <tom@codesourcery.com>
5984         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5985         cond_jump, instead of split after last nondebug insn before cond_jump.
5986         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5987         returning.
5989 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5991         PR target/68088
5992         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5993         subregs from accumulator and make sure it's a register.
5995 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
5997         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5998         low part to scalar.
5999         (reduc_uplus_<mode>): Remove.
6000         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6001         loongson_extract_lo_<mode>.
6002         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6003         reduc_smax_<mode>, reduc_smax_<mode>, use vec
6004         loongson_extract_lo_<mode>.
6005         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6007 2015-11-06  Richard Biener  <rguenther@suse.de>
6009         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6010         members.
6011         (vect_stmt_in_region_p): Declare.
6012         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6013         (destroy_bb_vec_info): Likewise.
6014         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6015         (vect_get_and_check_slp_defs): Likewise.
6016         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6017         (vect_slp_bb): Likewise.
6018         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6019         in terms of vect_stmt_in_region_p.
6020         (vect_pattern_recog): Iterate over the BB region.
6021         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6022         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6023         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6024         * config/i386/i386.c: Include gimple-iterator.h.
6025         * config/aarch64/aarch64.c: Likewise.
6027 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
6029         PR rtl-optimization/67753
6030         PR rtl-optimization/64164
6031         * function.c (assign_parm_setup_block): Avoid allocating a
6032         stack slot if we don't have an ABI-reserved one.  Emit the
6033         copy to target_reg in the conversion seq if the copy from
6034         entry_parm is in it too.  Don't use the conversion seq to copy
6035         a PARALLEL to a REG or a CONCAT.
6037 2015-11-06  Richard Biener  <rguenther@suse.de>
6039         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6040         equal_keys.
6042 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
6043             Thomas Schwinge  <thomas@codesourcery.com>
6044             James Norris  <jnorris@codesourcery.com>
6047         * gimplify.c (gimplify_scan_omp_clauses): Add support for
6048         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
6049         (gimplify_adjust_omp_clauses): Likewise.
6050         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6051         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6052         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6053         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6054         (omp_clause_code_name): Likewise.
6055         (walk_tree_1): Handle OMP_CLAUSE_TILE.
6056         * tree.h (OMP_TILE_LIST): New macro.
6058 2015-11-05  Martin Sebor  <msebor@redhat.com>
6060         PR c++/67942
6061         * doc/invoke.texi (-Wplacement-new): Document new option.
6063 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
6065         PR tree-optimization/65963
6066         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6067         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6069 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
6071         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6072         (noce_convert_multiple_sets): Likewise.
6073         (noce_process_if_block): Call them.
6075 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6077         * gimple-fold.c: Include omp-low.h.
6078         (fold_internal_goacc_dim): New.
6079         (gimple_fold_call): Call it.
6081 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6082             Ilya Verbin  <ilya.verbin@intel.com>
6084         * builtin-types.def
6085         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6086         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6087         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6088         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6089         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6090         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6091         (struct cgraph_simd_clone_arg): Adjust comment.
6092         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6093         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
6094         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6095         to GOMP_target_data_ext.
6096         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6097         to GOMP_target_update_ext.
6098         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6099         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6100         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6101         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6102         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6103         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6104         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6105         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6106         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6107         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6108         * tree-core.h (enum omp_clause_schedule_kind): Add
6109         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6110         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6111         OMP_CLAUSE_SCHEDULE_LAST value.
6112         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6113         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6114         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6115         OMP_FOR_CHECK.  Remove comment.
6116         * tree-pretty-print.c (dump_omp_clause): Handle
6117         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6118         Simplify.  Print schedule clause modifiers.
6119         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6120         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6121         cases.
6122         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6123         (omp_default_clause): Tweak for
6124         private/firstprivate/is_device_ptr variables on target
6125         construct and use_device_ptr on target data.
6126         (omp_check_private): Likewise.
6127         (omp_notice_variable): For references check whether what it refers
6128         to has mappable type, rather than the reference itself.
6129         (omp_is_private): Diagnose linear iteration variables on non-simd
6130         constructs.
6131         (omp_no_lastprivate): Return true only for Fortran.
6132         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6133         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6134         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6135         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6136         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
6137         lastprivate and linear when combined with distribute.  Gimplify
6138         variable low-bound for array reduction.  Look through
6139         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6140         reductions.
6141         (gimplify_adjust_omp_clauses_1): For implicit references to
6142         variables with reference type and when not ref to scalar or
6143         ref to pointer, map what they refer to using tofrom and
6144         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6145         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6146         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6147         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
6148         Diagnose the same var on both firstprivate and lastprivate on
6149         distribute construct.
6150         (gimplify_omp_for): Fix up handling of predetermined
6151         lastprivate or linear iter vars when combined with distribute.
6152         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6153         functions.
6154         (gimplify_omp_workshare): Call optimize_target_teams.
6155         * omp-low.c (struct omp_region): Add sched_modifiers field.
6156         (struct omp_for_data): Likewise.
6157         (omp_any_child_fn_dumped): New variable.
6158         (extract_omp_for_data): Fill in sched_modifiers, and mask out
6159         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6160         from sched_kind.
6161         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6162         bits of OMP_CLAUSE_SCHED_KIND.
6163         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6164         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
6165         for array section reductions.
6166         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6167         for distribute parallel for, if there are lastprivate clauses on the
6168         for.
6169         (lower_rec_input_clauses): Handle non-zero low-bound on array
6170         section reductions.
6171         (lower_reduction_clauses): Likewise.
6172         (lower_send_clauses): Look through POINTER_PLUS_EXPR
6173         for array section reductions.
6174         (expand_parallel_call): Use nonmonotonic entrypoints for
6175         nonmonotonic: dynamic/guided.
6176         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6177         child_fn if current_function_decl has assembler name set, but child_fn
6178         does not.  Dump the header and IL of the child function when not in SSA
6179         form.
6180         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
6181         arguments to BUILT_IN_GOMP_TARGET.
6182         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6183         Initialize the extra _looptemp_ clause to fd->loop.n2.
6184         (expand_omp_for): Use nonmonotonic entrypoints for
6185         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
6186         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
6187         again if we have dumped any child functions.
6188         (lower_omp_for_lastprivate): Determine the right count variable
6189         for distribute simd, or distribute parallel for{, simd}.
6190         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6191         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
6192         support.
6193         (simd_clone_clauses_extract): Handle variable step
6194         for references and arguments passed by reference.
6195         (simd_clone_mangle): Mangle ref/uval/val variable steps.
6196         (simd_clone_adjust_argument_types): Handle
6197         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6198         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6199         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6200         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6201         (simd_clone_linear_addend): New function.
6202         (simd_clone_adjust): Handle variable step like similarly
6203         to constant step, use simd_clone_linear_addend to determine
6204         the actual step at runtime.
6206 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6208         * target.def (goacc.dim_limit): New hook.
6209         * targhooks.h (default_goacc_dim_limit): Declare.
6210         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6211         * doc/tm.texi: Rebuilt.
6212         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6213         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6214         (default_goacc_dim_limit): New.
6215         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6216         (nvptx_goacc_dim_limit) New.
6217         (TARGET_GOACC_DIM_LIMIT): Override.
6218         * tree-vrp.c: Include omp-low.h, target.h.
6219         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6220         IFN_GOACC_DIM_POS.
6222 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6224         * tree-vect-generic.c (do_compare): Use -1 for true
6225         result instead of 1.
6227 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6229         * config/aarch64/aarch64.c
6230         (aarch64_can_use_per_function_literal_pools_p): New.
6231         (aarch64_use_blocks_for_constant_p): Adjust declaration
6232         and use aarch64_can_use_function_literal_pools_p.
6233         (aarch64_select_rtx_section): Update.
6235 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6237         * targhooks.c (default_get_mask_mode): Use BLKmode in
6238         case target doesn't support required vector mode.
6239         * stor-layout.c (layout_type); Check for BLKmode.
6241 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6242             Sebastian Pop  <s.pop@samsung.com>
6244         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6245         Remove use of parameter_rename_map.
6246         (copy_def): Remove.
6247         (copy_internal_parameters): Remove.
6248         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6249         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6250         (free_sese_info): Do not free parameter_rename_map.
6251         (set_rename): Do not use parameter_rename_map.
6252         (rename_uses): Update call to set_rename.
6253         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6254         * sese.h (parameter_rename_map_t): Remove.
6255         (struct sese_info_t): Remove field parameter_rename_map.
6257 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6258             Sebastian Pop  <s.pop@samsung.com>
6260         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6261         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6262         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6263         anonymous namespace.
6264         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6265         (isl_id_for_pbb): Use a buffer of size 10.
6266         (isl_id_for_ssa_name): Same.
6267         * sese.c (set_rename): Add more dumps.
6269 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6271         * omp-low.c (struct omp_context): Remove reduction_map field.
6272         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6273         (new_omp_context, delete_omp_context, scan_omp_target): Remove
6274         reduction_map handling.
6275         (lower_omp_target): Remove obsolete openacc reduction handling.
6277 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6279         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6281 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6282             Cesar Philippidis  <cesar@codesourcery.com>
6284         * config/nvptx/nvptx.c: Include gimple headers.
6285         (worker_red_size, worker_red_align, worker_red_name,
6286         worker_red_sym): New.
6287         (nvptx_option_override): Initialize worker reduction buffer.
6288         (nvptx_file_end): Write out worker reduction buffer var.
6289         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6290         nvptx_expand_cmp_swap): New builtin expanders.
6291         (enum nvptx_builtins): New.
6292         (nvptx_builtin_decls): New.
6293         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6294         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6295         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6296         nvptx_lockless_update): New helpers.
6297         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6298         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6299         (nvptx_goacc_reduction): New.
6300         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6301         TARGET_BUILTIN_DECL): Override.
6302         (TARGET_GOACC_REDUCTION): Override.
6304 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6305             Cesar Philippidis  <cesar@codesourcery.com>
6307         * internal-fn.def (GOACC_REDUCTION): New.
6308         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6309         * internal-fn.c (expand_GOACC_REDUCTION): New.
6310         * target.def (goacc.reduction): New OpenACC hook.
6311         * targhooks.h (default_goacc_reduction): Declare.
6312         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6313         * doc/tm.texi: Rebuilt.
6314         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6315         scan_sharing_clauses): Remove oacc reduction handling here.
6316         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6317         (oacc_lower_reduction_var_helper): Delete.
6318         (lower_oacc_reductions): New.
6319         (lower_reduction_clauses): Don't handle OpenACC reductions here.
6320         (lower_oacc_head_tail): Call lower_oacc_reductions.
6321         (oacc_gimple_assign, oacc_init_reduction_array,
6322         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6323         oacc_process_reduction_data): Delete.
6324         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
6325         dummy OpenACC gang reduction for reductions at outer level.
6326         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6327         (default_goacc_reduction): New.
6328         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6330 2015-11-04  Martin Liska  <mliska@suse.cz>
6332         * cgraphunit.c (cgraph_node::expand_thunk): Call
6333         allocate_struct_function before init_function_start.
6334         (cgraph_node::expand): Use push_cfun and pop_cfun.
6335         * config/i386/i386.c (ix86_code_end): Call
6336         allocate_struct_function before init_function_start.
6337         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6338         * function.c (init_function_start): Move preamble to all
6339         callers.
6340         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6341         (execute_one_pass): Handle newly added TODO_discard_function.
6342         (execute_pass_list_1): Terminate if cfun equals to NULL.
6343         (execute_pass_list): Do not push and pop cfun, expect that
6344         cfun is set.
6345         * tree-pass.h (TODO_discard_function): Define.
6347 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
6349         * cfganal.c (inverted_post_order_compute): Remove conditional
6350         compilation, use flag_checking.
6351         * config.in: Regenerate.
6352         * configure: Regenerate.
6353         * configure.ac: Remove ENABLE_CHECKING.
6354         * genconditions.c: Do not #undef ENABLE_CHECKING.
6355         * sese.h (bb_in_region): Comment out broken check.
6356         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6357         conditional compilation, use flag_checking.
6359 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6361         PR tree-optimization/67742
6362         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6363         field.
6364         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6365         (create_variable_info_for_1): Add and handle handle_param parameter.
6366         Add restrict handling.
6367         (create_variable_info_for): Call create_variable_info_for_1 with extra
6368         arg.
6369         (make_param_constraints): Drop restrict_name parameter.  Ignore
6370         vi->only_restrict_pointers.
6371         (intra_create_variable_infos): Call create_variable_info_for_1 with
6372         extra arg.  Remove restrict handling.  Call make_param_constraints with
6373         one fewer arg.
6375 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6377         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6378         variable.
6380 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6382         * config/arm/coff.h: Remove.
6384 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6386         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6387         check for aggregate types and beef up comment for mode check.
6389 2015-11-03  Richard Biener  <rguenther@suse.de>
6391         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6392         data references here.
6393         * tree-vect-loop.c: Include cgraph.h.
6394         (vect_analyze_loop_2): Collect data references here.
6395         * tree-vect-slp.c (find_bb_location): Inline ...
6396         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
6397         Factor in vect_slp_transform_bb.
6398         (vect_slp_transform_bb): Removed.
6399         (vect_slp_analyze_bb_1): Collect data references here.
6400         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6401         vect_slp_bb.
6402         * tree-vectorizer.h (vect_slp_bb): Declare.
6403         (vect_slp_analyze_bb): Remove.
6404         (vect_slp_transform_bb): Remove.
6405         (find_bb_location): Remove.
6406         (vect_analyze_data_refs): Remove stmt count reference parameter.
6408 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
6410         * multiple_target.c (create_dispatcher_calls): Add target check
6411         on ifunc.
6412         (create_target_clone): Change assembler name for versioned declarations.
6414 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
6415             Chung-Lin Tang  <cltang@codesourcery.com>
6417         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6418         * omp-low.c (check_omp_nesting_restrictions): Allow
6419         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6420         contexts.
6422 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
6424         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6425         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6426         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6427         builtin.
6428         (vmulxq_f32): Likewise.
6429         (vmulx_f64): New.
6430         (vmulxq_f64): Rewrite to call fmulx builtin.
6431         (vmulxs_f32): Likewise.
6432         (vmulxd_f64): Likewise.
6433         (vmulx_lane_f32): Remove.
6434         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6436 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
6438         * config/aarch64/aarch64.md (*movhf_aarch64): Use
6439         aarch64_reg_or_fp_zero for second operand.
6441 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
6443         * gimple-expr.c: Include hash-set.h and rtl.h.
6444         (mark_addressable_queue): New var.
6445         (mark_addressable): Factor actual marking into...
6446         (mark_addressable_1): ... this.  Queue it up during expand.
6447         (mark_addressable_2): New.
6448         (flush_mark_addressable_queue): New.
6449         * gimple-expr.h (flush_mark_addressable_queue): Declare.
6450         * cfgexpand.c: Include gimple-expr.h.
6451         (pass_expand::execute): Flush mark_addressable queue.
6453 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
6455         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6456         bb_no_side_effects_p tests...
6457         (tree_ssa_ifcombine_bb): ... here.
6459         PR tree-optimization/68083
6460         * tree-ssa-ifcombine.c: Include tree-ssa.h.
6461         (bb_no_side_effects_p): Test for undefined uses too.
6462         * tree-ssa.c (gimple_uses_undefined_value_p): New.
6463         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6465 2015-11-02  Jeff Law <law@redhat.com>
6467         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6468         cases where the loop latch edge is in the middle of an FSM path.
6470 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6472         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6473         (make_param_constraints): ... this.  Add and handle restrict_name
6474         parameter.  Handle is_full_var case.
6475         (intra_create_variable_infos): Use make_param_constraints.
6477 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6479         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6480         make_copy_constraint call with make_constraint_from call.
6482 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
6484         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6485         PIE executables.
6487 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6489         * builtins.h (fold_fma): Move to fold-const-call.h.
6490         * builtins.c: Include fold-const-call.h.
6491         (mathfn_built_in_2): New function, split out from...
6492         (mathfn_built_in_1): ...here.
6493         (do_real_to_int_conversion, fold_const_builtin_pow)
6494         (fold_const_builtin_logb, fold_const_builtin_significand)
6495         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6496         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6497         (fold_builtin_sincos): Use fold_const_call to handle constants.
6498         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6499         checks for ERROR_MARK.  Use fold_const_call to handle constant
6500         folds for math functions.
6501         (fold_fma): Move to fold-const-call.c.
6502         * fold-const.c: Include fold-const-call.h.
6503         * Makefile.in (OBJS): Add fold-const-call.o.
6504         (PLUGIN_HEADERS): Add fold-const-call.h.
6505         * realmpfr.h (real_from_mpfr): Allow the format to be specified
6506         directly.
6507         * realmpfr.c (real_from_mpfr): Likewise.
6508         * fold-const-call.h, fold-const-call.c: New files.
6510 2015-11-02  Julian Brown  <julian@codesourcery.com>
6512         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6513         brackets and semicolon.
6515 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
6517         Revert:
6518         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6520         PR tree-optimization/65963
6521         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6522         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6524 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6526         PR middle-end/68166
6527         * fold-const.c: Include "md5.h".
6529 2015-11-01  Jeff Law <law@redhat.com>
6531         * vmsdbgout.c: Revert unused header file reduction patch.
6533         * config/mcore/mcore.c: Include regs.h.
6535 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6537         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6539 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6541         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6542         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6543         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6545 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6547         * ggc-common.c: Restore needed header for checking=release.
6549 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6551         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6553 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6555         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6556         existing varinfo for arguments.
6558 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6560         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6561         create_function_info_for.  Dump constraints generated during
6562         create_function_info_for. Move intra_create_variable_infos call and
6563         function-return-values-escape bit to ...
6564         (create_function_info_for): ... here, and merge
6565         intra_create_variable_infos call with argument loop.  Add and handle
6566         nonlocal_p parameter.
6568 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6570         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6571         updating is alap, and seperated from preceding code.  Make sure
6572         insert_vi_for_tree is seperated from surrounding code.
6574 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6576         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6578 2015-10-30  Jeff Law <law@redhat.com>
6579             Nathan Sidwell  <nathan@acm.org>
6581         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6582         args.
6583         (MOVE_MAX): Set to 8.
6585 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
6587         * cgraph.c: Include context.h for offloading.
6588         * varpool.c: Include context.h and omp-low.h.
6590 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
6592         * rtl.h (contains_symbol_ref_p): Declare.
6593         (SYMBOL_REF_P): Define.
6594         * rtlanal.c (contains_symbol_ref_p: New function.
6595         * lra-constraints.c (contains_symbol_ref_p): Remove.
6596         * var-tracking.c (contains_symbol_ref): Remove.
6597         (track_expr_p): Use contains_symbol_ref_p instead of
6598         contains_symbol_ref.
6600 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6602         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6603         * fold-const.c (get_array_ctor_element_at_index): New.
6604         (fold): Remove binary-search through CONSTRUCTOR, call previous.
6606         * fold-const.h (get_array_ctor_element_at_index): New.
6608 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
6610         * Makefile.in (OBJS): Add multiple_target.o.
6611         * attrib.c (make_attribute): Moved from config/i386/i386.c
6612         * config/i386/i386.c (make_attribute): Deleted.
6613         * multiple_target.c (create_dispatcher_calls): New.
6614         (get_attr_len): Ditto.
6615         (get_attr_str): Ditto.
6616         (separate_attrs): Ditto.
6617         (is_valid_asm_symbol): Ditto.
6618         (create_new_asm_name): Ditto.
6619         (create_target_clone): Ditto.
6620         (expand_target_clones): Ditto.
6621         (ipa_target_clone): Ditto.
6622         (ipa_dispatcher_calls): Ditto.
6623         * passes.def (pass_target_clone): Two new ipa passes.
6624         * tree-pass.h (make_pass_target_clone): Ditto.
6625         * doc/extend.texi (target_clones): New attribute description.
6627 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6629         PR rtl-optimization/68106
6630         * lra-remat.c (input_regno_present_p): Process hard regs
6631         explicitly present in machine description insns.
6632         (call_used_input_regno_present_p): Ditto.
6633         (calculate_gen_cands): Ditto.
6634         (do_remat): Ditto.
6636 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
6638         * config/arm/neon-testgen.ml: Fix comment typo.
6640 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6642         * rtlanal.c (reg_set_p): Expand function comment.
6644 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
6646         * alias.c: Remove unused headers.
6647         * asan.c: Likewise.
6648         * attribs.c: Likewise.
6649         * auto-inc-dec.c: Likewise.
6650         * auto-profile.c: Likewise.
6651         * bb-reorder.c: Likewise.
6652         * bitmap.c: Likewise.
6653         * bt-load.c: Likewise.
6654         * builtins.c: Likewise.
6655         * caller-save.c: Likewise.
6656         * calls.c: Likewise.
6657         * ccmp.c: Likewise.
6658         * cfg.c: Likewise.
6659         * cfganal.c: Likewise.
6660         * cfgbuild.c: Likewise.
6661         * cfgcleanup.c: Likewise.
6662         * cfgexpand.c: Likewise.
6663         * cfghooks.c: Likewise.
6664         * cfgloop.c: Likewise.
6665         * cfgloopanal.c: Likewise.
6666         * cfgloopmanip.c: Likewise.
6667         * cfgrtl.c: Likewise.
6668         * cgraph.c: Likewise.
6669         * cgraphbuild.c: Likewise.
6670         * cgraphclones.c: Likewise.
6671         * cgraphunit.c: Likewise.
6672         * cilk-common.c: Likewise.
6673         * combine-stack-adj.c: Likewise.
6674         * combine.c: Likewise.
6675         * compare-elim.c: Likewise.
6676         * convert.c: Likewise.
6677         * coverage.c: Likewise.
6678         * cppbuiltin.c: Likewise.
6679         * cprop.c: Likewise.
6680         * cse.c: Likewise.
6681         * cselib.c: Likewise.
6682         * data-streamer-in.c: Likewise.
6683         * data-streamer-out.c: Likewise.
6684         * data-streamer.c: Likewise.
6685         * dbxout.c: Likewise.
6686         * dce.c: Likewise.
6687         * ddg.c: Likewise.
6688         * debug.c: Likewise.
6689         * df-core.c: Likewise.
6690         * df-problems.c: Likewise.
6691         * df-scan.c: Likewise.
6692         * dfp.c: Likewise.
6693         * dojump.c: Likewise.
6694         * dominance.c: Likewise.
6695         * domwalk.c: Likewise.
6696         * double-int.c: Likewise.
6697         * dse.c: Likewise.
6698         * dumpfile.c: Likewise.
6699         * dwarf2asm.c: Likewise.
6700         * dwarf2cfi.c: Likewise.
6701         * dwarf2out.c: Likewise.
6702         * emit-rtl.c: Likewise.
6703         * except.c: Likewise.
6704         * explow.c: Likewise.
6705         * expmed.c: Likewise.
6706         * expr.c: Likewise.
6707         * final.c: Likewise.
6708         * fixed-value.c: Likewise.
6709         * fold-const.c: Likewise.
6710         * function.c: Likewise.
6711         * fwprop.c: Likewise.
6712         * gcse.c: Likewise.
6713         * generic-match-head.c: Likewise.
6714         * ggc-common.c: Likewise.
6715         * gimple-builder.c: Likewise.
6716         * gimple-expr.c: Likewise.
6717         * gimple-fold.c: Likewise.
6718         * gimple-iterator.c: Likewise.
6719         * gimple-low.c: Likewise.
6720         * gimple-match-head.c: Likewise.
6721         * gimple-pretty-print.c: Likewise.
6722         * gimple-ssa-isolate-paths.c: Likewise.
6723         * gimple-ssa-strength-reduction.c: Likewise.
6724         * gimple-streamer-in.c: Likewise.
6725         * gimple-streamer-out.c: Likewise.
6726         * gimple-walk.c: Likewise.
6727         * gimple.c: Likewise.
6728         * gimplify-me.c: Likewise.
6729         * gimplify.c: Likewise.
6730         * godump.c: Likewise.
6731         * graph.c: Likewise.
6732         * graphds.c: Likewise.
6733         * haifa-sched.c: Likewise.
6734         * hw-doloop.c: Likewise.
6735         * ifcvt.c: Likewise.
6736         * init-regs.c: Likewise.
6737         * internal-fn.c: Likewise.
6738         * ipa-chkp.c: Likewise.
6739         * ipa-comdats.c: Likewise.
6740         * ipa-cp.c: Likewise.
6741         * ipa-devirt.c: Likewise.
6742         * ipa-icf-gimple.c: Likewise.
6743         * ipa-icf.c: Likewise.
6744         * ipa-inline-analysis.c: Likewise.
6745         * ipa-inline-transform.c: Likewise.
6746         * ipa-inline.c: Likewise.
6747         * ipa-polymorphic-call.c: Likewise.
6748         * ipa-profile.c: Likewise.
6749         * ipa-prop.c: Likewise.
6750         * ipa-pure-const.c: Likewise.
6751         * ipa-ref.c: Likewise.
6752         * ipa-reference.c: Likewise.
6753         * ipa-split.c: Likewise.
6754         * ipa-utils.c: Likewise.
6755         * ipa-visibility.c: Likewise.
6756         * ipa.c: Likewise.
6757         * ira-build.c: Likewise.
6758         * ira-color.c: Likewise.
6759         * ira-conflicts.c: Likewise.
6760         * ira-costs.c: Likewise.
6761         * ira-emit.c: Likewise.
6762         * ira-lives.c: Likewise.
6763         * ira.c: Likewise.
6764         * jump.c: Likewise.
6765         * langhooks.c: Likewise.
6766         * lcm.c: Likewise.
6767         * lists.c: Likewise.
6768         * loop-doloop.c: Likewise.
6769         * loop-init.c: Likewise.
6770         * loop-invariant.c: Likewise.
6771         * loop-iv.c: Likewise.
6772         * loop-unroll.c: Likewise.
6773         * lower-subreg.c: Likewise.
6774         * lra-assigns.c: Likewise.
6775         * lra-coalesce.c: Likewise.
6776         * lra-constraints.c: Likewise.
6777         * lra-eliminations.c: Likewise.
6778         * lra-lives.c: Likewise.
6779         * lra-remat.c: Likewise.
6780         * lra-spills.c: Likewise.
6781         * lra.c: Likewise.
6782         * lto-cgraph.c: Likewise.
6783         * lto-compress.c: Likewise.
6784         * lto-opts.c: Likewise.
6785         * lto-section-in.c: Likewise.
6786         * lto-section-out.c: Likewise.
6787         * lto-streamer-in.c: Likewise.
6788         * lto-streamer-out.c: Likewise.
6789         * lto-streamer.c: Likewise.
6790         * mcf.c: Likewise.
6791         * mode-switching.c: Likewise.
6792         * modulo-sched.c: Likewise.
6793         * optabs.c: Likewise.
6794         * opts-global.c: Likewise.
6795         * passes.c: Likewise.
6796         * plugin.c: Likewise.
6797         * postreload-gcse.c: Likewise.
6798         * postreload.c: Likewise.
6799         * predict.c: Likewise.
6800         * print-tree.c: Likewise.
6801         * profile.c: Likewise.
6802         * real.c: Likewise.
6803         * realmpfr.c: Likewise.
6804         * recog.c: Likewise.
6805         * ree.c: Likewise.
6806         * reg-stack.c: Likewise.
6807         * regcprop.c: Likewise.
6808         * reginfo.c: Likewise.
6809         * regrename.c: Likewise.
6810         * regstat.c: Likewise.
6811         * reload.c: Likewise.
6812         * reload1.c: Likewise.
6813         * reorg.c: Likewise.
6814         * resource.c: Likewise.
6815         * rtl-chkp.c: Likewise.
6816         * rtl-error.c: Likewise.
6817         * rtlanal.c: Likewise.
6818         * rtlhooks.c: Likewise.
6819         * sanopt.c: Likewise.
6820         * sched-deps.c: Likewise.
6821         * sched-ebb.c: Likewise.
6822         * sched-rgn.c: Likewise.
6823         * sdbout.c: Likewise.
6824         * sel-sched-dump.c: Likewise.
6825         * sel-sched-ir.c: Likewise.
6826         * sel-sched.c: Likewise.
6827         * sese.c: Likewise.
6828         * shrink-wrap.c: Likewise.
6829         * simplify-rtx.c: Likewise.
6830         * stack-ptr-mod.c: Likewise.
6831         * statistics.c: Likewise.
6832         * stmt.c: Likewise.
6833         * stor-layout.c: Likewise.
6834         * store-motion.c: Likewise.
6835         * stringpool.c: Likewise.
6836         * symtab.c: Likewise.
6837         * target-globals.c: Likewise.
6838         * targhooks.c: Likewise.
6839         * toplev.c: Likewise.
6840         * tracer.c: Likewise.
6841         * trans-mem.c: Likewise.
6842         * tree-affine.c: Likewise.
6843         * tree-call-cdce.c: Likewise.
6844         * tree-cfg.c: Likewise.
6845         * tree-cfgcleanup.c: Likewise.
6846         * tree-chkp-opt.c: Likewise.
6847         * tree-chkp.c: Likewise.
6848         * tree-chrec.c: Likewise.
6849         * tree-complex.c: Likewise.
6850         * tree-data-ref.c: Likewise.
6851         * tree-dfa.c: Likewise.
6852         * tree-diagnostic.c: Likewise.
6853         * tree-dump.c: Likewise.
6854         * tree-eh.c: Likewise.
6855         * tree-emutls.c: Likewise.
6856         * tree-if-conv.c: Likewise.
6857         * tree-inline.c: Likewise.
6858         * tree-into-ssa.c: Likewise.
6859         * tree-iterator.c: Likewise.
6860         * tree-loop-distribution.c: Likewise.
6861         * tree-nested.c: Likewise.
6862         * tree-nrv.c: Likewise.
6863         * tree-object-size.c: Likewise.
6864         * tree-outof-ssa.c: Likewise.
6865         * tree-parloops.c: Likewise.
6866         * tree-phinodes.c: Likewise.
6867         * tree-predcom.c: Likewise.
6868         * tree-pretty-print.c: Likewise.
6869         * tree-profile.c: Likewise.
6870         * tree-scalar-evolution.c: Likewise.
6871         * tree-sra.c: Likewise.
6872         * tree-ssa-address.c: Likewise.
6873         * tree-ssa-alias.c: Likewise.
6874         * tree-ssa-ccp.c: Likewise.
6875         * tree-ssa-coalesce.c: Likewise.
6876         * tree-ssa-copy.c: Likewise.
6877         * tree-ssa-dce.c: Likewise.
6878         * tree-ssa-dse.c: Likewise.
6879         * tree-ssa-forwprop.c: Likewise.
6880         * tree-ssa-ifcombine.c: Likewise.
6881         * tree-ssa-live.c: Likewise.
6882         * tree-ssa-loop-ch.c: Likewise.
6883         * tree-ssa-loop-im.c: Likewise.
6884         * tree-ssa-loop-ivcanon.c: Likewise.
6885         * tree-ssa-loop-ivopts.c: Likewise.
6886         * tree-ssa-loop-manip.c: Likewise.
6887         * tree-ssa-loop-niter.c: Likewise.
6888         * tree-ssa-loop-prefetch.c: Likewise.
6889         * tree-ssa-loop-unswitch.c: Likewise.
6890         * tree-ssa-loop.c: Likewise.
6891         * tree-ssa-math-opts.c: Likewise.
6892         * tree-ssa-operands.c: Likewise.
6893         * tree-ssa-phiopt.c: Likewise.
6894         * tree-ssa-phiprop.c: Likewise.
6895         * tree-ssa-pre.c: Likewise.
6896         * tree-ssa-propagate.c: Likewise.
6897         * tree-ssa-reassoc.c: Likewise.
6898         * tree-ssa-scopedtables.c: Likewise.
6899         * tree-ssa-sink.c: Likewise.
6900         * tree-ssa-strlen.c: Likewise.
6901         * tree-ssa-structalias.c: Likewise.
6902         * tree-ssa-tail-merge.c: Likewise.
6903         * tree-ssa-ter.c: Likewise.
6904         * tree-ssa-threadupdate.c: Likewise.
6905         * tree-ssa-uncprop.c: Likewise.
6906         * tree-ssa-uninit.c: Likewise.
6907         * tree-ssa.c: Likewise.
6908         * tree-ssanames.c: Likewise.
6909         * tree-stdarg.c: Likewise.
6910         * tree-streamer-in.c: Likewise.
6911         * tree-streamer-out.c: Likewise.
6912         * tree-streamer.c: Likewise.
6913         * tree-switch-conversion.c: Likewise.
6914         * tree-tailcall.c: Likewise.
6915         * tree-vect-data-refs.c: Likewise.
6916         * tree-vect-generic.c: Likewise.
6917         * tree-vect-loop-manip.c: Likewise.
6918         * tree-vect-loop.c: Likewise.
6919         * tree-vect-patterns.c: Likewise.
6920         * tree-vect-slp.c: Likewise.
6921         * tree-vect-stmts.c: Likewise.
6922         * tree-vectorizer.c: Likewise.
6923         * tree-vrp.c: Likewise.
6924         * tree.c: Likewise.
6925         * tsan.c: Likewise.
6926         * ubsan.c: Likewise.
6927         * value-prof.c: Likewise.
6928         * var-tracking.c: Likewise.
6929         * varasm.c: Likewise.
6930         * varpool.c: Likewise.
6931         * vmsdbgout.c: Likewise.
6932         * vtable-verify.c: Likewise.
6933         * web.c: Likewise.
6934         * wide-int-print.cc: Likewise.
6935         * wide-int.cc: Likewise.
6936         * xcoffout.c: Likewise.
6938 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
6940         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6941         between pass numbering and execution order.
6943 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6945         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6946         check for dependencies.
6948 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6950         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6951         CDI_DOMINATORS.
6953 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6955         * real.h (format_helper): New.
6956         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6957         (real_from_target, real_nan, real_2expN, real_value_truncate)
6958         (significand_size, real_from_string2, exact_real_inverse)
6959         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6960         (real_round, real_isinteger, real_from_integer): Replace
6961         machine_mode arguments with format_helper arguments.
6962         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6963         (real_from_integer, real_nan, real_2expN, real_convert)
6964         (real_value_truncate, exact_real_truncate, real_to_target)
6965         (real_from_target, significand_size, real_powi, real_trunc)
6966         (real_floor, real_ceil, real_round, real_isinteger): Replace
6967         machine_mode arguments with format_helper arguments.
6968         (real_to_target_fmt, real_from_target_fmt): Delete.
6969         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6970         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6971         argument with real_format.
6972         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6974 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6976         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6977         (fixed_to_decimal, fixed_convert_from_real)
6978         (real_convert_from_fixed): Fix mode arguments to real_2expN.
6980 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6982         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6983         SCALAR_FLOAT_MODE_P.
6985 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6987         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6988         (completely_scalarize): Comment zero-length arrays.
6989         (get_access_replacement): Correct comment re. precondition.
6991 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6993         * config/i386/i386.c (get_builtin_code_for_version): Set priority
6994         for PROCESSOR_ZNVER1.
6995         (enum processor_model): Add M_AMDFAM17H_znver1.
6996         (struct arch_names_table): Likewise.
6997         * doc/extend.texi: ADD znver1.
6999 2015-10-30  Richard Biener  <rguenther@suse.de>
7001         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7002         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
7003         zeros to be folded to VECTOR_CSTs.
7004         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7005         * fold-const.c (fold): Use build_vector_from_ctor.
7007 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
7009         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7010         "mov %0.h[0], %1.h[0] to "neon_move".
7011         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7012         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7013         "mov_imm".
7014         (*cmovsi_insn_uxtw): Likewise.
7016 2015-10-30  Tom de Vries  <tom@codesourcery.com>
7018         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7019         unsigned, and initialize, and use initial value instead of hardcoded
7020         constant.  Add generic constraints dumping section.  Don't dump global
7021         initializers constraints dumping section if empty.  Don't update
7022         variable from if unused.
7024 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7026         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7027         flag_checking and/or CHECKING_P to eliminate conditional compilation
7028         on ENABLE_CHECKING.
7029         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7030         * config/bfin/bfin.c (hwloop_optimize): Likewise.
7031         * config/i386/i386.c (ix86_print_operand_address): Likewise.
7032         (output_387_binary_op): Likewise.
7033         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7034         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7035         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7036         Likewise.
7037         * config/rs6000/rs6000.h: Likewise.
7038         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7040 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7042         * config/sh/sh.opt (mfdpic): Add missing period.
7044 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7046         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7047         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7048         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7049         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7050         mcore_base_register_rtx_p, mcore_legitimate_index_p,
7051         mcore_legitimate_address_p): New functions.
7052         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7054 2015-10-29  Jeff Law  <law@redhat.com>
7056         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7057         method.
7058         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7059         * tree-ssa-threadedge.c
7060         (record_temporary_equivalences_from_stmts_at_dest): Remove
7061         backedge_seen argument and associated code which invalidated
7062         equivalences based on the value of that argument.
7063         (thread_through_normal_block): Corresponding changes.
7065 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7067         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7068         function earlier in the file.
7069         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7070         df_regs_ever_live_p.
7072 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7074         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7075         by ignoring it.
7077 2015-10-29  Richard Henderson  <rth@redhat.com>
7079         PR target/68124
7080         PR rtl-opt/67609
7081         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7082         sse check to the exact conditions of PR 67609.
7084 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7086         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7087         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7088         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7089         of the traditional names that TFmode uses for handling IEEE
7090         extended double. If -mfloat128, add KFmode functions for all of
7091         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7092         make TFmode use the same emulation functions as KFmode.
7093         (init_float128_ibm): Likewise.
7094         (init_float128_ieee): Likewise.
7095         (rs6000_generate_compare): For IEEE 128-bit floating point
7096         comparisons, call the unordered comparison function instead of the
7097         ordered comparison function.
7098         (rs6000_expand_float128_convert): Deal with operands that are
7099         memory operands. Restructure the code to use a switch statement on
7100         the mode. Add support for TFmode defaulting to either IBM extended
7101         double or IEEE 128-bit floating point. If the underlying types are
7102         the same, use a move instead of a conversion function.
7103         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7104         use for IEEE 128-bit floating point constants with -mfloat128.
7105         (rs6000_c_mode_for_suffix): Likewise.
7106         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7107         128-bit floating point with IBM extended double floating point.
7108         (rs6000_invalid_binary_op): Likewise.
7109         (rs6000_gen_le_vsx_permute): On little endian systems generate a
7110         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7111         types that can go in vector registers.
7112         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7113         point types that can go in vector registers on little endian
7114         PowerPC systems.
7115         (mark_swaps_for_removal): Likewise.
7116         (rs6000_analyze_swaps): Likewise.
7117         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7119         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7120         rework IEEE 128-bit floating point insns to deal with TFmode being
7121         either IBM extended double or IEEE 128-bit floating point.
7122         (IFKF): Likewise.
7123         (IBM128): Update iterator to add condition that the mode is IBM
7124         extended double.
7125         (IEEE128): New iterator for IEEE 128-bit floating point.
7126         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7127         (FLOAT128): Likewise.
7128         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7129         iterator.
7130         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7131         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7132         instead of hard coding TFmode or KFmode.
7133         (negtf2_internal): Likewise.
7134         (neg<mode>2_internal): Likewise.
7135         (abs<mode>2): Likewise.
7136         (abstf2_internal): Likewise.
7137         (abs<mode>2_internal): Likewise.
7138         (ieee_128bit_neg<mode>2): Likewise.
7139         (ieee_128bit_neg<mode>2_internal): Likewise.
7140         (ieee_128bit_abs<mode>2): Likewise.
7141         (ieee_128bit_abs<mode>2_internal): Likewise.
7142         (ieee_128bit_nabs<mode>2): Likewise.
7143         (ieee_128bit_nabs<mode>2_internal): Likewise.
7144         (extendiftf2): Add explicit conversions between 128-bit floating
7145         point types. Drop the old conversions that had become unwieldy.
7146         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7147         (extendifkf2): Likewise.
7148         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7149         (extendtfkf2): Likewise.
7150         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7151         (trunciftf2): Likewise.
7152         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7153         (truncifkf2): Likewise.
7154         (float<SDI:mode><IFKF:mode>2): Likewise.
7155         (trunckftf2): Likewise.
7156         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7157         (trunctfif2): Likewise.
7158         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7159         (extenddftf2): Rework 128-bit floating point conversions to
7160         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7161         KFmode expanders into one function.
7162         (extenddf<mode>2): Likewise.
7163         (extenddftf2_fprs): Likewise.
7164         (extenddf<mode>2_fprs): Likewise.
7165         (extenddftf2_vsx): Likewise.
7166         (extenddf<mode>2_vsx): Likewise.
7167         (extendsftf2): Likewise.
7168         (extendsf<mode>2): Likewise.
7169         (trunctfdf2): Likewise.
7170         (trunc<mode>df2): Likewise.
7171         (trunctfdf2_internal1): Likewise.
7172         (trunc<mode>df2_internal1): Likewise.
7173         (trunctfdf2_internal2): Likewise.
7174         (trunc<mode>df2_internal2): Likewise.
7175         (trunctfsf2): Likewise.
7176         (trunc<mode>sf2): Likewise.
7177         (trunctfsf2_fprs): Likewise.
7178         (trunc<mode>sf2_fprs): Likewise.
7179         (floatsit2f): Likewise.
7180         (floatsi<mode>2): Likewise.
7181         (fix_trunc_helper): Likewise.
7182         (fix_trunc_helper<mode>): Likewise.
7183         (fix_trunctfsi2): Likewise.
7184         (fix_trunc<mode>si2): Likewise.
7185         (fix_trunctfsi2_fprs): Likewise.
7186         (fix_trunc<mode>si2_fprs): Likewise.
7187         (fix_trunctfsi2_internal): Likewise.
7188         (fix_trunc<mode>si2_internal): Likewise.
7189         (fix_trunctfdi2): Likewise.
7190         (fix_trunc<mode>di2): Likewise.
7191         (fixuns_trunctf<mode>2): Likewise.
7192         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7193         (floatditf2): Likewise.
7194         (floatdi<mode>2): Likewise.
7195         (floatuns<mode>tf2): Likewise.
7196         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7197         (cmptf_internal1): Use a mode iterator to add support for both
7198         types (IFmode, TFmode) that support IBM extended double.
7199         (cmp<mode>_internal1): Likewise.
7200         (cmptf_internal2): Likewise.
7201         (cmp<mode>_internal2): Likewise.
7203         * doc/extend.texi (Floating Types): Document __ibm128 and
7204         __float128 on PowerPC.
7206         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7207         -mfloat128 and -mno-float128.
7209 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7211         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7212         floating point modes that can go in vector registers.
7213         (MODES_TIEABLE_P): Move tests for vector modes before tests for
7214         scalar floating point, so that IEEE 128-bit floating point that
7215         can go in vector registers bind with vectors and not FP.
7216         (struct rs6000_args): Add libcall field.
7218         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7219         and -mfloat128-software switches.  Replace them with a binary
7220         -mfloat128 switch.
7221         (-mfloat128): Likewise.
7223         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7224         128-bit floating point types in GPRs, even if the appropriate
7225         option enabling the type was not used.
7226         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7227         debugging.
7228         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7229         pre-decrement on IEEE 128-bit floating point values.
7230         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7231         is IEEE 128-bit floating point.
7232         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7233         128-bit floating point types that can go in vector registers.
7234         (rs6000_option_override_internal): Change -mfloat128-none and
7235         -mfloat128-software to -mfloat128, and move code to be near other
7236         VSX option handling.
7237         (rs6000_option_override_internal): Disable -mfloat128 if we don't
7238         have the Altivec ABI.
7239         (rs6000_init_builtins): Don't make TFmode use either IFmode or
7240         KFmode floating point nodes. Instead, have three separate nodes.
7241         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7242         eventually moving the long double default to IEEE 128-bit floating
7243         point.
7244         (rs6000_opt_masks): Add -mfloat128.
7245         (struct rs6000_opt_var): Fix typo in comment.
7246         (init_cumulative_args): Initialize libcall field in
7247         CUMULATIVE_ARGS.
7248         (rs6000_function_arg): Treat library functions as if they had
7249         prototypes to prevent IEEE 128-bit support functions from passing
7250         arguments in both GPRs and vector registers.
7251         (rs6000_arg_partial_bytes): Likewise.
7253         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7254         an option that can be turned on via -mcpu=<xxx>.
7256         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7257         longer used.
7259         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7260         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7261         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7262         double is IBM extended double.
7264         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7265         SUBREGs.
7267 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7269         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7270         * genconditions.c: Define CHECKING_P in the generated code.
7271         * genextract.c: Use flag_checking in insn_extract.
7272         * gengtype.c (main): Remove conditional compilation.
7273         * gengtype.h: Likewise.
7275 2015-10-29  Jeff Law  <law@redhat.com>
7277         PR tree-optimization/67892
7278         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7279         in comment.
7280         (thread_through_normal_block): If we have seen a backedge, then
7281         do nothing.  No longer call find_jump_threads_backwards here.
7282         (thread_across_edge): Use find_jump_threads_backwards to find
7283         jump threads if the old style threader was not successful.
7284         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7285         gsi_last_nondebug_bb.  Return NULL if the block does not end
7286         with a control statement.
7287         (find_jump_threads_backwards): Setup code moved here from
7288         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
7289         single edge argument instead of name & block.
7290         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7291         prototype.
7293 2015-10-29  Tom de Vries  <tom@codesourcery.com>
7295         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7296         types.
7298 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
7300         * omp-low.c (lower_omp_target): Remove unreachable code & merge
7301         ifs.
7303 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
7305         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7307 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7309         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7310         guard_bb0 and use guard_bb throughout.
7312 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7314         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7315         unnecessary label.
7317 2015-10-29  Richard Biener  <rguenther@suse.de>
7319         PR middle-end/68142
7320         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7321         overflow.
7323 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
7325         * alias.c: Reorder #include statements and remove duplicates.
7326         * asan.c: Likewise.
7327         * attribs.c: Likewise.
7328         * auto-inc-dec.c: Likewise.
7329         * auto-profile.c: Likewise.
7330         * bb-reorder.c: Likewise.
7331         * bt-load.c: Likewise.
7332         * builtins.c: Likewise.
7333         * caller-save.c: Likewise.
7334         * calls.c: Likewise.
7335         * ccmp.c: Likewise.
7336         * cfg.c: Likewise.
7337         * cfganal.c: Likewise.
7338         * cfgbuild.c: Likewise.
7339         * cfgcleanup.c: Likewise.
7340         * cfgexpand.c: Likewise.
7341         * cfghooks.c: Likewise.
7342         * cfgloop.c: Likewise.
7343         * cfgloopanal.c: Likewise.
7344         * cfgloopmanip.c: Likewise.
7345         * cfgrtl.c: Likewise.
7346         * cgraph.c: Likewise.
7347         * cgraphbuild.c: Likewise.
7348         * cgraphclones.c: Likewise.
7349         * cgraphunit.c: Likewise.
7350         * cilk-common.c: Likewise.
7351         * combine-stack-adj.c: Likewise.
7352         * combine.c: Likewise.
7353         * compare-elim.c: Likewise.
7354         * convert.c: Likewise.
7355         * coverage.c: Likewise.
7356         * cppbuiltin.c: Likewise.
7357         * cprop.c: Likewise.
7358         * cse.c: Likewise.
7359         * cselib.c: Likewise.
7360         * data-streamer-in.c: Likewise.
7361         * data-streamer-out.c: Likewise.
7362         * data-streamer.c: Likewise.
7363         * dbxout.c: Likewise.
7364         * dce.c: Likewise.
7365         * ddg.c: Likewise.
7366         * debug.c: Likewise.
7367         * df-core.c: Likewise.
7368         * df-problems.c: Likewise.
7369         * df-scan.c: Likewise.
7370         * dfp.c: Likewise.
7371         * dojump.c: Likewise.
7372         * dominance.c: Likewise.
7373         * double-int.c: Likewise.
7374         * dse.c: Likewise.
7375         * dumpfile.c: Likewise.
7376         * dwarf2asm.c: Likewise.
7377         * dwarf2cfi.c: Likewise.
7378         * dwarf2out.c: Likewise.
7379         * emit-rtl.c: Likewise.
7380         * except.c: Likewise.
7381         * explow.c: Likewise.
7382         * expmed.c: Likewise.
7383         * expr.c: Likewise.
7384         * final.c: Likewise.
7385         * fixed-value.c: Likewise.
7386         * fold-const.c: Likewise.
7387         * function.c: Likewise.
7388         * fwprop.c: Likewise.
7389         * gcse.c: Likewise.
7390         * generic-match-head.c: Likewise.
7391         * ggc-common.c: Likewise.
7392         * gimple-builder.c: Likewise.
7393         * gimple-expr.c: Likewise.
7394         * gimple-fold.c: Likewise.
7395         * gimple-iterator.c: Likewise.
7396         * gimple-low.c: Likewise.
7397         * gimple-match-head.c: Likewise.
7398         * gimple-pretty-print.c: Likewise.
7399         * gimple-ssa-isolate-paths.c: Likewise.
7400         * gimple-ssa-strength-reduction.c: Likewise.
7401         * gimple-streamer-in.c: Likewise.
7402         * gimple-streamer-out.c: Likewise.
7403         * gimple-walk.c: Likewise.
7404         * gimple.c: Likewise.
7405         * gimplify-me.c: Likewise.
7406         * gimplify.c: Likewise.
7407         * godump.c: Likewise.
7408         * graph.c: Likewise.
7409         * graphite-poly.c: Likewise.
7410         * haifa-sched.c: Likewise.
7411         * hw-doloop.c: Likewise.
7412         * ifcvt.c: Likewise.
7413         * incpath.c: Likewise.
7414         * init-regs.c: Likewise.
7415         * internal-fn.c: Likewise.
7416         * ipa-chkp.c: Likewise.
7417         * ipa-comdats.c: Likewise.
7418         * ipa-cp.c: Likewise.
7419         * ipa-devirt.c: Likewise.
7420         * ipa-icf-gimple.c: Likewise.
7421         * ipa-icf.c: Likewise.
7422         * ipa-inline-analysis.c: Likewise.
7423         * ipa-inline-transform.c: Likewise.
7424         * ipa-inline.c: Likewise.
7425         * ipa-polymorphic-call.c: Likewise.
7426         * ipa-profile.c: Likewise.
7427         * ipa-prop.c: Likewise.
7428         * ipa-pure-const.c: Likewise.
7429         * ipa-ref.c: Likewise.
7430         * ipa-reference.c: Likewise.
7431         * ipa-split.c: Likewise.
7432         * ipa-utils.c: Likewise.
7433         * ipa-visibility.c: Likewise.
7434         * ipa.c: Likewise.
7435         * ira-build.c: Likewise.
7436         * ira-color.c: Likewise.
7437         * ira-conflicts.c: Likewise.
7438         * ira-costs.c: Likewise.
7439         * ira-emit.c: Likewise.
7440         * ira-lives.c: Likewise.
7441         * ira.c: Likewise.
7442         * jump.c: Likewise.
7443         * langhooks.c: Likewise.
7444         * lcm.c: Likewise.
7445         * lists.c: Likewise.
7446         * loop-doloop.c: Likewise.
7447         * loop-init.c: Likewise.
7448         * loop-invariant.c: Likewise.
7449         * loop-iv.c: Likewise.
7450         * loop-unroll.c: Likewise.
7451         * lower-subreg.c: Likewise.
7452         * lra-assigns.c: Likewise.
7453         * lra-coalesce.c: Likewise.
7454         * lra-constraints.c: Likewise.
7455         * lra-eliminations.c: Likewise.
7456         * lra-lives.c: Likewise.
7457         * lra-remat.c: Likewise.
7458         * lra-spills.c: Likewise.
7459         * lra.c: Likewise.
7460         * lto-cgraph.c: Likewise.
7461         * lto-compress.c: Likewise.
7462         * lto-opts.c: Likewise.
7463         * lto-section-in.c: Likewise.
7464         * lto-section-out.c: Likewise.
7465         * lto-streamer-in.c: Likewise.
7466         * lto-streamer-out.c: Likewise.
7467         * lto-streamer.c: Likewise.
7468         * mode-switching.c: Likewise.
7469         * modulo-sched.c: Likewise.
7470         * omp-low.c: Likewise.
7471         * optabs.c: Likewise.
7472         * opts-global.c: Likewise.
7473         * passes.c: Likewise.
7474         * plugin.c: Likewise.
7475         * postreload-gcse.c: Likewise.
7476         * postreload.c: Likewise.
7477         * predict.c: Likewise.
7478         * print-tree.c: Likewise.
7479         * profile.c: Likewise.
7480         * real.c: Likewise.
7481         * realmpfr.c: Likewise.
7482         * recog.c: Likewise.
7483         * ree.c: Likewise.
7484         * reg-stack.c: Likewise.
7485         * regcprop.c: Likewise.
7486         * reginfo.c: Likewise.
7487         * regrename.c: Likewise.
7488         * regstat.c: Likewise.
7489         * reload.c: Likewise.
7490         * reload1.c: Likewise.
7491         * reorg.c: Likewise.
7492         * resource.c: Likewise.
7493         * rtl-chkp.c: Likewise.
7494         * rtl-error.c: Likewise.
7495         * rtlanal.c: Likewise.
7496         * rtlhooks.c: Likewise.
7497         * sanopt.c: Likewise.
7498         * sched-deps.c: Likewise.
7499         * sched-ebb.c: Likewise.
7500         * sched-rgn.c: Likewise.
7501         * sese.c: Likewise.
7502         * shrink-wrap.c: Likewise.
7503         * simplify-rtx.c: Likewise.
7504         * stack-ptr-mod.c: Likewise.
7505         * statistics.c: Likewise.
7506         * stmt.c: Likewise.
7507         * stor-layout.c: Likewise.
7508         * store-motion.c: Likewise.
7509         * stringpool.c: Likewise.
7510         * symtab.c: Likewise.
7511         * target-globals.c: Likewise.
7512         * targhooks.c: Likewise.
7513         * toplev.c: Likewise.
7514         * tracer.c: Likewise.
7515         * trans-mem.c: Likewise.
7516         * tree-affine.c: Likewise.
7517         * tree-call-cdce.c: Likewise.
7518         * tree-cfg.c: Likewise.
7519         * tree-cfgcleanup.c: Likewise.
7520         * tree-chkp-opt.c: Likewise.
7521         * tree-chkp.c: Likewise.
7522         * tree-chrec.c: Likewise.
7523         * tree-complex.c: Likewise.
7524         * tree-data-ref.c: Likewise.
7525         * tree-dfa.c: Likewise.
7526         * tree-diagnostic.c: Likewise.
7527         * tree-dump.c: Likewise.
7528         * tree-eh.c: Likewise.
7529         * tree-emutls.c: Likewise.
7530         * tree-if-conv.c: Likewise.
7531         * tree-inline.c: Likewise.
7532         * tree-into-ssa.c: Likewise.
7533         * tree-iterator.c: Likewise.
7534         * tree-loop-distribution.c: Likewise.
7535         * tree-nested.c: Likewise.
7536         * tree-nrv.c: Likewise.
7537         * tree-object-size.c: Likewise.
7538         * tree-outof-ssa.c: Likewise.
7539         * tree-parloops.c: Likewise.
7540         * tree-phinodes.c: Likewise.
7541         * tree-predcom.c: Likewise.
7542         * tree-pretty-print.c: Likewise.
7543         * tree-profile.c: Likewise.
7544         * tree-scalar-evolution.c: Likewise.
7545         * tree-sra.c: Likewise.
7546         * tree-ssa-address.c: Likewise.
7547         * tree-ssa-alias.c: Likewise.
7548         * tree-ssa-ccp.c: Likewise.
7549         * tree-ssa-coalesce.c: Likewise.
7550         * tree-ssa-copy.c: Likewise.
7551         * tree-ssa-dce.c: Likewise.
7552         * tree-ssa-dom.c: Likewise.
7553         * tree-ssa-dse.c: Likewise.
7554         * tree-ssa-forwprop.c: Likewise.
7555         * tree-ssa-ifcombine.c: Likewise.
7556         * tree-ssa-live.c: Likewise.
7557         * tree-ssa-loop-ch.c: Likewise.
7558         * tree-ssa-loop-im.c: Likewise.
7559         * tree-ssa-loop-ivcanon.c: Likewise.
7560         * tree-ssa-loop-ivopts.c: Likewise.
7561         * tree-ssa-loop-manip.c: Likewise.
7562         * tree-ssa-loop-niter.c: Likewise.
7563         * tree-ssa-loop-prefetch.c: Likewise.
7564         * tree-ssa-loop-unswitch.c: Likewise.
7565         * tree-ssa-loop.c: Likewise.
7566         * tree-ssa-math-opts.c: Likewise.
7567         * tree-ssa-operands.c: Likewise.
7568         * tree-ssa-phiopt.c: Likewise.
7569         * tree-ssa-phiprop.c: Likewise.
7570         * tree-ssa-pre.c: Likewise.
7571         * tree-ssa-propagate.c: Likewise.
7572         * tree-ssa-reassoc.c: Likewise.
7573         * tree-ssa-sccvn.c: Likewise.
7574         * tree-ssa-scopedtables.c: Likewise.
7575         * tree-ssa-sink.c: Likewise.
7576         * tree-ssa-strlen.c: Likewise.
7577         * tree-ssa-structalias.c: Likewise.
7578         * tree-ssa-tail-merge.c: Likewise.
7579         * tree-ssa-ter.c: Likewise.
7580         * tree-ssa-threadedge.c: Likewise.
7581         * tree-ssa-threadupdate.c: Likewise.
7582         * tree-ssa-uncprop.c: Likewise.
7583         * tree-ssa-uninit.c: Likewise.
7584         * tree-ssa.c: Likewise.
7585         * tree-ssanames.c: Likewise.
7586         * tree-stdarg.c: Likewise.
7587         * tree-streamer-in.c: Likewise.
7588         * tree-streamer-out.c: Likewise.
7589         * tree-streamer.c: Likewise.
7590         * tree-switch-conversion.c: Likewise.
7591         * tree-tailcall.c: Likewise.
7592         * tree-vect-data-refs.c: Likewise.
7593         * tree-vect-generic.c: Likewise.
7594         * tree-vect-loop-manip.c: Likewise.
7595         * tree-vect-loop.c: Likewise.
7596         * tree-vect-patterns.c: Likewise.
7597         * tree-vect-slp.c: Likewise.
7598         * tree-vect-stmts.c: Likewise.
7599         * tree-vectorizer.c: Likewise.
7600         * tree-vrp.c: Likewise.
7601         * tree.c: Likewise.
7602         * tsan.c: Likewise.
7603         * ubsan.c: Likewise.
7604         * value-prof.c: Likewise.
7605         * var-tracking.c: Likewise.
7606         * varasm.c: Likewise.
7607         * varpool.c: Likewise.
7608         * vtable-verify.c: Likewise.
7609         * web.c: Likewise.
7610         * wide-int-print.cc: Likewise.
7611         * wide-int.cc: Likewise.
7612         * xcoffout.c: Likewise.
7614 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
7616         * Makefile.in (NO_PIE_CFLAGS): New.
7617         (NO_PIE_FLAG): Likewise.
7618         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7619         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7620         (BUILD_NO_PIE_CFLAGS): Likewise.
7621         (BUILD_NO_PIE_FLAG): Likewise.
7622         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7623         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7624         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7625         $(BUILD_NO_PIE_CFLAGS).
7626         (BUILD_CXXFLAGS): Likewise.
7627         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7628         $(BUILD_NO_PIE_FLAG).
7629         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
7630         (BUILD_NO_PIE_FLAG): Likewise.
7631         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7632         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7633         * configure: Regenerated.
7635 2015-10-29  Richard Biener  <rguenther@suse.de>
7637         PR middle-end/56956
7638         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7639         unsigned conditonal negation to ABS_EXPR.
7641 2015-10-29  Richard Biener  <rguenther@suse.de>
7643         * gimple-match-head.c (gimple_simplify): Remove premature checking
7644         of builtin_decl_implicit of function calls we simplify.
7646 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
7648         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7649         (get_computation_cost_at): Ditto.
7650         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7651         and inv_expr_id.
7653 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7655         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7656         superfluous code.
7658 2015-10-28  Jason Merrill  <jason@redhat.com>
7660         * Makefile.in (TAGS): Include libcpp and libiberty.
7662 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7664         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7665         (extract_omp_for_data): Remove OpenACC special handling of
7666         chunking.
7668         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7669         (struct parallel): Update comment.
7670         (nvptx_reorg): Likewise.
7671         (nvptx_neuter): Cleanup whitespace.
7673 2015-10-28  Richard Henderson  <rth@redhat.com>
7675         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7677 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7679         PR target/67839
7680         * config/avr/predicates.md (low_io_address_operand): Don't
7681         consider MODE when computing upper bound.
7682         (io_address_operand): Likewise.
7684 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
7686         * fold-const.c (operand_equal_p): Do not verify that types are
7687         compatible for MEM_REFs.
7689 2015-10-28  Richard Biener  <rguenther@suse.de>
7691         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7692         in simplifying VEC_COND_EXPR conditions.
7694 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7696         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7697         into vi_next of a full_var.
7699 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7701         * tree-ssa-structalias.c (new_var_info, make_heapvar)
7702         (make_constraint_from_restrict, make_constraint_from_global_restrict)
7703         (create_function_info_for, create_variable_info_for_1)
7704         (create_variable_info_for): Add and handle add_id parameter.
7705         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7706         (init_base_vars): Add extra argument to calls to new_var_info.
7707         (get_vi_for_tree): Add extra argument to call to
7708         create_variable_info_for.
7709         (process_constraint, do_deref, process_all_all_constraints): Add extra
7710         argument to calls to new_scalar_tmp_constraint_exp.
7711         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7712         argument to calls to make_heapvar.
7713         (make_restrict_var_constraints): Add extra argument to call to
7714         make_constraint_from_global_restrict.
7715         (intra_create_variable_infos): Add extra argument to call to
7716         create_variable_info_for_1.
7717         (ipa_pta_execute): Add extra argument to call to
7718         create_function_info_for.
7720 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7722         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7723         (sibcall_value): Likewise.
7725 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7727         * config/nvptx/nvptx.h (struct machine_function): Add
7728         axis_predicate.
7729         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7730         nvptx_expand_oacc_join): Declare.
7731         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7732         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7733         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7734         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7735         UNSPECV_JOINING, UNSPECV_JOIN): New.
7736         (BITS, BITD): New mode iterators.
7737         (br_true_uni, br_false_uni): New.
7738         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7739         (oacc_dim_size, oacc_dim_pos): New.
7740         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7741         (oacc_fork, oacc_join): New.
7742         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7743         (worker_load<mode>, worker_store<mode>): New.
7744         (nvptx_barsync): New.
7745         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7746         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7747         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7748         worker_bcast_sym): New.
7749         (nvptx_option_override): Initialize worker broadcast buffer.
7750         (nvptx_emit_forking, nvptx_emit_joining): New.
7751         (nvptx_init_axis_predicate): New.
7752         (nvptx_declare_function_name): Init axis predicates.
7753         (nvptx_expand_call): Add fork/join markers around routine call.
7754         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7755         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7756         (nvptx_gen_vcast): New.
7757         (struct wcast_data_t): New.
7758         (enum propagate_mask): New.
7759         (nvptx_gen_wcast): New.
7760         (nvptx_print_operand): Add 'S' case.
7761         (struct parallel): New.
7762         (parallel::parallel, parallel::~parallel): New.
7763         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7764         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7765         nvptx_find_par, nvptx_discover_pars): New.
7766         (nvptx_propagate): New.
7767         (vprop_gen, nvptx_vpropagate): New.
7768         (wprop_gen, nvptx_wpropagate): New.
7769         (nvptx_wsync): New.
7770         (nvptx_single, nvptx_skip_par): New.
7771         (nvptx_process_pars, nvptx_neuter_pars): New.
7772         (ntptx_reorg): Split blocks, generate parallel structure, apply
7773         neutering.
7774         (nvptx_cannot_copy_insn_p): New.
7775         (nvptx_file_end): Emit worker broadcast decl.
7776         (nvptx_goacc_fork_join): New.
7777         (TARGET_CANNOT_COPY_INSN_P): Override.
7778         (TARGET_GOACC_FORK_JOIN): Override.
7780 2015-10-28  Richard Biener  <rguenther@suse.de>
7782         * fold-const.c (negate_expr_p): Adjust the division case to
7783         properly avoid introducing undefined overflow.
7784         (fold_negate_expr): Likewise.
7786 2015-10-28  Richard Biener  <rguenther@suse.de>
7788         PR tree-optimization/65962
7789         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7790         Avoid creating loop carried dependences also for outer loops
7791         of the loop a use to replace is in.
7793 2015-10-28  Richard Biener  <rguenther@suse.de>
7795         * common.opt (fchecking): New flag controlling flag_checking.
7796         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7797         * timevar.c (timer::print): Adjust output.
7798         * doc/invoke.texi (fchecking): Document.
7800 2015-10-28  Richard Biener  <rguenther@suse.de>
7802         PR middle-end/68067
7803         * fold-const.c (negate_expr_p): We cannot negate plus or minus
7804         if overflow is not wrapping.  Likewise multiplication unless
7805         one operand is constant and not power of two.
7806         (fold_negate_expr): Adjust accordingly.
7808 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7810         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7811         fields.
7812         (is_oacc_parallel, is_oacc_kernels): New.
7813         (enclosing_target_ctx): May return NULL.
7814         (ctx_in_oacc_kernels_region): New.
7815         (check_oacc_kernel_gwv): New.
7816         (oacc_loop_or_target_p): Delete.
7817         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
7818         operands.  Strip reductions fro kernels.
7819         (scan_omp_target): Don't calculate gwv mask.
7820         (lower_oacc_head_mark, lower_oacc_loop_marker,
7821         lower_oacc_head_tail): New.
7822         (struct oacc_collapse): New.
7823         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7824         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7825         Remove OpenACC handling.
7826         (expand_oacc_for): New.
7827         (expand_omp_for): Call expand_oacc_for.
7828         (lower_omp_for): Call lower_oacc_head_tail.
7830 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
7832         * attribs.c (check_attribute_tables): New function, broken out from...
7833         (init_attributes): Use it.
7834         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7835         gcc_checking_assert and checking_* functions to eliminate
7836         ENABLE_CHECKING conditionals.
7837         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7838         (pass_expand::execute): Likewise.
7839         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7840         * cgraphunit.c (mark_functions_to_output): Likewise.
7841         (cgraph_node::expand_thunk): Likewise.
7842         (symbol_table::compile): Likewise.
7843         * ddg.c (add_cross_iteration_register_deps): Likewise.
7844         (create_ddg_all_sccs): Likewise.
7845         * df-core.c (df_finish_pass, df_analyze): Likewise.
7846         * diagnostic-core.h: Likewise.
7847         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7848         * dominance.c (calculate_dominance_info): Likewise.
7849         * dwarf2out.c (add_AT_die_ref): Likewise.
7850         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7851         (loc_list_from_tree, gen_lexical_block_die): Likewise.
7852         gen_type_die_with_usage, gen_type_die): Likewise.
7853         (dwarf2out_decl): Likewise.
7854         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7855         * except.c (duplicate_eh_regions): Likewise.
7856         * fwprop.c (register_active_defs, update_df_init): Likewise.
7857         (fwprop_init, fwprop_done): Likewise.
7858         (update_uses): Likewise.
7859         * ggc-page.c (ggc_grow): Likewise.
7860         * gimplify.c (gimplify_body): Likewise.
7861         (gimplify_hasher::equal): Likewise.
7862         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7863         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7864         Likewise.
7865         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7866         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7867         * hash-table.h (::find_empty_slot_for_expand): Likewise.
7868         * ifcvt.c (if_convert): Likewise.
7869         * ipa-cp.c (ipcp_propagate_stage): Likewise.
7870         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7871         (odr_type_p, odr_types_equivalent_p): Likewise.
7872         (add_type_duplicate, get_odr_type): Likewise.
7873         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7874         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7875         (sem_item_optimizer::verify_classes): Likewise.
7876         (sem_item_optimizer::traverse_congruence_split): Likewise.
7877         (sem_item_optimizer::checking_verify_classes): New.
7878         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7879         method.
7880         * cfgrtl.c (commit_edge_insertions): Likewise.
7881         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7882         (rtl_flow_call_edges_add): Likewise.
7883         * cgraph.c (symbol_table::create_edge): Likewise.
7884         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7885         * cgraph.h (symtab_node): Likewise.
7886         (symtab_node::checking_verify_symtab_nodes): Define.
7887         (cgraph_node::checking_verify_cgraph_nodes): Define.
7888         * cfghooks.h (checking_verify_flow_info): Define.
7889         * cfgloop.h (checking_verify_loop_structure): Define.
7890         * dominance.h (checking_verify_dominators): Define.
7891         * et-forest.c: Fix comment.
7892         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7893         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7894         ENABLE_CHECKING conditionals.
7895         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7896         * ipa-inline.c (inline_small_functions): Likewise.
7897         (early_inliner): Likewise.
7898         * ipa-inline.h (estimate_edge_growth): Likewise.
7899         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7900         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7901         (ipa_single_use): Likewise.
7902         * ira-int.h: Likewise.
7903         * ira.c (ira): Likewise.
7904         * loop-doloop.c (doloop_optimize_loops): Likewise.
7905         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7906         * loop-invariant.c (move_loop_invariants): Likewise.
7907         * lra-assigns.c (lra_assign): Likewise.
7908         * lra-constraints.c (lra_constraints): Likewise.
7909         * lra-eliminations.c (lra_eliminate): Likewise.
7910         * lra-int.h (struct lra_reg): Likewise.
7911         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7912         (lra_create_live_ranges_1): Likewise.
7913         * lra-remat.c (create_remat_bb_data): Likewise.
7914         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7915         (lra): Likewise.
7916         (check_rtl): Always define. Remove incorrect guard around
7917         extract_constrain_insn call.
7918         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7919         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7920         ENABLE_CHECKING conditionals.
7921         * lto-streamer-out.c (DFS::DFS): Likewise.
7922         (lto_output): Likewise.
7923         * lto-streamer.c (lto_streamer_init): Likewise.
7924         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7925         expand_omp_target, execute_expand_omp): Likewise.
7926         (lower_omp_target): Likewise.
7927         * passes.c (execute_function_todo): Likewise.
7928         (execute_todo, execute_one_pass): Likewise.
7929         (verify_curr_properties): Always define.
7930         * predict.c (tree_estimate_probability: Use flag_checking,
7931         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7932         ENABLE_CHECKING conditionals.
7933         (propagate_freq): Likewise.
7934         * pretty-print.c (pp_format): Likewise.
7935         * real.c (real_to_decimal_for_mode): Likewise.
7936         * recog.c (split_all_insns): Likewise.
7937         * regcprop.c (kill_value_one_regno): Likewise.
7938         (copy_value): Likewise.
7939         (validate_value_data): Define unconditionally.
7940         * reload.c: Fix comment.
7941         * timevar.c: Include options.h
7942         * tree-ssa.h (checking_verify_ssa): Define.
7943         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7944         * sched-deps.c (CHECK): Remove unused macro.
7945         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7946         gcc_checking_assert and checking_* functions to eliminate
7947         ENABLE_CHECKING conditionals.
7948         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7949         * sel-sched.c (struct moveop_static_params): Likewise.
7950         (find_best_reg_for_expr, move_cond_jump): Likewise.
7951         (move_op_orig_expr_not_found): Likewise.
7952         (code_motion_process_successors, move_op): Likewise.
7953         * ssa-iterators.h (first_readonly_imm_use): Likewise.
7954         (next_readonly_imm_use): Likewise.
7955         * store-motion.c (compute_store_table): Likewise.
7956         * symbol-summary.h (function_summary::function_summary): Likewise.
7957         * target.h (cumulative_args_t): Likewise.
7958         (get_cumulative_args, pack_cumulative_args): Likewise.
7959         * timevar.c: (timer::print): Likewise.
7960         * trans-mem.c (ipa_tm_execute): Likewise.
7961         * tree-cfg.c (move_stmt_op): Likewise.
7962         (move_sese_region_to_fn): Likewise.
7963         (gimple_flow_call_edges_add): Likewise.
7964         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7965         Likewise.
7966         * tree-eh.c (remove_unreachable_handlers): Likewise.
7967         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7968         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7969         * tree-into-ssa.c (update_ssa): Likewise.
7970         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7971         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7972         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7973         * tree-predcom.c (suitable_component_p): Likewise.
7974         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7975         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7976         * tree-ssa-live.c (verify_live_on_entry): Likewise.
7977         * tree-ssa-live.h (register_ssa_partition): Likewise.
7978         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7979         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7980         (tree_transform_and_unroll_loop): Likewise.
7981         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7982         * tree-ssa-operands.c (get_expr_operands): Likewise.
7983         * tree-ssa-propagate.c (replace_exp_1): Likewise.
7984         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7985         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7986         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7987         * tree-ssanames.c (release_ssa_name_fn): Likewise.
7988         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7989         * tree-vect-loop-manip.c
7990         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7991         (slpeel_checking_verify_cfg_after_peeling): Likewise.
7992         (vect_do_peeling_for_loop_bound): Likewise.
7993         (vect_do_peeling_for_alignment): Likewise.
7994         * tree-vrp.c (supports_overflow_infinity): Likewise.
7995         (set_value_range): Likewise.
7996         * tree.c (free_lang_data_in_cgraph): Likewise.
7997         * value-prof.c (gimple_remove_histogram_value): Likewise.
7998         (free_hist): Likewise.
7999         * var-tracking.c (canonicalize_values_star): Likewise.
8000         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8002 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8004         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8005         IFN_GOACC_LOOP): New.
8006         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8007         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8008         IFN_UNIQUE_OACC_TAIL_MARK.
8009         (enum ifn_goacc_loop_kind): New.
8010         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8011         IFN_UNIQUE_OACC_JOIN cases.
8012         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8013         (expand_GOACC_LOOP): New.
8014         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8015         * omp-low.c: Include gimple-pretty-print.h.
8016         (struct oacc_loop): New.
8017         (enum oacc_loop_flags): New.
8018         (oacc_thread_numbers): New.
8019         (oacc_xform_loop): New.
8020         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8021         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8022         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8023         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8024         oacc_loop_discovery): New.
8025         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8026         oacc_loop_process): New.
8027         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8028         (execute_oacc_device_lower): Discover & process loops.  Process
8029         internal fns.
8030         * target.def (goacc.fork_join): Change sense of hook, clarify
8031         documentation.
8032         * doc/tm.texi: Regenerated.
8034 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8036         * target-insns.def (oacc_fork, oacc_join): Define.
8037         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8038         (goacc.fork_join): New GOACC hook.
8039         * targhooks.h (default_goacc_fork_join): Declare.
8040         * omp-low.c (default_goacc_forkjoin): New.
8041         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8042         * doc/tm.texi: Regenerate.
8044 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8046         * omp-low.c (oacc_init_rediction_array): New.
8047         (oacc_initialize_reduction_data): Initialize array.
8049 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8051         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8053 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8055         * internal-fn.c (expand_UNIQUE): New.
8056         * internal-fn.h (enum ifn_unique_kind): New.
8057         * internal-fn.def (IFN_UNIQUE): New.
8058         * target-insns.def (unique): Define.
8059         * gimple.h (gimple_call_internal_unique_p): New.
8060         * gimple.c (gimple_call_same_target_p): Check internal fn
8061         uniqueness.
8062         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8063         * tree-ssa-threadedge.c
8064         (record_temporary_equivalences_from_stmts): Likewise.
8065         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8067 2015-10-27  Richard Henderson  <rth@redhat.com>
8069         PR rtl-opt/67609
8070         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8071         narrowing subregs on SSE and MMX registers.
8072         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8073         appear to be sub-words of multi-register pseudos must be rejected.
8074         * doc/tm.texi: Regenerate.
8076 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8078         PR target/68102
8079         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8080         operands[0] is a reg before taking its REGNO in split condition.
8081         (*movdi_aarch64): Likewise.
8083 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8085         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8086         Handle floating point inner modes properly.
8088 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
8090         * tree-vect-looop.c
8091         (vectorizable_live_operation): Change iterator.
8093 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8094             Aditya Kumar  <aditya.k7@samsung.com>
8096         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8097           function to schedule based on isl_schedule_node.
8098         (get_schedule_map_st): New schedule optimizer based on
8099         isl_schedule_node.
8100         (scop_get_domains): New. Return the isl_union_set containing the
8101         domains of all the pbbs.
8102         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8104 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
8106         PR target/67215
8107         * calls.c (prepare_call_address): Don't handle -fno-plt here.
8108         * config/i386/i386.c (ix86_expand_call): Generate indirect call
8109         via GOT for -fno-plt.  Support indirect call via GOT for x32.
8110         * config/i386/predicates.md (sibcall_memory_operand): Allow
8111         GOT memory operand.
8113 2015-10-27  Richard Biener  <rguenther@suse.de>
8115         PR tree-optimization/68104
8116         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8117         strided access check ...
8118         (vect_compute_data_refs_alignment): ... here.
8120 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
8121             Joseph Myers  <joseph@codesourcery.com>
8122             Mark Shinwell  <shinwell@codesourcery.com>
8123             Andrew Stubbs  <ams@codesourcery.com>
8124             Rich Felker <dalias@libc.org>
8126         * config.gcc: Handle --enable-fdpic.
8127         * config/sh/constraints.md (Ccl): New constraint.
8128         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8129         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8130         __SH_FDPIC__.
8131         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8132         library functions.
8133         * config/sh/sh-protos.h (function_symbol_result): New struct.
8134         (function_symbol): Return function_symbol_result.
8135         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8136         declarations.
8137         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8138         target hook.
8139         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8140         (sh_option_override): Force -fPIC if FDPIC is in effect.
8141         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8142         UNSPEC_GOTOFFFUNCDESC cases.
8143         (prepare_move_operands): Use FDPIC initial GOT register for
8144         TLS-related GOT access; inhibit cross-section address offset constants
8145         for FDPIC.
8146         (sh_assemble_integer): New function.
8147         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8148         PC-relative call sites.
8149         (expand_ashiftrt): Adapt invocation of function_symbol.
8150         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8151         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8152         UNSPEC_GOTOFFFUNCDESC.
8153         (legitimize_pic_address): Resolve function symbols to function
8154         descriptors for FDPIC.  Do not use GOT-relative addressing for local
8155         data that may be read-only on FDPIC.
8156         (sh_emit_storesi, sh_emit_storehi): New functions.
8157         (sh_trampoline_init): Generate FDPIC trampolines.
8158         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8159         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8160         (sh_output_mi_thunk): Generate FDPIC call.
8161         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
8162         FDPIC, generate call site labels to use PC-relative addressing rather
8163         than GOT-relative addressing.
8164         (sh_conditional_register_usage): Make PIC register fixed and call used
8165         when FDPIC is in effect.
8166         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8167         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8168         sh_get_fdpic_reg_initial_val): New functions.
8169         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8170         Handle -mfdpic.
8171         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8172         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8173         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8174         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8175         FDPIC_SELF_SPECS.
8176         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8177         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8178         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8179         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8180         constants.
8181         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8182         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8183         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8184         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8185         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8186         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8187         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8188         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8189         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8190         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8191         block_move_real, block_lump_real, block_move_real_i4,
8192         block_lump_real_i4): Add support for FDPIC calls.
8193         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8194         call_value_pop): Adjust for new function_symbol signature.
8195         * config/sh/sh.opt (-mfdpic): New option.
8196         * doc/install.texi (Options specification): Document --enable-fdpic.
8197         * doc/invoke.texi (SH Options): Document -mfdpic.
8200 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
8202         PR tree-optimization/65963
8203         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8204         LSHIFT_EXPRs as equivalent MULT_EXPRs.
8206 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8208         PR target/67929
8209         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8210         * config/arm/constraints.md (Dp): Update callsite.
8211         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8213 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8215         * builtins.c (fold_builtin_load_exponent): Rename to...
8216         (fold_const_builtin_load_exponent): ...this and only handle
8217         constant arguments.
8218         (fold_builtin_2): Update accordingly.
8219         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8221 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8223         * builtins.c (fold_builtin_logb): Rename to...
8224         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8225         (fold_builtin_significand): Rename to...
8226         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8227         (fold_builtin_1): Update accordingly.
8229 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8231         * builtins.c (fold_builtin_fmin_fmax): Delete.
8232         (fold_builtin_2): Handle constant fmin and fmax arguments here.
8233         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8235 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
8237         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8238         for register extension into sign and zero register extension.
8239         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8240         for sign and zero register extension.
8241         (cortexa57_addrcost_table): Likewise.
8242         (xgene1_addrcost_table): Likewise.
8244 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8246         * fold-const.c (fold_minmax): Delete.
8247         (fold_binary_loc): Don't call it.
8248         * match.pd: Add rules previously handled by fold_minmax.
8250 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8252         * builtins.c (fold_builtin_fma): Remove constant handling.
8253         (fold_builtin_3): Handle constant fma arguments here.
8255 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8257         * builtins.c (fold_builtin_fabs): Remove constant handling.
8258         (fold_builtin_abs): Likewise.
8260 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8262         * builtins.c (fold_builtin_copysign): Delete.
8263         (fold_builtin_2): Handle constant copysign arguments here.
8264         * match.pd: Add rules previously handled by fold_builtin_copysign.
8266 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8268         * builtins.c (fold_builtin_signbit): Delete.
8269         (fold_builtin_2): Handle constant signbit arguments here.
8270         * match.pd: Add rules previously handled by fold_builtin_signbit.
8272 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8274         * match.pd: Handle sqrt(x) cmp 0 specially.
8276 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
8278         * tree-vect-generic.c (expand_vector_operations_1): Check
8279         optab type before using it.
8281 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8283         * config/aarch64/aarch64-protos.h
8284         (struct tune_params): Add autoprefetcher_model field.
8285         * config/aarch64/aarch64.c: Include params.h
8286         (generic_tunings): Specify autoprefetcher_model value.
8287         (cortexa53_tunings): Likewise.
8288         (cortexa57_tunings): Likewise.
8289         (cortexa72_tunings): Likewise.
8290         (thunderx_tunings): Likewise.
8291         (xgene1_tunings): Likewise.
8292         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8293         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8294         (aarch64_override_options_internal): Set
8295         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8297 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8299         * builtins.c (fold_builtin_exponent): Delete.
8300         (fold_builtin_2): Handle constant expN arguments here.
8301         * match.pd: Fold expN(logN(x)) -> x.
8303 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8305         * builtins.c (fold_builtin_powi): Delete.
8306         (fold_builtin_2): Handle constant powi arguments here.
8307         * match.pd: Add rules previously handled by fold_builtin_powi.
8309 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8311         * builtins.c (fold_builtin_pow): Delete in favor of...
8312         (fold_const_builtin_pow): ...this new function.  Only handle constant
8313         arguments.
8314         (fold_builtin_2): Update accordingly.
8315         * match.pd: Add rules previously handled by fold_builtin_pow.
8317 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8319         * builtins.c (fold_builtin_hypot): Delete.
8320         (fold_builtin_2): Handle constant hypot arguments here.
8321         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
8322         hypot(x, x) to fabs(x)*sqrt(2).
8324 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8326         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8327         instead of make_ssa_name if not yet in SSA form.
8329 2015-10-27  Richard Biener  <rguenther@suse.de>
8331         * cfg.c (free_edge): Add function argument and use it instead of cfun.
8332         (clear_edges): Likewise.
8333         * cfg.h (clear_edges): Adjust prototype.
8334         * cfgexpand.c (pass_expand::execute): Adjust.
8335         * cfgloop.c (release_recorded_exits): Add function argument and use
8336         it instead of cfun.
8337         * cfgloop.h (release_recorded_exits): Adjust prototype.
8338         (loops_state_satisfies_p): Add overload with function argument.
8339         (loops_state_set): Likewise.
8340         (loops_state_clear): Likewise.
8341         (struct loop_iterator): Add function argument to constructor
8342         and iterator and use it instead of cfun.
8343         (FOR_EACH_LOOP_FN): New macro.
8344         (loop_optimizer_finalize): Add overload with function argument.
8345         * loop-init.c (loop_optimizer_init): Adjust.
8346         (fix_loop_structure): Likewise.
8347         (loop_optimizer_finaliz): Add function argument and use it
8348         instead of cfun.
8349         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8350         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8351         * cgraph.c (release_function_body): Do not push/pop cfun.
8352         * final.c (rest_of_clean_state): Adjust.
8353         * graphite.c (graphite_finalize): Likewise.
8354         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8355         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8356         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8357         (tree_unroll_loops_completely): Likewise.
8358         (pass_complete_unrolli::execute): Likewise.
8359         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8360         Add function argument and use it instead of cfun.
8361         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8362         Adjust prototype.
8363         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8364         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8365         instead of cfun.
8366         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8367         * tree-ssanames.c (fini_ssanames): Add function argument and use it
8368         instead of cfun.
8369         * tree-ssanames.c (fini_ssanames): Adjust prototype.
8370         * tree-vrp.c (execute_vrp): Adjust.
8371         * value-prof.c (free_histograms): Add function argument and use it
8372         instead of cfun.
8373         * value-prof.h (free_histograms): Adjust prototype.
8375 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8377         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8378         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8379         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
8381 2015-10-27  Tom de Vries  <tom@codesourcery.com>
8383         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8384         field_type.
8386 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
8388         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8389         (inv_can_prop_to_addr_use): New function.
8390         (record_use): Call can_prop_to_addr_uses, set the new field.
8391         (get_inv_cost): Count cost if inv can't be propagated into its
8392         address uses.
8394 2015-10-26  Doug Evans  <dje@google.com>
8396         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8398 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
8400         * match.pd (fold_widened_comparison): Apply simplifications to all
8401         integral types.
8403 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
8405         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8406         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8407         * doc/tm.texi: Regenerated.
8408         * reorg.c (dbr_schedule): Use new hook.
8409         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8411 2015-10-26  Jeff Law  <law@redhat.com>
8413         PR tree-optimization/68013
8414         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8415         Make sure the first block in the path is in VISITED_BBs.
8417 2015-10-26  Richard Biener  <rguenther@suse.de>
8418         Dominik Vogt  <vogt@linux.vnet.ibm.com>
8420         PR middle-end/67443
8421         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8422         Properly prune ref->ref for accesses outside of ref.
8424 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8426         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8427         new statements to be inserted if inplace.  Allow calls to have
8428         nonempty sequences.
8430 2015-10-26  Richard Biener  <rguenther@suse.de>
8432         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8433         (do_valueize): New function.
8434         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8435         replace_uses_by.
8436         * tree-ssa-threadedge.c: Remove builtins.h include, include
8437         gimple-fold.h
8438         (fold_assignment_stmt): Remove.
8439         (threadedge_valueize): New function.
8440         (record_temporary_equivalences_from_stmts): Use
8441         gimple_fold_stmt_to_constant_1, note additional cleanup
8442         opportunities.
8444 2015-10-26  Richard Biener  <rguenther@suse.de>
8446         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8447         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8449 2015-10-26  Alan Hayward <alan.hayward@arm.com>
8451         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8452         VEC_COND_EXPR types.
8454 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8456         * auto-inc-dec.c (insert_move_insn_before): Delete.
8457         (attempt_change): Remember to cost the simple move in the
8458         FORM_PRE_ADD and FORM_POST_ADD cases.
8460 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8462         PR target/68091
8463         * config/sh/sh.c (sh_vector_mode_supported_p): Use
8464         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8466 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8468         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8469         factored out of ...
8470         (intra_create_variable_infos): ... here.
8472 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8474         * tree-ssa-structalias.c (intra_create_variable_infos): Add
8475         restrict_pointer_p and recursive_restrict_p variables.
8477 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8479         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8480         get_vi_for_tree call.
8482 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8484         PR middle-end/67989
8485         * optabs.c (expand_atomic_compare_and_swap): Handle case when
8486         ptarget_oval or ptarget_bool are const0_rtx.
8488 2015-10-26  Christian Bruel  <christian.bruel@st.com>
8490         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8491         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8492         * cp/method.c (implicitly_declare_fn): Likewise.
8493         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8494         * java/class.c (add_method_1): Likewise.
8496 2015-10-26  Richard Biener  <rguenther@suse.de>
8498         * alloc-pool.h (base_pool_allocator): Use placement new.
8499         (base_pool_allocator::remove): Likewise.  Compute size outside of
8500         flag_checking.
8502 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8504         * builtins.c (do_real_to_int_conversion): New function.
8505         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8506         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8507         arguments here.
8508         * match.pd: Add rules previously handled by fold_fixed_mathfn
8509         and fold_builtin_int_roundingfn.
8511 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8513         * match.pd: Use macros to define built-in operator lists.
8515 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8516             Richard Biener  <rguenther@suse.de>
8518         * genmatch.c (dt_simplify::gen): Skip captures that are
8519         part of the result.
8520         (parser::parse_expr): Allow captures in results too.
8521         * builtins.c (fold_builtin_cexp): Delete.
8522         (fold_builtin_1): Handle constant cexp arguments here.
8523         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8525 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
8527         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8528         conditional compilation.
8529         (base_pool_allocator::remove): Use flag_checking.
8531 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
8533         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8535         PR middle-end/68079
8536         * dojump.c (do_compare_and_jump): Canonicalize both function and
8537         method types.
8539 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
8541         PR target/68084
8542         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8543         for =@ccae.
8545 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8547         PR ipa/pr67600
8548         * ipa-polymorphic-call.c
8549         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8550         instance offset with offset of outer type.
8552 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8554         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8556 2015-10-23  Caroline Tice  <cmtice@google.com>
8558         (from Richard Biener
8559         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
8560         call to iterative_hash_host_wide_int.
8562 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8564         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8565         Define as yes.
8567 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8569         * tree-vect-generic.c (expand_vector_operations_1): Check
8570         optab exists before use it.
8572 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8574         * tree-vect-generic.c (expand_vector_condition): Avoid
8575         uninitialized variable warning.
8577 2015-10-23  Jeff Law  <law@redhat.com>
8579         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8580         here.  Instead...
8581         (execute_todo): Call it here.
8582         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8583         statistics
8584         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8586 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8587             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8589         * config.gcc (enable_secureplt): Add *-linux*-musl*.
8591 2015-10-23  Jeff Law  <law@redhat.com>
8593         PR tree-optimization/67830
8594         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8595         Explicitly verify the mask has no bits outside the type of
8596         the innermost operands.
8598 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8599             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8601         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8602         (MUSL_DYNAMIC_LINKER64): Define.
8603         (GNU_USER_DYNAMIC_LINKER32): Update.
8604         (GNU_USER_DYNAMIC_LINKER64): Update.
8605         (CHOOSE_DYNAMIC_LINKER): Update.
8607         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8608         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8609         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8610         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8611         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8612         (CHOOSE_DYNAMIC_LINKER): Update.
8613         (INCLUDE_DEFAULTS): Redefine.
8615         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8617 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8619         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8620         comparing addresses.
8622 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8624         * fold-const.c (operand_equal_p): Handle matching of vector
8625         constructors.
8627 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8629         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8631 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
8632             Andrew Pinski  <apinski@cavium.com>
8634         PR rtl-optimization/67736
8635         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8636         of gen_lowpart.
8638 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8640         PR middle-end/68066
8641         * tree.c (build_truth_vector_type): Support BLK mode
8642         returned for boolean vector.
8644 2015-10-23  Alan Hayward <alan.hayward@arm.com>
8646         PR tree-optimization/65947
8647         * tree-vect-loop.c
8648         (vect_is_simple_reduction_1): Find condition reductions.
8649         (vect_model_reduction_cost): Add condition reduction costs.
8650         (get_initial_def_for_reduction): Add condition reduction initial var.
8651         (vect_create_epilog_for_reduction): Add condition reduction epilog.
8652         (vectorizable_reduction): Condition reduction support.
8653         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8654         * doc/sourcebuild.texi (Vector-specific attributes): Document
8655         vect_max_reduc
8657 2015-10-23  Richard Biener  <rguenther@suse.de>
8659         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8660         and builtins.def.
8662 2015-10-23  Richard Biener  <rguenther@suse.de>
8663             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8665         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8666         into (A ^ B) - B to match.pd
8667         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8669         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8670         New simplifier.
8671         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8672         New simplifier.
8673         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8674         New simplifier.
8675         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8676         New simplifier.
8677         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8678         INTEGER_CST@1)): New simplifier.
8680 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
8682         * builtins.c (integer_valued_real_p): Move to fold-const.c.
8683         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8684         (fold_builtin_ceil, fold_builtin_round): Delete.
8685         (fold_builtin_1): Handle constant trunc, floor, ceil and round
8686         arguments here.
8687         * convert.c (convert_to_real): Remove narrowing of rounding
8688         functions.
8689         * fold-const.h (integer_valued_real_unary_p)
8690         (integer_valued_real_binary_p, integer_valued_real_call_p)
8691         (integer_valued_real_single_p, integer_valued_real_p): Declare.
8692         * fold-const.c (tree_single_nonnegative_warnv_p): Move
8693         name_registered_for_update_p check to SSA_NAME case statement.
8694         Don't call tree_simple_nonnegative_warnv_p for SSA names.
8695         (integer_valued_real_unary_p, integer_valued_real_binary_p)
8696         (integer_valued_real_call_p, integer_valued_real_single_p)
8697         (integer_valued_real_invalid_p): New functions.
8698         (integer_valued_real_p): Move from fold-const.c and rework
8699         to call the functions above.  Handle SSA names.
8700         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8701         * gimple-fold.c (gimple_assign_integer_valued_real_p)
8702         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8703         (gimple_stmt_integer_valued_real_p): New functions.
8704         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8705         Fold f(x)->x for the same f if x is known to be integer-valued.
8706         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8707         the result.  Canonicalize floor(x) as trunc(x) if x is
8708         nonnegative.
8710 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8712         * tree-ssa-structalias.c (intra_create_variable_infos): Use
8713         make_constraint_from.
8715 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8717         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8718         setting of is_full_var in case of a single field.
8720 2015-10-22  Martin Sebor  <msebor@redhat.com>
8722         PR driver/68043
8723         * config/i386/i386.opt: Add missing periods to the ends of sentences.
8724         * config/msp430/msp430.opt: Same.
8726 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8728         * doc/extend.exp (Global Register Variables): Rewrite.
8730 2015-10-22  Jeff Law  <law@redhat.com>
8732         * genattrtab.c (main): If we do not have any annul-true or annul-false
8733         slots, then write out a dummy eligible_for_annul_true or
8734         eligible_for_annul_false as needed.
8736 2015-10-22  Nick Clifton  <nickc@redhat.com>
8738         * config/msp430/msp430.opt: Add -msilicon-errata and
8739         -msilicon-errata-warn.
8740         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8741         assembler.
8742         * doc/invoke.texi: Document new options.
8744 2015-10-22  Richard Biener  <rguenther@suse.de>
8746         PR tree-optimization/58497
8747         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8748         (expand_vector_operations_1): Use it.  Lower operations on
8749         all uniform vectors to scalar operations if the HW supports it.
8751 2015-10-22  Richard Biener  <rguenther@suse.de>
8753         PR tree-optimization/19049
8754         PR tree-optimization/65962
8755         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8756         to strided accesses if single-element interleaving doesn't work.
8758 2015-10-22  Richard Biener  <rguenther@suse.de>
8760         PR middle-end/68046
8761         PR middle-end/61893
8762         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8763         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8764         (expand_unop): Likewise.
8766 2015-10-22  Richard Biener  <rguenther@suse.de>
8768         * fold-const.c (fold_addr_of_array_ref_difference): Properly
8769         convert operands before folding a MINUS_EXPR.
8770         (fold_binary_loc): Move simplification of MINUS_EXPR on
8771         converted POINTER_PLUS_EXPRs ...
8772         * match.pd: ... here.
8774 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8776         * builtins.c (fold_builtin_tan): Delete.
8777         (fold_builtin_1): Handle constant tan arguments here.
8778         * match.pd: Simplify (tan (atan x)) to x.
8780 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8782         * builtins.c (fold_builtin_cproj): Delete.
8783         (fold_builtin_1): Handle constant arguments here.
8784         (build_complex_cproj): Move and rename to...
8785         * tree.c: (build_complex_inf): ...this.
8786         * tree.h (build_complex_inf): Declare.
8787         * match.pd: Fold cproj(x)->x if x has no infinity.
8788         Use build_complex_inf for existing cproj rules.
8790 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8792         PR target/68015
8793         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8794         already have a comparison result.
8796 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8798         PR target/63304
8799         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8800         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8801         (aarch64_classify_address): Likewise.
8802         (aarch64_secondary_reload): Likewise.
8803         (aarch64_override_options_after_change_1): Adjust.
8804         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8805         Use aarch64_nopcrelative_literal_loads.
8806         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8807         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8808         Declare.
8810 2015-10-21  Martin Sebor  <msebor@redhat.com>
8812         PR driver/68043
8813         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8814         (print_filtered_help): Reference aliased option's name and encourage
8815         readers to use it in preference to the alias if the former is not
8816         documented.  Mention when using an option is diagnosed.
8817         * gcc.c (display_help): End each sentence with a period.
8819         * common.opt: End each sentence that describes an option with
8820         a period.
8821         * config/aarch64/aarch64.opt: Same.
8822         * config/alpha/alpha.opt: Same.
8823         * config/arc/arc.opt: Same.
8824         * config/arm/arm.opt: Same.
8825         * config/avr/avr.opt: Same.
8826         * config/bfin/bfin.opt: Same.
8827         * config/c6x/c6x.opt: Same.
8828         * config/cr16/cr16.opt: Same.
8829         * config/cris/cris.opt: Same.
8830         * config/cris/linux.opt: Same.
8831         * config/darwin.opt: Same.
8832         * config/epiphany/epiphany.opt: Same.
8833         * config/fr30/fr30.opt: Same.
8834         * config/frv/frv.opt: Same.
8835         * config/ft32/ft32.opt: Same.
8836         * config/g.opt: Same.
8837         * config/h8300/h8300.opt: Same.
8838         * config/i386/cygming.opt: Same.
8839         * config/i386/djgpp.opt: Same.
8840         * config/i386/i386.opt: Same.
8841         * config/i386/interix.opt: Same.
8842         * config/i386/mingw-w64.opt: Same.
8843         * config/i386/mingw.opt: Same.
8844         * config/ia64/ia64.opt: Same.
8845         * config/ia64/ilp32.opt: Same.
8846         * config/iq2000/iq2000.opt: Same.
8847         * config/linux.opt: Same.
8848         * config/lm32/lm32.opt: Same.
8849         * config/lynx.opt: Same.
8850         * config/m32c/m32c.opt: Same.
8851         * config/m32r/m32r.opt: Same.
8852         * config/m68k/ieee.opt: Same.
8853         * config/m68k/m68k.opt: Same.
8854         * config/mcore/mcore.opt: Same.
8855         * config/mep/mep.opt: Same.
8856         * config/microblaze/microblaze.opt: Same.
8857         * config/mips/mips.opt: Same.
8858         * config/mmix/mmix.opt: Same.
8859         * config/mn10300/mn10300.opt: Same.
8860         * config/moxie/moxie.opt: Same.
8861         * config/msp430/msp430.opt: Same.
8862         * config/nios2/elf.opt: Same.
8863         * config/nios2/nios2.opt: Same.
8864         * config/nvptx/nvptx.opt: Same.
8865         * config/pa/pa-hpux.opt: Same.
8866         * config/pa/pa-hpux1010.opt: Same.
8867         * config/pa/pa-hpux1111.opt: Same.
8868         * config/pa/pa-hpux1131.opt: Same.
8869         * config/pa/pa.opt: Same.
8870         * config/pa/pa64-hpux.opt: Same.
8871         * config/pdp11/pdp11.opt: Same.
8872         * config/rl78/rl78.opt: Same.
8873         * config/rs6000/476.opt: Same.
8874         * config/rs6000/aix64.opt: Same.
8875         * config/rs6000/darwin.opt: Same.
8876         * config/rs6000/linux64.opt: Same.
8877         * config/rs6000/rs6000.opt: Same.
8878         * config/rs6000/sysv4.opt: Same.
8879         * config/s390/s390.opt: Same.
8880         * config/s390/tpf.opt: Same.
8881         * config/sh/sh.opt: Same.
8882         * config/sol2.opt: Same.
8883         * config/sparc/long-double-switch.opt: Same.
8884         * config/sparc/sparc.opt: Same.
8885         * config/spu/spu.opt: Same.
8886         * config/stormy16/stormy16.opt: Same.
8887         * config/tilegx/tilegx.opt: Same.
8888         * config/tilepro/tilepro.opt: Same.
8889         * config/v850/v850.opt: Same.
8890         * config/vax/vax.opt: Same.
8891         * config/visium/visium.opt: Same.
8892         * config/vms/vms.opt: Same.
8893         * config/vxworks.opt: Same.
8894         * config/xtensa/xtensa.opt: Same.
8896 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8897             Sebastian Pop  <s.pop@samsung.com>
8899         * graphite-scop-detection.c (parameter_index_in_region): Update call to
8900         invariant_in_sese_p_rec.
8901         * graphite-sese-to-poly.c (extract_affine): Same.
8902         * sese.c (invariant_in_sese_p_rec): Pass in an extra
8903         parameter has_vdefs.
8904         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8905         variable depends on virtual definitions in the current region.
8906         * sese.h (invariant_in_sese_p_rec): Update declaration.
8908 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8909             Sebastian Pop  <s.pop@samsung.com>
8911         * graphite-scop-detection.c (build_scops): Do not handle scops
8912         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8913         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8915 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
8917         * config.in: Regenerate.
8918         * configure: Regenerate.
8919         * configure.ac (CHECKING_P): Define.
8920         * system.h: Use CHECKING_P.
8922 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8924         PR ipa/67056
8925         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8926         is negative we don't know the type.
8927         (check_stmt_for_type_change): Skip constructors of non-polymorphic
8928         types as those won't help devirutalization.
8930 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8932         * fold-const.c (operand_equal_p): Add code matching empty constructors.
8934 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8936         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8937         comments.
8938         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8939         Add comments on sign of the result.
8940         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8941         Recurse on operand #1 instead of operand #0.
8942         <CEIL_MOD_EXPR>: Do not recurse.
8943         <ROUND_MOD_EXPR>: Likewise.
8945 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8947         * cfgrtl.c (pass_free_cfg::execute): Adjust.
8948         * final.c (dbr_sequence_length): Always define.
8949         (shorten_branches): Adjust.
8950         * genattr-common.c (main): Always define DELAY_SLOTS.
8951         * genattr.c (main): Unconditionally declare functions and define
8952         macros related to delay slots.
8953         * genattrtab.c (write_eligible_delay): Adjust.
8954         (main): Always write out delay slot functions.
8955         * opts.c (default_options_table): Adjust.
8956         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8957         (redirect_with_delay_list_safe_p): Likewise.
8958         (fill_simple_delay_slots): Likewise.
8959         (fill_slots_from_thread): Likewise.
8960         (make_return_insns): Likewise.
8961         (dbr_schedule): Likewise.
8962         (rest_of_handle_delay_slots): Likewise.
8963         (pass_delay_slots::gate): Likewise.
8964         * toplev.c (process_options): Likewise.
8966 2015-10-21  Richard Henderson  <rth@redhat.com>
8968         * targhooks.c (default_addr_space_pointer_mode): Remove check
8969         for generic address space.
8970         (default_addr_space_address_mode): Likewise.
8971         (default_addr_space_valid_pointer_mode): Likewise.
8972         (default_addr_space_legitimate_address_p): Likewise.
8973         (default_addr_space_legitimize_address): Likewise.
8974         * target.def (addr_space.pointer_mode): Update documentation
8975         of default behavior.
8976         (addr_space.address_mode): Likewise.
8977         * tm.texi: Update.
8979         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8980         address spaces.
8982 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8984         * builtins.c (fold_builtin_cabs): Delete.
8985         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8986         * match.pd: Add rules previously handled by fold_builtin_cabs.
8988 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8990         * fold-const.h (fold_strip_sign_ops): Delete.
8991         * fold-const.c (fold_strip_sign_ops): Likewise.
8992         (fold_unary_loc, fold_binary_loc): Remove calls to it.
8993         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8994         (fold_builtin_ccos): Delete.
8995         (fold_builtin_pow): Don't call fold_strip_sign_ops.
8996         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8997         Remove fndecl argument.
8998         (fold_builtin_1): Update calls accordingly.  Handle constant
8999         cos, cosh, ccos and ccosh here.
9001 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9003         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9004         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9005         * common.opt (fssa-backprop): New option.
9006         * fold-const.h (negate_mathfn_p): Declare.
9007         * fold-const.c (negate_mathfn_p): Make public.
9008         * timevar.def (TV_TREE_BACKPROP): New.
9009         * tree-pass.h (make_pass_backprop): Declare.
9010         * passes.def (pass_backprop): Add.
9011         * gimple-ssa-backprop.c: New file.
9013 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9014             Sebastian Pop  <s.pop@samsung.com>
9016         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9017         Do not call create_empty_if_region_on_edge when cond_expr is true.
9018         (translate_isl_ast_node_for): Check whether a guard has been generated.
9020 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9022         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9023         (operator=): Removed.
9024         (dr_info): Make alias_set number the last argument with default
9025         value of invalid_alias_set.
9026         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9027         of dr_info.
9028         (rewrite_reductions_out_of_ssa): Iterate only through the
9029         basic blocks which are inside region.
9030         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9031         * sese.h (struct sese_l): Removed assignment operator.
9032         (split_region_for_bb): Removed dead code.
9034 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9036         * graphite-poly.h (struct dr_info): Removed conversion constructor.
9037         (struct scop): Renamed scop::region to scop::scop_info
9038         (scop_set_region): Same.
9039         (SCOP_REGION): Removed
9040         (SCOP_CONTEXT): Removed.
9041         (POLY_SCOP_P): Removed.
9042         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9043         Rename scop->region to scop->scop_info.
9044         (add_parameters_to_ivs_params): Same.
9045         (graphite_regenerate_ast_isl): Same.
9046         * graphite-poly.c (new_scop): Same.
9047         (free_scop): Same.
9048         (print_scop_params): Same.
9049         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9050         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9051         (dot_all_scops_1): Rename scop->region to scop->scop_info.
9052         (scop_detection::nb_pbbs_in_loops): Same.
9053         (find_scop_parameters): Same.
9054         (try_generate_gimple_bb): Same.
9055         (gather_bbs::before_dom_children): Same.
9056         (gather_bbs::after_dom_children): Same.
9057         (build_scops): Same.
9058         * graphite-sese-to-poly.c (build_scop_scattering): Same.
9059         (extract_affine_chrec): Same.
9060         (extract_affine): Same.
9061         (set_scop_parameter_dim): Same.
9062         (build_loop_iteration_domains): Same.
9063         (create_pw_aff_from_tree): Same.
9064         (add_param_constraints): Same.
9065         (build_scop_iteration_domain): Same.
9066         (build_scop_drs): Same.
9067         (analyze_drs_in_stmts): Same.
9068         (insert_out_of_ssa_copy_on_edge): Same.
9069         (rewrite_close_phi_out_of_ssa):Same.
9070         (rewrite_reductions_out_of_ssa):Same.
9071         (handle_scalar_deps_crossing_scop_limits):Same.
9072         (rewrite_cross_bb_scalar_deps):Same.
9073         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9074         (build_poly_scop):Same.
9075         (build_alias_set): Use pointer to dr_info.
9076         * graphite.c (print_graphite_scop_statistics):
9077         (graphite_transform_loops):
9078         * sese.h (struct sese_l): Remove conversion constructor.
9080 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9082         PR middle-end/67966
9083         * tree.c (verify_type): Verify that TYPE_MODE match
9084         between TYPE_CANONICAL and type.
9085         * expr.c (store_expr_with_bounds): Revert my previous change.
9086         * expmed.c (store_bit_field_1): Revert prevoius change.
9087         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9088         to match for all types.
9090 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
9092         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9093         nesting.
9095 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9097         * doc/tm.texi: Regenerated.
9098         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9099         * stor-layout.c (layout_type): Use mode to get vector mask size.
9100         * target.def (get_mask_mode): New.
9101         * targhooks.c (default_get_mask_mode): New.
9102         * targhooks.h (default_get_mask_mode): New.
9103         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9104         for boolean vector.
9105         * tree.c (MAX_BOOL_CACHED_PREC): New.
9106         (nonstandard_boolean_type_cache): New.
9107         (build_nonstandard_boolean_type): New.
9108         (make_vector_type): Vector mask has no canonical type.
9109         (build_truth_vector_type): New.
9110         (build_same_sized_truth_vector_type): New.
9111         (truth_type_for): Support vector masks.
9112         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9113         (build_truth_vector_type): New.
9114         (build_same_sized_truth_vector_type): New.
9115         (build_nonstandard_boolean_type): New.
9116         * tree-cfg.c (verify_gimple_comparison) Require boolean
9117         vector type for vector comparison.
9118         (verify_gimple_assign_ternary): Likewise.
9119         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9120         condition operand.
9121         * tree-vect-stmts.c (vectorizable_condition): Use boolean
9122         vector type for vector comparison.
9123         * tree-vect-generic.c (elem_op_func): Add new operand to hold
9124         vector type.
9125         (do_unop): Adjust to modified function type.
9126         (do_binop): Likewise.
9127         (do_plus_minus): Likewise.
9128         (do_negate); Likewise.
9129         (expand_vector_piecewise): Likewise.
9130         (do_cond): Likewise.
9131         (do_compare): Use comparison instead of condition.
9132         (expand_vector_divmod): Use boolean vector type for comparison.
9133         (expand_vector_operations_1): Skip scalar mask operations.
9135 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9137         * omp-low.c (simd_clone_create): Set in_other_partition
9138         for created clones.
9140 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9142         * doc/extend.exp (Local Register Variables): Rewrite.
9144 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9146         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9147         and x*x in cases where the operands are sign ops.  Extend these
9148         rules to handle copysign as a sign op (including for cos, cosh
9149         and pow, which already treated negate and abs as sign ops).
9151 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
9153         PR target/68018
9154         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9155         for 64-bit MS_ABI targets also when default incoming stack boundary
9156         is overriden.
9158 2015-10-21  Richard Biener  <rguenther@suse.de>
9160         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9161         cond stmts, enhanced and split out from ...
9162         (vn_phi_eq): ... here.
9164 2015-10-21  Richard Biener  <rguenther@suse.de>
9166         PR middle-end/68031
9167         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9168         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9169         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
9170         make sure they are not registered for update.
9172 2015-10-21  Richard Biener  <rguenther@suse.de>
9174         PR tree-optimization/68026
9175         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9176         unsigned VARYING values.
9178 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
9180         * asan.c (asan_emit_stack_protection): Don't pass local stack to
9181         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9182         NULL and use local stack than.
9183         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9184         in addition to __asan_init.
9185         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9186         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9187         * asan.h (asan_intercepted_p): Handle new string builtins.
9188         * ubsan.c (ubsan_use_new_style_p): New function.
9189         (ubsan_instrument_float_cast): If location is unknown, assign
9190         input_location to loc. Propagate loc to ubsan_create_data if
9191         ubsan_use_new_style_p returned true.
9193 2015-10-21  Jeff Law  <law@redhat.com>
9195         * Makefile.in (OBJS): Remove sched-vis.c
9196         * sched-vis.c: Removed.  Code moved into...
9197         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
9198         * rtl.h: Remove prototypes for functions now living in print-rtl.c
9199         * print-rtl.h Add prototypes for new functions in print-rtl.c.
9200         * auto-inc-dec.c: Include print-rtl.h
9201         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9202         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9204         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9205         ATTRIBUTE_UNUSED.
9207 2015-10-21  Richard Biener  <rguenther@suse.de>
9208             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9210         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9211         to match.pd.
9212 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9213 about signed left shift stronger and clarify the cases when they're
9214 broken.
9215         Move (a * (1 << b)) is (a << b) to match.pd.
9216         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9217         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9218         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9220         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9221         New simplifier.
9222         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9223         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9224         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9225         : New simplifier.
9226         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9227         New simplifier.
9228         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9230 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
9231             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9232             Alan Modra  <amodra@gmail.com>
9234         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9235         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9236         (LINK_SPEC): Add %(link_secure_plt).
9237         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9238         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9240 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
9241             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9243         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9244         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9246 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9248         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9249         New function.
9250         (fusion_load_store): Use it.
9251         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9252         ldp and stp in VD modes.
9253         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9254         (store_pair<mode>, VD): Likewise.
9256 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
9258         PR rtl-optimization/67609
9259         * lra-splill.c (lra_final_code_change): Don't remove all
9260         sub-registers.
9262 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9264         * simplify-rtx.c (simplify_binary_operation): If either operand was
9265         a constant pool reference use them if all other simplifications failed.
9267 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9269         * config/aarch64/aarch64.md
9270         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9271         * config/aarch64/aarch64-simd.md
9272         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9273         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9274         (aarch64_fpconst_pow_of_2): New function.
9275         (aarch64_vec_fpconst_pow_of_2): Likewise.
9276         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9277         prototype.
9278         (aarch64_vec_fpconst_pow_of_2): Likewise.
9279         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9280         (aarch64_fp_vec_pow2): Likewise.
9282 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
9284         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9285         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
9286         * config/alpha/alpha.c (alpha_function_arg_advance): Update
9287         ALPHA_ARG_SIZE usage.
9288         (alpha_arg_partial_bytes): Ditto.
9290 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9292         PR target/66810
9293         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9294         error_mark_node decls.
9296 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9298         PR target/67963
9299         PR target/67985
9300         * common/config/i386/i386-common.c (ix86_handle_option): Remove
9301         OPT_miamcu handling.
9302         * config/i386/i386.c (PTA_NO_80387): New macro.
9303         (processor_alias_table): Add PTA_NO_80387 to lakemont.
9304         (ix86_option_override_internal): Update MASK_80387 from
9305         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
9306         SSE math only if 80387 is supported.  Don't change
9307         MASK_FLOAT_RETURNS.
9308         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9309         80387 is supported.
9310         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9311         if TARGET_80387 is true and TARGET_IAMCU is false.
9312         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9313         is true and TARGET_IAMCU_P is false.
9315 2015-10-20  Richard Biener  <rguenther@suse.de>
9317         PR tree-optimization/68017
9318         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9320 2015-10-20  Martin Liska  <mliska@suse.cz>
9322         * cgraphclones.c (cgraph_node::create_virtual_clone):
9323         Verify cgraph_node.local.versionable instead of calling
9324         tree_versionable_function_p.
9325         * ipa-cp.c (determine_versionability): Save the information
9326         to ipa_node_params summary.
9327         (ipcp_versionable_function_p): Use it.
9328         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9329         (ipcp_generate_summary): Do not compute cgraph_node
9330         versionability.
9331         * ipa-inline-analysis.c (inline_generate_summary): Compute
9332         versionability for all cgraph nodes.
9333         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9334         ipa_node_params::versionability.
9335         * ipa-prop.h (struct ipa_node_params): Declare it.
9337 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9339         PR other/67868
9340         * varasm.c (assemble_variable): Move special vtv handling to..
9341         (handle_vtv_comdat_sections): .. here. New function.
9342         (output_object_block): Handle vtv sections.
9344 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9346         PR target/66912
9347         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9349 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
9351         * doc/extend.texi: Update documentation WRT inline functions.
9353 2015-10-20  Alan Modra  <amodra@gmail.com>
9355         PR go/66870
9356         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9357         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9358         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9360 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
9362         PR rtl-optimization/66790
9363         * df.h (DF_MIR): New macro.
9364         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9365         (DF_MIR_INFO_BB): New macro.
9366         (DF_MIR_IN, DF_MIR_OUT): New macros.
9367         (struct df_mir_bb_info): New.
9368         (df_mir): New macro.
9369         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9370         declarations.
9371         (df_mir_get_bb_info): New.
9372         * df-problems.c (struct df_mir_problem_data): New.
9373         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9374         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9375         df_mir_confluence_0, df_mir_confluence_n,
9376         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9377         df_mir_bottom_dump, df_mir_verify_solution_start,
9378         df_mir_verify_solution_end): New.
9379         (problem_MIR): New.
9380         (df_mir_add_problem, df_mir_simulate_one_insn): New.
9381         * timevar.def (TV_DF_MIR): New.
9382         * ree.c: Include bitmap.h
9383         (add_removable_extension): Add an INIT_REGS parameter.  Use it
9384         to skip zero-extensions that may get an uninitialized register.
9385         (find_removable_extensions): Compute must-initialized registers
9386         using the MIR dataflow problem. Update the call to
9387         add_removable_extension.
9388         (find_and_remove_re): Call df_mir_add_problem.
9390 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
9392         * common/config/mn10300/mn10300-common.c
9393         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9394         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9396 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
9398         * doc/extend.texi (Explicit Register Variables): Simplify and
9399         avoid unnecessary and confusion abbreviations.  Update cross
9400         references.
9401         doc/implement-c.tex: Update cross reference.
9403 2015-10-19  Jeff Law  <law@redhat.com>
9405         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9406         that create irreducible loops unless the path elimiantes a multiway
9407         branch.
9409 2015-10-19  Richard Biener  <rguenther@suse.de>
9411         PR tree-optimization/67975
9412         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9413         * tree-cfg.c (extract_true_false_controlled_edges): Split out
9414         core worker from ...
9415         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9416         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9417         instead of block number for PHIs with two or one args.
9418         (vn_phi_eq): Compare edge predicates of PHIs that are in different
9419         blocks.
9421 2015-10-19  Richard Biener  <rguenther@suse.de>
9423         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9424         (gimple_stmt_nonnegative_warnv_p): Use it.
9425         * match.pd (CPROJ): New operator list.
9426         (cproj (complex ...)): Move simplifications from ...
9427         * builtins.c (fold_builtin_cproj): ... here.
9429 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9431         * config/i386/i386.c (ix86_expand_vector_move): Use
9432         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9433         alignment.
9435 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9437         * doc/invoke.texi: Replace @optindex with @opindex.
9439 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9441         PR target/67995
9442         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9443         arch= is set,  clear all bits in x_ix86_isa_flags, except for
9444         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9446 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
9448         PR middle-end/68002
9449         * common.opt (fkeep-static-functions): New option.
9450         * doc/invoke.texi: Document it.
9451         * cgraphunit.c (cgraph_node::finalize_function): Use it.
9453 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9455         * sched-int.h (struct autopref_multipass_data_): Remove offset
9456         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
9457         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9458         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
9459         (autopref_rank_data): New function.
9460         (autopref_rank_for_schedule): Use it.
9461         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9463 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
9465         PR other/65800
9466         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9468 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9470         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9471         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
9472         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9473         (STANDARD_STARTFILE_PREFIX_1): New.
9474         (STANDARD_STARTFILE_PREFIX_2): New.
9476 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9478         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9479         (darwin_driver_init): Note a version-min when provided on the c/l.
9480         * config/darwin.h (%darwin_minversion): Remove.
9481         * config/i386/darwin.h: Likewise.
9482         * config/rs6000/darwin.h: Likewise.
9483         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9484         rather than an arbitrary constant.
9486 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9488         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9489         PPC, detect conflicts between -arch and multilib settings.  Detect
9490         and warn about conflicts between multiple -arch definitions.
9492 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9494         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9496 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9498         * lra-constraints.c (add_next_usage_insn): Change argument type
9499         from rtx to rtx_insn *.
9501 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
9503         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9504         for Lakemont.
9506 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
9508         * config/tilepro/gen-mul-tables.cc: Adjust include files.
9509         * config/tilegx/mul-tables.c: Regenerate.
9510         * config/tilepro/mul-tables.c: Regenerate.
9512         * config/tilegx/tilegx-c.c: Adjust include files.
9513         * config/tilegx/tilegx.c: Likewise.
9514         * config/tilepro/tilepro-c.c: Likewise.
9515         * config/tilepro/tilepro.c: Likewise.
9516         * config/aarch64/aarch64-builtins.c: Likewise.
9517         * config/aarch64/aarch64.c: Likewise.
9518         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9519         * config/alpha/alpha.c: Likewise.
9520         * config/arc/arc.c: Likewise.
9521         * config/arm/aarch-common.c: Likewise.
9522         * config/arm/arm-builtins.c: Likewise.
9523         * config/arm/arm-c.c: Likewise.
9524         * config/arm/arm.c: Likewise.
9525         * config/avr/avr-c.c: Likewise.
9526         * config/avr/avr-devices.c: Likewise.
9527         * config/avr/avr-log.c: Likewise.
9528         * config/avr/avr.c: Likewise.
9529         * config/bfin/bfin.c: Likewise.
9530         * config/c6x/c6x.c: Likewise.
9531         * config/cr16/cr16.c: Likewise.
9532         * config/cris/cris.c: Likewise.
9533         * config/darwin-c.c: Likewise.
9534         * config/darwin-driver.c: Likewise.
9535         * config/darwin.c: Likewise.
9536         * config/default-c.c: Likewise.
9537         * config/epiphany/epiphany.c: Likewise.
9538         * config/epiphany/mode-switch-use.c: Likewise.
9539         * config/epiphany/resolve-sw-modes.c: Likewise.
9540         * config/fr30/fr30.c: Likewise.
9541         * config/frv/frv.c: Likewise.
9542         * config/ft32/ft32.c: Likewise.
9543         * config/glibc-c.c: Likewise.
9544         * config/h8300/h8300.c: Likewise.
9545         * config/i386/host-cygwin.c: Likewise.
9546         * config/i386/host-mingw32.c: Likewise.
9547         * config/i386/i386-c.c: Likewise.
9548         * config/i386/i386.c: Likewise.
9549         * config/i386/msformat-c.c: Likewise.
9550         * config/i386/winnt-cxx.c: Likewise.
9551         * config/i386/winnt-stubs.c: Likewise.
9552         * config/i386/winnt.c: Likewise.
9553         * config/ia64/ia64-c.c: Likewise.
9554         * config/ia64/ia64.c: Likewise.
9555         * config/iq2000/iq2000.c: Likewise.
9556         * config/lm32/lm32.c: Likewise.
9557         * config/m32c/m32c-pragma.c: Likewise.
9558         * config/m32c/m32c.c: Likewise.
9559         * config/m32r/m32r.c: Likewise.
9560         * config/mcore/mcore.c: Likewise.
9561         * config/mep/mep-pragma.c: Likewise.
9562         * config/mep/mep.c: Likewise.
9563         * config/microblaze/microblaze-c.c: Likewise.
9564         * config/microblaze/microblaze.c: Likewise.
9565         * config/mips/mips-tables.opt
9566         * config/mips/mips.c: Likewise.
9567         * config/mmix/mmix.c: Likewise.
9568         * config/mn10300/mn10300.c: Likewise.
9569         * config/moxie/moxie.c: Likewise.
9570         * config/msp430/msp430-c.c: Likewise.
9571         * config/msp430/msp430.c: Likewise.
9572         * config/nds32/nds32-cost.c: Likewise.
9573         * config/nds32/nds32-fp-as-gp.c: Likewise.
9574         * config/nds32/nds32-intrinsic.c: Likewise.
9575         * config/nds32/nds32-isr.c: Likewise.
9576         * config/nds32/nds32-md-auxiliary.c: Likewise.
9577         * config/nds32/nds32-memory-manipulation.c: Likewise.
9578         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9579         * config/nds32/nds32-predicates.c: Likewise.
9580         * config/nds32/nds32.c: Likewise.
9581         * config/nios2/nios2.c: Likewise.
9582         * config/nvptx/mkoffload.c: Likewise.
9583         * config/nvptx/nvptx.c: Likewise.
9584         * config/pa/pa.c: Likewise.
9585         * config/pdp11/pdp11.c: Likewise.
9586         * config/rl78/rl78-c.c: Likewise.
9587         * config/rl78/rl78.c: Likewise.
9588         * config/rs6000/host-darwin.c: Likewise.
9589         * config/rs6000/rs6000-c.c: Likewise.
9590         * config/rs6000/rs6000-linux.c: Likewise.
9591         * config/rs6000/rs6000.c: Likewise.
9592         * config/rx/rx.c: Likewise.
9593         * config/s390/s390-c.c: Likewise.
9594         * config/s390/s390.c: Likewise.
9595         * config/sh/sh-c.c: Likewise.
9596         * config/sh/sh-mem.cc: Likewise.
9597         * config/sh/sh.c: Likewise.
9598         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9599         * config/sh/sh_treg_combine.cc: Likewise.
9600         * config/sol2-c.c: Likewise.
9601         * config/sol2-cxx.c: Likewise.
9602         * config/sol2-stubs.c: Likewise.
9603         * config/sol2.c: Likewise.
9604         * config/sparc/sparc-c.c: Likewise.
9605         * config/sparc/sparc.c: Likewise.
9606         * config/spu/spu-c.c: Likewise.
9607         * config/spu/spu.c: Likewise.
9608         * config/stormy16/stormy16.c: Likewise.
9609         * config/v850/v850-c.c: Likewise.
9610         * config/v850/v850.c: Likewise.
9611         * config/vax/vax.c: Likewise.
9612         * config/visium/visium.c: Likewise.
9613         * config/vms/vms-c.c: Likewise.
9614         * config/vms/vms.c: Likewise.
9615         * config/vxworks.c: Likewise.
9616         * config/winnt-c.c: Likewise.
9617         * config/xtensa/xtensa.c: Likewise.
9619 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9621         PR target/67745
9622         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9623         (FUNCTION_BOUNDARY_P): New macro:
9624         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9625         New hook.
9626         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9627         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9628         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9629         * function.c (allocate_struct_function): Call
9630         relayout_function hook.
9631         * passes.c (rest_of_decl_compilation): Likewise.
9633 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9635         PR target/67745
9636         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9637         * config/arm/arm.c (arm_option_override_internal): Call
9638         arm_override_options_after_change_1.
9639         (arm_override_options_after_change): New function.
9640         (arm_override_options_after_change_1): Likewise.
9641         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9643 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9645         Revert:
9646         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9647         empty constructors.
9649 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9651         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9652         argument is an ADDR_EXPR.
9654 2015-10-16  Richard Biener  <rguenther@suse.de>
9656         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9657         and get rid of force_gimple_operand_gsi.
9658         (gimple_fold_builtin_memory_chk): Likewise.
9659         (gimple_fold_builtin_stxcpy_chk): Likewise.
9660         (rewrite_to_defined_overflow): Likewise.
9661         (gimple_convert_to_ptrofftype): New function.
9662         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9664 2015-10-16  Richard Biener  <rguenther@suse.de>
9666         * tree-nested.h (build_addr): Adjust prototype.
9667         * tree-nested.c (build_addr): Remove context argument and use
9668         mark_addressable.
9669         (get_static_chain): Adjust calls to build_addr.
9670         (convert_nl_goto_reference): Likewise.
9671         (convert_tramp_reference_op): Likewise.
9672         (finalize_nesting_tree_1): Likewise.
9673         * value-prof.c (gimple_ic): Likewise.
9674         * gimple-low.c (lower_builtin_setjmp): Likewise.
9675         * tree-parloops.c (take_address_of): Likewise.
9676         (create_call_for_reduction_1): Likewise.
9677         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9678         (gimple_gen_ic_func_profiler): Likewise.
9680 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9682         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9683         empty constructors.
9685 2015-10-16  Michael Collison  <michael.collison@linaro.org>
9686             Andrew Pinski <andrew.pinski@caviumnetworks.com>
9688         * match.pd ((x < y) && (x < z) -> x < min (y,z),
9689         (x > y) and (x > z) -> x > max (y,z))
9691 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
9692             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9694         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9695         (DYNAMIC_LINKER): Renamed to ...
9696         (GLIBC_DYNAMIC_LINKER): This.
9697         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9699 2015-10-15  Marek Polacek  <polacek@redhat.com>
9701         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9702         gimple_call_builtin instead of is_gimple_call.
9704 2015-10-15  Richard Biener  <rguenther@suse.de>
9706         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9708 2015-10-15  Richard Biener  <rguenther@suse.de>
9710         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9711         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9712         * tree-vect-loop.c (get_initial_def_for_induction): Drop
9713         use of force_gimple_operand in favor of gimple_build.
9714         Use vect_get_new_ssa_name.
9715         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9716         (vectorizable_mask_load_store): Likewise.
9717         (vectorizable_call): Likewise.
9718         (vectorizable_store): Likewise.
9719         (vectorizable_load): Likewise.
9720         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9722 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
9724         PR tree-optimization/67945
9725         * tree-pass.h (PROP_gimple_opt_math): New property flag.
9726         * generic-match-head.c (canonicalize_math_p): New function.
9727         * gimple-match-head.c: Include tree-pass.h.
9728         (canonicalize_math_p): New function.
9729         * match.pd: Group math built-in rules into simplifications
9730         and canonicalizations.  Guard the latter with canonicalize_math_p.
9731         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9732         PROP_gimple_opt_math property.
9734 2015-10-15  Marek Polacek  <polacek@redhat.com>
9736         PR tree-optimization/67953
9737         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9739 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
9741         * config.gcc: Recognize "." in architecture base name for AArch64.
9743 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9745         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9746         ROUND_UP macro.
9747         * config/mips/mips.c (mips_setup_incoming_varargs): Use
9748         ROUND_DOWN to calculate off.
9749         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9750         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9751         rounded_size.
9753 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9755         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9757 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
9758             Torvald Riegel  <triegel@redhat.com>
9760         PR target/67281
9761         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9762         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9763         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9764         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9765         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
9766         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9767         trechkpt, treclaim, tsr, ttest): New define_expands.
9768         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9769         __TM_FENCE__ for htm.
9770         * doc/extend.texi: Update documentation for htm builtins.
9772 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9774         PR target/67967
9775         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9776         REG_CFA_EXPRESSION to aligned SSE stores.
9778 2015-10-14  Jeff Law  <law@redhat.com>
9780         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9781         num_threaded_edges for successful FSM threads too.
9783 2015-10-14  Richard Biener  <rguenther@suse.de>
9785         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9786         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
9787         (vect_get_vec_def_for_operand): Remove unused parameter.
9788         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9789         (vect_create_epilog_for_reduction): Likewise.
9790         (vectorizable_reduction): Likewise.
9791         (vectorizable_live_operation): Likewise.
9792         * tree-vect-patterns.c (type_conversion_p): Likewise.
9793         (vect_recog_vector_vector_shift_pattern): Likewise.
9794         (check_bool_pattern): Likewise.
9795         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9796         (vect_analyze_slp_cost_1): Likewise.
9797         * tree-vect-stmts.c (process_use): Likewise.
9798         (vect_get_vec_def_for_operand): Do not handle reductions.
9799         (vect_get_vec_defs): Adjust.
9800         (vectorizable_mask_load_store): Likewise.
9801         (vectorizable_call): Likewise.
9802         (vectorizable_simd_clone_call): Likewise.
9803         (vect_get_loop_based_defs): Likewise.
9804         (vectorizable_conversion): Likewise.
9805         (vectorizable_assignment): Likewise.
9806         (vectorizable_shift): Likewise.
9807         (vectorizable_operation): Likewise.
9808         (vectorizable_store): Likewise.
9809         (vectorizable_load): Likewise.
9810         (vect_is_simple_cond): Likewise.
9811         (vectorizable_condition): Likewise.
9812         (vect_is_simple_use): Remove unused parameters.
9813         (vect_is_simple_use_1): Adjust and rename.
9815 2015-10-14  Richard Biener  <rguenther@suse.de>
9817         PR tree-optimization/67915
9818         * match.pd: Handle comparisons of addresses of STRING_CSTs.
9819         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9820         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9821         stmt folding in favor of GIMPLE one.
9823 2015-10-14  Marek Polacek  <polacek@redhat.com>
9825         PR tree-optimization/67815
9826         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9827         (reassociate_bb): Call it.
9829 2015-10-14  Richard Biener  <rguenther@suse.de>
9831         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9832         Reset info at start.
9833         (vect_analyze_group_access_1): Add debug print.
9834         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9835         (vect_compute_single_scalar_iteration_cost): ... to this.
9836         (vect_analyze_loop_2): Adjust.
9837         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9838         * tree-vectorizer.h: ... here.
9839         (add_stmt_info_to_vec): Remove.
9840         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9842 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9844         * targhooks.c (default_target_option_pragma_parse): Do not warn if
9845         called on behalf of "#pragma GCC pop_options".
9847 2015-10-14  Tom de Vries  <tom@codesourcery.com>
9849         * cfganal.c (verify_no_unreachable_blocks): New function.
9850         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9851         verify_no_unreachable_blocks.
9852         cfganal.h (verify_no_unreachable_blocks): Declare.
9854 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
9856         * common.opt: Add flag_checking.
9857         * system.h (CHECKING_P): Define.
9859 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9860             Aldy Hernandez  <aldyh@redhat.com>
9861             Ilya Verbin  <ilya.verbin@intel.com>
9863         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9864         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9865         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9866         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9867         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9868         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9869         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9870         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9871         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9872         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9873         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9874         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9875         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9876         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9877         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9878         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9879         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9880         (struct cgraph_simd_clone_arg): Adjust comment.
9881         * coretypes.h (struct gomp_ordered): New forward decl.
9882         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9883         set critical clauses to it.
9884         (gimple_build_omp_ordered): Return gomp_ordered * instead of
9885         gimple *.  Add CLAUSES argument, set ordered clauses to it.
9886         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9887         GIMPLE_OMP_ORDERED.
9888         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9889         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9890         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
9891         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9892         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
9893         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9894         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
9895         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9896         renumber
9897         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9898         (gomp_critical): Add clauses field.
9899         (gomp_ordered): New struct.
9900         (is_a_helper <gomp_ordered *>::test): New inline.
9901         (gimple_build_omp_critical): Add CLAUSES argument.
9902         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
9903         instead of gimple *.
9904         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9905         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9906         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9907         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9908         inline functions.
9909         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9910         (dump_gimple_omp_target): Handle enter data and exit data.
9911         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9912         (dump_gimple_omp_critical): Print clauses.
9913         (dump_gimple_omp_ordered): New function.
9914         (dump_gimple_omp_task): Handle taskloop.
9915         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9916         GIMPLE_OMP_ORDERED.
9917         * gimple-walk.c (walk_gimple_op): Walk clauses on
9918         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9919         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9920         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9921         (struct gimplify_omp_ctx): Add loop_iter_var,
9922         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9923         and target_firstprivatize_array_bases fields.
9924         (delete_omp_context): Release loop_iter_var.
9925         (gimplify_bind_expr): Handle ORT_NONE.
9926         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9927         ORT_COMBINED_TARGET.
9928         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9929         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9930         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
9931         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
9932         ctx->target_map_scalars_firstprivate.
9933         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
9934         data sharing clauses.  For data sharing clause with VLA decl
9935         on omp target/target data don't add firstprivate for the pointer.
9936         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9937         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9938         the addition of ORT_COMBINED_TARGET.
9939         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
9940         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
9941         pointers as zero length array sections and
9942         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9943         data sharing.
9944         (omp_check_private): Handle omp_member_access_dummy_var vars.
9945         (find_decl_expr): New function.
9946         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
9947         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9948         Handle OMP_CLAUSE_GANG separately.  Handle
9949         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9950         clauses.  Diagnose linear clause on combined
9951         distribute {, parallel for} simd construct, unless it is the loop
9952         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9953         Handle map clauses with COMPONENT_REF.  Initialize
9954         ctx->target_map_scalars_firstprivate,
9955         ctx->target_firstprivatize_array_bases and
9956         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
9957         linear clause even to target region if combined.  Remove
9958         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9959         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
9960         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9961         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
9962         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9963         For linear clause on worksharing loop combined with parallel add
9964         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
9965         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
9966         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
9967         taskloop if needed.
9968         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9969         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9970         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9971         GOMP_MAP_POINTER.
9972         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
9973         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9974         in target body.  Handle removal of struct mapping if struct is not
9975         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
9976         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
9977         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
9978         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9979         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9980         clause appear together.  Handle
9981         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
9982         clause if it has map-type-modifier always.  Handle
9983         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9984         clauses.
9985         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9986         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9987         callers.
9988         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
9989         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
9990         iterators in doacross loops.
9991         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9992         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
9993         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
9994         for the addition of ORT_COMBINED_TARGET.
9995         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9996         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
9997         and OMP_TARGET_EXIT_DATA.
9998         (gimplify_omp_ordered): New function.
9999         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10000         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
10001         Gimplify clauses on OMP_CRITICAL.
10002         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10003         expand_GOMP_SIMD_ORDERED_END): New functions.
10004         * internal-fn.def (GOMP_SIMD_ORDERED_START,
10005         GOMP_SIMD_ORDERED_END): New internal functions.
10006         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10007         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10008         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10009         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10010         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10011         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10012         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10013         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10014         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10015         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10016         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10017         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10018         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10019         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10020         adjust type.
10021         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10022         GOMP_target_data_41, adjust type.
10023         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10024         GOMP_target_update_41, adjust type.
10025         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10026         field.
10027         (struct omp_for_data): Add ordered and simd_schedule fields.
10028         (omp_member_access_dummy_var, unshare_and_remap_1,
10029         unshare_and_remap, is_taskloop_ctx): New functions.
10030         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10031         (extract_omp_for_data): Handle taskloops and doacross loops
10032         and simd schedule modifier.
10033         (omp_adjust_chunk_size): New function.
10034         (get_ws_args_for): Use it.
10035         (lookup_sfield): Change first argument to splay_tree_key,
10036         add overload with first argument tree.
10037         (maybe_lookup_field): Likewise.
10038         (use_pointer_for_field): Handle omp_member_access_dummy_var.
10039         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10040         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10041         (build_outer_var_ref): Add LASTPRIVATE argument, handle
10042         taskloops and omp_member_access_dummy_var vars.
10043         (build_sender_ref): Change first argument to splay_tree_key,
10044         add overload with first argument tree.
10045         (install_var_field): For mask & 8 use &DECL_UID as key instead
10046         of the tree itself.
10047         (fixup_child_record_type): Const qualify *.omp_data_i.
10048         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10049         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10050         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10051         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10052         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10053         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10054         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10055         kinds.
10056         (add_taskreg_looptemp_clauses): New function.
10057         (scan_omp_parallel): Use it.
10058         (scan_omp_task): Likewise.
10059         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10060         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10061         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10062         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
10063         sandwiched taskloop constructs.  Type check
10064         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
10065         region.  Diagnose depend(source) or depend(sink:...) on
10066         target constructs or task/taskloop.
10067         (handle_simd_reference): Use get_name.
10068         (lower_rec_input_clauses): Likewise.  Ignore all
10069         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10070         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
10071         before passing it to omp_clause_{default,copy}_ctor.  Handle
10072         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
10073         lastprivate_firstprivate flag for linear that needs copyin and
10074         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10075         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10076         on taskloop lookup decl in outer context.  Pass true to
10077         build_outer_var_ref lastprivate argument.  Handle
10078         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10079         outside of outer taskloop for.
10080         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10081         OMP_CLAUSE_DECL.
10082         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10083         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
10084         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
10085         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
10086         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10087         abstract origin.  Handle omp_member_access_dummy_var vars.
10088         (expand_parallel_call): Use expand_omp_build_assign.
10089         (expand_task_call): Handle taskloop construct expansion.  Add
10090         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
10091         integers.  Add priority argument to GOMP_task* calls.  Or in
10092         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10093         GOMP_task call.
10094         (expand_omp_build_assign): Add prototype.  Add AFTER
10095         argument, if true emit statements after *GSI_P and continue linking.
10096         (expand_omp_taskreg): Adjust expand_task_call caller.
10097         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10098         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10099         zero_iter2_bb and first_zero_iter2 arguments, handle computation
10100         of counts even for ordered loops.
10101         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10102         (expand_omp_ordered_source, expand_omp_ordered_sink,
10103         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10104         functions.
10105         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
10106         clauses on worksharing loop.  Handle DOACROSS loop expansion.
10107         (expand_omp_for_static_nochunk): Handle linear clauses on
10108         worksharing loop.  Adjust expand_omp_for_init_counts
10109         callers.
10110         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
10111         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
10112         expand_omp_for_init_counts callers.
10113         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10114         functions.
10115         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10116         Handle doacross loops.
10117         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10118         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
10119         GOMP_target_{41,update_41,enter_exit_data} libcalls.
10120         (expand_omp): Don't expand ordered depend constructs here, record
10121         ord_stmt instead for later expand_omp_for_generic.
10122         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10123         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10124         clause as stand-alone directive.
10125         (lower_omp_ordered_clauses): New function.
10126         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10127         don't lower anything.
10128         (lower_omp_for_lastprivate): Use last _looptemp_ clause
10129         on taskloop for comparison.
10130         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
10131         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10132         expansion for linear adjustments.
10133         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10134         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10135         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
10136         to tree * pointing to the stmt's clauses.
10137         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10138         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10139         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10140         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10141         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10142         clauses.  Always use short kind and 8-bit align shift.
10143         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10144         (struct lower_omp_regimplify_operands_data): New type.
10145         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10146         New functions.
10147         (lower_omp_1): Use lower_omp_regimplify_operands instead of
10148         gimple_regimplify_operands.
10149         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10150         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10151         clause as stand-alone directive.
10152         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10153         (simd_clone_mangle): Mangle the various linear kinds
10154         per the new ABI.
10155         (simd_clone_adjust_argument_types): Handle
10156         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10157         (simd_clone_init_simd_arrays): Don't do anything for uval.
10158         (simd_clone_adjust): Handle
10159         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10160         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10161         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10162         * omp-low.h (omp_member_access_dummy_var): New prototype.
10163         * passes.def (pass_simduid_cleanup): Schedule another copy of the
10164         pass after all optimizations.
10165         * tree.c (omp_clause_code_name): Add entries for
10166         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10167         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10168         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
10169         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10170         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10171         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
10172         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10173         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10174         clauses.
10175         * tree-core.h (enum omp_clause_linear_kind): New.
10176         (struct tree_omp_clause): Change type of map_kind
10177         from unsigned char to unsigned int.  Add subcode.if_modifier
10178         and subcode.linear_kind fields.
10179         (enum omp_clause_code): Add
10180         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10181         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10182         (OMP_CLAUSE_REDUCTION): Document
10183         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10184         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10185         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10186         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
10187         operand.
10188         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
10189         operand.
10190         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10191         codes.
10192         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10193         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10194         char.
10195         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10196         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10197         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10198         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10199         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10200         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10201         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10202         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10203         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10204         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10205         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10206         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10207         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10208         * tree-inline.c (remap_gimple_stmt): Handle clauses on
10209         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
10210         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10211         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10212         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10213         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10214         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10215         (convert_local_omp_clauses): Likewise.
10216         * tree-pretty-print.c (dump_omp_clause): Handle
10217         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10218         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10219         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10220         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10221         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
10222         GOMP_MAP_FORCE_DEALLOC.  Handle
10223         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10224         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10225         and clauses on OMP_ORDERED and OMP_CRITICAL.
10226         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10227         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10228         (vectorize_loops): Adjust comments.
10229         (pass_simduid_cleanup::execute): Likewise.
10230         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10231         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10232         * wide-int.h (wi::gcd): New.
10234 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10236         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10237         (ix86_function_arg_advance): Ditto.
10238         (ix86_function_arg): Ditto.
10239         (ix86_gimplify_va_arg): Ditto.
10240         (ix86_class_max_nregs): Ditto.
10241         (inline_memory_move_cost): Ditto.
10242         (ix86_set_reg_reg_cost): Ditto.
10243         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10245 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
10247         PR middle-end/67912
10248         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10250 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10252         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10253         ROUND_UP macro and UNITS_PER_WORD * 2.
10254         * config/sparc/sparc.c (sparc_compute_frame_size):
10255         Use ROUND_UP and ROUND_DOWN macros where applicable.
10256         (function_arg_record_value, function_arg_record_value_1)
10257         (function_arg_record_value_1): Ditto.
10258         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10259         alignment to double-word.
10260         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10261         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10262         rounded_size.
10264 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
10266         * rtl.h (print_insn): Fix prototype.
10268 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10270         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10271         -1.  Add assert that returned entry matches phi argument.
10272         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10273         free_stmt_vec_info_vec ...
10274         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
10275         with -1.
10277 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
10279         PR tree-optimization/67909, 67947
10280         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10281         really skip the inner loop.
10283 2015-10-13  Jeff Law  <law@redhat.com>
10285         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10286         Allow single block jump threading paths.
10288 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10290         PR tree-optimization/67476
10291         * doc/invoke.texi (@item parloops-schedule): New item.
10292         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10293         * tree-parloops.c: Include params-enum.h.
10294         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10296 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10298         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10299         * params-enum.h: New file.
10300         * opts.c (handle_param): Handle case that param arg is a string.
10301         * params-list.h: Handle DEFPARAMENUM5 in params.def.
10302         * params.c (find_param): New function, factored out of ...
10303         (set_param_value): ... here.
10304         (param_string_value_p): New function.
10305         * params.h (struct param_info): Add value_names field.
10306         (find_param, param_string_value_p): Declare.
10308 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10310         PR tree-optimization/67476
10311         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10313 2015-10-13  Richard Biener  <rguenther@suse.de>
10315         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10316         the data dependence vector.
10317         (vect_peeling_hash_insert): Get the peeling hash table as argument.
10318         (vect_peeling_hash_get_lowest_cost): Likewise.
10319         (vect_enhance_data_refs_alignment): Adjust.
10320         (struct _vect_peel_info, struct _vect_peel_extended_info,
10321         struct peel_info_hasher): Move from ...
10322         * tree-vectorizer.h: ... here.
10323         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10324         (LOOP_VINFO_PEELING_HTAB): Likewise.
10325         (struct _loop_vec_info): Remove min_profitable_iters and
10326         peeling_htab members.
10327         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10328         here.
10329         (destroy_loop_vec_info): Adjust.
10330         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10331         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10332         to estimate alias versioning cost.
10333         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10335 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
10337         * real.h (real_isinteger): Declare.
10338         * real.c (real_isinteger): New function.
10339         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10340         if y is an even integer.
10342 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10344         revert:
10345         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10346         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10347         counts when these are more informative.
10349 2015-10-12  Jeff Law  <law@redhat.com>
10351         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10352         (fsm_find_control_stmt_paths): Change name of first argument to
10353         more accurately relfect what it really is.  Handle simplification
10354         of GIMPLE_COND after finding a thread path for NAME.
10355         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10356         nontrivial conditions to be handled by FSM threader.
10357         (thread_through_normal_block): Extract the name to looup via
10358         FSM threader from COND_EXPR.
10360         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10361         restriction that traced SSA_NAME is a user variable.
10363 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10365         PR tree-optimization/67476
10366         * omp-low.c (expand_omp_for_generic): Add missing phis.
10368 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10370         PR tree-optimization/67476
10371         * omp-low.c (expand_omp_for_generic): Handle simple latch.
10373 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
10375         * config/aarch64/aarch64-simd-builtins.def: Update builtins
10376         tables: add tbl3 and tbx4.
10377         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10378         (aarch64_tbx4v8qi): New.
10379         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10380         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10381         Rewrite using builtin functions.
10382         * config/aarch64/iterators.md (UNSPEC_TBX): New.
10384 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10386         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10387         ROUND_UP macro.
10388         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10389         Use ROUND_UP and ROUND_DOWN macros where applicable.
10390         (rs6000_darwin64_record_arg_flush): Ditto.
10391         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10392         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10393         rounded_size.
10395 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10397         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10398         (AARCH64_ROUND_DOWN): Ditto.
10399         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10401 2015-10-12  Richard Biener  <rguenther@suse.de>
10403         PR ipa/67783
10404         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10405         code that analyzes IVs on each stmt but in a cheaper way avoiding
10406         quadratic behavior.
10408 2015-10-12  Nick Clifton  <nickc@redhat.com>
10410         * config/msp430/msp430.c (msp430_mcu_names): Rename to
10411         msp430_mcu_data, add fields for ISA and hardware multiply
10412         support.  Import latest data from the devices.csv file.
10413         (msp430_override_option): Use the data from the new array.
10414         (msp430_use_f5_series_hwmult): Likewise.
10415         (use_32bit_hwmult): Likewise.
10416         (msp430_no_hwmult): Likewise.
10417         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10418         MCU names.
10419         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10420         not recognised then no hardware multiply support is assumed and
10421         that only the MSP430 ISA is allowed.
10423 2015-10-12  Richard Biener  <rguenther@suse.de>
10425         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10426         related code ...
10427         (vect_analyze_loop_2): ... here.
10429 2015-10-11  Jason Merrill  <jason@redhat.com>
10431         PR c++/67557
10432         * expr.c (store_field): Call store_constructor directly when
10433         storing a CONSTRUCTOR into a target smaller than its type.
10434         Guard against unsafe bitwise copy.
10436 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10438         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10439         counts when these are more informative.
10441 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10443         * tree-profile.c (tree_profiling): Do not clear
10444         pure/const when not instrumenting.
10445         (pass tree_profile): Add dump of symtab.
10447 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10449         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10450         addresses.
10451         (fold_addr_of_array_ref_difference): Likewise.
10453 2015-10-11  Jeff Law  <law@redhat.com>
10455         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10456         tree-ssa-threadbackward.c.
10457         (fsm_find_control_statement_thread_paths): Likewise.
10458         (thread_through_normal_block): Break out FSM bits and move them
10459         into a new function in tree-ssa-threadbackward.c.  Call new function
10460         instead.
10461         Minimize header file usage.
10462         * tree-ssa-threadbackward.h: New file.
10463         * tree-ssa-threadbackward.c: Likewise.
10464         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10466 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
10468         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10470 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
10472         PR rtl-optimization/67864
10473         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10474         fallthrough edges for conditional jumps.  Don't sort candidate
10475         edges if not optimizing for speed.
10477 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10479         * defaults.h (REVERSE_CONDITION): New default definition.
10480         * jump.c (reversed_comparison_code_parts): Adjust.
10482 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10484         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10485         check HARD_FRAME_POINTER_IS_ARG_POINTER.
10487 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10489         * defaults.h (FRAME_ADDR_RTX): New default definition.
10490         * builtins.c (expand_builtin_return_addr): Adjust.
10492 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10494         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10495         * builtins.c (expand_builtin_return_addr): Adjust.
10497 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10499         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10500         * builtins.c (expand_builtin_return_addr): Adjust.
10501         * doc/tm.texi: Likewise.
10502         * doc/tm.texi.in: Likewise.
10503         * except.c (expand_builtin_unwind_init): Likewise.
10505 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10507         * builtins.c (expand_builtin_return_addr): Adjust.
10508         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10510 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10512         * tree.c (type_with_interoperable_signedness): New.
10513         (gimple_canonical_types_compatible_p): Use it.
10514         * tree.h (type_with_interoperable_signedness): Declare
10516 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10518         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10519         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10520         when OEP_ADDRESS_OF is se.
10522 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10523             Sebastian Pop  <s.pop@samsung.com>
10525         * graphite-dependences.c (scop_get_dependences): Add dump of the
10526         data dependence graph.
10527         * graphite-poly.c (print_isl_union_map): New.
10528         (debug_isl_union_map): New.
10529         * graphite-poly.h (print_isl_union_map): Declare.
10530         (debug_isl_union_map): Declare.
10532 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10533             Sebastian Pop  <s.pop@samsung.com>
10535         * graphite-poly.c (print_iteration_domain): Remove verbosity.
10536         Remove OpenScop formatting.
10537         (print_iteration_domains): Same.
10538         (debug_iteration_domain): Same.
10539         (debug_iteration_domains): Same.
10540         (print_pdr): Same.
10541         (debug_pdr): Same.
10542         (dump_gbb_cases): Same.
10543         (dump_gbb_conditions): Same.
10544         (print_pdrs): Same.
10545         (debug_pdrs): Same.
10546         (print_pbb_body): Same.
10547         (print_pbb): Same.
10548         (print_scop_params): Same.
10549         (print_scop_context): Same.
10550         (print_scop): Same.
10551         (debug_pbb_domain): Same.
10552         (debug_pbb): Same.
10553         (debug_scop_context): Same.
10554         (debug_scop): Same.
10555         (debug_scop_params): Same.
10556         * graphite-poly.h: Same.
10557         * graphite.c (graphite_transform_loops): Same.
10559 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10561         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10562         call that isn't needed.
10564 2015-10-09  Jeff Law  <law@redhat.com>
10566         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10567         rather than moving each name to the freelist individually.
10569 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
10571         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10572         * frame-header-opt.c: New file.
10573         * config/mips/mips-proto.h (mips_register_frame_header_opt):
10574         Add prototype.
10575         * config/mips/mips.c (mips_compute_frame_info): Check
10576         optimize_call_stack flag.
10577         (mips_option_override): Register new frame_header_opt pass.
10578         (mips_frame_info, mips_int_mask, mips_shadow_set,
10579         machine_function): Move these types to...
10580         * config/mips/mips.h: here.
10581         (machine_function): Add does_not_use_frame_header and
10582         optimize_call_stack fields.
10583         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10584         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10585         Document new flags.
10586         * config/mips/mips.opt (mframe-header-opt): Add new option.
10588 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
10590         * config/i386/i386.c
10591         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10592         ROUND_DOWN where applicable.
10594 2015-10-09  Jeff Law  <law@redhat.com>
10596         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10597         correct statement.
10599 2015-10-09  Renlin Li  <renlin.li@arm.com>
10601         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10602         operands[0] and operands[2].
10603         (neon_vtrn<mode>_insn): Likewise.
10604         (neon_vzip<mode>_insn): Likewise.
10606 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10608         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10609         ((X & C2) << C1): Expand to...
10610         (X {&,^,|} C2 << C1): ...This.
10611         ((X & C2) >> C1): Expand to...
10612         (X {&,^,|} C2 >> C1): ...This.
10614 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
10616         PR target/67895
10617         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10618         Adjust embedded rounding/SAE specifier position.
10619         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10620         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10621         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10622         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10623         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10624         Likewise.
10625         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10627 2015-10-09  Martin Jambor  <mjambor@suse.cz>
10629         tree-optimization/67794
10630         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10631         between types of state,ents but accept original definitions as a
10632         parameter.
10633         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10634         iterate over definitions.
10636 2015-10-09  James Norris  <jnorris@codesourcery.com>
10638         * config/rs6000/rs6000.c (rs6000_offload_options): New.
10639         (TARGET_OFFLOAD_OPTIONS): New.
10641 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
10643         PR middle-end/67891
10644         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10646         PR middle-end/67766
10647         * function.c (expand_function_end): Move return value
10648         promotion past the handling of PARALLELs and CONCATs.
10650         PR rtl-optimization/67828
10651         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10652         (tree_may_unswitch_on): Don't unswitch on expressions
10653         involving undefined values.
10655 2015-10-09  Richard Biener  <rguenther@suse.de>
10657         * genmatch.c (print_operand): Fix formatting.
10658         (dt_node::append_simplify): Warn for multiple simplifiers
10659         that match the same pattern.
10660         * match.pd (log (exp @0)): Remove duplicates.
10662 2015-10-09  Richard Biener  <rguenth@suse.de>
10664         PR target/67366
10665         * gimple-fold.c (optabs-query.h): Include
10666         (gimple_fold_builtin_memory_op): Allow unaligned stores
10667         when movmisalign_optabs are available.
10669 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10671         PR target/67366
10672         * config/arm/arm.md (movmisalign<mode>): New.
10673         * config/arm/iterators.md (HSI): New.
10675 2015-10-09  Richard Biener  <rguenther@suse.de>
10677         PR tree-optimization/67891
10678         * gimple-match.h (gimple_simplified_result_is_gimple_val):
10679         New helper.
10680         (gimple_resimplify1): Declare.
10681         (gimple_resimplify2): Likewise.
10682         (gimple_resimplify3): Likewise.
10683         * gimple-match-head.c (gimple_resimplify1): Export.
10684         (gimple_resimplify2): Likewise.
10685         (gimple_resimplify3): Likewise.
10686         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10687         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10688         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10689         to avoid creating stmts without VN info.
10691 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
10693         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10694         of availability.
10696 2015-10-08  Jeff Law  <law@redhat.com>
10698         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10699         and release_ssa_name in two places.
10700         (gimple_stringop_fixed_value): Similarly.
10702         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10703         release_defs.
10705         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10706         unlink_stmt_vdef and release_ssa_name_fn.
10708         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10709         release_defs.
10711 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
10713         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10714         SSE register save area to 16 bytes only if the incoming stack
10715         boundary is no less than 16 bytes.
10717 2015-10-08  Jeff Law  <law@redhat.com>
10719         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10720         release_ssa_name.  Fix typo in comment.
10722 2015-10-08  Nathan Sidwell  <nathan@acm.org>
10724         * config/nvptx/nvptx.h (struct machine_function): Add comment.
10725         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10726         may return pointer as well as in memory.
10727         (nvptx_output_return): Likewise.
10729 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10731         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10732         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10733         * match.pd: Add rules previously handled by fold_builtin_sqrt
10734         and fold_builtin_cbrt.
10736 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10738         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10739         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10740         * fold-const.h (tree_unary_nonnegative_warnv_p)
10741         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10742         (tree_expr_nonnegative_warnv_p): Add depth parameters.
10743         * fold-const.c: Include gimple-fold.h and params.h.
10744         (tree_ssa_name_nonnegative_warnv_p): New function.
10745         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10746         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10747         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10748         Add a depth parameter and increment it for recursive calls to
10749         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
10750         to handle SSA names.
10751         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10752         (gimple_stmt_nonnegative_warnv_p): Declare.
10753         * tree-vrp.c (remove_range_assertions): Remove assert that condition
10754         cannot be proven false.
10755         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10756         (gimple_stmt_nonnegative_warnv_p): Move to...
10757         * gimple-fold.c: ...here.  Add depth parameters and pass them
10758         down to the tree routines.  Accept statements that aren't
10759         assignments or calls but just return false for them.
10760         (gimple_val_nonnegative_real_p): Delete.
10761         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10762         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10763         Check HONOR_NANs first.
10765 2015-10-08  Martin Jambor  <mjambor@suse.cz>
10767         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
10768         unnecessary MIN.
10770 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10772         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10773         in the tail of outer-loop.
10775 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
10777         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10778         return UI_NONE.
10780 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10782         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10783         "cfghooks.h", add prototypes for introduced new functions.
10784         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10785         checks on ability of loop unswitching to tree_unswitch_single_loop;
10786         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10787         on innermost loop check.
10788         (tree_unswitch_single_loop): Add all required checks on ability of
10789         loop unswitching under zero recursive level guard.
10790         (tree_unswitch_outer_loop): New function.
10791         (find_loop_guard): Likewise.
10792         (empty_bb_without_guard_p): Likewise.
10793         (used_outside_loop_p): Likewise.
10794         (get_vop_from_header): Likewise.
10795         (hoist_guard): Likewise.
10796         (check_exit_phi): Likewise.
10798 2015-10-08  Marek Polacek  <polacek@redhat.com>
10800         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10801         ops element.
10803 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10805         PR c/65345
10806         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10807         create_tmp_var_raw instead of create_tmp_var.
10809 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
10811         * expr.c (store_expr_with_bounds): Handle aggregate moves from
10812         BLKmode.
10813         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10814         to define gimple type system; compare aggregates only by size.
10816 2015-10-07  Jeff Law  <law@redhat.com>
10818         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10819         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10820         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
10821         unnecessarily.
10823 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10824             Sebastian Pop  <s.pop@samsung.com>
10826         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10827         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10828         (generate_isl_schedule): Same.
10829         * graphite-optimize-isl.c (scop_get_domains): Same.
10830         (apply_schedule_map_to_scop): Same.
10831         * graphite-poly.c (print_iteration_domains): Same.
10832         (remove_gbbs_in_scop): Same.
10833         (new_scop): Same.
10834         (free_scop): Same.
10835         (print_scop): Same.
10836         * graphite-poly.h (struct scop): Rename bbs to pbbs.
10837         (SCOP_BBS): Remove.
10838         * graphite-scop-detection.c (compare_bb_depths): Remove.
10839         (graphite_sort_dominated_info): Remove.
10840         (try_generate_gimple_bb): Move out of scop_detection.
10841         (all_non_dominated_preds_marked_p): Remove.
10842         (build_scop_bbs_1): Remove.
10843         (build_scop_bbs): Remove.
10844         (nb_pbbs_in_loops): Do not use SCOP_BBS.
10845         (find_scop_parameters): Same.
10846         (sese_dom_walker): Rename gather_bbs.
10847         (before_dom_children): Call try_generate_gimple_bb and collect gbb
10848         and pbb.
10849         (build_scops): Call gather_bbs.
10850         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10851         (add_conditions_to_constraints): Same.
10852         (build_scop_iteration_domain): Same.
10853         (build_scop_drs): Same.
10854         (new_pbb_from_pbb): Same.
10855         * sese.c (new_sese_info): Create bbs.
10856         * sese.h (struct sese_info_t): Add bbs.
10858 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
10860         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10861         encoding in 64-bit mode.
10863 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
10865         PR target/66697
10866         * config/i386/i386.c (ix86_option_override_internal): Always use
10867         8-byte minimum stack boundary in 64-bit mode.
10868         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10869         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10870         Add a REG_CFA_EXPRESSION note if needed.
10871         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10872         (ix86_handle_force_align_arg_pointer_attribute): New.
10873         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10874         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10875         with ix86_handle_force_align_arg_pointer_attribute.
10876         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10878 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10879             Sebastian Pop  <s.pop@samsung.com>
10881         * graphite-scop-detection.c (parameter_index_in_region): Remove
10882         use of SESE_ADD_PARAMS.
10883         (find_scop_parameters): Same.
10884         * sese.c (new_sese_info): Same.
10885         * sese.h (struct sese_info_t): Remove add_params.
10886         (SESE_ADD_PARAMS): Remove.
10888 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10889             Sebastian Pop  <s.pop@samsung.com>
10891         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10892         an sese_info_p.
10893         (copy_def): Same.
10894         (copy_internal_parameters): Same.
10895         (translate_isl_ast_to_gimple): Use an sese_l.
10896         (build_iv_mapping): Same.
10897         * graphite-poly.c (new_sese): Rename new_sese_info.
10898         (free_sese): Rename free_sese_info.
10899         * graphite-poly.h (struct scop): Use an sese_info_p.
10900         (scop_set_region): Same.
10901         * graphite-scop-detection.c (struct sese_l): Moved...
10902         (get_entry_bb): Moved...
10903         (get_exit_bb): Moved...
10904         (parameter_index_in_region_1): Use an sese_info_p.
10905         (parameter_index_in_region): Same.
10906         (scan_tree_for_params): Same.
10907         (find_params_in_bb): Same.
10908         (sese_dom_walker): Use an sese_l.
10909         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10910         (reduction_phi_p): Same.
10911         (parameter_index_in_region_1): Use an sese_info_p.
10912         (propagate_expr_outside_region): Use an sese_l.
10913         * graphite.c: Replace uses of SCOP_REGION.
10914         * sese.c (sese_record_loop): Use an sese_info_p.
10915         (build_sese_loop_nests): Same.
10916         (sese_build_liveouts_use): Same.
10917         (sese_build_liveouts_bb): Same.
10918         (sese_build_liveouts_bb): Same.
10919         (sese_bad_liveouts_use): Same.
10920         (sese_reset_debug_liveouts_bb): Same.
10921         (sese_build_liveouts): Same.
10922         (new_sese): Renamed new_sese_info.
10923         (free_sese): Renamed free_sese_info.
10924         (set_rename): Use an sese_info_p.
10925         (graphite_copy_stmts_from_block): Same.
10926         (copy_bb_and_scalar_dependences): Same.
10927         (outermost_loop_in_sese_1): Use an sese_l.
10928         (outermost_loop_in_sese): Same.
10929         (if_region_set_false_region): Use an sese_info_p.
10930         (move_sese_in_condition): Same.
10931         (scalar_evolution_in_region): Use an sese_l.
10932         * sese.h (struct sese_l): ... here.
10933         (SESE_ENTRY): Remove.
10934         (SESE_ENTRY_BB): Remove.
10935         (SESE_EXIT): Remove.
10936         (SESE_EXIT_BB): Remove.
10937         (sese_contains_loop): Use an sese_info_p.
10938         (sese_nb_params): Same.
10939         (bb_in_sese_p): Use an sese_l.
10940         (stmt_in_sese_p): Same.
10941         (defined_in_sese_p): Same.
10942         (loop_in_sese_p): Same.
10943         (sese_loop_depth): Same.
10944         (struct ifsese_s): Use an sese_info_p.
10945         (gbb_loop_at_index): Use an sese_l.
10946         (nb_common_loops): Same.
10947         (scev_analyzable_p): Same.
10949 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10951         * config/i386/i386.c (ix86_conditional_register_usage): Use
10952         CALL_USED_REGISTERS_MASK.
10953         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10955 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10957         PR bootstrap/67385
10958         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10959         * configure: Regenerated.
10961 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10963         PR target/67850
10964         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10965         (ix86_set_current_function): This.
10966         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10968 2015-10-07  Richard Biener  <rguenther@suse.de>
10970         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10971         (vinfo_for_stmt): Adjust.
10972         (set_vinfo_for_stmt): Likewise.
10973         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10974         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10975         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10976         of inner loop.
10977         (vect_analyze_loop_1): Remove.
10978         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10979         inner loop when vectorizing an outer loop by splitting out from ...
10980         (vect_analyze_loop_form): ... here.
10982 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10984         PR c/65345
10985         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10986         Use create_tmp_var_raw instead of create_tmp_var.
10988 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10990         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10991         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10992         * real.c (CACHED_FRACTION): New helper macro.
10993         (dconst_third_ptr): Use it.
10994         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10995         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10996         dconst_sixth.
10997         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10999 2015-10-06  Jeff Law  <law@redhat.com>
11001         PR tree-optimization/67816
11002         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11003         from remove_jump_threads_starting_at.  Accept an edge rather than
11004         a basic block.
11005         * tree-ssa-threadupdate.c (removed_edges): New hash table.
11006         (remove_jump_threads_including): Note edges that get removed from
11007         the CFG for later pruning of jump threading paths including them.
11008         (thread_through_all_blocks): Remove paths which include edges that
11009         have been removed.
11010         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11011         on each outgoing edges when optimizing away a control statement.
11013 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11015         * reorg.c (emit_delay_sequence): Store list of delay slot insns
11016         in a vector instead of rtx_insn_list.
11017         (add_to_delay_list): Likewise.
11018         (delete_from_delay_slot): Likewise.
11019         (optimize_skip): Likewise.
11020         (redirect_with_delay_list_safe_p): Likewise.
11021         (check_annul_list_true_false): Likewise.
11022         (steal_delay_list_from_target): Likewise.
11023         (steal_delay_list_from_fallthrough): Likewise.
11024         (redundant_insn): Likewise.
11025         (fill_simple_delay_slots): Likewise.
11026         (fill_slots_from_thread): Likewise.
11027         (fill_eager_delay_slots): Likewise.
11028         (relax_delay_slots): Likewise.
11030 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
11032         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11033         For -mgpopt=local, also exclude unintialized common symbols.
11034         * doc/invoke.texi (Nios II Options): Document the change.
11036 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11038         * config/aarch64/iterators.md (vwcore): Add missing cases for
11039          V4HF/V8HF modes.
11041 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11042             Sebastian Pop  <s.pop@samsung.com>
11044         * graphite-poly.c (new_scop): Initialize drs.
11045         * graphite-poly.h (struct dr_info): New.
11046         (struct scop): Add drs.
11047         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11048         (pdr_add_memory_accesses): Same.
11049         (build_poly_dr): Same.
11050         (build_alias_set): Same.
11051         (build_scop_drs): Same.
11052         (build_pbb_drs): Remove.
11053         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11054         * tree-data-ref.h (data_reference): Remove alias_set.
11056 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11057             Sebastian Pop  <s.pop@samsung.com>
11059         * graphite-poly.c (free_data_refs_aux): Remove.
11060         (free_gimple_poly_bb): Do not call free_data_refs_aux.
11061         * graphite-poly.h (struct base_alias_pair): Remove.
11062         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11063         base_alias_pair and dr->aux.
11064         (build_alias_set): Same.
11065         * tree-data-ref.c (create_data_ref): Initialize alias_set.
11066         * tree-data-ref.h (data_reference): Add alias_set.
11068 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11069             Sebastian Pop  <s.pop@samsung.com>
11071         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11072         Do not set PDR_BASE_OBJECT_SET.
11073         * graphite-poly.h (poly_dr): Same.
11074         (PDR_BASE_OBJECT_SET): Remove.
11075         (new_poly_dr): Update decl.
11076         * graphite-sese-to-poly.c (build_poly_dr): Update call to
11077         new_poly_dr.
11078         (write_alias_graph_to_ascii_dimacs): Remove.
11079         (write_alias_graph_to_ascii_dot): Remove.
11080         (write_alias_graph_to_ascii_ecc): Remove.
11081         (dr_same_base_object_p): Remove.
11082         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
11083         code.
11084         (build_base_obj_set_for_drs): Remove.
11085         (dump_alias_graphs): Remove.
11086         (build_scop_drs): Remove dead code.
11088 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11089             Peter Bergner  <bergner@vnet.ibm.com>
11091         PR target/67808
11092         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11093         allow registers, but provide insns for the combiner to create for
11094         loads from memory. Separate VSX code from non-VSX code. For
11095         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11096         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11097         so that registers come before memory operations. Drop support from
11098         converting DFmode to TFmode, if the DFmode value is in a GPR
11099         register.
11100         (extenddftf2_fprs): Likewise.
11101         (extenddftf2_internal): Likewise.
11102         (extenddftf2_vsx): Likewise.
11103         (extendsftf2): In the expander, only allow registers, but provide
11104         insns for the combiner to create for stores and loads.
11106 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11108         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11109         from the decl parameter.
11111 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
11113         PR 67861
11114         * gimple-fold.c (gimple_fold_builtin): Add break after
11115         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11117 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
11119         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11120         to scop->isl_context.
11122 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11124         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11125         (output_probe_stack_range): Rotate the loop and simplify.
11126         (thumb1_expand_prologue): Tweak sorry message.
11127         * config/arm/arm.md (probe_stack): Use bare string.
11129 2015-10-06  Nick Clifton  <nickc@redhat.com>
11131         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11133 2015-10-06  Nick Clifton  <nickc@redhat.com>
11135         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11136         (ATTR_PERSIST): New constant.
11137         (msp430_data_attr): New function - verifies an attribute that only
11138         applies to variables.
11139         (msp430_attributes): Add noinit and persistent attributes.
11140         (noinit_section): New variable.
11141         (presis_section): New variable.
11142         (TARGET_ASM_INIT_SECTIONS): Define.
11143         (msp430_init_sections): New function - initialises the noinit and
11144         persist section variables.
11145         (msp430_select_section): Add support for noinit and persist
11146         attributes.
11147         (msp430_section_type_flags): Likewise.
11148         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
11149         and persistent attributes.
11151 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11152             Sebastian Pop  <s.pop@samsung.com>
11154         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11155         (no_violations): Remove.
11156         (subtract_commutative_associative_deps): Remove.
11157         (compute_deps): Do not call subtract_commutative_associative_deps.
11158         (transform_is_safe): Remove.
11159         (graphite_legal_transform): Remove.
11160         * graphite-poly.h (graphite_legal_transform): Remove.
11162 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
11164         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11165         which are in this region are passed so gcc_assert and remove redundant
11166         computation.
11167         * sese.c (sese_build_liveouts): Pass only those bbs which are not
11168         in region.
11169         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11170         gcc_assert on that and remove unnecessary computation.
11171         (sese_build_liveouts_use): Same.
11173 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11175         * graphite-dependences.c (scop_get_reads): Renamed scop->context
11176         to scop->param_context.
11177         (scop_get_must_writes): Same.
11178         (scop_get_may_writes): Same.
11179         (scop_get_original_schedule): Same.
11180         (scop_get_transformed_schedule): Same.
11181         (subtract_commutative_associative_deps): Same.
11182         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11183         (generate_isl_context): Same.
11184         (generate_isl_schedule): Same.
11185         (scop_to_isl_ast): Same.
11186         (graphite_regenerate_ast_isl): Same.
11187         * graphite-optimize-isl.c (scop_get_domains): Same.
11188         (optimize_isl): Renamed scop->context to scop->param_context.
11189         * graphite-poly.c (new_poly_bb): Change the type of argument to
11190         gimple_poly_bb_p.
11191         (new_scop): Renamed scop->context to scop->param_context.
11192         (free_scop): Same.
11193         (print_scop_context): Same.
11194         * graphite-poly.h (new_poly_dr): Change the type of argument from
11195         void* to data_reference_p.
11196         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11197         (new_poly_bb): Change the type of argument from void* to
11198         gimple_poly_bb_p.
11199         (pbb_set_black_box): Same.
11200         (struct scop): Rename context to param_context, ctx to isl_context.
11201         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11202         Move declarations closer to assignment.
11203         (find_params_in_bb): Same.
11204         (find_scop_parameters): Same.
11205         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11206         Global to be used for statement IDs.
11207         (isl_id_for_pbb): Use ssa_name_version_typesize.
11208         (simple_copy_phi_p): Move declarations closer to assignment.
11209         (build_pbb_scattering_polyhedrons): Same.
11210         (build_scop_scattering): Same.
11211         (isl_id_for_ssa_name): Same.
11212         (extract_affine_name): Same.
11213         (extract_affine_int): Same.
11214         (extract_affine): Same.
11215         (set_scop_parameter_dim): Use renamed member.
11216         (build_loop_iteration_domains): Same.
11217         (add_param_constraints): Same.
11218         (build_scop_iteration_domain): Same.
11219         (pdr_add_data_dimensions): Same.
11220         (build_poly_dr): Same.
11221         (build_scop_drs): Move declarations closer to assignment.
11222         (analyze_drs_in_stmts): Same.
11223         (insert_out_of_ssa_copy): Same.
11224         (insert_out_of_ssa_copy_on_edge): Same.
11225         (propagate_expr_outside_region): Same.
11226         (rewrite_phi_out_of_ssa): Same.
11227         (rewrite_degenerate_phi): Same.
11228         (rewrite_reductions_out_of_ssa): Same.
11229         (rewrite_cross_bb_scalar_dependence): Same.
11230         (handle_scalar_deps_crossing_scop_limits): Same.
11231         (rewrite_cross_bb_scalar_deps): Same.
11232         * graphite.c (graphite_transform_loops): Use renamed member.
11234 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
11236         PR c/65345
11237         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11238         create_tmp_var_raw instead of create_tmp_var.
11240 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11242         PR c/65345
11243         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11244         Use create_tmp_var_raw instead of create_tmp_var.
11246 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
11248         PR target/67849
11249         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11250         split for upper-bank registers when target does not support
11251         AVX512VL.
11252         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11253         split when target does not support AVX512VL.
11255 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
11257         PR c/65345
11258         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11259         Adjust to use create_tmp_var_raw instead of create_tmp_var.
11261 2015-10-06  Nick Clifton  <nickc@redhat.com>
11263         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11264         multiplication.
11266 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11268         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11269         (case ${target}): Add znver1.
11270         * config/i386/cpuid.h(bit_CLZERO):  Define.
11271         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11272         -march=native recognize znver1 processors.
11273         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11274         znver1, clzero def_and_undef.
11275         * config/i386/i386.c (struct processor_costs znver1_cost): New.
11276         (m_znver1): New definition.
11277         (m_AMD_MULTIPLE): Includes m_znver1.
11278         (processor_target_table): Add znver1 entry.
11279         (ix86_target_string) : Add clzero entry.
11280         (static const char *const cpu_names): Add znver1 entry.
11281         (ix86_option_override_internal): Add znver1 instruction sets.
11282         (PTA_CLZERO) :  New definition.
11283         (ix86_option_override_internal): Handle new clzerooption.
11284         (ix86_issue_rate): Add znver1.
11285         (ix86_adjust_cost): Add znver1.
11286         (ia32_multipass_dfa_lookahead): Add znver1.
11287         (has_dispatch): Add znver1.
11288         * config/i386/i386.h (TARGET_znver1): New definition.
11289         (TARGET_CLZERO): Define.
11290         (TARGET_CLZERO_P): Define.
11291         (struct ix86_size_cost): Add TARGET_ZNVER1.
11292         (enum processor_type): Add PROCESSOR_znver1.
11293         * config/i386/i386.md (define_attr "cpu"): Add znver1.
11294         (set_attr znver1_decode): New definitions for znver1.
11295         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11296         (mclzero): New.
11297         * config/i386/mmx.md (set_attr znver1_decode): New definitions
11298         for znver1.
11299         * config/i386/sse.md (set_attr znver1_decode): Likewise.
11300         * config/i386/x86-tune.def:  Add znver1 tunings.
11301         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11302         * doc/invoke.texi: Add details about znver1
11304 2015-10-06  Richard Biener  <rguenther@suse.de>
11306         PR tree-optimization/67859
11307         * tree-ssa-pre.c (create_expression_by_pieces): Properly
11308         discard not inserted stmts.
11310 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
11312         * doc/extend.texi (Template Instantiation): Reorder options and
11313         de-emphasize -frepo.
11314         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11315         example instead of -frepo.
11317 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11319         PR c/65345
11320         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11321         use create_tmp_var_raw rather than create_tmp_var.
11323 2015-10-06  Richard Biener  <rguenther@suse.de>
11325         * tree-vectorizer.h (vec_info): New base class for...
11326         (_loop_vec_info): ... this and ...
11327         (_bb_vec_info): ... this.
11328         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11329         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11330         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11331         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11332         vect_destroy_datarefs): Adjust interface to take a vec_info *
11333         rather than both a loop_vec_info and a bb_vec_info argument.
11334         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11335         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11336         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11337         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11338         accordingly.
11339         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11340         (destroy_loop_vec_info, vect_analyze_loop_2,
11341         vect_is_simple_reduction_1, get_initial_def_for_induction,
11342         vect_create_epilog_for_reduction, vectorizable_reduction,
11343         vectorizable_live_operation, vect_transform_loop): Adjust.
11344         * tree-vect-patterns.c (type_conversion_p,
11345         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11346         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11347         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11348         check_bool_pattern, vect_recog_bool_pattern,
11349         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11350         * tree-vect-slp.c (vect_get_and_check_slp_defs,
11351         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11352         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11353         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11354         (new_bb_vec_info): Initialize base classs.
11355         * tree-vect-stmts.c (record_stmt_cost, process_use,
11356         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11357         vectorizable_mask_load_store, vectorizable_call,
11358         vectorizable_simd_clone_call, vectorizable_conversion,
11359         vectorizable_assignment, vectorizable_shift,
11360         vectorizable_operation, vectorizable_store,
11361         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11362         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11363         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11365 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11367         PR c/65345
11368         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11369         create_tmp_var_raw rather than create_tmp_var.
11371 2015-10-05  Marek Polacek  <polacek@redhat.com>
11373         * tree-ssa-loop-im.c
11374         (move_computations_dom_walker::before_dom_children): Don't set
11375         SSA_NAME_ANTI_RANGE_P.
11376         * tree-ssa-phiopt.c (value_replacement): Likewise.
11378 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11379             Sebastian Pop  <s.pop@samsung.com>
11381         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11383 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11384             Sebastian Pop  <s.pop@samsung.com>
11386         * graphite-poly.c (new_gimple_poly_bb): ... here.
11387         (free_data_refs_aux): ... here.
11388         (free_gimple_poly_bb): ... here.
11389         (remove_gbbs_in_scop): ... here.
11390         (new_scop): Call new_sese.
11391         (free_scop): Call remove_gbbs_in_scop and free_sese.
11392         * graphite-poly.h (base_alias_pair): ... here.
11393         (new_gimple_poly_bb): Declare.
11394         (free_gimple_poly_bb): Declare.
11395         * graphite-scop-detection.c (parameter_index_in_region_1):
11396         (parameter_index_in_region): ... here.
11397         (scan_tree_for_params): ... here.
11398         (find_params_in_bb): ... here.
11399         (find_scop_parameters): ... here.
11400         (build_scops): Call find_scop_parameters.
11401         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11402         (free_scops): Move...
11403         (single_pred_cond_non_loop_exit): Move...
11404         (sese_dom_walker::before_dom_children): Move...
11405         (sese_dom_walker::after_dom_children): Move...
11406         (build_poly_scop): Move...
11407         * graphite-sese-to-poly.h (base_alias_pair): Move...
11408         * graphite.c (free_scops): ... here.
11410 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11411             Sebastian Pop  <s.pop@samsung.com>
11413         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11414         (trivially_empty_bb_p): Move...
11415         (same_close_phi_node): Move...
11416         (new_gimple_poly_bb): Move...
11417         (compare_bb_depths): Move...
11418         (graphite_sort_dominated_info): Move...
11419         (remove_duplicate_close_phi): Move...
11420         (make_close_phi_nodes_unique): Move...
11421         (canonicalize_loop_closed_ssa): Move...
11422         (canonicalize_loop_closed_ssa_form): Move...
11423         (loop_ivs_can_be_represented): Move...
11424         (single_pred_cond_non_loop_exit): Move...
11425         (graphite_can_represent_init): Move...
11426         (graphite_can_represent_scev): Move...
11427         (stmt_has_simple_data_refs_p): Move...
11428         (stmt_has_side_effects):  Move...
11429         (graphite_can_represent_stmt): Move...
11430         (scop_detection): ... here.
11431         (sese_dom_walker): ... and here.
11432         (build_scops): Call all moved functions.
11433         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11434         (all_non_dominated_preds_marked_p): Move...
11435         (build_scop_bbs_1): Move...
11436         (build_scop_bbs): Move...
11437         (set_scop_parameter_dim): Move...
11438         (nb_pbbs_in_loops): Move...
11439         (build_poly_scop): Do not call all the moved functions.
11441 2015-10-05  Martin Jambor  <mjambor@suse.cz>
11442             Jan Hubicka  <hubicka@ucw.cz>
11444         * ipa-cp.c (ipcp_alignment_lattice): New type.
11445         (ipcp_param_lattices): Use the above to represent alignment.
11446         (ipcp_alignment_lattice::print): New function.
11447         (print_all_lattices): Use it to print alignment information.
11448         (ipcp_alignment_lattice::top_p): New function.
11449         (ipcp_alignment_lattice::bottom_p): Likewise.
11450         (ipcp_alignment_lattice::set_to_bottom): Likewise.
11451         (ipcp_alignment_lattice::meet_with_1): Likewise.
11452         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11453         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11454         (initialize_node_lattices): Likewise.
11455         (propagate_alignment_accross_jump_function): Work with the new class
11456         for alignment lattices.
11457         (propagate_constants_accross_call): Pass only the alignment lattice to
11458         propagate_alignment_accross_jump_function.
11459         (ipcp_store_alignment_results): Work with the new class for alignment
11460         lattices.
11462 2015-10-05  Marek Polacek  <polacek@redhat.com>
11464         PR tree-optimization/67821
11465         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11467 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
11469         PR other/65021
11470         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11471         function to...
11472         (mkoffload_cleanup): ... this.  Adjust all users.
11473         (maybe_unlink): Look at save_temps and verbose flags instead of
11474         debug flag.
11475         (main): Parse "-save-temps" flag.
11476         (generate_target_descr_file, generate_target_offloadend_file)
11477         (generate_host_descr_file, prepare_target_image): Pass it on.
11478         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11479         (mkoffload_cleanup): New function.
11480         (maybe_unlink): Look at save_temps and verbose flags instead of
11481         debug flag.
11482         (main): Instead of calling utils_cleanup, register atexit handler
11483         for mkoffload_cleanup.
11484         (main): Parse "-save-temps" flag.
11485         (compile_native, main): Pass it on.
11486         * lto-wrapper.c (compile_offload_image): Likewise.
11488 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11490         * gimple.h (gimple_op_ptr): Require a non const gimple *.
11491         (gimple_assign_lhs_ptr): Likewise.
11492         (gimple_assign_rhs1_ptr): Likewise.
11493         (gimple_assign_rhs2_ptr): Likewise.
11494         (gimple_assign_rhs3_ptr): Likewise.
11495         (gimple_call_lhs_ptr): Likewise.
11496         (gimple_call_fn_ptr): Likewise.
11497         (gimple_call_chain_ptr): Likewise.
11498                 (gimple_call_arg_ptr): Likewise.
11499                 (gimple_cond_lhs_ptr): Likewise.
11500         (gimple_cond_rhs_ptr): Likewise.
11501         (gimple_switch_index_ptr): Likewise.
11502         (gimple_return_retval_ptr): Likewise.
11504 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11506         * gimple.h (gimple_asm_input_op_ptr): Remove.
11507         (gimple_asm_output_op_ptr): Likewise.
11509 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11511         * gimple.h (gimple_location_ptr): Remove.
11512         * tree-vrp.c (check_all_array_refs): Adjust.
11514 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11516         * tree-ssa-operands.c (build_uses): store tree * instead of
11517         tree.
11518         (finalize_ssa_uses): Adjust.
11519         (append_use): Likewise.
11520         (verify_ssa_operands): Likewise.
11522 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11524         * real.h (build_real_truncate): Declare.
11525         * tree.c (build_real_truncate): New function.
11526         (strip_float_extensions): Use it.
11527         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11528         (fold_builtin_hypot, fold_builtin_pow): Likewise.
11529         * match.pd: Likewise.
11531 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11532            Jiong Wang  <jiong.wang@arm.com>
11534         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11536 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11538         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11539         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11540         (aarch64_print_operand, aarch64_float_const_representable_p)
11541         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11542         instead of REAL_VALUE_FROM_CONST_DOUBLE.
11543         * config/arc/arc.c (arc_print_operand): Likewise.
11544         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11545         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11546         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11547         Likewise.
11548         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11549         (consttable_16): Likewise.
11550         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11551         * config/avr/avr.c (avr_print_operand): Likewise.
11552         * config/bfin/bfin.md: Likewise (in a define_split).
11553         * config/c6x/c6x.md: Likewise (in a define_split).
11554         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11555         (cr16_print_operand): Likewise.
11556         * config/cris/cris.c (cris_print_operand): Likewise.
11557         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11558         * config/fr30/fr30.c (fr30_print_operand): Likewise.
11559         (fr30_const_double_is_zero): Likewise.
11560         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11561         * config/frv/frv.md: Likewise (in a define_split).
11562         * config/frv/predicates.md (int_2word_operand): Likewise.
11563         * config/h8300/h8300.c (h8300_print_operand): Likewise.
11564         * config/i386/i386.c (standard_80387_constant_p): Likewise.
11565         (ix86_print_operand, ix86_split_to_parts): Likewise.
11566         * config/i386/i386.md: Likewise (in a define_split).
11567         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11568         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11569         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11570         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11571         (print_operand): Likewise.
11572         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11573         * config/mep/mep.md: Likewise (in define_split).
11574         * config/microblaze/microblaze.c (microblaze_const_double_ok)
11575         (print_operand): Likewise.
11576         * config/mips/mips.md (consttable_float): Likewise.
11577         * config/mmix/mmix.c (mmix_intval): Likewise.
11578         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11579         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11580         * config/pa/pa.c (pa_singlemove_string): Likewise.
11581         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11582         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11583         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11584         (output_toc): Likewise.
11585         * config/rs6000/rs6000.md: Likewise (in define_splits).
11586         * config/rx/rx.c (rx_print_operand): Likewise.
11587         * config/s390/s390.c (s390_output_pool_entry): Likewise.
11588         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11589         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11590         (and also in define_splits).
11591         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11592         (fp_high_losum_p): Likewise.
11593         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11594         (*movsf_high): Likewise.
11595         * config/spu/spu.c (const_double_to_hwint): Likewise.
11596         * config/v850/v850.c (const_double_split): Likewise.
11597         * config/vax/vax.c (vax_float_literal): Likewise.
11598         * config/visium/visium.c (visium_expand_copysign): Likewise.
11599         * config/visium/visium.md: Likewise (in define_split).
11600         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11601         * config/xtensa/xtensa.c (print_operand): Likewise.
11602         (xtensa_output_literal): Likewise.
11603         * cprop.c (implicit_set_cond_p): Likewise.
11604         * dwarf2out.c (insert_float): Likewise.
11605         * expmed.c (expand_mult, make_tree): Likewise.
11606         * expr.c (compress_float_constant): Likewise.
11607         * rtlanal.c (split_double): Likewise.
11608         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11609         (simplify_const_unary_operation, simplify_binary_operation_1)
11610         (simplify_const_binary_operation): Likewise.
11611         (simplify_const_relational_operation): Likewise.
11612         * varasm.c (output_constant_pool_2): Likewise.
11614 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11616         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11617         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11618         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11619         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11620         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11621         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11622         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11623         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11624         (ix86_emit_swsqrtsf): Likewise.
11625         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11626         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11627         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11628         * config/pa/pa.c (pa_expand_builtin): Likewise.
11629         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11630         (rs6000_scale_v2df): Likewise.
11631         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11632         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11633         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11634         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11635         (vec_ctul): Likewise.
11636         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11637         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11638         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11639         * cse.c (fold_rtx): Likewise.
11640         * emit-rtl.c (immed_double_const): Likewise (in comments).
11641         (init_emit_once): Likewise.
11642         * expr.c (compress_float_constant, expand_expr_real_1)
11643         (const_vector_from_tree): Likewise.
11644         * optabs.c (expand_float, expand_fix): Likewise.
11645         * reg-stack.c (reg_to_stack): Likewise.
11646         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11647         (simplify_const_unary_operation, simplify_binary_operation_1)
11648         (simplify_const_binary_operation, simplify_relational_operation)
11649         (simplify_immed_subreg): Likewise.
11651 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11653         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11654         * doc/tm.texi: Regenerate.
11655         * real.h (REAL_ARITHMETIC): Delete.
11656         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11657         (ix86_expand_round_sse4): Use real_arithmetic instead of
11658         REAL_ARITHMETIC.
11659         * config/i386/sse.md (round<mode>2): Likewise.
11660         * rtl.h (rtx_to_tree_code): Likewise (in comment).
11661         * explow.c (rtx_to_tree_code): Likewise (in comment).
11662         * match.pd: Likewise.
11663         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11664         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11665         (expand_pow_as_sqrts): Likewise.
11666         * tree-pretty-print.c (dump_generic_node): Remove code that
11667         was conditional on REAL_ARITHMETIC being undefined.
11669 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11671         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11672         * doc/tm.texi: Regenerate.
11673         * real.h (real_less): Declare.
11674         (REAL_VALUES_LESS): Delete.
11675         * real.c (real_less): New function.
11676         (real_compare): Use it.
11677         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11678         of REAL_VALUES_LESS.
11679         * config/microblaze/microblaze.c (microblaze_const_double_ok):
11680         Likewise.
11681         * fold-const.c (fold_convert_const_int_from_real): Likewise.
11682         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11683         (simplify_const_relational_operation): Likewise.
11684         * tree-call-cdce.c (check_pow): Likewise.
11685         (gen_conditions_for_pow_cst_base): Likewise.
11687 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11689         * real.h (REAL_VALUES_IDENTICAL): Delete.
11690         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11691         instead of REAL_VALUES_IDENTICAL.
11692         * fold-const.c (operand_equal_p): Likewise.
11693         * ipa-icf.c (sem_variable::equals): Likewise.
11694         * tree-complex.c (some_nonzerop): Likewise.
11695         (expand_complex_multiplication): Likewise.
11696         * tree.c (simple_cst_equal): Likewise.
11697         * varasm.c (compare_constant): Likewise.
11699 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11701         * real.h (real_equal): Declare.
11702         (REAL_VALUES_EQUAL): Delete.
11703         * real.c (real_equal): New function.
11704         (real_compare): Use it.
11705         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11706         * doc/tm.texi: Regenerate.
11707         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11708         real_equal instead of REAL_VALUES_EQUAL.
11709         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11710         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11711         (fp_const_from_val): Likewise.
11712         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11713         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11714         (floating_exact_log2): Likewise.
11715         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11716         * config/vax/vax.c (vax_float_literal): Likewise.
11717         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11718         * cprop.c (implicit_set_cond_p): Likewise.
11719         * expmed.c (expand_mult): Likewise.
11720         * fold-const.c (const_binop): Likewise.
11721         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11722         (simplify_const_binary_operation): Likewise.
11723         (simplify_const_relational_operation): Likewise.
11724         * tree-call-cdce.c (check_pow): Likewise.
11725         (gen_conditions_for_pow_cst_base): Likewise.
11726         * tree-inline.c (estimate_num_insns): Likewise.
11727         * tree-ssa-dom.c (record_equality): Likewise.
11728         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11729         (gimple_expand_builtin_pow): Likewise.
11730         (pass_optimize_widening_mul::execute): Likewise.
11731         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11732         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11733         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11735 2015-10-05  Richard Biener  <rguenther@suse.de>
11737         PR ipa/67783
11738         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11739         consider loop header PHI defs as IVs.
11741 2015-10-05  Richard Biener  <rguenther@suse.de>
11743         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11744         call handling ...
11745         (create_expression_by_pieces): ... here and build GIMPLE
11746         calls directly.  Use gimple_build API and avoid force_gimple_operand.
11747         (insert_into_preds_of_block): Simplify.
11748         (do_regular_insertion): Add comment.
11750 2015-10-04  Jason Merrill  <jason@redhat.com>
11752         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11754 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
11756         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11757         check for general register.
11758         (ix86_emit_save_regs): Ditto.
11759         (ix86_emit_save_regs_using_mov): Ditto.
11760         (ix86_emit_restore_regs_using_pop): Ditto.
11761         (ix86_emit_restore_regs_using_mov): Ditto.
11763 2015-10-03  Marek Polacek  <polacek@redhat.com>
11765         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11766         (insn-dfatab.o): Likewise.
11768 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
11770         * config.gcc (xtensa*-*-uclinux*): New configuration.
11771         * config/xtensa/uclinux.h: New file.
11772         * config/xtensa/uclinux.opt: New file.
11774 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
11776         * doc/cpp.texi (Standard Predefined Macros): Document value of
11777         __cplusplus for C++14.
11779 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
11781         * gcc.c (process_command): Use spec_machine rather than
11782         spec_host_machine to build tooldir_prefix2.
11784 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11785             Bernd Schmidt  <bernds@codesourcery.com>
11787         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11788         (Token, Stmt): Remove structs.
11789         (decls, vars, fns): Remove variables.
11790         (alloc_comment, append_stmt, is_keyword): Remove macros.
11791         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11792         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11793         (parse_init, parse_file): Remove functions.
11794         (read_file): Accept a pointer to a length and store into it.
11795         (process): Don't try to parse the input file, just write it out as
11796         a string, but looking for maps.  Also write out the length.
11797         (main): Don't use "-S" to compile PTX code.
11799 2015-10-02  Jeff Law  <law@redhat.com>
11801         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11802         fixups.
11804 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11806         PR target/67822
11807         * config/nvptx/mkoffload.c (main): Scan the argument vector for
11808         -fopenmp, and skip generating an offloading image if specified.
11810 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
11812         * system.h (ROUND_UP): New macro definition.
11813         (ROUND_DOWN): Ditto.
11814         * ggc-page.c (ROUND_UP): Remove local macro definition.
11815         (PAGE_ALIGN): Implement using ROUND_UP macro.
11817         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11818         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11819         to align values.
11820         (ix86_compute_frame_layout): Ditto.
11821         (ix86_expand_prologue): Ditto.
11822         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11823         to round down values.
11824         (expand_set_or_movmem_via_rep): Ditto.
11826 2015-10-02  Marek Polacek  <polacek@redhat.com>
11828         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11830 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
11832         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11833         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11834         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11835         (free_gimple_bb): Renamed free_gimple_poly_bb.
11836         (try_generate_gimple_bb): Hoist loop invariant code.
11837         (analyze_drs_in_stmts): Same.
11838         (build_scop_drs): Call renamed functions.
11839         (new_pbb_from_pbb): Same.
11840         (scop_ivs_can_be_represented): Delete as functionality now moved to
11841         graphite-scop-detection.c
11842         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11844 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
11846         * graphite-scop-detection.c (stmt_has_side_effects): New function
11847           outlined from stmt_simple_for_scop_p.
11848         (graphite_can_represent_stmt): Same.
11849         (stmt_simple_for_scop_p): Moved code out of this function for better
11850         readability.
11852 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11854         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11855         F_AVX512IFMA.
11856         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11858 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11860         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11862 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11864         PR rtl-optimization/67756
11865         * lra-constraints.c (match_reload): Add a new parameter.  Use it
11866         for creating a pseudo with the same value.
11867         (curr_insn_transform): Pass a new argument to match_reload.
11869 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11871         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11872         (expand_vec_perm_even_odd_1): Handle V64QImode.
11873         (ix86_expand_vec_perm_const_1): Try expansion with
11874         expand_vec_perm_even_odd_trunc as well.
11875         * config/i386/sse.md (VI124_AVX512F): Rename to ...
11876         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11877         to V54QI.
11878         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11879         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11880         to V32HI and V16SI.
11881         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11882         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11883         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11884         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11885         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11886         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11888 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11890         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11891         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11893 2015-10-02  Jason Merrill  <jason@redhat.com>
11895         PR c/59218
11896         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11897         (diagnose_tm_1_op): Also diagnose volatile accesses in
11898         transaction_safe function.
11900 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
11902         * system.h (malloc.h): Don't include obsolete header.
11904 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11906         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11907         (TLS_SECTION_ASM_FLAG): Delete.
11909 2015-10-02  Marek Polacek  <polacek@redhat.com>
11911         PR c/64249
11912         * doc/invoke.texi: Document -Wduplicated-cond.
11913         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11914         (insn-dfatab.o): Likewise.
11915         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11916         warning.
11918 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
11920         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11921         sequences.
11923 2015-10-02  Renlin Li  <renlin.li@arm.com>
11925         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11927 2015-10-02  Renlin Li  <renlin.li@arm.com>
11929         PR target/66776
11930         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11932 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11934         PR rtl-optimization/67786
11935         PR rtl-optimization/67787
11936         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11937         it modifies a reg used in the condition calculation.
11939 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
11941         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11942         alternatives for reads from memory and moves from general-purpose
11943         registers.
11944         (*aarch64_combinez_be<mode>): Likewise.
11946 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
11948         PR target/51726
11949         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11950         selectany within this function without need to keep attribute.
11951         (i386_pe_encode_section_info): Remove selectany-code.
11953 2015-10-02  Richard Biener  <rguenther@suse.de>
11955         * tree-ssa-sccvn.c (has_VN_INFO): New function.
11956         (free_scc_vn): Use it.
11957         (visit_use): Remove dead code and refactor to use gassign
11958         and use less indentation.
11960 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11962         PR target/67788
11963         PR target/67789
11964         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11965         (rs6000_cannot_copy_insn_p): New function.
11966         * config/rs6000/rs6000.md (cannot_copy): New attribute.
11967         (load_toc_v4_PIC_1_normal): Set cannot_copy.
11968         (load_toc_v4_PIC_1_476): Ditto.
11970 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11972         * graphite-scop-detection.c (struct sese_l): New conversion constructor
11973         so that this type can be pushed into a vec.
11974         (class scop_builder): use sese_l to collect scops.
11975         (get_scops): New getter function.
11976         (remove_intersecting_scops): Use sese_l instead of scops_p.
11977         (intersects): Same.
11978         (add_scop): Same.
11979         (subsumes): Same.
11980         (remove_subscops): Same.
11981         (build_scops): Add scops to vec<scops_p> once all the scops have been
11982         detected.
11984 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11986         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11987         Renamed type from gimple_bb_p to gimple_poly_bb_p.
11988         (translate_isl_ast_node_user): Same.
11989         * graphite-poly.c (new_poly_bb): Same.
11990         * graphite-poly.h (gbb_from_bb): Same.
11991         * sese.h: Same.
11992         * graphite-sese-to-poly.c (new_gimple_bb):
11993         gimple_bb_p -> gimple_poly_bb_p
11994         (build_scop_scattering): Same.
11995         (find_params_in_bb): Same.
11996         (add_conditions_to_domain): Same.
11997         (sese_dom_walker::before_dom_children): Same.
11998         (analyze_drs_in_stmts): Same.
11999         (new_pbb_from_pbb): Same.
12000         (free_data_refs_aux): New pointer to type base_alias_pair.
12001         * graphite-sese-to-poly.h: Same.
12002         * sese.c (if_region_set_false_region): Fixed Indentation.
12003         (move_sese_in_condition): Same.
12005 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12006             Aditya Kumar  <aditya.k7@samsung.com>
12008         PR tree-optimization/66980
12009         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12010         when data reference analysis has failed.
12012 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12013             Aditya Kumar  <aditya.k7@samsung.com>
12015         PR tree-optimization/67754
12016         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12017         scev analysis on the same loop nest as analyze_drs_in_stmts.
12018         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12019         renamed...
12020         (try_generate_gimple_bb): Call outermost_loop_in_sese.
12021         (analyze_drs_in_stmts): Same.
12022         * sese.c (outermost_loop_in_sese): ...here.
12024 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12025             Aditya Kumar  <aditya.k7@samsung.com>
12027         PR tree-optimization/67754
12028         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12029         recursion on the inner loops.
12031 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12033         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12034         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12035         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12036         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12037         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12039 2015-10-01  Marek Polacek  <polacek@redhat.com>
12041         PR c/65345
12042         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12043         create_tmp_var_raw rather than create_tmp_var.
12045 2015-10-01  Marek Polacek  <polacek@redhat.com>
12047         PR tree-optimization/67769
12048         * tree-ssa-phiopt.c (conditional_replacement): Call
12049         reset_flow_sensitive_info_in_bb.
12050         (minmax_replacement): Likewise.
12051         (abs_replacement): Likewise.
12053 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
12055         * builtins.c: Don't include gomp-constants.h.
12056         (fold_builtin_1): Don't fold acc_on_device here.
12057         * gimple-fold.c: Include gomp-constants.h.
12058         (gimple_fold_builtin_acc_on_device): New.
12059         (gimple_fold_builtin): Call it.
12061 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12063         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12064         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12066 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
12068         * config/arm/aarch-common-protos.h
12069         (aarch_accumulator_forwarding): New.
12070         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12071         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12072         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12073         * config/arm/cortex-a53.md: Rewrite.
12075 2015-10-01  Richard Biener  <rguenther@suse.de>
12077         * gimple-match.h (mprts_hook): Declare.
12078         * gimple-match.head.c (mprts_hook): Define.
12079         (maybe_push_res_to_seq): Use new hook.
12080         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12081         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12082         (vn_ssa_aux::has_constants): Remove.
12083         * tree-ssa-sccvn.c: Include gimple-match.h.
12084         (VN_INFO_GET): Assert we don't re-use SSA names.
12085         (vn_get_expr_for): Remove.
12086         (expr_has_constants): Likewise.
12087         (stmt_has_constants): Likewise.
12088         (simplify_binary_expression): Likewise.
12089         (simplify_unary_expression): Likewise.
12090         (vn_lookup_simplify_result): New hook.
12091         (visit_copy): Adjust.
12092         (visit_reference_op_call): Likewise.
12093         (visit_phi): Likewise.
12094         (visit_use): Likewise.
12095         (process_scc): Likewise.
12096         (init_scc_vn): Likewise.
12097         (visit_reference_op_load): Likewise.  Use match-and-simplify and
12098         a gimple seq for inserted expressions.
12099         (try_to_simplify): Remove GENERIC stmt combining code.
12100         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12101         * tree-ssa-pre.c (eliminate_insert): Adjust.
12102         (eliminate_dom_walker::before_dom_children): Likewise.
12104 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12106         * doc/invoke.texi (Optimization Options): Add
12107         -freorder-blocks-algorithm=.
12108         (Optimize Options) <-O>: Add -freorder-blocks.
12109         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
12110         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12111         <-freorder-blocks>: Also enabled at levels -O and -Os.
12112         <-freorder-blocks-algorithm=>: Document new option.
12114 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12116         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12117         with flag_reorder_blocks_algorithm.
12118         * common.opt (freorder-blocks-algorithm=): New flag.
12119         (reorder_blocks_algorithm): New enum.
12120         * flag-types.h (reorder_blocks_algorithm): New enum.
12121         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12122         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12124 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12126         * bb-reorder.c: Add intro comment.
12127         (reorder_basic_blocks_software_trace_cache): Print a header to
12128         the dump file.
12129         (edge_order): New function.
12130         (reorder_basic_blocks_simple): New function.
12131         (reorder_basic_blocks): Choose between the STC and the simple
12132         algorithms (always choose the former).
12134 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12136         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12137         function, factored out from ...
12138         (reorder_basic_blocks): ... here.
12140 2015-10-01  Tom de Vries  <tom@codesourcery.com>
12142         * tree-cfg.c (dump_function_to_file): Dump function attributes using
12143         __attribute__(()) string.  Move dumping of function attributes to before
12144         function name.
12146 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
12148         PR target/66870
12149         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12150         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12151         based on gold linker version.
12152         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12153         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12154         * configure, config.in: Regenerate.
12156 2015-10-01  Alan Modra  <amodra@gmail.com>
12158         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12159         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12160         (rs6000_output_mi_thunk): Likewise.
12162 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12164         * config/nvptx/mkoffload.c (process): Change offload data format.
12166 2015-09-30  Jeff Law  <law@redhat.com>
12168         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12169         with constant conditions.
12170         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12171         (remove_ctrl_stmt_and_useless_edges): No longer static.
12172         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12173         (remove_ctrl_stmt_and_useless_edges): Likewise.
12175 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12176             Cesar Philippidis  <cesar@codesourcery.com>
12178         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12179         (TARGET_GOACC_VALIDATE_DIMS): Override.
12180         * target.def (TARGET_GOACC): New target hook prefix.
12181         (validate_dims): New hook.
12182         * targhooks.h (default_goacc_validate_dims): New.
12183         * omp-low.c (oacc_validate_dims): New.
12184         (execute_oacc_device_lower): New.
12185         (default_goacc_validate_dims): New.
12186         (pass_data_oacc_device_lower): New.
12187         (pass_oacc_device_lower): New pass.
12188         (make_pass_oacc_device_lower): New.
12189         * tree-pass.h (make_pass_oacc_device_lower): Declare.
12190         * passes.def (pass_oacc_device_lower): Add it.
12191         * doc/tm.texi: Rebuilt.
12192         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12193         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12195 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12197         PR rtl-optimization/67037
12198         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12200 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
12202         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12203         * passes.c: Include tree-ssanames.h.
12204         (execute_function_todo): Flush the pending free SSA_NAMEs after
12205         eliminating unreachable basic blocks.
12206         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12207         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12208         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12209         (flush_ssanames_freelist): New function.
12210         (release_ssaname_fn): Put released names on the queue.
12211         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12212         * tree-ssanames.h (flush_ssanames_freelist): Declare.
12214 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12216         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12217         (generate_target_descr_file, generate_target_offloadend_file)
12218         (generate_host_descr_file, prepare_target_image): Pass it on.
12219         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12220         (compile_native, main): Pass it on.
12221         * lto-wrapper.c (compile_offload_image): Likewise.
12223 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12224             Ilya Verbin  <ilya.verbin@intel.com>
12225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12227         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12228         (prepare_target_image, main): Refactor argv building to use
12229         obstacks.
12231 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12233         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12234         * config/spu/spu.c (spu_expand_atomic_op): New function.
12235         * config/spu/spu.md (AINT): New mode iterator.
12236         (ATOMIC): New code iterator.
12237         (atomic_name, atomic_pred): New code predicates.
12238         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12239         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12240         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12241         "atomic_<atomic_name>_fetch<mode>"): Likewise.
12243 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
12245         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12246         debug insns.
12247         (scalar_chain::convert_reg): Likewise.
12249 2015-09-30  Richard Biener  <rguenther@suse.de>
12251         * builtins.c: Add comment that no new simplifications should
12252         be added here.
12254 2015-09-30  Marek Polacek  <polacek@redhat.com>
12256         PR tree-optimization/67690
12257         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12258         reset_flow_sensitive_info_in_bb.
12259         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12260         * tree-ssanames.c: Include "gimple-iterator.h".
12261         (reset_flow_sensitive_info_in_bb): New function.
12262         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12264 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12266         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12267         variable, replacing it with...
12268         (offload_abi): ... this new variable.  Adjust all users.
12269         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12271 2015-09-30  Matthias Klose  <doko@ubuntu.com>
12273         * configure.ac: Remove extraneous ;;.
12274         * configure: Regenerate.
12276 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
12278         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12279         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12280         predicate, disallow register for operand 2.
12282 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
12284         * graphite-dependences.c (scop_get_dependences): Moved in down
12285         in order to be visible to its caller.
12286         * graphite-poly.h: Removed compute_deps, and extend_schedule.
12288 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12289             Aditya Kumar  <aditya.k7@samsung.com>
12291         PR tree-optimization/67754
12292         * graphite-optimize-isl.c (optimize_isl): Call
12293         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12295 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
12297         * builtins.c (expand_builtin_acc_on_device): Delete.
12298         (expand_builtin): Don't call it.
12299         (fold_builtin_1): Fold acc_on_device.
12301 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12303         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12304         (ix86_nsaved_sseregs): Likewise.
12306 2015-09-29  Jeff Law  <law@redhat.com>
12308         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12309         computation of unused value.
12311         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12312         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12313         inline macro expansion.
12315         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12317         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12318         (gen_shl_sext): Likewise.
12319         * config/sh/sh.md (divsi3): Likewise.
12320         (imm->ext_dest_operand splitter): Likewise.
12322 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12323             Aditya Kumar  <aditya.k7@samsung.com>
12325         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12326         (nb_data_writes_in_bb): Remove.
12327         (split_pbb): Remove.
12328         (split_reduction_stmt): Remove.
12329         (is_reduction_operation_p): Remove.
12330         (phi_contains_arg): Remove.
12331         (follow_ssa_with_commutative_ops): Remove.
12332         (detect_commutative_reduction_arg): Remove.
12333         (detect_commutative_reduction_assign): Remove.
12334         (follow_inital_value_to_phi): Remove.
12335         (edge_initial_value_for_loop_phi): Remove.
12336         (initial_value_for_loop_phi): Remove.
12337         (used_outside_reduction): Remove.
12338         (detect_commutative_reduction): Remove.
12339         (translate_scalar_reduction_to_array_for_stmt): Remove.
12340         (remove_phi): Remove.
12341         (dr_indices_valid_in_loop): Remove.
12342         (close_phi_written_to_memory): Remove.
12343         (translate_scalar_reduction_to_array): Remove.
12344         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12345         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12346         (rewrite_commutative_reductions_out_of_ssa): Remove.
12347         (build_poly_scop): Remove call to
12348         rewrite_commutative_reductions_out_of_ssa.
12350 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
12352         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12353         Add new insn types for vector load and store pairs.
12354         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12355         types "neon_ldp{,_q}".
12356         * config/arm/cortex-a57.md (neon_load_c): Add insn types
12357         "neon_ldp{,_q}".
12358         (neon_store_complex): Add insn types "neon_stp{,_q}".
12359         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12360         "neon_{ldp,stp}_q".
12362 2015-09-29  Jeff Law  <law@redhat.com>
12364         * config/rx/constraints.md (Int08): Fix undefined left shift
12365         behaviour.
12366         (Sint08, Sint16, Sint24): Likewise.
12367         * config/rx/rx.c (rx_get_stack_layout): Likewise.
12369         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12370         behaviour.
12372         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12373         left shift behaviour.
12374         * config/msp430/constraints.md ('L' constraint): Similarly.
12375         ('Ys' constraint): Similarly.
12377 2015-09-29  Richard Biener  <rguenther@suse.de>
12379         PR tree-optimization/67170
12380         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12381         the translate function pointer parameter to get the
12382         bool whether to disambiguate only by reference.
12383         (walk_non_aliased_vuses): Likewise.
12384         * tree-ssa-alias.c (maybe_skip_until): Adjust.
12385         (get_continuation_for_phi_1): Likewise.
12386         (get_continuation_for_phi): Likewise.
12387         (walk_non_aliased_vuses): Likewise.
12388         * tree-ssa-sccvn.c (const_parms): New bitmap.
12389         (vn_reference_lookup_3): Adjust for interface change.
12390         Disambiguate parameters pointing to readonly memory.
12391         (free_scc_vn): Free const_parms.
12392         (run_scc_vn): Initialize const_parms from a fn spec attribute.
12394 2015-09-29  Richard Biener  <rguenther@suse.de>
12396         PR tree-optimization/67741
12397         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12398         builtin calls with correct signature.
12400 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
12402         PR target/65105
12403         * config/i386/i386.c: Include dbgcnt.h.
12404         (has_non_address_hard_reg): New.
12405         (convertible_comparison_p): New.
12406         (scalar_to_vector_candidate_p): New.
12407         (remove_non_convertible_regs): New.
12408         (scalar_chain): New.
12409         (scalar_chain::scalar_chain): New.
12410         (scalar_chain::~scalar_chain): New.
12411         (scalar_chain::add_to_queue): New.
12412         (scalar_chain::mark_dual_mode_def): New.
12413         (scalar_chain::analyze_register_chain): New.
12414         (scalar_chain::add_insn): New.
12415         (scalar_chain::build): New.
12416         (scalar_chain::compute_convert_gain): New.
12417         (scalar_chain::replace_with_subreg): New.
12418         (scalar_chain::replace_with_subreg_in_insn): New.
12419         (scalar_chain::emit_conversion_insns): New.
12420         (scalar_chain::make_vector_copies): New.
12421         (scalar_chain::convert_reg): New.
12422         (scalar_chain::convert_op): New.
12423         (scalar_chain::convert_insn): New.
12424         (scalar_chain::convert): New.
12425         (convert_scalars_to_vector): New.
12426         (pass_data_stv): New.
12427         (pass_stv): New.
12428         (make_pass_stv): New.
12429         (ix86_option_override): Created and register stv pass.
12430         (flag_opts): Add -mstv.
12431         (ix86_option_override_internal): Likewise.
12432         * config/i386/i386.md (SWIM1248x): New.
12433         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12434         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12435         (*anddi3_doubleword): New.
12436         (*zext<mode>_doubleword): New.
12437         (*zextsi_doubleword): New.
12438         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12439         (*<code>di3_doubleword): New.
12440         * config/i386/i386.opt (mstv): New.
12441         * dbgcnt.def (stv_conversion): New.
12443 2015-09-29  Tom de Vries  <tom@codesourcery.com>
12445         * tree-cfg.c (dump_function_to_file): Dump function attributes.
12447 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12449         PR target/67716
12450         * config/sh/sh.c (sh_override_options_after_change): New.
12451         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12452         (sh_option_override): Move align_loops, align_jumps and
12453         align_functions handling into sh_override_options_after_change.
12455 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
12457         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12458         (nvptx_record_offload_symbol): Record function execution geometry.
12459         * config/nvptx/mkoffload.c (process): Include launch geometry in
12460         function data.
12461         * omp-low.c (oacc_launch_pack): New.
12462         (replace_oacc_fn_attrib): New.
12463         (set_oacc_fn_attrib): New.
12464         (get_oacc_fn_attrib): New.
12465         (expand_omp_target): Create keyed varargs for GOACC_parallel call
12466         generation.
12467         * omp-low.h (get_oacc_fn_attrib): Declare.
12468         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12469         (DEF_FUNCTION_TYPE_VAR_11): Delete.
12470         * tree.h (OMP_CLAUSE_EXPR): New.
12471         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12473 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12474             Sebastian Pop  <s.pop@samsung.com>
12476         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12478 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12479             Sebastian Pop  <s.pop@samsung.com>
12481         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12482         * graphite-scop-detection.c (struct sese_l): New type.
12483         (get_entry_bb): API for getting entry bb of SESE.
12484         (get_exit_bb): API for getting exit bb of SESE.
12485         (class debug_printer): New type.  Simple printer in debug mode.
12486         (trivially_empty_bb_p): New.  Return true when BB is empty or
12487         contains only debug instructions.
12488         (graphite_can_represent_expr): Call scalar_evoution_in_region
12489         instead of analyze_scalar_evolution.  Pass in scop instead of only
12490         the scop entry.
12491         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12492         scop entry.
12493         (stmt_simple_for_scop_p): Same.
12494         (harmful_stmt_in_bb): Same.
12495         (graphite_can_represent_loop): Deleted.
12496         (struct scopdet_info): Deleted.
12497         (scopdet_basic_block_info): Deleted.
12498         (build_scops_1): Deleted.
12499         (bb_in_sd_region): Deleted.
12500         (find_single_entry_edge): Deleted.
12501         (find_single_exit_edge): Deleted.
12502         (create_single_entry_edge): Deleted.
12503         (sd_region_without_exit): Deleted.
12504         (create_single_exit_edge): Deleted.
12505         (unmark_exit_edges): Deleted.
12506         (mark_exit_edges): Deleted.
12507         (create_sese_edges): Deleted.
12508         (build_graphite_scops): Deleted.
12509         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12510         (build_scops): Use the new scop_builder to build scops.
12511         (dot_all_scops_1): Use the new pretty printer.  Print loop father
12512         as well.
12513         (loop_body_is_valid_scop): New.  Return true if loop body is a
12514         valid scop.
12515         (class scop_builder): New.  Builds SCoPs for polyhedral
12516         optimizations.
12517         (scop_builder): New constructor.
12518         (static sese_l invalid_sese): sese_l with invalid edges.
12519         (get_sese): Get an sese (from a loop) if possible, invalid_sese
12520         otherwise.
12521         (get_nearest_dom_with_single_entry): Get nearest dominator of a
12522         basic_block with single entry.  Return NULL if we get to the
12523         beginning of a function.
12524         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12525         a basic_block with single exit.  Return NULL if we get to the
12526         beginning of a function.
12527         (print_sese): Pretty-print SESE.
12528         (merge_sese): Merge two SESEs if possible and return the new SESE.
12529         (build_scop_depth): Start building the SCoP within a loop nest.
12530         (build_scop_breadth): Start building the SCoP at a single loop
12531         depth.  Merge adjacent SESEs if valid.
12532         (can_represent_loop_1): Returns true if Graphite can represent
12533         loop inside SCoP.  Helper for can_represent_loop.
12534         (can_represent_loop): Returns true if Graphite can represent LOOP
12535         and all its nested loops in SCoP.
12536         (loop_is_valid_scop): Returns true if LOOP and all its nests
12537         constitute a valid SCoP.
12538         (region_has_one_loop): Returns true of a region has only one loop.
12539         (add_scop): Add SCoP to the list of valid scops.  Removes an
12540         already existing scop if it intersects with or subsumed by this one.
12541         (harmful_stmt_in_region): Returns true if SCoP has any statment
12542         which cannot be represented by Graphite.
12543         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12544         (remove_subscops): Remove any SCoP from the list of already found
12545         SCoPs, if subsumed by S1.
12546         (intersects): Return true if region bounded by SCoPs S1 and S2
12547         intersect.
12548         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12549         * graphite.c (print_graphite_scop_statistics):
12550         (print_graphite_statistics): Print SCoP info while debugging.
12551         (graphite_initialize): Early exit in case number of loops in a
12552         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12553         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12554         (graphite_finalize):
12555         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12556         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12557         (recompute_all_dominators): Recalculate POST_DOMINATORS.
12558         * tree-cfg.c (print_loops): Print the function name while printing
12559         loops.
12561 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12562             Sebastian Pop  <s.pop@samsung.com>
12564         PR tree-optimization/67700
12565         * graphite-sese-to-poly.c (parameter_index_in_region): Call
12566         invariant_in_sese_p_rec.
12567         (extract_affine): Same.
12568         (rewrite_cross_bb_scalar_deps): Call update_ssa.
12569         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
12570         * sese.h (invariant_in_sese_p_rec): Declare.
12572 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
12574         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12576 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
12578         Revert:
12579         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12580                     Jiong Wang  <jiong.wang@arm.com>
12582         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12583         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12584         (REG_CLASS_NAMES): Likewise.
12585         (REG_CLASS_CONTENTS): Likewise.
12586         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12587         (aarch64_register_move_cost): Likewise.
12588         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12589         possible.
12590         * config/aarch64/constraints.md (Uc0): New constraint.
12592 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
12594         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12596 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
12598         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12599         SECTION_EXCLUDE in XO mapping class.
12601 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12603         PR target/54236
12604         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12605         and handle ne and eq codes.
12606         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12607         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
12608         CONST_INT_P.  Use reverse_condition.
12609         (sh_split_treg_set_expr): Likewise.
12611 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
12613         * config/arm/types.md (type): Add rotate_imm.
12614         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12615         ROR immediate case.
12616         (*rorsi3_insn_uxtw): Likewise.
12617         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12618         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12619         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12621 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12623         PR rtl-optimization/67481
12624         * ifcvt.c (contains_ccmode_rtx_p): New function.
12625         (insn_valid_noce_process_p): Use it.
12627 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12629         PR rtl-optimization/67456
12630         PR rtl-optimization/67464
12631         PR rtl-optimization/67465
12632         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12633         move in the mode of x.  Handle combination of complex and simple
12634         block pairs as well as the case when one is empty.
12636 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12638         * doc/gimple.texi: Update references to gimple_statement_base.
12639         * gdbhooks.py: Likewise.
12640         * gimple.h: Likewise.
12642 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12644         * config/sparc/driver-sparc.c: map LEON to leon3
12646 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12648         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12649           and make it inverse to change default
12650         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12651           supervisor mode
12652         * doc/invoke.texi: Document change of default
12654 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12656         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12657         true on %f0 for a target without FPU.
12658         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12659         without FPU.
12660         (untyped_return): Do not load %f0 for a target without FPU.
12662 2015-09-28  Andrew Pinski  <apinski@cavium.com>
12664         * config/aarch64/aarch64.md (prefetch):
12665         Change the predicate of operand 0 to register_operand.
12667 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
12669         * config/i386/predicates.md (register_sse4nonimm_operand): New
12670         predicate.
12671         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12672         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12673         Use register_sse4nonimm_operand as operand 0 predicate.
12674         (*vec_extractv8hi_sse2): Remove insn pattern.
12675         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12676         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12678 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
12679             Kaz Kojima  <kkojima@gcc.gnu.org>
12681         PR target/67391
12682         * config/sh/sh-protos.h (sh_lra_p): Declare.
12683         * config/sh/sh.c (sh_lra_p): Make non-static.
12684         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12685         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
12686         Expand into addsi3_scr if operands[2] if needed.
12687         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
12688         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
12689         (addsi3_scr, *addsi3): New insn_and_split patterns.
12691 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
12693         PR rtl-optimization/64164
12694         PR tree-optimization/67312
12695         PR middle-end/67340
12696         PR middle-end/67490
12697         PR bootstrap/67597
12698         * cfgexpand.c (parm_in_stack_slot_p): Remove.
12699         (ssa_default_def_partition): Remove.
12700         (get_rtl_for_parm_ssa_default_def): Remove.
12701         (set_rtl): Check that RTL assignments match expectations.
12702         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
12703         default def location for params and results.  Record SSA names
12704         or types in REG and MEM attrs, respectively.
12705         (set_parm_rtl): New.
12706         (expand_one_ssa_partition): Drop logic that assigned MEMs with
12707         unassigned addresses.
12708         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12709         deferred stack alloc vars.
12710         (expand_used_vars): Skip partitions holding parm default defs.
12711         Move adjust_one_expanded_partition_var loop...
12712         (pass_expand::execute): ... here.  Drop redundant assert.
12713         Adjust comments before the final loop over all ssa names.
12714         Require assigned rtl of parms and results to match exactly.
12715         Reset its attributes to match them, not any other variables in
12716         the same partition.
12717         (expand_debug_expr): Use entry value for PARM's default defs
12718         only iff they have zero nondebug uses.
12719         * cfgexpand.h (parm_in_stack_slot_p): Remove.
12720         (get_rtl_for_parm_ssa_default_def): Remove.
12721         (set_parm_rtl): Declare.
12722         * doc/invoke.texi: Improve wording.
12723         * explow.c (promote_decl_mode): Fix promote_function_mode for
12724         result decls not by reference.
12725         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12726         bypass TYPE_MODE to get the actual vector mode.
12727         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
12728         2015-08-19's changes as follows.  Drop include of
12729         basic-block.h and df.h.
12730         (rtl_for_parm): Remove.
12731         (maybe_reset_rtl_for_parm): Remove.
12732         (parm_in_unassigned_mem_p): Remove.
12733         (use_register_for_decl): Add logic for RESULT_DECLs matching
12734         assign_parms' behavior.
12735         (split_complex_args): Revert.
12736         (assign_parms_augmented_arg_list): Revert.  Add comment
12737         referencing the logic above.
12738         (assign_parm_adjust_stack_rtl): Revert.
12739         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
12740         of SET_DECL_RTL.  Set up a REG if the parm demands so.
12741         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
12742         calls into a single set_parm_rtl.  Set up a temporary RTL
12743         temporarily for expand_assignment.
12744         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
12745         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
12746         (assign_bounds): Revert.
12747         (assign_parms): Revert.  Use set_parm_rtl.
12748         (allocate_struct_function): Relayout result and parms of
12749         non-abstruct functions.
12750         (expand_function_start): Revert.  Use set_parm_rtl.  If the
12751         result is not a hard reg, create a pseudo from the promoted
12752         mode of the default def.  Promote static chain mode.
12753         * tree-outof-ssa.c (remove_ssa_form): Drop unused
12754         partition_has_default_def.  Set up
12755         partitions_for_parm_default_defs.
12756         (finish_out_of_ssa): Remove partition_has_default_def.
12757         Release partitions_for_parm_default_defs.
12758         * tree-outof-ssa.h (struct ssaexpand): Remove
12759         partition_has_default_def.  Add
12760         partitions_for_parm_default_defs.
12761         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12762         stor-layout.h.
12763         (build_ssa_conflict_graph): Fix conflict-detection of default
12764         defs of even unused default defs of params and results.
12765         (for_all_parms): New.
12766         (create_default_def): New.
12767         (register_default_def): New.
12768         (coalesce_with_default): New.
12769         (create_outofssa_var_map): Create default defs for all parms
12770         and results, and register their partitions.  Add GIMPLE_RETURN
12771         operands as coalesce candidates with results.  Add default
12772         defs of each parm or result as coalesce candidates with its
12773         other defs.  Mark each result def, and each default def of
12774         parms, as used_in_copy.
12775         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
12776         with the ssa names, even anonymous ones.  Drop
12777         parm_in_stack_slot_p calls.  Require same signedness and
12778         alignment.
12779         (coalesce_ssa_name): Add coalesce candidates for all defs of
12780         each parm and result, even unused ones.
12781         (parm_default_def_partition_arg): New type.
12782         (set_parm_default_def_partition): New.
12783         (get_parm_default_def_partitions): New.
12784         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12785         * tree-ssa-live.c (partition_view_init): Regard unused defs of
12786         parms and results as used.
12787         (verify_live_on_entry): Don't error out just because they're
12788         not live.
12790 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
12792         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12793         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12794         (output_fde): Don't output length for debug_frame on AIX.
12795         (output_call_frame_info): Don't output length for debug_frame on AIX.
12796         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12797         HAVE_XCOFF_DWARF_EXTRAS.
12798         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12799         HAVE_XCOFF_DWARF_EXTRAS.
12800         (output_compilation_unit_header): Don't output length on AIX.
12801         (output_pubnames): Don't output length on AIX.
12802         (output_aranges): Delete argument. Compute length locally. Don't
12803         output length on AIX.
12804         (output_line_info): Don't output length on AIX.
12805         (dwarf2out_finish): Don't compute aranges_length.
12806         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12807         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12808         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12809         symbol decoration for AIX.
12810         (rs6000_xcoff_debug_unwind_info): New.
12811         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12812         for SECTION_DEBUG.
12813         (rs6000_xcoff_declare_function_name): Emit different
12814         .function pseudo-op when DWARF2_DEBUG. Don't call
12815         xcoffout_declare_function for DWARF2_DEBUG.
12816         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12817         Redefine.
12818         * config/rs6000/aix71.h: New.
12819         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12820         locations support.
12821         * configure: Regenerate.
12822         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12823         DWARF support.
12825 2015-09-26  Jeff Law  <law@redhat.com>
12827         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12828         behaviour.
12829         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12830         behaviour.
12832         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12833         behaviour
12835         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12836         undefined behaviour.
12838         * config/cris/cris.md (asrandb): Fix left shift undefined
12839         behaviour.
12840         (asrandw): Likewise.
12842 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
12844         PR target/61578
12845         * lra-constarints.c (match_reload): Check presence of the input pseudo
12846         in the output operand.
12848 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12850         * doc/invoke.texi (-fsanitize): Minor wording tweak.
12852 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12854         * doc/invoke.texi (-fsanitize): Update URLs.
12856 2015-09-25  Teresa Johnson  <tejohnson@google.com>
12858         * opts.c (finish_options): Unset -freorder-blocks-and-partition
12859         if not using profile.
12861 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12863         PR pretty-print/67567
12864         * pretty-print.c (pp_string): Add gcc_checking_assert.
12865         * pretty-print.h (output_buffer_append_r): Likewise.
12867 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
12869         PR target/67675
12870         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12871         addr2 individually.  Don't emit logical or insn if one is known to
12872         be aligned approriately.
12873         (sh_expand_cmpnstr): Likewise.
12875 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
12877         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12878         __builtin_aarch64_fp[sc]r arguments into a register.
12880 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
12882         * config.gcc (x86_archs): Replace lakemount with lakemont.
12883         (with_cpu): Likewise.
12884         (with_arch): Likewise.
12885         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12886         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
12887         __tune_lakemount__ with __tune_lakemont__.
12888         * config/i386/i386.c (lakemount_cost): Renamed to ...
12889         (lakemont_cost): This.
12890         (m_LAKEMOUNT): Renamed to ...
12891         (m_LAKEMONT): This.
12892         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12893         (processor_target_table): Replace "lakemount" with "lakemont".
12894         (processor_alias_table): Likewise.
12895         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12896         PROCESSOR_LAKEMONT.
12897         (ix86_adjust_cost): Likewise.
12898         (ia32_multipass_dfa_lookahead): Likewise.
12899         * config/i386/i386.h (processor_type): Likewise.
12900         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12901         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
12902         Lakemount with Lakemont.
12904 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
12906         * config.gcc (x86_archs): Replace iamcu with lakemount.
12907         (with_cpu): Likewise.
12908         (with_arch): Likewise.
12909         * doc/invoke.texi: Likewise.
12910         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12911         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
12912         __tune_iamcu__ with __tune_lakemount__.
12913         * config/i386/i386.c (iamcu_cost): Renamed to ...
12914         (lakemount_cost): This.
12915         (m_IAMCU): Renamed to ...
12916         (m_LAKEMOUNT): This.
12917         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12918         (processor_target_table): Replace "iamcu" with "lakemount".
12919         (processor_alias_table): Likewise.
12920         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12921         PROCESSOR_LAKEMOUNT.
12922         (ix86_adjust_cost): Likewise.
12923         (ia32_multipass_dfa_lookahead): Likewise.
12924         * config/i386/i386.h (processor_type): Likewise.
12925         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12927 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
12929         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12930         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12931         Declare.
12932         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12933         (pa_expand_compare_and_swap_loop): New.
12934         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12935         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12936         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12937         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12938         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12939         Revise.
12941 2015-09-24  Michael Collison  <michael.collison@linaro.org>
12943         PR other/57195
12944         * read-md.c (read_name): Allow mode iterators inside angle
12945         brackets in rtl expressions.
12947 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
12949         PR target/61578
12950         * ira-color.c (update_allocno_cost): Add parameter.
12951         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
12952         parameter.
12954 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12956         PR driver/67640
12957         * opts-common.c (prune_options): Discard all -fdiagnostics-color
12958         but the last one, which is moved to the front to be processed
12959         first.
12960         * opts.c (enable_warning_as_error): Reject options that do not
12961         control warnings.
12963 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12965         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12967 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12969         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12970         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12971         (aarch64_cannot_force_const_mem): Likewise.
12972         (aarch64_classify_address): Likewise.
12973         (aarch64_classify_symbolic_expression): Likewise.
12974         (aarch64_print_operand): Likewise.
12975         (aarch64_classify_symbol): Likewise.
12976         (aarch64_mov_operand_p): Likewise.
12977         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12978         (aarch64_mov_operand): Likewise.
12980 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
12982         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12983         for info->spe_gp_size.
12985 2015-09-24  Richard Biener  <rguenther@suse.de>
12987         PR lto/67699
12988         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12989         abstract origins.
12991 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
12993         * tree-object-size.c (plus_stmt_object_size)
12994         (cond_expr_object_size): Change the formal parameters from gimple
12995         to gimple *.
12996         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12997         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12998         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13000 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13002         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13003         Check for ld -type pie on Solaris 11.x and 12.
13004         * configure: Regenerate.
13005         * config.in: Regenerate.
13007         * gcc.c (LD_PIE_SPEC): Allow redefinition.
13009         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13010         (STARTFILE_SPEC): Use it.
13011         (ENDFILE_CRTEND_SPEC): Define.
13012         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13013         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13014         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13015         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13016         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13017         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13018         (ENDFILE_ARCH_SPEC): Define.
13019         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13021 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13023         * configure.ac (gcc_cv_solaris_crts): New test.
13024         * configure. Regenerate.
13025         * config.in: Regenerate.
13026         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13027         HAVE_SOLARIS_CRTS variant.
13029 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13031         * tree-inline.h (count_insns_seq): Delete prototype.
13032         (estimate_num_insns_seq): Define prototype.
13033         * tree-inline.c (count_insns_seq): Delete.
13034         (estimate_num_insns_seq): Remove static qualifier.
13035         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13036         with estimate_num_insns_seq.
13038 2015-09-24  Richard Biener  <rguenther@suse.de>
13040         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13041         members.
13042         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13043         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
13044         offset.
13045         (ao_ref_init_from_vn_reference): Record clique and base in the
13046         built base.
13047         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13049 2015-09-24  Richard Biener  <rguenther@suse.de>
13051         PR tree-optimization/48885
13052         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13053         as not including any restrict tags from other pointers.
13055 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13057         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13058         character when appending to offload_targets.
13060         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13061         offload targets by commas, not colons.
13062         * config.in: Regenerate.
13063         * configure: Likewise.
13064         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13065         instead of setting up the default offload targets here...
13066         (process_command): ..., do it here.
13067         libgomp/
13068         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13069         targets are separated by commas.
13070         * config.h.in: Regenerate.
13072 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13073             Nathan Sidwell  <nathan@codesourcery.com>
13075         * omp-low.h (omp_reduction_init_op): Declare.
13076         * omp-low.c (omp_reduction_init_op): New, broken out of ...
13077         (omp_reduction_init): ... here.  Call it.
13078         * tree-parloops.c (initialize_reductions): Use
13079         omp_reduction_init_op.
13081 2015-09-23   Richard Biener  <rguenther@suse.de>
13083         PR middle-end/67662
13084         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13085         undefined overflow unless they will cancel out.
13087 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13089         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13090         insn emit.
13092 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13094         PR c/49655
13095         * opts.h (write_langs): Declare.
13096         * opts-global.c (write_langs): Make it extern.
13098 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
13100         PR target/67391
13101         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13102         overlapping regs when matching the pattern.
13104 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13106         * config/aarch64/aarch64-simd.md
13107         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13108         (aarch64_float_truncate_hi_v4sf_le): New.
13109         (aarch64_float_truncate_hi_v4sf_be): Likewise.
13111 2015-09-23  Richard Biener  <rguenther@suse.de>
13113         * tree-ssa-structalias.c (intra_create_variable_infos): Build
13114         representatives for all restrict qualified pointer destinations.
13116 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13118         * config/i386/i386.md (define_code_attr mshift): New.
13119         (define_mode_iterator SWI1248_AVX512BW): Rename ...
13120         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13121         only.
13122         (define_insn "*k<logic><mode>"): Use new iterator name.
13123         (define_insn "*<mshift><mode>3"): New.
13125 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
13127         PR middle-end/67649
13128         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13129         mark the block as accessible.
13131 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
13133         * function.c (thread_prologue_and_epilogue_insns): Delete
13134         orig_entry_edge argument to try_shrink_wrapping.
13135         * shrink-wrap.c (can_get_prologue): New function.
13136         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13137         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
13138         can_get_prologue where needed.  Remove code that finds a single
13139         edge for the prologue.  Remove code that tests if any reg clobbered
13140         by the prologue is live on the prologue edge.  Remove code that finds
13141         the new prologue edge after duplicating blocks.  Make a new prologue
13142         block and edge.
13143         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13145 2015-09-22  Jeff Law  <law@redhat.com>
13147         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13148         behavior.
13150 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
13152         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
13153         -Wtemplates, -Wnamespaces): Document.
13155 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13157         PR tree-optimization/67671
13158         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13159         pointer references as restrict.
13161 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13163         * config/nios2/nios2.c (nios2_legitimize_address): When handling
13164         'reg + reloc' cases, allow first operand to be non-REG, and use
13165         force_reg() to enforce address pattern.
13167 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
13169         PR target/67480
13170         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13171         (define_mode_iterator VI12_AVX_AVX512F): New.
13172         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13173         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13174         (define_insn "*<code><mode>3"): ... Into new pattern using
13175         VI12_AVX_AVX512F iterators without masking.
13177 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13179         * config.gcc: Support "skylake-avx512".
13180         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13181         PROCESSOR_SKYLAKE_AVX512.
13182         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13183         (processor_target_table): Add "skylake-avx512".
13184         (PTA_SKYLAKE_AVX512): Define.
13185         (ix86_option_override_internal): Add "skylake_avx512".
13186         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13187         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13188         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13189         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13190         * doc/invoke.texi (skylake-avx512): New.
13192 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13194         * config/i386/i386.md (define_insn "kunpckhi"): Fix
13195         operand in pattern.
13196         (define_insn "kunpcksi"): Ditto.
13197         (define_insn "kunpckdi"): Ditto.
13199 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13201         * config/i386/i386.md (define_split not/xor SWI1248x): Use
13202         iterator instead of fixed modes.
13204 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13206         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13207         Adjust declaration.
13208         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13209         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
13210         out_result.  Update to support update-fetch operations.
13211         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13212         Adjust for change to aarch64_gen_atomic_ldop.
13213         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13214         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13215         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13216         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13217         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13219 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13221         * config/aarch64/aarch64-protos.h
13222         (aarch64_atomic_ldop_supported_p): Declare.
13223         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13224         (enum aarch64_atomic_load_op_code): New.
13225         (aarch64_emit_atomic_load_op): New.
13226         (aarch64_gen_atomic_ldop): Update to support load-operate
13227         patterns.
13228         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13229         to an expander.
13230         (aarch64_atomic_<atomic_optab><mode>): New.
13231         (aarch64_atomic_<atomic_optab><mode>_lse): New.
13232         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13233         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13234         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13236 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13238         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13239         (UNSPECV_ATOMIC_LDOP_OR): New.
13240         (UNSPECV_ATOMIC_LDOP_BIC): New.
13241         (UNSPECV_ATOMIC_LDOP_XOR): New.
13242         (UNSPECV_ATOMIC_LDOP_PLUS): New.
13243         (ATOMIC_LDOP): New.
13244         (atomic_ldop): New.
13245         (aarch64_atomic_load<atomic_ldop><mode>): New.
13247 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13249         * config/aarch64/aarch64.md
13250         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13251         pattern.
13253 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13255         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13256         Declare.
13257         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13258         (aarch64_gen_atomic_ldop): New.
13259         (aarch64_split_atomic_op): Fix whitespace and add a comment.
13260         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13261         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13262         (atomic_exchange<mode>): Replace with an expander.
13263         (aarch64_atomic_exchange<mode>): New.
13264         (aarch64_atomic_exchange<mode>_lse): New.
13265         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13266         (aarch64_atomic_swp<mode>): New.
13268 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13270         * tree-inline.c (expand_call_inline): Use inform for extra note.
13271         Do not give a note with UNKNOWN_LOCATION.
13272         Replace input_location with gimple_location (stmt).
13273         Use true/false instead of TRUE/FALSE.
13275 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13277         PR tree-optimization/67666
13278         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13279         with single field non-conservative.
13281 2015-09-21  David S. Miller  <davem@davemloft.net>
13283         PR/67622
13284         Revert:
13285         2015-09-11  David S. Miller  <davem@davemloft.net>
13287         * config/sparc/constraints.md: Make "U" constraint a real register
13288         constraint.
13289         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13290         (D_MODES, DF_MODES): Add missing cast.
13291         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13292         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13293         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13294         cost to 8.
13295         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13296         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13297         provide these insn when flag_pic.
13299         2015-09-17  David S. Miller  <davem@davemloft.net>
13301         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13302         Declare.
13303         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13304         function.
13305         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13306         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13307         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13308         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13309         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13310         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13311         provide when flag_pic.
13313 2015-09-21  Jeff Law  <law@redhat.com>
13315         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13316         behavior.
13318 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13320         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13322 2015-09-21  Richard Biener  <rguenther@suse.de>
13324         * passes.c (rest_of_decl_compilation): Do not call
13325         dwarf2out_early_global_decl for aliases.
13327 2015-09-21  Richard Biener  <rguenther@suse.de>
13329         PR debug/67664
13330         * dwarf2out.c (add_location_or_const_value_attribute): Remove
13331         attribute parameter.  Early exit if either DW_AT_const_value
13332         or DW_AT_location are present already.
13333         (gen_variable_die): Adjust caller.
13334         (dwarf2out_late_global_decl): Likewise.
13336 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13338         PR target/67657
13339         * config/sh/sh.c (sh_remove_overlapping_post_inc,
13340         sh_peephole_emit_move_insn): Add new functions.
13341         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13342         sh_peephole_emit_move_insn): Declere them.
13343         * config/sh/sh.md: Use them in various peephole2 patterns.
13345 2015-09-21  Richard Biener  <rguenther@suse.de>
13347         PR middle-end/67651
13348         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13349         address with -fno-delete-null-pointer-checks.
13351 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
13353         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13354         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13355         (reduc_uplus_v16qi): Remove.
13357         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13358         (reduc_<VEC_reduc_name>_v2df): Remove.
13359         (reduc_<VEC_reduc_name>_v4sf): Remove.
13360         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13362         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13363         gen_ function by removing * prefix.
13364         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13366 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13368         PR middle-end/60832
13369         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13370         Print i_bound without converting it to a tree.
13372 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
13374         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13375         operands[4] operands[5] swap with std::swap, removed tmp variable.
13376         (arm_evpc_neon_vzip): Replaced in0/in1 and
13377         out0/out1 swaps with std::swap, removed x variable.
13378         (arm_evpc_neon_vtrn): Replaced in0/int1 and
13379         out0/out1 swaos with std::swap, removed x variable.
13380         (arm_expand_vec_perm_const_1): Replaced
13381         d->op0/d->op1 swap with std::swap, removed x variable.
13382         (arm_evpc_neon_vuzp): Replaced in0/in1 and
13383         out0/out1 swaps with std::swap, removed x variable.
13385 2015-09-21  Jonathan Yong  <10walls@gmail.com>
13387         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13388         sysroot/usr/lib/32api for additional win32 libraries,
13389         fixes failing Cygwin bootstrapping.
13391 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13393         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13395 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13397         PR target/67126
13398         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13399         (*mov_t_msb_neg): Rewrite negc pattern.
13401 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13403         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13404         immediate generation code.
13406 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13408         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13409         redundant immediate generation code.
13411 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13413         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13414         (AARCH64_NUM_BITMASKS): Remove.
13415         (aarch64_bitmasks_cmp): Remove.
13416         (aarch64_build_bitmask_table): Remove.
13418 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13420         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13421         slow immediate matching loops with a faster algorithm.
13423 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13425         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13426         faster algorithm.
13428 2015-09-20  Jeff Law  <law@redhat.com>
13430         PR tree-optimization/47679
13431         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13432         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13433         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13434         (thread_through_normal_block): Use record_temporary_equivalences.
13436 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
13438         * coretypes.h (gimple): Change typedef to be a forward declaration.
13439         * gimple.h (gimple_statement_base): rename to gimple.
13440         * (all functions and types using gimple): Adjust.
13441         * *.[ch]: Likewise.
13443 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
13444             David Edelsohn  <dje.gcc@gmail.com>
13446         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13447         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13448         (EH_FRAME_THROUGH_COLLECT2): Define.
13449         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13450         (ASM_OUTPUT_DWARF_PCREL): Define.
13451         (ASM_OUTPUT_DWARF_DATAREL): Define.
13453 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
13455         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13456         of TARGET_ELF32.
13458 2015-09-18  Jeff Law  <law@redhat.com>
13460         PR tree-optimization/47679
13461         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
13462         it here ...
13463         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13464         object.  Update constructor.
13465         (pass_dominator::execute):  Corresponding chagnes to declaration
13466         and initialization of avail_exprs_stack.  Update constructor call
13467         for dom_opt_dom_walker object.
13468         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
13469         it down to children as needed.
13470         (record_equivalences_from_incoming_edge): Likewise.
13471         (eliminate_redundant_computations): Likewise.
13472         (record_equivalences_from_stmt): Likewise.
13473         (simplify_stmt_for_jump_threading): Likewise.
13474         (record_temporary_equivalences): Likewise.
13475         (optimize_stmt): Likewise.
13476         (dom_opt_dom_walker::thread_across_edge): Update access to
13477         avail_exprs_stack object and pass it to children as needed.
13478         (dom_opt_dom_walker::before_dom_children): Similarly.
13479         (dom_opt_dom_walker::after_dom_children): Similarly.
13480         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13481         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13482         Add avail_expr_stack argument.  Pass it to children as needed.
13483         (dummy_simplify): Likewise.
13484         (simplify_control_stmt_condition): Likewise.
13485         (thread_around_empty_blocks): Likewise.
13486         (thread_through_normal_block): Likewise.
13487         (thread_across_edge): Likewise.
13488         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13489         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13491         PR tree-optimization/47679
13492         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
13493         it here ...
13494         (dom_opt_dom_walker): New private member holding the const_and_copies
13495         object.  Update constructor.
13496         (pass_dominator::execute): Corresponding changes to declaration
13497         and initialization of const_and_copies.  Update constructor call
13498         for the dom_opt_dom_walker object.
13499         (record_temporary_equivalences): Accept const_and_copies argument
13500         pass it down to children as needed.
13501         (record_equality): Likewise.
13502         (record_equivalences_from_incoming_edge): Likewise.
13503         (cprop_into_successor_phis, optimize_stmt): Likewise.
13504         (eliminate_redundant_computations): Likewise.
13505         (dom_opt_dom_walker::thread_across_edge): Update access to
13506         const_and_copies object and pass it to children as needed.
13507         (dom_opt_dom_walker::before_dom_children): Similarly.
13508         (dom_opt_dom_walker::after_dom_children): Similarly.
13510         PR tree-optimization/47679
13511         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
13512         it into the avail_exprs_stack class.
13513         (pass_dominator::execute): Corresponding changes to declaration
13514         and initialization of avail_exprs.  Pass avail_exprs to
13515         dump_dominator_optimization_stats.
13516         (record_cond): Extract avail_exprs from avail_exprs_stack.
13517         (lookup_avail_expr): Similarly.
13518         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
13519         position in file.
13520         (dump_dominator_optimization_stats): Make static and prototype.
13521         Add argument for the hash table to dump.
13522         (debug_dominator_optimization_stats): Remove.
13523         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13524         prototype.
13525         (debug_dominator_optimization_stats): Similarly.
13526         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13527         "void" in prototype for pop_to_marker method.  Add accessor method
13528         for the underlying avail_exprs table.
13530         * tree-ssa-threadedge.c: Remove trailing whitespace.
13532 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
13534         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13535         unsigned.
13536         (pa_ldil_cint_p): Likewise.
13537         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13538         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13539         Update callers.
13540         * config/pa/pa.md: Likewise.
13542 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
13544         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13545         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13546         (diagnostic_show_locus): Likewise.
13547         (diagnostic_print_caret_line): Likewise.
13548         * diagnostic-show-locus.c: New file.
13550 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
13552         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13553         "back" parameter. Declare label in #if block.
13555 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
13557         PR middle-end/67619
13558         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13559         the address to a register.
13561 2015-09-18  Jeff Law  <law@redhat.com>
13563         PR tree-optimization/47679
13564         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13565         * tree-ssa-dom.c: Remove unnecessary header includes.
13566         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13567         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13568         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13569         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13570         (pass_phi_only_cprop::execute): Likewise.
13571         (make_pass_phi_only_cprop): Likewise.
13572         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
13573         uses of file scoped statics by passing the required objects
13574         as parameters wherever needed.
13576 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
13577             David Edelsohn  <dje.gcc@gmail.com>
13579         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13580         EH_FRAME_THROUGH_COLLECT2.
13581         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13582         DW_EH_PE_datarel.
13583         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13584         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
13585         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13586         * except.c (switch_to_exception_section): Use a read-only section
13587         even if EH_FRAME_SECTION_NAME is undefined.
13588         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13589         * collect2.c (write_c_file_stat): Provide dbase on AIX.
13590         (scan_prog_file): Don't export __dso_handle nor
13591         __gcc_unwind_dbase.
13592         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13593         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13594         (ASM_OUTPUT_DWARF_PCREL): Define.
13595         (ASM_OUTPUT_DWARF_DATAREL): Define.
13596         (EH_FRAME_THROUGH_COLLECT2): Define.
13597         (EH_FRAME_IN_DATA_SECTION): Delete.
13598         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13599         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13600         Declare.
13601         (rs6000_asm_output_dwarf_datarel): Declare.
13602         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13603         (rs6000_aix_asm_output_dwarf_datarel): New.
13604         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13605         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13606         (EH_FRAME_THROUGH_COLLECT2): Define.
13607         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13608         (EH_FRAME_THROUGH_COLLECT2): Define.
13609         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13610         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13611         (EH_FRAME_THROUGH_COLLECT2): New.
13612         (ASM_OUTPUT_DWARF_DATAREL): New.
13613         * doc/tm.texi: Regenerate.
13615 2015-09-18  Richard Biener  <rguenther@suse.de>
13617         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13618         we're in early phase.
13619         (schedule_generic_params_dies_gen): Likewise.
13620         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13621         work as possible, retaining unhandled cases.
13622         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13623         clear out generic_type_instances at the end.
13624         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13625         (dwarf2out_early_finish): ... here.  Do most of
13626         gen_remaining_tmpl_value_param_die_attribute here.
13628 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
13630         PR tree-optimization/67283
13631         * tree-sra.c (type_consists_of_records_p): Rename to...
13632         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13633         (completely_scalarize_record): Rename to...
13634         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13635         (scalarize_elem): New.
13636         (analyze_all_variable_accesses): Follow renamings.
13638 2015-09-18  Richard Biener  <rguenther@suse.de>
13640         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13641         in early-dwarf.
13643 2015-09-18  Richard Biener  <rguenther@suse.de>
13645         PR tree-optimization/66142
13646         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13647         treat MEM[&x] and x the same.
13648         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13649         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13650         when we simplified sth.
13651         (vn_reference_maybe_forwprop_address): Likewise.
13652         (valueize_refs_1): When we simplified through
13653         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13654         set valueized_anything to true.
13655         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13656         one ref kills the other instead of just a offset-based test.
13657         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13658         for the operand_equal_p test to compare bases and also compare
13659         sizes.
13661 2015-09-17  Christian Bruel  <christian.bruel@st.com>
13663         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13665 2015-09-17  Richard Henderson  <rth@redhat.com>
13667         PR libstdc++/65913
13668         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13669         pointers that encode the alignment of the object.
13671 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13673         PR rtl-optimization/66790
13674         * df-problems.c (LIVE): Amend documentation.
13676 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13678         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13679         and optabs-tree.o.
13680         (GTFILES): Replace optabs.c with optabs-libfunc.c.
13681         * genopinit.c (main): Add an include guard to insn-opinit.h.
13682         Protect the rtx_code parts with NUM_RTX_CODE.
13683         * optabs.h: Split parts out to...
13684         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13685         * optabs.c: Split parts out to...
13686         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13687         * cilk-common.c: Include optabs-query.h rather than optabs.h.
13688         * fold-const.c: Likewise.
13689         * target-globals.c: Likewise.
13690         * tree-if-conv.c: Likewise.
13691         * tree-ssa-forwprop.c: Likewise.
13692         * tree-ssa-loop-prefetch.c: Likewise.
13693         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13694         Remove unncessary include files.
13695         * tree-ssa-phiopt.c: Likewise.
13696         * tree-ssa-reassoc.c: Likewise.
13697         * tree-switch-conversion.c: Likewise.
13698         * tree-vect-data-refs.c: Likewise.
13699         * tree-vect-generic.c: Likewise.
13700         * tree-vect-loop.c: Likewise.
13701         * tree-vect-patterns.c: Likewise.
13702         * tree-vect-slp.c: Likewise.
13703         * tree-vect-stmts.c: Likewise.
13704         * tree-vrp.c: Likewise.
13705         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13706         rather than optabs.h.
13707         * expr.c: Include optabs-tree.h.
13708         * function.c: Likewise.
13710 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13712         PR middle-end/65958
13713         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13714         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13715         * config/arm/arm.c: Include common/common-target.h.
13716         (use_return_insn): Return 0 if the static chain register was saved
13717         above a non-APCS frame.
13718         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13719         (struct scratch_reg): New.
13720         (get_scratch_register_on_entry): New function.
13721         (release_scratch_register_on_entry): Likewise.
13722         (arm_emit_probe_stack_range): Likewise.
13723         (output_probe_stack_range): Likewise.
13724         (arm_expand_prologue): Factor out code dealing with the IP register
13725         for nested function and adjust it for stack checking.
13726         Invoke arm_emit_probe_stack_range if static builtin stack checking
13727         is enabled.
13728         (thumb1_expand_prologue): Sorry out if static builtin stack checking
13729         is enabled.
13730         (arm_expand_epilogue): Add the saved static chain register, if any, to
13731         the amount of pre-pushed registers to pop.
13732         (arm_frame_pointer_required): Return true if static stack checking is
13733         enabled and we want to catch the exception with the EABI unwinder.
13734         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13735         (UNSPEC_PROBE_STACK_RANGE): Likewise.
13736         * config/arm/arm.md (probe_stack): New insn.
13737         (probe_stack_range): Likewise.
13739 2015-09-17  Richard Biener  <rguenther@suse.de>
13741         * genmatch.c (parser::parse_expr): Improve error message
13742         for mis-placed flags.
13744 2015-09-17  Richard Biener  <rguenther@suse.de>
13746         * passes.c (rest_of_decl_compilation): Always call early_global_decl
13747         debug hook when we created a varpool node.
13748         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13749         dwarf2out_early_global_decl, when not just add location or
13750         value attributes to existing DIEs.
13752 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
13754         * config/aarch64/aarch64.md (copysigndf3): New.
13755         (copysignsf3): Likewise.
13757 2015-09-17  David S. Miller  <davem@davemloft.net>
13759         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13760         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13761         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13762         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13763         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13764         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13765         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13766         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13767         provide when flag_pic.
13769 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13771         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13772         object_allocator change.
13774 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13776         PR tree-optimization/66388
13777         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13778         (dump_iv): Dump no_overflow information.
13779         (alloc_iv): Initialize new field for struct iv.
13780         (mark_bivs): Count number of no_overflow bivs.
13781         (find_deriving_biv_for_expr, record_biv_for_address_use): New
13782         functions.
13783         (idx_find_step): Call new functions above.
13784         (add_candidate_1, add_candidate): New paramter.
13785         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13786         (get_computation_aff): Simplify convertion of cand for BIV.
13787         (get_computation_cost_at): Step cand's base if necessary.
13789 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13791         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13792         parameter.
13793         (tree_simplify_using_condition): Ditto.
13794         (simplify_using_initial_conditions): Ditto.
13795         (loop_exits_before_overflow): Pass new argument to function
13796         simplify_using_initial_conditions.  Remove case for type conversions
13797         simplification.
13798         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13799         parameter.
13800         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13801         in iv base using loop initial conditions.
13803 2015-09-16  Jeff Law  <law@redhat.com>
13805         PR tree-optimization/47679
13806         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13807         (free_all_edge_infos): Use it.
13808         (allocate_edge_info): Free preexisting edge info data.
13809         (pass_dominator::execute): Set up initial edge info structures.
13810         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13811         thread_across_edge.
13812         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13813         If non-null, then push/pop markers appropriately.
13814         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13815         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13816         thread-across_edge.
13818 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
13820         * config/ft32/ft32.c: Fix the memory address space predicate.
13822 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13824         PR target/67573
13825         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13826         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13828 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13830         * toplev.h (check_global_declaration): Remove declaration.
13831         * toplev.c (check_global_declaration): Move to ...
13832         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13833         (analyze_functions): Update call.
13835 2015-09-16  David S. Miller  <davem@davemloft.net>
13837         * lra-constraints.c (simplify_operand_subreg): Do not assume that
13838         lowpart of a SUBREG has offset zero.
13840 2015-09-16  Jeff Law  <law@redhat.com>
13842         PR tree-optimization/47679
13843         * tree-ssa-dom.c (enum expr_kind): Moved from here to
13844         tree-ssa-scopedtables.h.
13845         (struct hashable_expr, class expr_hash_elt): Likewise.
13846         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13847         Move associated methods into tree-ssa-scopedtables.c.
13848         (avail_expr_hash, initialize_expr_from_cond): Similarly.
13849         (hashable_expr_equal_p, add_expr_commutative): Likewise.
13850         (add_hashable_expr): Likewise.
13851         (record_cond): Delete element directly.
13852         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13853         private copy ctor and assignment operator methods.
13854         (expr_elt_hasher): Inline trivial methods.
13855         (initialize_expr_from_cond): Prototype.
13856         * tree-ssa-scopedtables.c: Add necessary includes, functions and
13857         methods that were previously in tree-ssa-dom.c.  Improve various
13858         comments.
13860 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
13862         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13864 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
13866         PR bootstrap/67587
13867         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13868         fixup_partitions.
13870 2015-09-16  Richard Biener  <rguenther@suse.de>
13872         PR middle-end/67253
13873         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13874         location of possibly shared trees.
13876 2015-09-16  Richard Biener  <rguenther@suse.de>
13878         PR middle-end/67271
13879         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13881 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
13883         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13884         offset and size computations instead of HOST_WIDE_INT.
13886 2015-09-16  Richard Biener  <rguenther@suse.de>
13888         PR middle-end/67442
13889         * fold-const.c (extract_muldiv_1): Properly extend multiplication
13890         result before builting a tree via wide_int_to_tree.
13892 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
13894         * Makefile.in: Add memory-block.cc
13895         (pool_allocator::initialize): Use fixed block size.
13896         (pool_allocator::release): Use memory_block_pool.
13897         (pool_allocator::allocate): Likewise.
13898         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13899         object pools.
13900         * cfg.c (initialize_original_copy_tables): Likewise.
13901         * cselib.c (elt_list_pool, elt_loc_list_pool,
13902         cselib_val_pool): Likewise.
13903         * df-problems.c (df_chain_alloc): Likewise.
13904         * df-scan.c (df_scan_alloc): Likewise.
13905         * dse.c (cse_store_info_pool, rtx_store_info_pool,
13906         read_info_type_pool, insn_info_type_pool, bb_info_pool,
13907         group_info_pool, deferred_change_pool): Likewise.
13908         * et-forest.c (et_nodes, et_occurrences): Likewise.
13909         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13910         ipcp_agg_lattice_pool): Likewise.
13911         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13912         * ipa-profile.c (histogram_pool): Likewise.
13913         * ipa-prop.c (ipa_refdesc_pool): Likewise.
13914         * ira-build.c (live_range_pool, allocno_pool, object_pool,
13915         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13916         * ira-color.c (update_cost_record_pool): Likewise.
13917         * lra-lives.c (lra_live_range_pool): Likewise.
13918         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13919         * memory-block.cc: New file.
13920         * memory-block.h: New file.
13921         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13922         * sched-deps.c (sched_deps_init): Likewise.
13923         * sel-sched-ir.c (sched_lists_pool): Likewise.
13924         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13925         * tree-sra.c (access_pool): Likewise.
13926         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13927         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13928         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13929         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13930         * tree-ssa-strlen.c (strinfo_pool): Likewise.
13931         * tree-ssa-structalias.c (variable_info_pool): Likewise.
13932         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13933         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13935 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13937         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13938         definition.
13939         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13940         call0 ABI.
13942 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13944         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13945         to pass TLS call argument, according to current ABI.
13946         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13947         callx0 for TLS call, according to current ABI.
13949 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13951         * tree-eh.c (lower_try_finally_dup_block): Clear location information
13952         on stack restore statements.
13953         (decide_copy_try_finally): Do not consider a stack restore statement as
13954         coming from sources.
13956 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
13958         * config/alpha/alpha.c (alpha_expand_block_clear): Use
13959         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13961 2015-09-15  Jeff Law  <law@redhat.com>
13963         PR tree-optimization/47679
13964         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13965         methods and private members.
13966         (avail_exprs_stack): Similarly.  Change type of global
13967         from a pair of expr_hash_elt_t to the new class.
13968         (expr_elt_hasher::hash): Corresponding changes.
13969         (expr_elt_hasher::equal): Similarly.
13970         (avail_expr_hash): Similarly.
13971         (pass_dominator::execute): Similarly.
13972         (dom_opt_dom_walker::thread_across_edge): Similarly.
13973         (record_cond): Similarly.
13974         (dom_opt_dom_walker::before_dom_children): Similarly.
13975         (dom_opt_dom_walker::after_dom_children): Similarly.
13976         (lookup_avail_expr): Likewise.
13977         (initialize_hash_element): Now a expr_hash_elt constructor.
13978         (initialize_hash_element_from_expr): Similarly.
13979         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13980         (free_expr_hash_elt): Call dtor for the element.
13981         (remove_local_expressions_from_table): Now the "pop_to_marker"
13982         method in the available_exprs_stack class.
13983         (avail_expr_stack::record_expr): Method factored out.
13984         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13985         Fix formatting.
13986         (hashable_expr_equal_p): Fix formatting.
13988 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
13990         * input.h (location_get_source_line): Drop "expanded_location"
13991         param in favor of a file and line number.
13992         * input.c (location_get_source_line): Likewise.
13993         (dump_location_info): Update for change in signature of
13994         location_get_source_line.
13995         * diagnostic.c (diagnostic_print_caret_line): Likewise.
13997 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13999         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14000         Bump to 4KB for SJLJ exceptions.
14001         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
14002         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14003         * doc/tm.texi: Regenerate.
14005 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14007         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14008         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
14009         Update prototype.
14011 2015-09-15  Richard Biener  <rguenther@suse.de>
14013         PR tree-optimization/67470
14014         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14015         structure for PHI hoisting by inserting a forwarder block
14016         if appropriate.
14018 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14020         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14021         (arm_option_print): New function.
14023 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14025         PR target/52144
14026         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14027         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14028         Remove flags parameter.
14029         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14030         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14031         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14032         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14033         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14034         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14035         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14036         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14038 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14040         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14042         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14043         AARCH64_VALID_SIMD_DREG_MODE.
14045 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14047         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14048         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14049         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14050         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14051         aarch64_ld4_lane<mode>): Combine together, making...
14052         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14053         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14054         aarch64_st4_lane<mode>): Combine together, making...
14055         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14056         * config/aarch64/iterators.md (nregs): Add comment.
14058 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14060         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14061         Change operand mode from <V_TWO_ELEM> to BLK.
14062         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14063         (aarch64_vec_store_lanesoi_lane<mode): Likewise
14064         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14065         (aarch64_ld2_lane<mode>): Likewise.
14066         (aarch64_st2_lane<VQ:mode>): Likewise.
14067         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14069 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14071         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14072         Change operand mode from <V_FOUR_ELEM> to BLK.
14073         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14074         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14075         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14076         (aarch64_ld4_lane<mode>): Likewise.
14077         (aarch64_st4_lane<mode>): Likewise.
14078         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14080 2015-09-15  Richard Biener  <rguenther@suse.de>
14082         PR middle-end/67563
14083         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14084         transfer EH info from old to new stmt.
14085         (replace_call_with_value): Likewise.
14086         (replace_call_with_call_and_fold): Likewise.
14087         (gimple_fold_builtin_memory_op): Likewise.
14088         (gimple_fold_builtin_memset): Likewise.
14089         (gimple_fold_builtin_stpcpy): Likewise.
14090         (gimple_fold_call): Likewise.
14092 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14094         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14095         comment.
14096         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14097         (aarch64_simd_intEI_type_node): Likewise.
14098         (aarch64_simd_builtin_std_type): Remove EImode case.
14099         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14100         * config/aarch64/aarch64-modes.def: Remove EImode.
14102 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14104         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14105         Change operand mode from <V_THREE_ELEM> to BLK.
14106         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14107         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14108         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14109         (aarch64_ld3_lane<mode>): Likewise.
14110         (aarch64_st3_lane<mode>): Likewise.
14111         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14113 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14115         * config/aarch64/aarch64-simd.md
14116         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14117         Change all TImode operands to BLKmode.
14118         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14119         Change all EImode operands to BLKmode.
14120         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14121         Change all OImode operands to BLKmode.
14123         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14124         and call set_mem_size.
14125         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14127         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14129 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14131         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14132         to...
14133         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14135         (vec_store_lanesci_lane<mode>): Rename to...
14136         (aarch64_vec_store_lanesci_lane<mode>): ...this.
14138         (vec_store_lanesxi_lane<mode>): Rename to...
14139         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14141         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14142         aarch64_st4_lane<mode>): Follow renaming.
14144 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14146         * config/s390/s390.c (s390_const_operand_ok): Add missing
14147         brackets.
14149 2015-09-15  Richard Biener  <rguenther@suse.de>
14151         PR lto/67568
14152         * lto-streamer.h (lto_location_cache::current_sysp): Properly
14153         initialize.
14154         * lto-streamer-out.c (clear_line_info): Likewise.
14156 2015-09-15  Richard Biener  <rguenther@suse.de>
14158         * doc/match-and-simplify.texi: Fix wording.
14160 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
14162         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14163         unnecessary type conversion in op1.
14165 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
14167         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14168         (dup_block_and_redirect): Delete function.
14169         (can_dup_for_shrink_wrapping): New function.
14170         (fix_fake_fallthrough_edge): New function.
14171         (try_shrink_wrapping): Rewrite function.
14172         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14174 2015-09-14  Rich Felker  <dalias@libc.org>
14176         * configure.ac: Change target pattern for sh TLS support
14177         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14178         * configure: Regenerate.
14180 2015-09-14  Jeff Law  <law@redhat.com>
14182         PR tree-optimization/47679
14183         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14184         type rather than void *.
14186 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14188         PR fortran/67460
14189         * diagnostic.c (diagnostic_initialize): Do not set
14190         some_warnings_are_errors.
14191         (diagnostic_finish): Use DK_WERROR count instead.
14192         (diagnostic_report_diagnostic): Do not set
14193         some_warnings_are_errors.
14194         * diagnostic.h (struct diagnostic_context): Remove
14195         some_warnings_are_errors.
14197 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
14199         * config/sparc/predicates.md (const_all_ones_operand): Use
14200         CONSTM1_RTX to simplify definition.
14202 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
14204         PR target/67061
14205         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14206         Handle call insns.
14208 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
14210         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14211         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14212         OPT_fshow_column to handled saved option cases.
14213         (append_compiler_options): Do not skip the above added options.
14215 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14217         PR target/63304
14218         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14219         nopcrelative_literal_loads.
14220         (aarch64_classify_address): Likewise.
14221         (aarch64_constant_pool_reload_icode): Define.
14222         (aarch64_secondary_reload): Handle secondary reloads for
14223         literal pools.
14224         (aarch64_override_options): Handle nopcrelative_literal_loads.
14225         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14226         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14227         Define.
14228         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14229         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14230         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14231         predicate.
14232         * doc/invoke.texi (mpc-relative-literal-loads): Document.
14234 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
14236         PR middle-end/67401
14237         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14238         sync_compare_and_swap_optab libcall to target_oval.
14240 2015-09-14  Marek Polacek  <polacek@redhat.com>
14242         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14243         value.
14244         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14246 2015-09-11  Mark Wielaard  <mjw@redhat.com>
14248         PR c/28901
14249         * toplev.c (check_global_declaration): Check and use
14250         warn_unused_const_variable.
14251         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14252         (-Wunused-variable): Remove non-constant. For C implies
14253         -Wunused-const-variable.
14254         (-Wunused-const-variable): New.
14256 2015-09-14  Richard Biener  <rguenther@suse.de>
14258         * doc/match-and-simplify.texi: Update for changed syntax
14259         of inner ifs and the new switch expression.
14261 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
14263         * config/i386/haswell.md: New file describing Haswell pipeline.
14264         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14265         haswell-like processors.
14266         (ix86_reassociation_width): Increase reassociation width for 64-bit
14267         Haswell processor family.
14268         * config/i386/i386.md: Introduce haswell cpu and include new md file.
14270 2015-09-14  Richard Biener  <rguenther@suse.de>
14272         * doc/match-and-simplify.texi: Fixup some formatting issues
14273         and document the 's' flag.
14275 2015-09-13  Olivier Hainque  <hainque@adacore.com>
14276             Eric Botcazou  <ebotcazou@adacore.com>
14278         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14279         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
14280         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14281         (TARGET_CPU_gr5): Likewise.
14282         (TARGET_CPU_gr6): Likewise.
14283         (MULTILIB_DEFAULTS): Likewise.
14284         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14285         for mcpu=gr5 and mcpu=gr6.
14286         (MULTILIB_DIRNAMES): Adjust accordingly.
14288 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14290         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14291         (mem_ref_p): Likewise.
14292         (outermost_indep_loop): Adjust.
14293         (mem_ref_in_stmt): Likewise.
14294         (determine_max_movement): Likewise.
14295         (mem_ref_alloc): Likewise.
14296         (record_mem_ref_loc): Likewise.
14297         (set_ref_stored_in_loop): Likewise.
14298         (mark_ref_stored): Likewise.
14299         (gather_mem_refs_stmt): Likewise.
14300         (mem_refs_may_alias_p): Likewise.
14301         (for_all_locs_in_loop): Likewise.
14302         (struct rewrite_mem_ref_loc): Likewise.
14303         (rewrite_mem_refs): Likewise.
14304         (struct first_mem_ref_loc_1): Likewise.
14305         (first_mem_ref_loc): Likewise.
14306         (struct sm_set_flag_if_changed): Likewise.
14307         (execute_sm_if_changed_flag_set): Likewise.
14308         (execute_sm): Likewise.
14309         (hoist_memory_references):
14310         (struct ref_always_accessed): Likewise.
14311         (ref_always_accessed_p): Likewise.
14312         (refs_independent_p): Likewise.
14313         (record_dep_loop): Likewise.
14314         (ref_indep_loop_p_1): Likewise.
14315         (ref_indep_loop_p_2): Likewise.
14316         (ref_indep_loop_p): Likewise.
14317         (can_sm_ref_p): Likewise.
14318         (find_refs_for_sm): Likewise.
14319         (tree_ssa_lim_finalize): Likewise.
14321 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14323         * dwarf2out.c (dw_attr_ref): Remove typedef.
14324         (dw_line_info_ref): Likewise.
14325         (pubname_ref): Likewise.
14326         (dw_ranges_ref): Likewise.
14327         (dw_ranges_by_label_ref): Likewise.
14328         (comdat_type_node_ref): Likewise.
14329         (get_AT): Adjust.
14330         (get_AT_low_pc): Likewise.
14331         (get_AT_hi_pc): Likewise.
14332         (get_AT_string): Likewise.
14333         (get_AT_flag): Likewise.
14334         (get_AT_unsigned): Likewise.
14335         (get_AT_ref): Likewise.
14336         (get_AT_file): Likewise.
14337         (remove_AT): Likewise.
14338         (print_die): Likewise.
14339         (check_die): Likewise.
14340         (die_checksum): Likewise.
14341         (attr_checksum_ordered): Likewise.
14342         (struct checksum_attributes): Likewise.
14343         (collect_checksum_attributes): Likewise.
14344         (die_checksum_ordered): Likewise.
14345         (same_die_p): Likewise.
14346         (is_declaration_die): Likewise.
14347         (clone_die): Likewise.
14348         (clone_as_declaration): Likewise.
14349         (copy_declaration_context): Likewise.
14350         (break_out_comdat_types): Likewise.
14351         (copy_decls_walk): Likewise.
14352         (output_location_lists): Likewise.
14353         (external_ref_hasher::hash): Likewise.
14354         (optimize_external_refs_1): Likewise.
14355         (build_abbrev_table): Likewise.
14356         (size_of_die): Likewise.
14357         (unmark_all_dies): Likewise.
14358         (size_of_pubnames): Likewise.
14359         (output_die_abbrevs): Likewise.
14360         (output_die): Likewise.
14361         (output_pubnames): Likewise.
14362         (add_ranges_num): Likewise.
14363         (add_ranges_by_labels): Likewise.
14364         (add_high_low_attributes): Likewise.
14365         (gen_producer_string): Likewise.
14366         (dwarf2out_set_name): Likewise.
14367         (new_line_info_table): Likewise.
14368         (prune_unused_types_walk_attribs): Likewise.
14369         (prune_unused_types_update_strings): Likewise.
14370         (prune_unused_types): Likewise.
14371         (resolve_addr): Likewise.
14372         (optimize_location_lists_1): Likewise.
14373         (index_location_lists): Likewise.
14374         (dwarf2out_finish): Likewise.
14376 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14378         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14380 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14382         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14383         (dump_asserts_for): Adjust.
14384         (register_new_assert_for): Likewise.
14385         (process_assert_insertions): Likewise.
14386         (insert_range_assertions): Likewise.
14388 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14390         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14391         and remove typedef.
14392         (new_temp_expr_table): Adjust.
14393         (free_temp_expr_table): Likewise.
14394         (version_to_be_replaced_p): Likewise.
14395         (make_dependent_on_partition): Likewise.
14396         (add_to_partition_kill_list): Likewise.
14397         (remove_from_partition_kill_list): Likewise.
14398         (add_dependence): Likewise.
14399         (finished_with_expr): Likewise.
14400         (process_replaceable): Likewise.
14401         (kill_expr): Likewise.
14402         (kill_virtual_exprs): Likewise.
14403         (mark_replaceable): Likewise.
14404         (find_replaceable_in_bb): Likewise.
14405         (find_replaceable_exprs): Likewise.
14406         (debug_ter): Likewise.
14408 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14410         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14411         (struct btr_user): Rename from btr_user_s.
14412         (struct btr_def): Rename from btr_def_s.
14413         (find_btr_def_group): Adjust.
14414         (add_btr_def): Likewise.
14415         (new_btr_user): Likewise.
14416         (note_other_use_this_block): Likewise.
14417         (compute_defs_uses_and_gen): Likewise.
14418         (link_btr_uses): Likewise.
14419         (build_btr_def_use_webs): Likewise.
14420         (block_at_edge_of_live_range_p): Likewise.
14421         (btr_def_live_range): Likewise.
14422         (combine_btr_defs): Likewise.
14423         (move_btr_def): Likewise.
14424         (migrate_btr_def): Likewise.
14425         (migrate_btr_defs): Likewise.
14427 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14429         * var-tracking.c (shared_hash_def): Rename to shared_hash.
14430         (shared_hash): Remove typedef.
14431         (struct dataflow_set): Adjust.
14432         (shared_hash_unshare): Likewise.
14433         (dataflow_set_merge): Likewise.
14434         (vt_initialize): Likewise.
14435         (vt_finalize): Likewise.
14437 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14439         * var-tracking.c (struct location_chain): Rename from
14440         location_chain_def.
14441         (struct variable_part): Adjust.
14442         (variable_htab_free): Likewise.
14443         (unshare_variable): Likewise.
14444         (get_init_value): Likewise.
14445         (get_addr_from_local_cache): Likewise.
14446         (drop_overlapping_mem_locs): Likewise.
14447         (val_reset): Likewise.
14448         (struct variable_union_info): Likewise.
14449         (variable_union): Likewise.
14450         (find_loc_in_1pdv): Likewise.
14451         (insert_into_intersection): Likewise.
14452         (intersect_loc_chains): Likewise.
14453         (canonicalize_loc_order_check): Likewise.
14454         (canonicalize_values_mark): Likewise.
14455         (canonicalize_values_star): Likewise.
14456         (canonicalize_vars_star): Likewise.
14457         (variable_merge_over_cur): Likewise.
14458         (remove_duplicate_values): Likewise.
14459         (variable_post_merge_new_vals): Likewise.
14460         (variable_post_merge_perm_vals): Likewise.
14461         (find_mem_expr_in_1pdv): Likewise.
14462         (dataflow_set_preserve_mem_locs): Likewise.
14463         (dataflow_set_remove_mem_locs): Likewise.
14464         (variable_part_different_p): Likewise.
14465         (onepart_variable_different_p): Likewise.
14466         (find_src_set_src): Likewise.
14467         (dump_var): Likewise.
14468         (set_slot_part): Likewise.
14469         (clobber_slot_part): Likewise.
14470         (delete_slot_part): Likewise.
14471         (vt_expand_var_loc_chain): Likewise.
14472         (emit_note_insn_var_location): Likewise.
14473         (vt_finalize): Likewise.
14475 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14477         * dse.c (store_info_t): Remove typedef.
14478         (group_info_t): Likewise.
14479         (const_group_info_t): Likewise.
14480         (deferred_change_t): Likewise.
14481         (get_group_info): Adjust.
14482         (free_store_info): Likewise.
14483         (canon_address): Likewise.
14484         (clear_rhs_from_active_local_stores): Likewise.
14485         (record_store): Likewise.
14486         (replace_read): Likewise.
14487         (check_mem_read_rtx): Likewise.
14488         (scan_insn): Likewise.
14489         (remove_useless_values): Likewise.
14490         (dse_step1): Likewise.
14491         (dse_step2_init): Likewise.
14492         (dse_step2_nospill): Likewise.
14493         (scan_stores_nospill): Likewise.
14494         (scan_reads_nospill): Likewise.
14495         (dse_step3_exit_block_scan): Likewise.
14496         (dse_step3): Likewise.
14497         (dse_step5_nospill): Likewise.
14498         (dse_step6): Likewise.
14500 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14502         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14503         (alias_set_entry): Remove typedef.
14504         (alias_set_subset_of): Adjust.
14505         (alias_sets_conflict_p): Likewise.
14506         (init_alias_set_entry): Likewise.
14507         (get_alias_set): Likewise.
14508         (new_alias_set): Likewise.
14509         (record_alias_subset): Likewise.
14511 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
14513         * doc/install.texi (Downloading the source): Mark up
14514         contrib/download_prerequisites properly and drop leading "./".
14516 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14518         * config/arc/arc.h: Remove define of STRUCT_VALUE.
14519         * config/lm32/lm32.h: Likewise.
14520         * config/mep/mep.h: Likewise.
14521         * config/visium/visium.h: Likewise.
14522         * system.h: Poison STRUCT_VALUE macro.
14524 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
14526         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14527         CONSTANT_P operands.
14529 2015-09-11  David S. Miller  <davem@davemloft.net>
14531         * config/sparc/constraints.md: Make "U" constraint a real register
14532         constraint.
14533         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14534         (D_MODES, DF_MODES): Add missing cast.
14535         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14536         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14537         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14538         cost to 8.
14539         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14540         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14541         provide these insn when flag_pic.
14543 2015-09-11  Jeff Law  <law@redhat.com>
14545         PR tree-optimization/47679
14546         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14547         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14548         member with m_.  Update inline member functions as necessary.  Add
14549         toplevel comment.
14550         * tree-ssa-scopedtables.c: Update const_and_copies's member
14551         functions to use m_ prefix to access the stack.
14553 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14555         * graphite-optimize-isl.c (disable_tiling): Remove.
14556         (get_schedule_for_band): Do not use disable_tiling.
14557         (get_prevector_map): Delete function.
14558         (enable_polly_vector): Remove.
14559         (get_schedule_for_band_list): Remove dead code.
14561 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14563         * graphite-optimize-isl.c (get_tile_map): Refactor.
14564         (get_schedule_for_band): Same.
14565         (getScheduleForBand): Same.
14566         (get_prevector_map): Same.
14567         (get_schedule_for_band_list): Same.
14568         (get_schedule_map): Same.
14569         (get_single_map): Same.
14570         (apply_schedule_map_to_scop): Same.
14571         (optimize_isl): Same.
14573 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14575         PR target/63304
14576         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14577         (movtf): Delete.
14578         * config/aarch64/iterators.md (GPF_TF_F16): New.
14579         (GPF_F16): Delete.
14581 2015-09-10  Nathan Sidwell  <nathan@acm.org>
14583         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14584         (nvptx_reorg): Adjust comments.
14586 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
14588         PR bootstrap/67363
14589         * configure.ac: Check if setenv and unsetenv are declared.
14590         * configure: Rebuild.
14591         * config.in: Rebuild.
14592         * system.h: Declare setenv and unsetenv if not declared.
14594 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14596         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14597         commentary to simplify permute mask adjustment equation.
14598         (special_handling_values): Add SH_VPERM.
14599         (const_load_sequence_p): New function.
14600         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14601         the mask loaded from the constant pool.
14602         (adjust_vperm): New function.
14603         (handle_special_swappables): Call adjust_vperm.
14604         (dump_swap_insn_table): Handle SH_VPERM.
14606 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14608         * shrink-wrap.c (requires_stack_frame_p): Remove static.
14609         * shrink-wrap.h (requires_stack_frame_p): Put back.
14611 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14613         * reload1.c (elimination_costs_in_insn): Locally turn
14614         -Wmaybe-uninitialized into a warning.
14616 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
14618         * shrink-wrap.c (requires_stack_frame_p): Make static.
14619         (prepare_shrink_wrap): Likewise.
14620         (dup_block_and_redirect): Likewise.
14621         * shrink-wrap.h: Remove declarations of those functions.
14623 2015-09-10  Mark Wielaard  <mjw@redhat.com>
14625         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14627 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
14629         PR target/67506
14630         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14631         missing simplify_gen_subreg.
14633 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14635         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14636         the vector element is bigger than 64 bit.
14638 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14640         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14641         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14643 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14645         * config/s390/s390.c: Add V1TImode to constant pool modes.
14647 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14649         PR target/67439
14650         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14651         predicate.  Set predicable_short_it attr to "no".
14653 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
14655         PR rtl-optimization/67421
14656         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14657         left wide shift tranformation.
14659 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
14661         * common/config/arc/arc-common.c: Remove references to A5.
14662         * config/arc/arc-opts.h: Likewise.
14663         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14664         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14665         * config/arc/t-arc-newlib: Likewise.
14667 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
14669         * config/arc/arc.md (length): Fix attribute length for conditional
14670         executed instructions with long immediate.
14672 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14674         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14675         type for second alternative.
14677 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
14679         * doc/invoke.texi (Downloading GCC): Mention
14680         contrib/download_prerequisites script.
14682 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
14684         PR c++/67523
14685         * gimplify.c (gimplify_omp_for): If inner stmt is not found
14686         for combined loop, assert seen_error () and return GS_ERROR.
14688         PR middle-end/67521
14689         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14690         if decl is already in outer->variables.
14692         PR middle-end/67517
14693         * gimplify.c (gimplify_scan_omp_clauses): Instead of
14694         asserting that decl is not specified in octx->variables,
14695         break out of the loop if it is.
14697         PR c++/67514
14698         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14699         iterator is not explicitly determined, but is defined inside
14700         of the combined workshare region, handle it like if it has
14701         DECL_EXPR in OMP_FOR_PRE_BODY.
14703 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14705         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14706         (*cmp<mode>): Add assembler spacing.
14707         (setcc_int<mode>, set_cc_float<mode>): Likewise.
14708         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14709         level.
14710         (write_func_decl_from_insn): Refactor argument loops & comma emission.
14711         (nvptx_expand_call): Likewise.
14712         (nvptx_output_call_insn): Likewise.
14713         (nvptx_reorg_subreg): Add spacing.
14715 2015-09-09  Marek Polacek  <polacek@redhat.com>
14717         PR middle-end/67512
14718         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14719         for comparisons.
14721 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14723         PR c++/53184
14724         * doc/invoke.texi ([Wsubobject-linkage]): Document.
14726 2015-09-09  Tom de Vries  <tom@codesourcery.com>
14728         * params-list.h: Add missing copyright notice.
14730 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14732         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14733         sel_truesi, not andsi.
14735 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14737         * config/arm/arm.md (*subsi3_compare0): Rename to...
14738         (subsi3_compare0): ... This.
14739         (modsi3): New define_expand.
14740         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14741         when operand is power of 2.
14743 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14745         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14746         (*neg<mode>2_compare0): Rename to...
14747         (neg<mode>2_compare0): ... This.
14748         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14749         Move check for speed inside the if-then-elses.  Reflect
14750         CSNEG sequence in MOD by power of 2 case.
14752 2015-09-09  Alan Modra  <amodra@gmail.com>
14754         PR target/67378
14755         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14756         reload replacement for PRE_MODIFY address reg.
14758 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
14760         PR tree-optimization/53852
14761         * config.in: Regenerate.
14762         * configure: Regenerate.
14763         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14764         * graphite-optimize-isl.c (optimize_isl): Stop computation when
14765         PARAM_MAX_ISL_OPERATIONS is reached.
14766         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14767         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14768         result equal to isl_stat_ok as the status now can be isl_error_quota.
14769         (subtract_commutative_associative_deps): Same.
14770         (compute_deps): Same.
14772 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14773             Sebastian Pop  <s.pop@samsung.com>
14775         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14776         Return the parameter if it was saved in corresponding
14777         parameter_rename_map of the region.
14778         (copy_def): Copy def from sese region to the newly created region.
14779         (copy_internal_parameters): Copy all the internal parameters defined
14780         within a region to the newly created region.
14781         (graphite_regenerate_ast_isl): Copy parameters to the new region before
14782         translating isl to gimple.
14783         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14784         the loop-nest does not have any data-references.
14785         (build_graphite_scops): Create a scop only when there is at least one
14786         loop inside it.
14787         (contains_only_close_phi_nodes): Deleted.
14788         (print_graphite_scop_statistics): Deleted
14789         (print_graphite_statistics): Deleted
14790         (limit_scops): Deleted.
14791         (build_scops): Removed call to limit_scops.
14792         * sese.c (new_sese): Construct.
14793         (free_sese): Destruct.
14794         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14795         added.
14796         (set_rename): Pass sese region so that parameters inside the region can
14797         be added to its parameter_rename_map.
14798         (rename_uses): Pass sese region.
14799         (graphite_copy_stmts_from_block): Do not copy parameters that have been
14800         generated in the header of the scop. For each SSA_NAME in the
14801         parameter_rename_map rename its usage.
14802         (invariant_in_sese_p_rec): Return false if tree t is defined outside
14803         sese region.
14804         (scalar_evolution_in_region): If the tree t is invariant just return t.
14805         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14806         struct sese to keep track of all the parameters which need renaming.
14807         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14808         any data-refs.
14809         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14811 2015-09-08  Tom de Vries  <tom@codesourcery.com>
14813         * Makefile.in (generated_files): Add params.list.
14814         (params.list, s-params.list): Add rule.
14815         * params.h (enum compiler_param): Include params-list.h.  Move define
14816         DEFPARAM, include params.def and undef DEFPARAM ...
14817         * params-list.h: ... here.  New file.
14819 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
14821         * pretty-print.h (printer_fn): Fix typo in comment.
14823 2015-09-07  Jeff Law  <law@redhat.com>
14825         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14827 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14829         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14830         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14831         (arm_neon_fp16_hw): New.
14833 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14835         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14836         UNITS_PER_WORD >= 4.
14838 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14840         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14841         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14842         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14843         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14844         (aarch64_float_extend_lo_v2df): Rename to...
14845         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14847         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14848         (float_extend_lo): Add v4sf.
14850         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14851         * config/aarch64/iterators.md (VQ_HSF): New iterator.
14852         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14853         (Vwide): New mode_attr.
14855 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14857         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14858         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14859         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14860         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14861         V4HF and V8HF variants to iterator.
14863         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14865         * config/aarch64/iterators.md (VDQF_F16): New.
14866         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14868 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14870         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14871         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14872         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14873         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14874         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14875         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14876         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14877         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14878         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14879         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14880         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14881         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14882         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14883         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14884         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14885         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14886         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14887         vld1q_dup_f16): New.
14889 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14891         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14892         Reparameterize to...
14893         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14894         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14895         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14897         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14898         v8hf variant.
14899         (float_truncate_lo_): Use BUILTIN_VDF iterator.
14901         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14903         * config/aarch64/iterators.md (VDF, Vdtype): New.
14904         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14906 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14908         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14909         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14910         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14911         Add __builtin_aarch64_simd_hf.
14912         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14913         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14914         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14915         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14916         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14917         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14918         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14919         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14920         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14922         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14923         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14924         (VDC, Vdbl): Add V4HF.
14926 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14928         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14929         V4HFmode and V8HFmode.
14930         (aarch64_split_simd_move): Add case for V8HFmode.
14931         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14932         (aarch64_simd_builtin_std_type): Handle HFmode.
14933         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14935         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14936         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14937         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14939         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14940         Float16x8_t.
14942         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14943         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14944         New typedefs.
14945         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14946         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14947         vst1q_lane_f16): New.
14948         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14949         (VALLDI_F16, VALL_F16): New.
14950         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14951         Add cases for V4HF and V8HF.
14952         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14954 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14956         * config/arm/arm-builtins.c (VAR11, VAR12): New.
14957         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14958         vld4_dup): Add v4hf variant.
14959         (vget_high, vget_low): Add v8hf variant.
14960         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14961         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14962         v4hf and v8hf variants.
14964         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14965         (VDX): Add V4HF.
14966         (V_DOUBLE): Add case for V4HF.
14967         (VQX): Add V8HF.
14968         (V_HALF): Add case for V8HF.
14969         (VDQX): Add V4HF, V8HF.
14970         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14971         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14973         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14974         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14975         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14976         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14977         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14978         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14979         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14980         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14981         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14983         (neon_vcreate, neon_vreinterpretv8qi<mode>,
14984         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14985         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14986         Change VDX to VD_RE.
14988         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14989         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14990         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14992         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14993         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14994         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14995         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14996         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14997         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14998         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14999         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15000         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15002 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15004         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15005         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15006         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15007         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15008         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15009         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15010         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15011         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15012         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15013         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15014         New.
15016 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15018         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15020         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15022         * config/arm/arm-builtins.c (v8hf_UP): New.
15023         (arm_init_simd_builtin_types): Initialise Float16x8_t.
15025         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15027         * config/arm/arm_neon.h (float16x8_t): New typedef.
15029 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15031         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15032         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15033         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15034         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15035         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15036         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15037         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15038         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15039         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15040         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15042 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
15044         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15045         non-alphanumeric characters in the symbol name.
15047 2015-09-07  Marek Polacek  <polacek@redhat.com>
15049         PR inline-asm/67448
15050         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15051         a memory input.
15053 2015-09-07  Marek Polacek  <polacek@redhat.com>
15055         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15057 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
15059         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15060         not warn.
15062 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
15064         PR middle-end/67452
15065         * tree-ssa-live.c: Include cfgloop.h.
15066         (remove_unused_locals): Clear loop->simduid if simduid is about
15067         to be removed from cfun->local_decls.
15069 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15071         PR target/65210
15072         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15073         attribute as well.
15075 2015-09-04  Tom de Vries  <tom@codesourcery.com>
15077         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15079 2015-09-04  Jeff Law  <law@redhat.com>
15081         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15082         unnecessary constructor.  It's now trivial and implemented inside...
15083         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15084         constructor.  Add comments to various methods.  Remove unused
15085         private fields.
15086         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15087         * tree-vrp.c (identify_jump_threads): Likewise.
15088         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15089         indentation issues.
15090         (thread_across_edge): Similarly.
15091         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15092         arguments in constructor call.
15094 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
15096         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15097         temp path contains a '-'.
15099 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15100             Petr Murzin  <petr.murzin@intel.com>
15101             Kirill Yukhin  <kirill.yukhin@intel.com>
15103         * config/i386/i386-builtin-types.def
15104         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15105         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15106         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15107         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15108         * config/i386/i386.c
15109         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15110         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15111         IX86_BUILTIN_SCATTERALTDIV16SI.
15112         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15113         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15114         __builtin_ia32_scatteraltdiv8si.
15115         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15116         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15117         IX86_BUILTIN_SCATTERALTDIV16SI.
15118         (ix86_vectorize_builtin_scatter): New.
15119         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15120         ix86_vectorize_builtin_scatter.
15122 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15123             Petr Murzin  <petr.murzin@intel.com>
15124             Kirill Yukhin  <kirill.yukhin@intel.com>
15126         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15127         * doc/tm.texi: Regenerate.
15128         * target.def: Add scatter builtin.
15129         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15130         for loads/stores in case of gather/scatter accordingly.
15131         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15132         STMT_VINFO_GATHER_P(S).
15133         (vect_check_gather): Rename to ...
15134         (vect_check_gather_scatter): this.
15135         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15136         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15137         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15138         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15139         variable and new checkings for it accordingly.
15140         * tree-vect-stmts.c
15141         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15142         STMT_VINFO_GATHER_P(S).
15143         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15144         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15146 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15148         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15149         define_insn.
15150         (mulv16qi3): New define_expand.
15152 2015-09-03  Martin Sebor  <msebor@redhat.com>
15154         PR c/66516
15155         * doc/extend.texi (Other Builtins): Document when the address
15156         of a built-in function can be taken.
15158 2015-09-03  Richard Biener  <rguenther@suse.de>
15160         * dwarf2out.c (flush_limbo_die_list): Split out from ...
15161         (dwarf2out_early_finish): ... here.
15162         (dwarf2out_finish): Do not call dwarf2out_early_finish but
15163         flush_limbo_die_list.  Assert we have no deferred asm names.
15165 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15167         * optabs.c (expand_binop): Don't create a broadcast vector with a
15168         source element wider than the inner mode.
15170 2015-09-03  Richard Biener  <rguenther@suse.de>
15172         * varasm.c (output_constant): Use fold_convert instead of
15173         wide_int_to_tree.
15175 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15177         PR tree-optimization/65637
15178         * omp-low.c (expand_omp_for_static_chunk): Handle case that
15179         fin_bb has 2 predecessors.
15181 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15183         PR tree-optimization/65637
15184         * omp-low.c (find_phi_with_arg_on_edge): New function.
15185         (expand_omp_for_static_chunk): Fix inner loop phi.
15187 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15189         PR tree-optimization/65637
15190         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15191         that head is NULL.
15193 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15195         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15197 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15199         * doc/invoke.texi (parloops-chunk-size): Add item.
15200         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15201         * tree-parloops.c: Include params.h.
15202         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15203         param parloops-chunk-size is used.
15205 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15207         PR middle-end/67351
15208         * fold-const.c (fold_binary_loc) : Move
15209         Transform (x >> c) << c into x & (-1<<c) or
15210         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15211         types using simplify and match.
15212         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15213         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15215 2015-09-03  Richard Biener  <rguenther@suse.de>
15217         PR ipa/66705
15218         * tree-ssa-structalias.c (ctor_for_analysis): New function.
15219         (create_variable_info_for_1): Use ctor_for_analysis instead
15220         of get_constructor.
15221         (create_variable_info_for): Likewise.
15223 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
15225         PR ipa/67280
15226         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15227         in new callgraph edge.
15229 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
15231         PR target/59810
15232         PR target/63652
15233         PR target/63653
15234         * config/aarch64/aarch64-simd.md
15235         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15236         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15237         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15238         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15240 2015-09-02  Alan Modra  <amodra@gmail.com>
15242         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15243         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15244         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15246 2015-09-02  Alan Modra  <amodra@gmail.com>
15248         PR target/67417
15249         * config/rs6000/predicates.md (current_file_function_operand): Don't
15250         return true for weak symbols.
15251         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15253 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15254             Andrew Bennett  <andrew.bennett@imgtec.com>
15256         * config/mips/mips-opts.h (mips_cb_setting): New enum.
15257         * config/mips/mips-protos.h: Add definitions for
15258         mips_output_jump and mips_output_equal_conditional_branch
15259         * config/mips/mips.c (MIPS_JR): Change to support the
15260         JIC instruction.
15261         (mips_emit_compare): Add support for the MIPS R6 conditional
15262         compact branches.
15263         (mips_process_sync_loop): Likewise.
15264         (mips_output_order_conditional_branch): Likewise.
15265         (mips16_build_call_stub): Change MIPS_CALL to
15266         mips_output_jump.
15267         (mips_print_operand_punctuation): Update 's' case to only
15268         apply to micromips r2.
15269         (mips_adjust_insn_length): Add support for forbidden slot
15270         hazards.
15271         (mips_avoid_hazard): Likewise.
15272         (mips_reorg_process_insns): Likewise.
15273         (mips_output_jump): New function.
15274         (mips_output_equal_conditional_branch): Likewise.
15275         (mips_output_conditional_branch): Use jrc/bc if compact
15276         branch support is enabled.  Ensure the forbidden slots
15277         between the two branch instructions is filled with a nop.
15278         (mips_option_override): Add support to process the compact
15279         branch option and set the correct defaults.  Prevent
15280         non-explict relocs being using for MIPS R6.
15281         (mips_trampoline_init): Add compact branch support.
15282         (mips_mult_zero_zero_cost): Allow zero initialisation of
15283         accumulators with TARGET_DSP.
15284         * config/mips/mips.h (TARGET_CB_NEVER): New define.
15285         (TARGET_CB_MAYBE): New define.
15286         (TARGET_CB_ALWAYS): New define.
15287         (ISA_HAS_DELAY_SLOTS): New define.
15288         (ISA_HAS_COMPACT_BRANCHES): New define.
15289         (ISA_HAS_JRC): New define.
15290         (MIPS_BRANCH_C): New define.
15291         (MIPS_CALL): Removed.
15292         (MICROMIPS_J): Removed.
15293         * config/mips/mips.md (compact_form): New attr.
15294         (hazard): Add support for forbidden slots.
15295         (define_delay): Add support for compact branches.
15296         (*branch_order<mode>): Likewise.
15297         (*branch_order<mode>_inverted): Likewise.
15298         (*branch_equality<mode>): Likewise.
15299         (*branch_equality<mode>_inverted): Likewise.
15300         (*jump_absolute): Likewise.
15301         (*jump_pic): Likewise.
15302         (indirect_jump): Use mips_output_jump to produce assembly output.
15303         (tablejump_<mode>"): Likewise.
15304         (*<optab>"): Likewise.
15305         (<optab>_internal): Likewise.
15306         (sibcall_internal): Likewise.
15307         (sibcall_value_internal): Likewise.
15308         (sibcall_value_multiple_internal): Likewise.
15309         (call_internal): Likewise.
15310         (call_split): Likewise.
15311         (call_internal_direct): Likewise.
15312         (call_direct_split): Likewise.
15313         (call_value_internal): Likewise.
15314         (call_value_split): Likewise.
15315         (call_value_internal_direct): Likewise.
15316         (call_value_direct_split): Likewise.
15317         (call_value_multiple_internal): Likewise.
15318         (call_value_multiple_split): Likewise.
15319         (mips_get_fcsr_mips16_<mode>): Likewise.
15320         (mips_set_fcsr_mips16_<mode>): Likewise.
15321         (tls_get_tp_mips16_<mode>): Likewise.
15322         * config/mips/mips.opt: Add -mcompact-branches option.
15323         * config/mips/predicates.md (order_operator): Ensure the
15324         conditional compact branches are only used if the ISA them.
15325         * doc/invoke.texi: Document -mcompact-branches option.
15327 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
15329         PR target/61578
15330         * lra-lives.c (process_bb_lives): Process move pseudos with the
15331         same value for copies and preferences
15332         * lra-constraints.c (match_reload): Create match reload pseudo
15333         with the same value from single dying input pseudo.
15335 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
15337         PR target/67405
15338         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15340 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
15342         * trans-mem.c: Add contributed-by.
15343         * trans-mem.h: Same.
15345 2015-09-01  Richard Biener  <rguenther@suse.de>
15347         * expr.c (expand_expr_real_1): For expanding TERed defs
15348         set the current location to that of the def if not UNKNOWN.
15350 2015-09-01  David Sherwood  <david.sherwood@arm.com>
15352         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15354 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15356         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15357         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
15358         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15359         Include rtl-iter.h.
15360         (noce_simple_bbs): New function.
15361         (noce_try_move): Bail if basic blocks are not simple.
15362         (noce_try_store_flag): Likewise.
15363         (noce_try_store_flag_constants): Likewise.
15364         (noce_try_addcc): Likewise.
15365         (noce_try_store_flag_mask): Likewise.
15366         (noce_try_cmove): Likewise.
15367         (noce_try_minmax): Likewise.
15368         (noce_try_abs): Likewise.
15369         (noce_try_sign_mask): Likewise.
15370         (noce_try_bitop): Likewise.
15371         (bbs_ok_for_cmove_arith): New function.
15372         (noce_emit_all_but_last): Likewise.
15373         (noce_emit_insn): Likewise.
15374         (noce_emit_bb): Likewise.
15375         (noce_try_cmove_arith): Handle non-simple basic blocks.
15376         (insn_valid_noce_process_p): New function.
15377         (contains_mem_rtx_p): Likewise.
15378         (bb_valid_for_noce_process_p): Likewise.
15379         (noce_process_if_block): Allow non-simple basic blocks
15380         where appropriate.
15382 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
15384         * tree-ssa-dom.c (record_equivalences_from_phis,
15385         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15386         (lookup_avail_expr): Likewise, and remove comment and unused temp.
15388 2015-09-01  Nick Clifton  <nickc@redhat.com>
15390         * config/msp430/msp430.opt (mcpu): Fix typo.
15392 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15394         * config/aarch64/aarch64.c (aarch64_set_current_function):
15395         Re-layout any vector parameters have non-simd layout.
15396         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15397         Delete.
15398         (aarch64_simd_expand_args): Delete call to the above.
15400 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
15402         * doc/invoke.texi (asan-stack): Add space before option.
15404 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15406         * tree.h (zerop): New function.
15407         * tree.c (zerop): Likewise.
15408         (element_precision): Handle expressions.
15409         * match.pd (define_predicates): Add zerop.
15410         (x <= +Inf): Fix comment.
15411         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15412         * fold-const.c (fold_binary_loc): ... here. Remove.
15414 2015-08-31  Richard Biener  <rguenther@suse.de>
15416         PR middle-end/67381
15417         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15419 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15421         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15422         (CEXPI): New operator list.
15423         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15424         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15425         Converted from ...
15426         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15428 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15430         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15431         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15432         parameter.
15433         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15434         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15435         (rewrite_into_loop_closed_ssa): ... here.
15436         (replace_uses_in_dominated_bbs): Remove function.
15437         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15438         rewrite_into_loop_closed_ssa_1.
15440 2015-08-31  Michael Matz  <matz@suse.de>
15442         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15443         enter entry and exit blocks for reverse post order.
15445 2015-08-31  Richard Biener  <rguenther@suse.de>
15447         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15448         (lto_location_cache::current_sysp): Likewise.
15449         (output_block::current_sysp): Likewise.
15450         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15451         (lto_location_cache::apply_location_cache): Properly record
15452         system header locations.
15453         (lto_location_cache::input_location): Input whether a file
15454         is a system header.
15455         * lto-streamer-out.c (lto_output_location): Stream whether a file
15456         is a system header.
15458 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15460         PR bootstrap/67363
15461         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15463 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15465         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15466         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15467         Improve function header comments.
15469 2015-08-30  Michael Collison  <michael.collison@linaro.org>
15471         PR other/67320
15472         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15473         standard names
15475 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15477         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15478         special_handling bitfield.
15479         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15480         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15481         that represents a general xxpermdi.
15482         (insn_is_swappable_p): Add handling for vec_concat of two
15483         doublewords, which maps to a specific xxpermdi.
15484         (adjust_xxpermdi): New function.
15485         (adjust_concat): Likewise.
15486         (handle_special_swappables): Call adjust_xxpermdi and
15487         adjust_concat.
15488         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15490 2015-08-30  Rich Felker <dalias@libc.org>
15492         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15493         case instead of sh[123456ble]-*-*.
15495 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
15497         * ira.c (print_unform_and_important_classes,
15498         print_translated_classes): Remove reg_class_names static array.
15499         (print_unform_and_important_classes): Rename to ...
15500         (print_uniform_and_important_classes): ... this.
15501         (ira_debug_allocno_classes): Update accordingly.
15503 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15505         PR tree-optimization/46193
15506         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15507         clause.
15509 2015-08-28  Jeff Law  <law@redhat.com>
15511         PR lto/66752
15512         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15513         unable to find X NE 0 in the tables, return X as the simplified
15514         condition.
15515         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15516         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15517         to VISISTED_BBS.
15518         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15519         after removing the control flow statement and unnecessary edges.
15521 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
15523         Revert:
15524         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15526         PR tree-optimization/67283
15527         * tree-sra.c (type_consists_of_records_p): Rename to...
15528         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15530         (completely_scalarize_record): Rename to...
15531         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15532         code to:
15533         (scalarize_elem): New.
15535 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
15537         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15538         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15539         (aarch64_symbol_type): Likewise.
15540         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15541         Likewise.
15542         (aarch64_expand_mov_immediate): Likewise.
15543         (aarch64_print_operand): Likewise.
15544         (aarch64_classify_tls_symbol): Likewise.
15546 2015-08-28  Richard Biener  <rguenther@suse.de>
15548         * cgraphunit.c (symbol_table::compile): Move early debug generation
15549         and finish...
15550         (symbol_table::finalize_compilation_unit): ... back here and
15551         add a !seen_error () guard.
15553 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15555         * toplev.c (process_options): Do not use flag_loop_block,
15556         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
15557         flag_loop_optimize_isl.
15559 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15561         * Makefile.in (OBJS): Remove graphite-blocking.o and
15562         graphite-interchange.o.
15563         * common.opt (floop-strip-mine, floop-interchange, floop-block):
15564         Alias of floop-nest-optimize.
15565         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15566         Document as alias of -floop-nest-optimize.
15567         * graphite-blocking.c: Remove.
15568         * graphite-interchange.c: Remove.
15569         * graphite-optimize-isl.c: Include dumpfile.h.
15570         (getScheduleForBand): Add dump for tiled loops.  Use
15571         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15572         * graphite-poly.c (scop_max_loop_depth): Remove.
15573         (print_scattering_function_1): Remove.
15574         (print_scattering_function): Remove.
15575         (print_scattering_functions): Remove.
15576         (debug_scattering_function): Remove.
15577         (debug_scattering_functions): Remove.
15578         (apply_poly_transforms): Remove use of flag_loop_block,
15579         flag_loop_strip_mine, and flag_loop_interchange.
15580         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15581         PBB_ORIGINAL.
15582         (print_pdr_access_layout): Remove.
15583         (print_pdr): Print ISL representation.
15584         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15585         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15586         (free_scop): Same.
15587         (openscop_print_pbb_domain): Remove.
15588         (print_pbb): Remove call to print_scattering_function.
15589         (openscop_print_scop_context): Remove.
15590         (print_scop_context): Do not print matrices anymore.
15591         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15592         SCOP_TRANSFORMED_SCHEDULE.
15593         (print_isl_set): Add printing of a new line.
15594         (print_isl_map): Same.
15595         (print_isl_aff): Same.
15596         (print_isl_constraint): Same.
15597         (loop_to_lst): Remove.
15598         (scop_to_lst): Remove.
15599         (lst_indent_to): Remove.
15600         (print_lst): Remove.
15601         (debug_lst): Remove.
15602         (dot_lst_1): Remove.
15603         (dot_lst): Remove.
15604         (reverse_loop_at_level): Remove.
15605         (reverse_loop_for_pbbs): Remove.
15606         * graphite-poly.h (pdr_dim_iter_domain): Remove.
15607         (pdr_nb_params): Remove.
15608         (pdr_alias_set_dim): Remove.
15609         (pdr_subscript_dim): Remove.
15610         (pdr_iterator_dim): Remove.
15611         (pdr_parameter_dim): Remove.
15612         (same_pdr_p): Remove.
15613         (struct poly_scattering): Remove.
15614         (struct poly_bb): Remove _original, _transformed, _saved.
15615         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15616         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15617         (PBB_NB_LOCAL_VARIABLES): Remove.
15618         (PBB_NB_SCATTERING_TRANSFORM): Remove.
15619         (schedule_to_scattering): Remove.
15620         (number_of_write_pdrs): Remove.
15621         (pbb_dim_iter_domain): Remove.
15622         (pbb_nb_params): Remove.
15623         (pbb_nb_scattering_orig): Remove.
15624         (pbb_nb_scattering_transform): Remove.
15625         (pbb_nb_dynamic_scattering_transform): Remove.
15626         (pbb_nb_local_vars): Remove.
15627         (pbb_iterator_dim): Remove.
15628         (pbb_parameter_dim): Remove.
15629         (psco_scattering_dim): Remove.
15630         (psct_scattering_dim): Remove.
15631         (psct_local_var_dim): Remove.
15632         (psco_iterator_dim): Remove.
15633         (psct_iterator_dim): Remove.
15634         (psco_parameter_dim): Remove.
15635         (psct_parameter_dim): Remove.
15636         (psct_dynamic_dim): Remove.
15637         (psct_static_dim): Remove.
15638         (psct_add_local_variable): Remove.
15639         (new_lst_loop): Remove.
15640         (new_lst_stmt): Remove.
15641         (free_lst): Remove.
15642         (copy_lst): Remove.
15643         (lst_add_loop_under_loop): Remove.
15644         (lst_depth): Remove.
15645         (lst_dewey_number): Remove.
15646         (lst_dewey_number_at_depth): Remove.
15647         (lst_pred): Remove.
15648         (lst_succ): Remove.
15649         (lst_find_pbb): Remove.
15650         (find_lst_loop): Remove.
15651         (lst_find_first_pbb): Remove.
15652         (lst_empty_p): Remove.
15653         (lst_find_last_pbb): Remove.
15654         (lst_contains_p): Remove.
15655         (lst_contains_pbb): Remove.
15656         (lst_create_nest): Remove.
15657         (lst_remove_from_sequence): Remove.
15658         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15659         (lst_niter_for_loop): Remove.
15660         (pbb_update_scattering): Remove.
15661         (lst_update_scattering_under): Remove.
15662         (lst_update_scattering): Remove.
15663         (lst_insert_in_sequence): Remove.
15664         (lst_replace): Remove.
15665         (lst_substitute_3): Remove.
15666         (lst_distribute_lst): Remove.
15667         (lst_remove_all_before_including_pbb): Remove.
15668         (lst_remove_all_before_excluding_pbb): Remove.
15669         (struct scop): Remove original_schedule, transformed_schedule, and
15670         saved_schedule.
15671         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15672         (SCOP_SAVED_SCHEDULE): Remove.
15673         (poly_scattering_new): Remove.
15674         (poly_scattering_free): Remove.
15675         (poly_scattering_copy): Remove.
15676         (store_scattering_pbb): Remove.
15677         (store_lst_schedule): Remove.
15678         (restore_lst_schedule): Remove.
15679         (store_scattering): Remove.
15680         (restore_scattering_pbb): Remove.
15681         (restore_scattering): Remove.
15682         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15683         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
15684         compute the scattering polyhedron dimension from the dimension of
15685         pbb->domain.
15686         (build_scop_scattering): Update call to
15687         build_pbb_scattering_polyhedrons.
15688         (build_poly_scop): Remove call to scop_to_lst.
15689         * graphite.c (graphite_transform_loops): Add call to print_scop.
15690         (gate_graphite_transforms): Remove use of flag_loop_block,
15691         flag_loop_interchange, and flag_loop_strip_mine.
15693 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15695         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15696         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15697         -floop-nest-optimize.
15698         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15699         (generate_luj_sepclass): Remove.
15700         (generate_luj_options): Remove.
15701         (set_options): Remove opt_luj.
15702         (scop_to_isl_ast): Remove opt_luj.
15703         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15704         flag_loop_unroll_jam.
15705         (getPrevectorMap_full): Remove.
15706         (getScheduleForBandList): Remove map_sepcl.
15707         (getScheduleMap): Same.
15708         (apply_schedule_map_to_scop): Remove sepcl.
15709         (optimize_isl): Same.
15710         * graphite-poly.c (apply_poly_transforms): Remove check for
15711         flag_loop_unroll_jam.
15712         (new_poly_bb): Remove map_sepclass.
15713         * graphite-poly.h (struct poly_bb): Same.
15714         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15715         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15716         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15717         * toplev.c (process_options): Remove flag_loop_unroll_jam.
15719 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
15721         PR target/67317
15722         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15723         (addqi3_cc): Ditto.
15724         (UNSPEC_ADD_CARRY): Remove.
15725         (addqi3_cconly_overflow): New expander.
15726         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15727         Adjust for changed add<mode>3_carry.
15728         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15729         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15730         (<plusminus_insn><mode>3_carry): Remove expander.
15731         (*<plusminus_insn><mode>3_carry): Split insn pattern to
15732         add<mode>3_carry and sub<mode>3_carry.
15733         (plusminus_carry_mnemonic): Remove code attribute.
15734         (add<mode>3_carry): Canonicalize insn pattern.
15735         (*addsi3_carry_zext): Ditto.
15736         (sub<mode>3_carry): Ditto.
15737         (*subsi3_carry_zext): Ditto.
15738         (adcx<mode>3): Remove insn pattern.
15739         (addcarry<mode>): New insn pattern.
15740         (subborrow<mode>): Ditto.
15741         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15742         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15743         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15744         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15745         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15746         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15747         Rewrite expander to not clobber carry flag chains.
15749 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
15751         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15752         instead of a rotate.
15754 2015-08-27  Marek Polacek  <polacek@redhat.com>
15756         PR middle-end/67005
15757         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15758         an entry into an irreducible region.
15760 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15762         * configure: Regenerate.
15764 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15766         PR tree-optimization/67283
15767         * tree-sra.c (type_consists_of_records_p): Rename to...
15768         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15770         (completely_scalarize_record): Rename to...
15771         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15772         (scalarize_elem): New.
15774 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15776         * tree-sra.c (completely_scalarize_var): Rename to...
15777         (create_total_scalarization_access): ... Here. Drop call to
15778         completely_scalarize_record.
15780         (analyze_all_variable_accesses): Replace completely_scalarize_var
15781         with create_total_scalarization_access and completely_scalarize_record.
15783 2015-08-27  Alan Modra  <amodra@gmail.com>
15785         PR target/67356
15786         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15787         for operand 1.
15789 2015-08-27  Richard Biener  <rguenther@suse.de>
15791         * passes.c (rest_of_decl_compilation): Guard early_global_decl
15792         call with !seen_error ().
15793         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15794         early debug generation and finish...
15795         (symbol_table::compile): ... here to put it after a !seen_error ()
15796         guard.
15798 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15800         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15801         Solaris 12+.
15803 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15804             Andre Vieira  <andre.simoesdiasvieira@arm.com>
15806         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15807         (*cb<optab><mode>1): Likewise.
15808         (*tb<optab><mode>1): Likewise.
15809         (*cb<optab><mode>1): Likewise.
15810         * config/aarch64/iterators.md (inv_cb): New code attribute.
15811         (inv_tb): Likewise.
15812         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15813         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15815 2015-08-27  Richard Biener  <rguenther@suse.de>
15817         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15819 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15821         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15822         trap to fix ICE.
15824 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15826         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15827         Add declaration.
15829         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15830         comment.
15831         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15832         floating point in VSX registers.
15833         (rs6000_output_move_128bit): Always print out the set insn if we
15834         can't generate an appropriate 128-bit move.
15835         (rs6000_generate_compare): Add support for IEEE 128-bit floating
15836         point in VSX registers comparisons.
15837         (rs6000_expand_float128_convert): Likewise.
15839         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15840         predicate for only GPR hard registers.
15842         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15843         modes to iterators. Add new iterators for moving 128-bit values in
15844         scalar FPR registers and VSX registers.
15845         (FMOVE128): Likewise.
15846         (FMOVE128_FPR): Likewise.
15847         (FMOVE128_GPR): Likewise.
15848         (FMOVE128_VSX): Likewise.
15849         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15850         in VSX registers.
15851         (IFKF): Likewise.
15852         (IBM128): Likewise.
15853         (TFIFKF): Likewise.
15854         (RELOAD): Add IEEE 128-bit floating point modes.
15855         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15856         floating point in VSX registers modes.
15857         (signbit<mode>2, IBM128 iterator): Likewise.
15858         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15859         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15860         (negtf2): Likewise.
15861         (neg<mode>2, TFIFKF iterator): Likewise.
15862         (negtf2_internal): Likewise.
15863         (abstf2): Likewise.
15864         (abs<mode>2, TFIFKF iterator): Likewise.
15865         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15866         VSX insn support for negate, absolute value, and negative absolute
15867         value.
15868         (ieee_128bit_vsx_neg<mode>2): Likewise.
15869         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15870         (ieee_128bit_vsx_abs<mode>2): Likewise.
15871         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15872         (ieee_128bit_vsx_nabs<mode>2): Likewise.
15873         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15874         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15875         floating point in VSX registers.
15876         (unpack<mode>_dm): Likewise.
15877         (unpack<mode>_nodm): Likewise.
15878         (pack<mode>): Likewise.
15879         (unpackv1ti): Likewise.
15880         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15881         (packv1ti): Likewise.
15882         (pack<mode>, FMOVE128_VSX iterator): Likewise.
15883         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15884         registers.
15885         (extenddftf2_internal): Likewise.
15886         (trunctfdf2): Likewise.
15887         (trunctfdf2_internal2): Likewise.
15888         (fix_trunc_helper): Likewise.
15889         (fix_trunctfdi2"): Likewise.
15890         (floatditf2): Likewise.
15891         (floatuns<mode>tf2): Likewise.
15892         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15893         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15894         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15895         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15896         (float<SDI:mode><IFKF:mode>2): Likewise.
15897         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15899 2015-08-26  Renlin Li  <renlin.li@arm.com>
15901         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15903 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15904             Jiong Wang  <jiong.wang@arm.com>
15906         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15907         (tlsie_tiny_<mode>): New define_insn.
15908         (tlsie_tiny_sidi): Likewise.
15909         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15910         SYMBOL_TINY_TLSIE.
15911         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15912         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15913         SYMBOL_TINY_TLSIE.
15914         (aarch64_expand_mov_immediate): Likewise.
15915         (aarch64_print_operand): Likewise.
15916         (arch64_classify_tls_symbol): Likewise.
15918 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15920         * config/arm/arm-arches.def: Replace single value flags with
15921         an initializer built from ARM_FSET_MAKE_CPU1.
15922         * config/arm/arm-cores.def: Likewise.
15923         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15924         derivation from the ARM_CORE macro definition, use the given value
15925         instead.
15926         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15927         ARM_ARCH macro definition, use the given value instead.
15929 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15931         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15932         feature set.
15933         (struct builtin_description): Replace field mask with field
15934         features.
15935         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15936         (IWMMXT2_BUILTIN): Likewise.
15937         (IWMMXT2_BUILTIN2): Likewise.
15938         (FP_BUILTIN): Likewise.
15939         (CRC32_BUILTIN): Likewise.
15940         (CRYPTO_BUILTIN): Likewise.
15941         (iwmmx_mbuiltin): Likewise.
15942         (iwmmx2_mbuiltin): Likewise.
15943         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15944         struct builtin_description.
15946 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15948         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15949         (struct builtin_description): Change type of mask to unsigned
15950         long.
15951         * config/arm/arm-protos.h (insn_flags): Declare as type
15952         arm_feature_set.
15953         (tune_flags): Likewise.
15954         * config/arm/arm.c (feature_count): New.
15955         (insn_flags): Define as type arm_feature_set.
15956         (tune_flags): Likewise.
15957         (struct processors): Define field flags as type arm_feature_set.
15958         (all_cores): Update for change to struct processors.
15959         (all_architectures): Likewise.
15960         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15961         macros.
15962         (arm_option_override_internal): Likewise.
15963         (arm_option_override): Likewise.
15965 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15966             Jiong Wang  <jiong.wang@arm.com>
15968         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15969         tls size for tiny, small, large memory model.
15970         (aarch64_load_symref_appropriately): Support new symbol types.
15971         (aarch64_expand_mov_immediate): Likewise.
15972         (aarch64_print_operand): Likewise.
15973         (aarch64_classify_tls_symbol): Likewise.
15974         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15975         (aarch64_symbol_type): Likewise.
15976         * config/aarch64/aarch64.md (tlsle): Deleted.
15977         (tlsle12_<mode>): New define_insn.
15978         (tlsle24_<mode>): Likewise.
15979         (tlsle32_<mode>): Likewise.
15980         (tlsle48_<mode>): Likewise.
15981         * doc/sourcebuild.texi (AArch64-specific attributes): Document
15982         "aarch64_tlsle32".
15984 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15986         * config/arm/arm-protos.h (FL_NONE): New.
15987         (FL_ANY): New.
15988         (arm_feature_set): New.
15989         (ARM_FSET_MAKE): New.
15990         (ARM_FSET_MAKE_CPU1): New.
15991         (ARM_FSET_MAKE_CPU2): New.
15992         (ARM_FSET_CPU1): New.
15993         (ARM_FSET_CPU2): New.
15994         (ARM_FSET_EMPTY): New.
15995         (ARM_FSET_ANY): New.
15996         (ARM_FSET_HAS_CPU1): New.
15997         (ARM_FSET_HAS_CPU2): New.
15998         (ARM_FSET_HAS_CPU): New.
15999         (ARM_FSET_ADD_CPU1): New.
16000         (ARM_FSET_ADD_CPU2): New.
16001         (ARM_FSET_DEL_CPU1): New.
16002         (ARM_FSET_DEL_CPU2): New.
16003         (ARM_FSET_UNION): New.
16004         (ARM_FSET_INTER): New.
16005         (ARM_FSET_XOR): New.
16006         (ARM_FSET_EXCLUDE): New.
16007         (AFM_FSET_IS_EMPTY): New.
16008         (ARM_FSET_CPU_SUBSET): New.
16010 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16012         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16013         SYMBOL_TLSLE to SYMBOL_TLSLE24.
16014         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16015         Likewise.
16016         (aarch64_expand_mov_immediate): Likewise.
16017         (aarch64_print_operand): Likewise.
16018         (aarch64_classify_symbol): Likewise.
16020 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16022         * config/aarch64/aarch64.opt (mtls-size): New entry.
16023         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16024         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16025         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16027 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16029         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16030         ARM_CORE entry.  Fix some white-space.
16031         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16032         ARM_CORE definition.
16034 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16036         * fold-const.c (fold_binary_loc) : Move Optimize
16037         root(x)*root(y) as root(x*y) to match.pd.
16038         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16039         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16040         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16041         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16042         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16043         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16044         (mult (exps:s @0) (exps:s @1)) : New simplifier.
16045         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16046         (rdiv @0 (exps:s @1)) : New simplifier.
16048 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
16050         * gcc.c (driver::finalize): Only assign to extra_specs if
16051         [EXTRA_SPECS].
16053 2015-08-25  Marek Polacek  <polacek@redhat.com>
16055         PR middle-end/67330
16056         * varasm.c (declare_weak): Return after giving an error.
16058 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
16060         * gcc-main.c (main): Add params to driver ctor.
16061         * gcc.c (class env_manager): New.
16062         (env): New global.
16063         (env_manager::init): New.
16064         (env_manager::get): New.
16065         (env_manager::xput): New.
16066         (env_manager::restore): New.
16067         Poison getenv and putenv.
16068         (DEFAULT_TARGET_SYSTEM_ROOT): New.
16069         (target_system_root): Update initialization to use
16070         DEFAULT_TARGET_SYSTEM_ROOT.
16071         (struct spec_list): Add field "default_ptr".
16072         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16073         (init_spec): Likewise.
16074         (set_spec): Clear field "default_ptr".
16075         (read_specs): Free "spec" and "buffer".
16076         (xputenv): Reimplement in terms of env_manager.
16077         (process_command): Replace ::getenv calls with calls to the
16078         env_manager singleton.
16079         (process_brace_body): Free string in three places.
16080         (driver::driver): New.
16081         (driver::~driver): New.
16082         (used_arg): Convert from a function to...
16083         (class used_arg_t): ...this class, and...
16084         (used_arg): ...this new global instance.
16085         (used_arg_t::finalize): New function.
16086         (getenv_spec_function): Add "const" to local "value".  Replace
16087         ::getenv call with call to the env_manager singleton.
16088         (path_prefix_reset): New function.
16089         (driver::finalize): New function.
16090         * gcc.h (driver::driver): New.
16091         (driver::~driver): New.
16092         (driver::finalize): New.
16094 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16096         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16097         target doesn't have one.
16099 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16101         PR target/67346
16102         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16104 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16106         PR target/67344
16107         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16108         a define_insn, remove second alternative.
16110 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
16111             Joseph Myers  <joseph@codesourcery.com>
16113         * gcc.c (struct switchstr): Expand comment.
16115 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16117         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16118         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16120 2015-08-25  Richard Biener  <rguenther@suse.de>
16122         PR middle-end/67306
16123         * genmatch.c (expr::gen_transform): Verify the result of
16124         builtin_decl_implicit.
16125         (dt_simplify::gen_1): Likewise.
16127 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16129         * config/arm/constraints.md: Also list Cs and US ARM-specific
16130         constraints as used.
16132 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16134         PR target/66609
16135         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16136         UNSPEC_PCREL.
16137         (nonpic_symbol_mentioned_p): Likewise.
16138         (sh_delegitimize_address): Likewise.
16139         (sh_function_ok_for_sibcall): Take into account weak symbols.
16140         (sh_expand_sym_label2reg): New.
16141         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16142         * config/sh/sh.md (UNSPEC_PCREL): New enum.
16143         (call_pcrel): Use sh_expand_sym_label2reg.
16144         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16145         (symPCREL_label2reg) New expand.
16147 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16149         * graphite-poly.c: Change type of region from void* to sese.
16150         * graphite-poly.h (struct scop): Changing the type of scop::region
16151         from void* to sese. Change accessor macro accordingly.
16152         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16154 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16156         * graphite-scop-detection.c (stmt_simple_for_scop_p):
16157         Constrain only on INTEGER_TYPE.
16159 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16161         PR target/67211
16162         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16163         -mefficient-unaligned-vsx on ISA 2.7.
16165         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16166         option to a masked option.
16168         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16169         logic for -mefficient-unaligned-vsx so that it is set via an arch
16170         ISA option, instead of being set if -mtune=power8 is set. Move
16171         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16172         near other default option handling.
16174 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16176         * genflags.c (gen_macro): Delete.
16177         (gen_proto): Don't create GEN.*CALL.* macros.
16178         * gensupport.h (get_file_location): Declare.
16179         * gensupport.c (rtx_locs): New variable.
16180         (read_md_rtx): Record rtx locations.
16181         (get_file_location): New function.
16182         * target-insns.def (call, call_pop, call_value, call_value_pop)
16183         (sibcall, sibcall_value): New patterns.
16184         * gentarget-def.c (parse_argument): New function.
16185         (def_target_insn): Use it.  Handle optional operands.  Raise an
16186         error if an .md pattern has the wrong number of operands for the
16187         pattern name.  Remove the names of unused operands from the prototype.
16188         * builtins.c (expand_builtin_apply): Use targetm functions
16189         instead of HAVE_call_value and GEN_CALL_VALUE.
16190         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
16191         and sibcall_value_pop.
16192         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16193         of GEN_CALL.
16194         * config/alpha/alpha.md (untyped_call): Likewise.
16195         * config/iq2000/iq2000.md (untyped_call): Likewise.
16196         * config/m68k/m68k.md (untyped_call): Likewise.
16197         * config/mips/mips.md (untyped_call): Likewise.
16198         * config/pa/pa.md (untyped_call): Likewise.
16199         * config/rs6000/rs6000.md (untyped_call): Likewise.
16200         * config/sparc/sparc.md (untyped_call): Likewise.
16201         * config/tilegx/tilegx.md (untyped_call): Likewise.
16202         * config/tilepro/tilepro.md (untyped_call): Likewise.
16203         * config/visium/visium.md (untyped_call): Likewise.
16204         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16205         gen_call_value instead of GEN_CALL_VALUE.
16206         * config/arm/arm.md (untyped_call): Likewise.
16207         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16208         GEN_CALL.
16210 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16212         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16213         (have_cbranchcc4): New variable.
16214         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16215         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16216         (if_convert): Initialize have_cbranchcc4.
16218 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16220         * builtins.c (expand_cmpstrn): Rename to...
16221         (expand_cmpstrn_or_cmpmem): ...this.
16222         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16223         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16224         Remove mode argument.
16225         (expand_builtin): Update accordingly.
16227 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16229         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16230         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
16231         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16232         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16233         Add predicates for operands 0 and 3.
16234         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16235         operand.
16236         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16237         immediate_operand to nonmemory_operand.
16239 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16241         * df-scan.c (df_insn_info_init_fields): New function, split out
16242         from...
16243         (df_insn_create_insn_record): ...here.
16244         (df_insn_info_free_fields): New function, split out from...
16245         (df_insn_info_delete): ...here.
16246         (df_insn_rescan): Use the new functions instead of freeing and
16247         reallocating the df_insn_info.
16249 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16251         * doc/install.texi (Binaries): Remove links no longer valid.
16253 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
16255         * config/nvptx/mkoffload.c (process): Replace
16256         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16258 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
16260         PR target/67329
16261         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16263 2015-08-24  Renlin Li  <renlin.li@arm.com>
16265         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16266         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16267         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16268         * config/arm/constraints.md ("j"): Add check for high code.
16270 2015-08-24  Tom de Vries  <tom@codesourcery.com>
16272         PR tree-optimization/65468
16273         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16274         chunk_size is one.
16276 2015-08-24  Nathan Sidwell  <nathan@acm.org>
16278         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16279         change to nvptx_type_from_mode call. Use arg_promotion for both
16280         split and non-split args.
16282 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16284         * target-insns.def (movstr): New pattern.
16285         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16286         (expand_movstr): Use targetm rather than HAVE_movstr/
16287         CODE_FOR_movstr.
16289 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16291         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16292         cast syntax.
16294 2015-08-24  Andrew Pinski  <apinski@cavium.com>
16296         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16297         AARCH64_EXTRA_TUNING_OPTION.
16298         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16299         New enum.
16300         (aarch64_extra_tuning_flags): Base the shifted value on the index
16301         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16302         * config/aarch64/aarch64.c: Remove the last argument to
16303         AARCH64_EXTRA_TUNING_OPTION.
16305 2015-08-23  Nathan Sidwell  <nathan@acm.org>
16307         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16308         decls.
16309         (nvptx_declare_function_name): Insert formatting tabs for
16310         consistency.
16312 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16314         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16315         parm_decl, rather than generating a dummy default def in cfun.
16316         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
16317         ssa_name from cfun and child_fn do not share a stmt as def stmt.
16318         (move_stmt_op): Handle PARM_DECl.
16319         (gather_ssa_name_hash_map_from): New function.
16320         (move_sese_region_to_fn): Add default defs for function params, and add
16321         them to vars_map.  Release copied ssa names.
16322         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16324 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16326         * doc/sourcebuild.texi: Rename vect_no_int_max with
16327         vect_no_int_min_max.  Update description.
16329 2015-08-22  Andrew Pinski  <apinski@cavium.com>
16331          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16332         * config/aarch64/aarch64-protos.h
16333         (aarch64_fusion_pairs_index): New enum.
16334         (aarch64_fusion_pairs): Base the shifted value on the index instead
16335         Rewrite AARCH64_FUSE_ALL to be based on the end index.
16336         of the argument to AARCH64_FUSION_PAIR.
16337         * config/aarch64/aarch64.c: Remove the last argument to
16338         AARCH64_FUSION_PAIR.
16340 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
16342         * dominance.c (new_zero_array): Define.
16343         (dom_info): Redefine as class with proper encapsulation.
16344         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16345         Add new members.
16346         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
16347         allocations/deallocations.  Pass function as parameter (instead of
16348         using cfun).
16349         (dom_info::get_idom): Define accessor method.
16350         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16351         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
16352         (calculate_dominance_info): Adjust to use dom_info class.
16353         (verify_dominators): Likewise.
16355 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
16357         * print-rtl.c (print_rtx): Check the correct range for
16358         flag_dump_unnumbered_links to behave as documented.
16360         PR rtl-optimization/67227
16361         PR rtl-optimization/64164
16362         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16363         (nonoverlapping_memrefs_p): Test offsets and sizes when given
16364         identical gimple_reg exprs.
16366 2015-08-21  Nathan Sidwell  <nathan@acm.org>
16368         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16369         expansion.
16370         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16371         crtl->stack_alignment_needed to determine alignment.
16372         (nvptx_get_drap_rtx): New.
16373         (TARGET_GET_DRAP_RTX): Override.
16374         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16376 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16378         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16380 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16382         * configure.ac: Remove uwin* cases.
16383         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16384         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16385         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16386         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16387         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16388         i[34567]86-*-uwin*, powerpc-*-beos*.
16390 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
16392         * gencodes.c (gencodes): Print the comma for the preceding
16393         enum value rather than the current one.  Use aliased enum values
16394         rather than #defines for compiled-out patterns.
16395         (main): Update accordingly.  Replace LAST_INSN_CODE with
16396         NUM_INSN_CODES.
16397         * lra.c (insn_code_data): Update accordingly.
16398         (finish_insn_code_data_once, get_static_insn_data): Likewise.
16399         * recog.h (target_recog): Likewise.
16400         (preprocess_insn_constraints): Change parameter to unsigned int.
16401         * recog.c (preprocess_insn_constraints): Likewise.
16402         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16403         * tree-vect-stmts.c (vectorizable_operation): Simplify.
16405 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16407         PR rtl-optimization/61657
16408         * loop-iv.c (iv_number_of_iterations): Declare up and down as
16409         unsigned.  Remove superflous uint64_t cast.
16411 2014-08-21  Felix Yang  <felix.yang@huawei.com>
16412             Jiji Jiang  <jiangjiji@huawei.com>
16414         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16415         argument and get builtin function code directly from CALL.
16416         (gimple_stringop_fixed_value): Modified accordingly.
16417         (gimple_stringops_transform, gimple_stringops_values_to_profile):
16418         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16420 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16422         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16424 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16426         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16427         to match.pd.
16428         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16429         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16430         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16431         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16432         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16433         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16434         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16435         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16436         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16437         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16439         * match.pd (SIN ) : New Operator.
16440         (TAN) : New Operator.
16441         (mult (SQRT@1 @0) @1) : New simplifier.
16442         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16443         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16444         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16445         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16446         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16447         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16448         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16449         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16450         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16451         (rdiv @0 (POW:s @1 @2)) : New simplifier.
16453 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
16455         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16456         loop if EXPR is simplified to const value.
16458 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
16460         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16461         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16463 2015-08-21  Richard Biener  <rguenther@suse.de>
16465         PR middle-end/67285
16466         * gimple-fold.c (replace_stmt_with_simplification): Assert
16467         seq is empty when replacing a call with itself but different
16468         arguments.
16469         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16470         a call require that it is const.
16472 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16474         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16475         * builtins.c (get_object_alignment_2): Adjust.
16476         * varasm.c (align_variable): Likewise.
16477         (get_variable_align): Likewise.
16478         (build_constant_desc): Likewise.
16479         (force_const_mem): Likewise.
16480         * doc/tm.texi.in: Likewise.
16481         * doc/tm.texi: Regenerate.
16483 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16485         * genconfig.c (main): Always define HAVE_cc0.
16486         * recog.c (rest_of_handle_peephole2): Adjust.
16488 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16490         * reorg.c (relax_delay_slots): Don't use #if to check value of
16491         HAVE_cc0.
16493 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16495         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16496         * targhooks.c (default_have_conditional_execution): Adjust.
16498 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16500         * rtl.h (rtvec_all_equal_p): Declare.
16501         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16502         * rtl.c (rtvec_all_equal_p): New function.
16503         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16504         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16505         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16506         * config/arm/arm.c (neon_vdup_constant): Likewise.
16507         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16508         * config/tilegx/constraints.md (W, Y): Likewise.
16509         * config/tilepro/constraints.md (W, Y): Likewise.
16510         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16511         (classify_immediate): Use unwrap_const_vec_duplicate.
16512         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16513         (reg_or_v2s8bit_operand): Likewise.
16514         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16515         (reg_or_v4s8bit_operand): Likewise.
16517 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16519         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16520         (vec_shasigma_be): New #define.
16521         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16522         (VPMSUMH): Likewise.
16523         (VPMSUMW): Likewise.
16524         (VPMSUMD): Likewise.
16525         (VPMSUM): New BU_P8V_OVERLOAD_2.
16526         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16527         entries for VEC_MADD and VEC_VPMSUM.
16529 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
16531         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16532         Multiply argument avr_n_flash by 64 to match unit of "KiB".
16533         (avr_pgm_check_var_decl): Same.
16535 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
16537         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16538         initialization of HFmode scalar type (float16_t) to...
16539         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16540         code.
16542         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16544         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16545         having an -mfp16-format.
16547 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16549         * config/i386/predicates.md (vector_all_ones_operand): Use
16550         CONSTM1_RTX to simplify definition.
16552 2015-08-20  Richard Biener  <rguenther@suse.de>
16554         * toplev.c (compile_file): Remove loop calling late_global_decl
16555         on all symbols.
16556         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16557         on decls we assembled.
16559 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
16561         * common/config/aarch64/aarch64-common.c
16562         (AARCH64_CPU_NAME_LENGTH): Delete.
16563         (aarch64_option_extension): New.
16564         (all_extensions): Likewise.
16565         (processor_name_to_arch): Likewise.
16566         (arch_to_arch_name): Likewise.
16567         (all_cores): New.
16568         (all_architectures): Likewise.
16569         (aarch64_get_extension_string_for_isa_flags): Likewise.
16570         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16571         architecture names.
16572         * config/aarch64/aarch64-protos.h
16573         (aarch64_get_extension_string_for_isa_flags): New.
16574         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16575         (aarch64_option_print): Get the string to print from
16576         aarch64_get_extension_string_for_isa_flags.
16577         (aarch64_declare_function_name): Likewise.
16578         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16579         (MCPU_TO_MARCH_SPEC): This.
16580         (ASM_CPU_SPEC): Use it.
16581         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16582         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16583         (EXTRA_SPEC_FUNCTIONS): Use it.
16585 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
16587         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16588         expansion when !ISA_HAS_LWL_LWR.
16589         (mips_block_move_straight): Update the size of elements copied to
16590         account for alignment when !ISA_HAS_LWL_LWR.
16591         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16593 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16595         * expr.c (expand_expr_real_2): Check gimple statement during
16596         LSHIFT_EXPR expand.
16598 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
16600         * common.opt (fstack-protector): Initialize to -1.
16601         (fstack-protector-all): Likewise.
16602         (fstack-protector-strong): Likewise.
16603         (fstack-protector-explicit): Likewise.
16604         * configure.ac: Add --enable-default-ssp.
16605         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
16606         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16607         -1.
16608         * doc/install.texi: Document --enable-default-ssp.
16609         * config.in: Regenerated.
16610         * configure: Likewise.
16612 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
16614         PR rtl-optimization/64164
16615         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16616         (parm_in_stack_slot_p): ... this.  Disregard mode, what
16617         matters is whether the parm will live in a pseudo or a stack
16618         slot.
16619         (expand_one_ssa_partition): Deal with params without a default
16620         def.  Disregard mode.
16621         * cfgexpand.h: Renamed function declaration.
16622         * tree-ssa-coalesce.c: Adjust.
16623         * function.c (split_complex_args): Allocate stack slot for
16624         unassigned parms before splitting.
16625         (parm_in_unassigned_mem_p): New.  Use it instead of
16626         parm_maybe_byref_p throughout this file.
16627         (assign_parm_setup_block): Use it.  Accept pseudos in the
16628         expand-assigned rtl.
16629         (assign_parm_setup_reg): Drop BLKmode requirement.
16630         (assign_parm_setup_stack): Allocate and fill in the address of
16631         unassigned MEM parms.
16633 2015-08-19  David Sherwood  <david.sherwood@arm.com>
16635         * genmodes.c (emit_mode_unit_size_inline): New function.
16636         (emit_mode_unit_precision_inline): New function.
16637         (emit_insn_modes_h): Emit new #define.  Emit new functions.
16638         (emit_mode_unit_size): New function.
16639         (emit_mode_unit_precision): New function.
16640         (emit_mode_adjustments): Add mode_unit_size adjustments.
16641         (emit_insn_modes_c): Emit new arrays.
16642         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16643         use new inline methods.
16645 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16647         * config/aarch64/aarch64.c (bit_count): Delete prototype
16648         and definition.
16649         (aarch64_print_operand): Use popcount_hwi instead of the above.
16651 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16653         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16654         comment.
16656 2015-08-19  Marek Polacek  <polacek@redhat.com>
16658         PR middle-end/67133
16659         * gimple-ssa-isolate-paths.c
16660         (insert_trap_and_remove_trailing_statements): Rename to ...
16661         (insert_trap): ... this.  Don't remove trailing statements; split
16662         block instead.
16663         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16665 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
16667         PR other/67042
16668         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16669         conditionalize the whole on __GNUC__.  Add fallback code
16670         depending neither on undefined nor implementation-defined behaviour.
16672 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16674         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16675         whitespaces with tab.
16677 2015-08-19  Florian Weimer  <fweimer@redhat.com>
16679         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16680         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16681         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16682         Move Name_Ids instantiation to the Prj.Proc package, to avoid
16683         trampolines.
16685 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16687         * config/arm/arm.c (bounds_check): Use %wd print format
16688         for HOST_WIDE_INT arguments.
16690 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
16692         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16693         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16694         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16695         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16696         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16697         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16698         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16699         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16700         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16701         typedefs.
16703 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
16705         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16706         function.c, graphite-scop-detection.c, haifa-sched.c,
16707         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16708         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16709         varasm.c: Remove typedefs of structs.
16711 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16713         * config/rs6000/altivec.h (vec_adde): New define.
16714         (vec_addec): Likewise.
16715         (vec_double): Likewise.
16716         (vec_bperm): Likewise.
16717         (vec_gb): Likewise.
16718         * config/rs6000/rs6000-builtin.def (ADDE): New
16719         BU_ALTIVEC_OVERLOAD_3.
16720         (ADDEC): Likewise.
16721         (DOUBLE): New BU_VSX_OVERLOAD_1.
16722         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16723         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16724         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16725         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16726         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16727         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16728         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16729         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16730         and P8V_BUILTIN_VEC_VBPERMQ.
16732 2015-08-18  Jason Merrill  <jason@redhat.com>
16734         * print-tree.c (print_node): Handle TREE_BINFO.
16736 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16738         PR middle-end/36757
16739         * builtins.c (expand_builtin_signbit): Add asserts to make sure
16740         we can expand BUILT_IN_SIGNBIT inline.
16741         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16742         * doc/extend.texi: Document the type-generic __builtin_signbit.
16744 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
16746         PR rtl-optimization/67218
16747         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16748         (simplify_unary_operation_1): Use it.
16750 2015-08-18  Marek Polacek  <polacek@redhat.com>
16752         PR middle-end/67222
16753         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16754         if the call isn't valid.
16755         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16756         gimple_call_builtin_p.
16757         (call_may_clobber_ref_p_1): Likewise.
16758         (stmt_kills_ref_p): Likewise.
16760 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16762         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16763         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16764         (mips_hard_regno_scratch_ok): Likewise.
16765         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16766         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16768 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
16770         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16771         (determine_value_range): Call refine_value_range_using_guard for
16772         each loop initial condition to improve value range.
16774 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
16776         * config/i386/i386.c: Remove include of fibheap.h.
16778 2015-08-17  Richard Biener  <rguenther@suse.de>
16780         PR tree-optimization/67221
16781         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16782         (sccvn_dom_walker::before_dom_children): Mark backedges of
16783         non-executable blocks as not executable.
16785 2015-08-17  David Sherwood  <david.sherwood@arm.com>
16787         * config/arm/arm.c (neon_element_bits): Replace call to
16788         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16789         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16790         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16791         (neon_vdup_lane<mode>): Likewise.
16792         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16793         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16794         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16795         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16796         * config/spu/spu.c (arith_immediate_p): Likewise.
16797         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16798         * expr.c (expand_expr_real_2): Likewise.
16799         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16800         * simplify-rtx.c (simplify_immed_subreg): Likewise.
16801         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16802         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16803         New variable.
16804         * fold-const.c (fold_binary_loc): Replace call to
16805         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16806         GET_MODE_UNIT_PRECISION (m).
16808 2015-08-17  Mike Stump  <mikestump@comcast.net>
16810         * config/arm/arm.c (arm_block_move_unaligned_straight):
16811         Emit normal move instead of unaligned load when source or destination
16812         are appropriately aligned.
16814 2015-08-17  Richard Biener  <rguenther@suse.de>
16815             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16817         PR middle-end/16107
16818         * match.pd (div (coss (op @0) : New simplifier.
16820 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
16822         PR rtl-optimization/64164
16823         PR bootstrap/66978
16824         PR middle-end/66983
16825         PR rtl-optimization/67000
16826         PR middle-end/67034
16827         PR middle-end/67035
16828         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16829         * tree-ssa-copyrename.c: Removed.
16830         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16831         -ftree-coalesce-vars.
16832         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16833         * common.opt (ftree-copyrename): Ignore.
16834         (ftree-coalesce-inlined-vars): Likewise.
16835         * doc/invoke.texi: Remove the ignored options above.
16836         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16837         * tree-ssa-coalesce.h: ... here.
16838         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16839         headers required by it.
16840         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16841         across variables when flag_tree_coalesce_vars.  Check register
16842         use and promoted modes to allow coalescing.  Do not coalesce
16843         maybe-byref parms with SSA_NAMEs of other variables, or
16844         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
16845         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16846         with its member functions to tree-ssa-coalesce.c.
16847         (var_map_base_init): Likewise.  Renamed to
16848         compute_samebase_partition_bases.
16849         (partition_view_normal): Drop want_bases parameter.
16850         (partition_view_bitmap): Likewise.
16851         * tree-ssa-live.h: Adjust declarations.
16852         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16853         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16854         default defs at the entry point.
16855         (dump_part_var_map): New.
16856         (compute_optimized_partition_bases): New, called by...
16857         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16858         of compute_samebase_partition_bases.  Adjust.
16859         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16860         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16861         (ssa_default_def_partition): New.
16862         (get_rtl_for_parm_ssa_default_def): New.
16863         (align_local_variable, add_stack_var): Support anonymous SSA
16864         names.
16865         (defer_stack_allocation): Likewise.  Declare earlier.
16866         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16867         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16868         Do no record deferred-allocation marker in
16869         SA.partition_to_pseudo.
16870         (expand_stack_vars): Adjust check for the marker in it.
16871         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16872         redundant MEM attr setting.
16873         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16874         from...
16875         (expand_one_stack_var): ... this.  New wrapper to check and
16876         skip already expanded SSA partitions.
16877         (record_alignment_for_reg_var): New, factored out of...
16878         (expand_one_var): ... this.
16879         (expand_one_ssa_partition): New.
16880         (adjust_one_expanded_partition_var): New.
16881         (expand_one_register_var): Check and skip already expanded SSA
16882         partitions.
16883         (expand_used_vars): Don't create DECLs for anonymous SSA
16884         names.  Expand all SSA partitions, then adjust all SSA names.
16885         (pass::execute): Replace the loops that set
16886         SA.partition_to_pseudo from partition leaders and cleared
16887         DECL_RTL for multi-location variables, and that which used to
16888         rename vars and set attrs, with one that clears DECL_RTL and
16889         checks that PARMs and RESULTs default_defs match DECL_RTL.
16890         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16891         * emit-rtl.c: Include stor-layout.h.
16892         (set_reg_attrs_for_parm): Handle NULL decl.
16893         (set_reg_attrs_for_decl_rtl): Take mode from expression if
16894         it's not a DECL.
16895         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16896         rather than its possibly-NULL DECL.
16897         * explow.c (promote_ssa_mode): New.
16898         * explow.h (promote_ssa_mode): Declare.
16899         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16900         (read_complex_part): Export.
16901         * expr.h (read_complex_part): Declare.
16902         * cfgexpand.h (parm_maybe_byref_p): Declare.
16903         * function.c: Include cfgexpand.h.
16904         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16905         (use_register_for_parm_decl): Wrapper for the above to
16906         special-case the result_ptr.
16907         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16908         (split_complex_args): Take assign_parm_data_all argument.
16909         Pass it to rtl_for_parm.  Set up rtl and context for split
16910         args.  Reset complex parm before fetching its default decl
16911         rtl.
16912         (assign_parms_unsplit_complex): Use the default-def complex
16913         parm rtl if it matches the components.
16914         (assign_parms_augmented_arg_list): Adjust.
16915         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16916         multiple locations.  Recognize split complex args.
16917         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16918         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16919         (assign_parm_setup_block): Prefer SSA-assigned location, and
16920         fill in its address if the memory location of a maybe-byref
16921         parm was not assigned by cfgexpand.
16922         (assign_parm_setup_reg): Likewise.  Adjust its mode as
16923         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
16924         sure passed_pointer parms don't need conversion.  Copy address
16925         or value as needed.
16926         (assign_parm_setup_stack): Prefer SSA-assigned location.
16927         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16928         rtl before testing for pointer bounds.  Special-case result_ptr.
16929         (expand_function_start): Maybe reset DECL_RTL of result.
16930         Prefer SSA-assigned location for result and static chain.
16931         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
16932         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
16933         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16934         anonymous SSA names.  Use promote_ssa_mode.
16935         (get_temp_reg): Likewise.
16936         (remove_ssa_form): Adjust.
16937         * stor-layout.c (layout_decl): Don't set mem attributes of
16938         non-MEMs.
16939         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16940         and get its reg_usage for reg invalidation.
16941         (compute_bb_dataflow): Pass it insn.
16942         (emit_notes_in_bb): Likewise.
16944 2015-08-14  Marek Polacek  <polacek@redhat.com>
16946         * tree-core.h (tree_base): Fix typo.
16948 2015-08-14  Marek Polacek  <polacek@redhat.com>
16950         PR middle-end/67133
16951         * gimple.c (infer_nonnull_range_by_attribute): Check that the
16952         nonnull argument position is not outside function arguments.
16954 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
16956         PR target/67143
16957         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16958         'lconst_atomic' with 'const_atomic'.
16959         (atomic_fetch_<optab><mode>): Likewise.
16960         (atomic_<optab>_fetch<mode>): Likewise.
16961         * config/aarch64/iterators.md (lconst-atomic): Move below
16962         'const_atomic'.
16963         (const_atomic): New.
16965 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
16966             Bernd Schmidt  <bernds@codesourcery.com>
16968         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16969         debug options.
16970         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16971         (DWARF2_DEBUGGING_INFO): Don't define.
16972         * debug.h (dwarf2_lineno_debug_hooks): Declare.
16973         * toplev.c (process_options): Add a case for it.
16974         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16975         (dwarf2out_init): Skip most initializations if
16976         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16977         case.
16978         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16979         DWARF2_LINENO_DEBUGGING_INFO.
16980         * opts.c (set_debug_level): Likewise.
16982 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
16984         * config/arm/types.md (is_neon_type): Add missing types.
16986 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
16988         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16989         for skylake.
16990         * config/i386/i386.c (PTA_SKYLAKE): New macros.
16991         (processor_alias_table): Add skylake description.
16992         (enum processor_model): Add skylake processor.
16993         (arch_names_table): Add skylake record.
16994         * doc/invoke.texi: Add skylake item.
16996 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
16998         * ira-int.h: Include recog.h.
16999         * ira-build.c: Don't include recog.h.
17000         * ira-color.c: Likewise.
17001         * ira-conflicts.c: Likewise.
17002         * ira-costs.c: Likewise.
17003         * ira-emit.c: Likewise.
17004         * ira-lives.c: Likewise.
17005         * ira.c: Likewise.
17006         * sched-deps.c: Likewise.
17007         * sel-sched.c: Likewise.
17008         * target-globals.c: Likewise.
17010 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17012         PR bootstrap/55035
17013         * reload1.c (elimination_costs_in_insn): Make it obvious to the
17014         compiler that the n_dups and n_operands loop bounds are invariant.
17016 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17018         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17019         expressions in A and B.
17021 2015-08-13  Richard Biener  <rguenther@suse.de>
17023         * tree.c (nonnull_arg_p): Move from ...
17024         * tree-vrp.c (nonnull_arg_p): ... here.
17025         * tree.h (nonnull_arg_p): Declare.
17026         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17027         here, register ptr != 0 for nonnull_arg_p pointer arguments.
17028         Properly initialize static chain and by-reference result pointer.
17029         (run_scc_vn): Adjust.
17031 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17033         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17034         TUNE_I6400.
17036 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17038         * config/aarch64/aarch64-protos.h
17039         (aarch64_gen_atomic_cas): Declare.
17040         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17041         Choose appropriate instruction pattern for the target.
17042         (aarch64_gen_atomic_cas): New.
17043         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17044         (atomic_compare_and_swap<mode>_1): Rename to
17045         aarch64_compare_and_swap<mode>.  Fix some indentation.
17046         (aarch64_compare_and_swap<mode>_lse): New.
17047         (aarch64_atomic_cas<mode>): New.
17049 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17051         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17052         (TARGET_LSE): New.
17054 2015-08-13  Richard Biener  <rguenther@suse.de>
17056         PR tree-optimization/67191
17057         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17058         assert we value-numbered last stmts operand because it can validly
17059         trigger for unreachable code.
17061 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17063         PR rtl-optimization/67103
17064         * ifcvt.c (noce_try_store_flag_constants): Move
17065         x = (-(test != 0) & (b - a)) + a transformation to...
17066         (noce_try_cmove): ... Here.  Try it if normal conditional
17067         move fails.
17069 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17071         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17072         pseudo-processors.
17073         * config/mips/mips.md (processor): Remove w32 and w64.
17075 2015-08-13  Richard Biener  <rguenther@suse.de>
17077         PR tree-optimization/66502
17078         PR tree-optimization/67167
17079         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17080         backedge arguments.
17081         (vn_phi_lookup): Adjust.
17082         (vn_phi_insert): Likewise.
17083         (visit_phi): Prefer to value-number to another PHI node
17084         over value-numbering to a PHI argument.
17085         (init_scc_vn): Mark DFS back edges.
17087 2015-08-13  Richard Biener  <rguenther@suse.de>
17089         * gimple.h (gcall::code_): New constant static member.
17090         (gcond::code_): Likewise.
17091         * gimple.c (gcall::code_): Define.
17092         (gcond::code_): Likewise.
17093         (is_a_helper <const gcond *>): Add.
17094         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17095         and forward to a new gcall overload with less checking and a
17096         cheaper way to access the operand.
17097         (gimple_call_lhs_ptr): Likewise.
17098         (gimple_call_set_lhs): Likewise.
17099         (gimple_call_internal_p): Likewise.
17100         (gimple_call_with_bounds_p): Likewise.
17101         (gimple_call_set_with_bounds): Likewise.
17102         (gimple_call_internal_fn): Likewise.
17103         (gimple_call_set_ctrl_altering): Likewise.
17104         (gimple_call_ctrl_altering_p): Likewise.
17105         (gimple_call_fntype): Likewise.
17106         (gimple_call_fn): Likewise.
17107         (gimple_call_fn_ptr): Likewise.
17108         (gimple_call_set_fndecl): Likewise.
17109         (gimple_call_fndecl): Likewise.
17110         (gimple_call_chain): Likewise.
17111         (gimple_call_num_args): Likewise.
17112         (gimple_call_arg): Likewise.
17113         (gimple_call_arg_ptr): Likewise.
17114         (gimple_call_set_arg): Likewise.
17115         (gimple_call_noreturn_p): Likewise.
17116         (gimple_cond_code): Likewise.
17117         (gimple_cond_lhs): Likewise.
17118         (gimple_cond_rhs): Likewise.
17119         (gimple_has_lhs): Reduce checking.
17121 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17123         PR middle-end/25529
17124         * match.pd (div (mult @0 @1) @1) : New simplifier.
17126 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17128         PR target/67071
17129         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17130         predicate to allow construction of vector constants using the
17131         VSLDOI vector shift instruction.
17133         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17134         declaration.
17136         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17137         the number of bytes to be shifted left and filled in with either
17138         all zero or all one bits.
17139         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17140         methods exist.
17141         (output_vec_const_move): On power8, generate XXLORC to generate
17142         a vector constant with all 1's. Do a split if we need to use a
17143         VSLDOI instruction.
17145         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17146         properly test for the MSB.
17148         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17149         vector constants that can be created with VSLDOI.
17151 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17153         revert:
17154         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17155         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17156         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17157         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17158         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17159         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17160         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17161         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17162         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17164 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
17166         * config/xtensa/constraints.md (define_constraint "Y"): New
17167         constraint.
17168         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17169         * config/xtensa/linux.h (ASM_SPEC): Likewise.
17170         * config/xtensa/predicates.md (move_operand): Match constants
17171         and symbols in the presence of TARGET_AUTO_LITPOOLS.
17172         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17173         immediate references to TLS data.
17174         (xtensa_emit_move_sequence): Don't force constants to memory in
17175         the presence of TARGET_AUTO_LITPOOLS.
17176         (print_operand): Add 'y' format, same as default, but capable of
17177         printing SF mode constants as well.
17178         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17179         (movsf_internal): Add movi pattern that loads literal.
17180         (movsf, movdf): Don't force constants to memory in the presence
17181         of TARGET_AUTO_LITPOOLS.
17182         (movdf_internal): Add 'Y' constraint.
17183         * config/xtensa/xtensa.opt (mauto-litpools): New option.
17184         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17186 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17188         * config/arm/arm-fpus.def: Replace booleans with feature flags.
17189         Update comment.
17190         * config/arm/arm.c (ARM_FPU): Update macro.
17191         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17192         (TARGET_FP16): Likewise.
17193         (TARGET_CRYPTO): Likewise.
17194         (TARGET_NEON): Likewise.
17195         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
17196         field features.
17198 2015-08-12  Tom de Vries  <tom@codesourcery.com>
17200         PR other/67092
17201         PR other/67098
17202         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
17203         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17204         accordingly.  Mention default for --with-stage1-ldflags.
17206 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17208         * config/arm/arm.h (arm_fpu_feature_set): New.
17209         (ARM_FPU_FSET_HAS): New.
17210         (FPU_FL_NONE): New.
17211         (FPU_FL_NEON): New.
17212         (FPU_FL_FP16): New.
17213         (FPU_FL_CRYPTO): New.
17215 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17217         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17218         after -mcmodel=large -fPIC sorry.
17220 2015-08-12  Richard Biener  <rguenther@suse.de>
17222         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17223         comparison operand order and commutative ternary op operand order.
17224         (sccvn_dom_walker::cond_stack): New state to track temporary
17225         expressions.
17226         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17227         no longer valid.
17228         (sccvn_dom_walker::record_cond): Add a single temporary conditional
17229         expression.
17230         (sccvn_dom_walker::record_conds): Add a temporary conditional
17231         expressions and all related expressions also true/false.
17232         (sccvn_dom_walker::before_dom_children): Record temporary
17233         expressions based on the controlling condition of a single
17234         predecessor.  When trying to simplify a conditional statement
17235         lookup expressions we might have inserted earlier.
17237 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
17239         PR target/67127
17240         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17241         to ARM core registers.
17243 2015-08-12  Nathan Sidwell  <nathan@acm.org>
17245         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17246         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17248 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
17250         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17251         line with comments.
17252         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17254 2015-08-12  Richard Biener  <rguenther@suse.de>
17256         * gimple.h (remove_pointer): New trait.
17257         (GIMPLE_CHECK2): New inline template function.
17258         (gassign::code_): New constant static member.
17259         (is_a_helper<const gassign *>): Add.
17260         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17261         and forward to a new gassign overload with less checking and a
17262         cheaper way to access the operand.
17263         (gimple_assign_lhs_ptr): Likewise.
17264         (gimple_assign_set_lhs): Likewise.
17265         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17266         Likewise.
17267         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17268         Likewise.
17269         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17270         Likewise.
17271         (gimple_assign_rhs_code): Likewise.
17272         * gimple.c (gassign::code_): Define.
17274 2015-08-12  Richard Biener  <rguenther@suse.de>
17276         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17277         Eliminate edges marked as not executable by SCCVN.
17278         * tree-ssa-sccvn.c: Include gimple-iterator.h.
17279         (cond_dom_walker): Rename to sccvn_dom_walker.
17280         (sccvn_dom_walker::before_dom_children): Value-number defs
17281         of all stmts.
17282         (run_scc_vn): Remove loop value-numbering all SSA names.
17283         Drop not visited SSA names to varying.
17285 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17287         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17288         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17289         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17290         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17291         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17292         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17293         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17294         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17295         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17297 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
17299         PR target/66954
17300         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17301         to enum feature_priority and feature_list.
17302         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17303         and isa_names_table.
17305 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17307         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17308         vect_induction_def.
17310 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17312         PR c/66098
17313         PR c/66711
17314         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17315         account when deciding what was the command-line status.
17317 2015-08-11  Nathan Sidwell  <nathan@acm.org>
17319         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17321         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17322         we're not the only contributor to target phi.
17324 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
17326         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17327         FIXED_REG0.
17329 2015-08-11  Tom de Vries  <tom@codesourcery.com>
17331         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17333 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
17335         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17336         with CPU_SLM.
17337         * config/i386/i386.md (cpu): Remove knl.
17339 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17341         PR libgomp/65742
17342         PR middle-end/66332
17343         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17344         open-coded sequence.
17345         * omp-low.c (oacc_process_reduction_data): Remove handline of
17346         GOMP_DEVICE_HOST_NONSHM.
17348         * lto-streamer-in.c (lto_input_mode_table): Adjust to
17349         GET_MODE_INNER changes.
17351 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17352             Ilya Verbin  <ilya.verbin@intel.com>
17354         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17356 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17358         * doc/options.texi (EnabledBy): Document that the argument must be
17359         a Common option.
17360         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17361         Not enabled by -Wall.
17362         * optc-gen.awk: Give nicer error messages. Detect if the argument
17363         of EnabledBy is not a Common option.
17364         * common.opt (Wnull-dereference): Not enabled by -Wall.
17365         * opt-functions.awk (lang_enabled_by): Nicer error messages.
17367 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17369         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17370         model == 0x4f as Broadwell.
17372 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17374         PR rtl-optimization/67028
17375         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
17376         Add test to see if a const_int fits in the new mode.
17378 2015-08-07  DJ Delorie  <dj@redhat.com>
17380         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17382 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
17384         PR rtl-optimization/67029
17385         * ira-color.c: Include "recog.h" before including "ira-int.h".
17386         * target-globals.c: Likewise.
17387         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17388         adds an alternative_mask argument and use it instead of
17389         preferred_alternatives.
17390         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17391         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17392         * sched-deps.c: Include "ira-int.h" after including "ira.h".
17393         (sched_analyze_insn): Update call to
17394         ira_implicitly_set_insn_hard_regs.
17395         * sel-sched.c: Include "ira-int.h" after including "ira.h".
17396         (implicit_clobber_conflict_p): Update call to
17397         ira_implicitly_set_insn_hard_regs.
17399 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17401         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17403 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17405         PR target/67002
17406         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17407         currently_expanding_to_rtl is set.
17409 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
17411         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17412         * configure: Regenerate.
17414 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17415             Jiong Wang  <jiong.wang@arm.com>
17417         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17418         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17419         (REG_CLASS_NAMES): Likewise.
17420         (REG_CLASS_CONTENTS): Likewise.
17421         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17422         (aarch64_register_move_cost): Likewise.
17423         (aarch64_load_symref_appropriately): Invoke the new added pattern if
17424         possible.
17425         * config/aarch64/constraints.md (Uc0): New constraint.
17427 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17429         * config/aarch64/constraints.md (Usf): Add the test of
17430         aarch64_is_noplt_call_p.
17432 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17434         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17435         declaration.
17436         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17437         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17438         (call_symbol): Likewise.
17440 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
17442         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17443         for vectorizing multiplication patterns.
17444         * tree-vectorizer.h: Adjust the number of patterns.
17446 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17448         * config/i386/sse.md (*vec_concatv2df): Declare added
17449         alternatives as sselog type.
17451 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17453         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17454         all GPRs.
17456 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17458         * config/s390/s390.c (s390_expand_tbegin): Expand either
17459         tbegin_1_z13 or tbegin_1 depending on VX flag.
17460         * config/s390/s390.md ("tbegin_1_z13"): New expander.
17462 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17464         * config/s390/s390.opt: Clarify description for -mzvector
17465         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17466         -mzvector.
17468 2015-08-06  Richard Biener  <rguenther@suse.de>
17470         * gimple.h (gimple_call_set_fn): Access op member directly.
17471         (gimple_call_chain_ptr): Likewise.
17472         (gimple_call_set_chain): Likewise.
17473         (gimple_cond_lhs_ptr): Likewise.
17474         (gimple_cond_set_lhs): Likewise.
17475         (gimple_cond_rhs_ptr): Likewise.
17476         (gimple_cond_set_rhs): Likewise.
17477         (gimple_cond_true_label): Likewise.
17478         (gimple_cond_set_true_label): Likewise.
17479         (gimple_cond_set_false_label): Likewise.
17480         (gimple_cond_false_label): Likewise.
17481         (gimple_label_label): Likewise.
17482         (gimple_label_set_label): Likewise.
17483         (gimple_goto_set_dest): Likewise.
17484         (gimple_asm_input_op): Likewise.
17485         (gimple_asm_input_op_ptr): Likewise.
17486         (gimple_asm_set_input_op): Likewise.
17487         (gimple_asm_output_op): Likewise.
17488         (gimple_asm_output_op_ptr): Likewise.
17489         (gimple_asm_set_output_op): Likewise.
17490         (gimple_asm_clobber_op): Likewise.
17491         (gimple_asm_set_clobber_op): Likewise.
17492         (gimple_asm_label_op): Likewise.
17493         (gimple_asm_set_label_op): Likewise.
17494         (gimple_switch_index): Likewise.
17495         (gimple_switch_index_ptr): Likewise.
17496         (gimple_return_retval_ptr): Likewise.
17497         (gimple_return_retval): Likewise.
17498         (gimple_return_set_retval): Likewise.
17499         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
17500         (gimple_switch_label): Likewise.
17501         (gimple_switch_set_label): Likewise.
17503 2015-08-06  Richard Biener  <rguenther@suse.de>
17505         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17506         bool comparison canonicalization and restrict to integers.
17508 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
17510         * coretypes.h (enum symbol_visibility): Relocate here.
17511         * flag-types.h (enum symbol_visibility): Remove.
17512         * tree-core.h (enum symbol_visibility): Remove.
17514 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
17516         PR target/66870
17517         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17518         for no_split_stack function attribute along with
17519         flag_split_stack.
17520         (rs6000_expand_split_stack_prologue): Likewise.
17522 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17523             Jeff Law  <law@redhat.com>
17525         PR c/16351
17526         * doc/invoke.texi (Wnull-dereference): New.
17527         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17528         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17529         Warn for potential NULL dereferences.
17530         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17531         * ubsan.c (instrument_nonnull_arg): Call
17532         infer_nonnull_range_by_attribute.
17533         (instrument_nonnull_return): Likewise.
17534         * common.opt (Wnull-dereference); New.
17535         * gimple.c (infer_nonnull_range): Remove bool arguments.
17536         (infer_nonnull_range_by_dereference): New.
17537         (infer_nonnull_range_by_attribute): New.
17538         * gimple.h: Update declarations.
17540 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17542         * gensupport.c (sequence_num): Replace with...
17543         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17544         ...these new variables.
17545         (init_rtx_reader_args_cb): Update accordingly.
17546         (get_num_code_insns): Likewise.
17547         (read_md_rtx): Rework to use a while loop and get_c_test.
17548         Use the new counters.  Remove redundant DEFINE_SUBST case.
17549         * genoutput.c (gen_split): Delete.
17550         (main): Don't call it.
17552 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17554         * gensupport.h (get_c_test): Declare.
17555         * gensupport.c (get_c_test): New function.
17556         * genconditions.c (main): Use it.
17557         * genrecog.c (validate_pattern): Likewise.
17558         (match_pattern_1): Likewise.  Remove c_test argument.
17559         (match_pattern): Update accordingly and remove c_test argument.
17560         (main): Update accordingly.
17562 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17564         * gensupport.h (get_num_insn_codes): Declare.
17565         * gensupport.c (get_num_insn_codes): New function.
17566         * genattrtab.c (optimize_attrs): Rename max_insn_code to
17567         num_insn_codes.
17568         (main): Likewise.  Use get_num_insn_codes.
17569         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17571 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17573         PR middle-end/66311
17574         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17575         is zero- rather than sign-extended.
17577 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17579         * target-insns.def (can_extend): Delete.
17581 2015-08-05  Richard Biener  <rguenther@suse.de>
17583         PR tree-optimization/67121
17584         * tree-if-conv.c (combine_blocks): Clear range-info produced
17585         by stmts no longer executed conditionally.
17587 2015-08-05  Nick Clifton  <nickc@redhat.com>
17589         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17590         to allow identical far pointers to remain.
17592 2015-08-05  Richard Biener  <rguenther@suse.de>
17594         PR middle-end/67120
17595         * match.pd: Compare address bases with == if they are decls
17596         or SSA names, not operand_equal_p.  Otherwise fail.
17598 2015-08-05  Richard Biener  <rguenther@suse.de>
17600         PR tree-optimization/67055
17601         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17602         NULL gimple_block.
17604         * g++.dg/torture/pr67055.C: New testcase.
17606 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17608         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17609         noavx512vl.
17610         (define_attr "enabled"): Handle avx521vl and noavx512vl.
17611         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17612         AVX-512 alternative out of SSE.
17613         (define_insn "*vec_concatv2df"): Ditto.
17615 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17617         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17618         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17619         CODE_FOR_avx_ptestv4di.
17620         * config/i386/sse.md (define_mode_iterator V_AVX): New.
17621         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17622         (define_insn "avx_ptest256"): Merge this ...
17623         (define_insn "sse4_1_ptest"): And this ...
17624         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17626 2015-08-05  Richard Biener  <rguenther@suse.de>
17628         PR tree-optimization/67109
17629         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17630         against too big groups.  Print whether this is a load or store
17631         group.  Rename from ...
17632         (vect_analyze_group_access): ... this which is now a wrapper
17633         dissolving an invalid group.
17634         (vect_analyze_data_ref_accesses): Print whether this is a load
17635         or store group.
17637 2015-08-05  Richard Biener  <rguenther@suse.de>
17639         PR middle-end/67107
17640         * match.pd: Guard const_binop result checking against NULL_TREE
17641         result.
17643 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
17645         * cse.c (cse_insn): Restoring old behaviour for src_eqv
17646          when dest and value in the REG_EQUAL are same and dest
17647          is STRICT_LOW_PART.
17649 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
17651         * config/moxie/moxie.h (PRINT_OPERAND,
17652           PRINT_OPERAND_ADDRESS): Remove macros.
17653         * config/moxie/moxie-protos.h (moxie_print_operand,
17654           moxie_print_operand_address): Remove declaration.
17655         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17656           TARGET_PRINT_OPERAND_ADDRESS): Define.
17657           (moxie_print_operand, moxie_print_operand_address): Make static.
17659 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17661         PR target/66731
17662         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17663         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17665 2015-08-04  Richard Biener  <rguenther@suse.de>
17667         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17668         generated code.
17669         (dt_operand::gen_gimple_expr): Adjust.
17671 2015-08-04  Richard Biener  <rguenther@suse.de>
17673         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17674         bool compares on RHS.
17675         * match.pd: Add X ==/!= !X is false/true pattern.
17677 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
17679         * config/aarch64/aarch64.c: Change inner loop statement cost
17680         to be consistent with other targets.
17682 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
17684         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17685         targets.
17687 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17689         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17690         (machine_function): Remove pseudos field.
17692 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17694         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17695         Exit early and use target_option_current_node if processing current
17696         pragma.
17698 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17700         * doc/extend.texi (AArch64 Function Attributes): New node.
17701         (AArch64 Pragmas): Likewise.
17703 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17705         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17706         Initialize simd builtins if TARGET_SIMD.
17707         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17708         Make sure that the builtins are initialized only once no matter how
17709         many times the function is called.
17710         (aarch64_init_builtins): Unconditionally initialize crc builtins.
17711         (aarch64_relayout_simd_param): New function.
17712         (aarch64_simd_expand_args): Use above during argument expansion.
17713         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17714         simd builtins if TARGET_SIMD.
17715         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17716         prototype.
17717         (aarch64_relayout_simd_types): Likewise.
17719 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17721         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17722         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17723         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17724         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17725         static keyword.
17726         (aarch64_reset_previous_fndecl): New function.
17727         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17728         the string.
17729         * config/aarch64/aarch64-c.c: New file.
17730         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17731         Push and pop options at beginning and end.  Remove ifdef
17732         __ARM_FEATURE_CRC32.
17733         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17734         Add pragma +nothing+simd and +nothing+crypto where appropriate.
17735         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17736         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17737         Define prototype.
17738         (aarch64_register_pragmas): Likewise.
17739         (aarch64_reset_previous_fndecl): Likewise.
17740         (aarch64_process_target_attr): Likewise.
17741         (aarch64_override_options_internal): Likewise.
17743 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17745         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17746         New function.
17747         (aarch64_can_inline_p): Likewise.
17748         (TARGET_CAN_INLINE_P): Define.
17750 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17752         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17753         Remove static.  Handle OPT_mgeneral_regs_only,
17754         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17755         OPT_momit_leaf_frame_pointer.
17756         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17757         (aarch64_attr_opt_type): New enum.
17758         (aarch64_attribute_info): New struct.
17759         (aarch64_handle_attr_arch): New function.
17760         (aarch64_handle_attr_cpu): Likewise.
17761         (aarch64_handle_attr_tune): Likewise.
17762         (aarch64_handle_attr_isa_flags): Likewise.
17763         (aarch64_attributes): New table.
17764         (aarch64_process_one_target_attr): New function.
17765         (num_occurences_in_str): Likewise.
17766         (aarch64_process_target_attr): Likewise.
17767         (aarch64_option_valid_attribute_p): Likewise.
17768         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17769         * config/aarch64/aarch64-protos.h: Include input.h
17770         (aarch64_handle_option): Declare prototype.
17772 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17774         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17775         * config/aarch64/aarch64.c: Include target-globals.h
17776         (aarch64_previous_fndecl): New variable.
17777         (aarch64_set_current_function): New function.
17778         (TARGET_SET_CURRENT_FUNCTION): Define.
17780 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17782         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17783         (explicit_arch): Likewise.
17784         (x_aarch64_isa_flags): Likewise.
17785         (mgeneral-regs-only): Mark as Save.
17786         (mfix-cortex-a53-835769): Likewise.
17787         (mcmodel=): Likewise.
17788         (mstrict-align): Likewise.
17789         (momit-leaf-frame-pointer): Likewise.
17790         (mtls-dialect): Likewise.
17791         (master=): Likewise.
17792         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17793         (aarch64_isa_flags): Remove extern declaration.
17794         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17795         to indicate success or failure.
17796         (aarch64_validate_march): Likewise.
17797         (aarch64_validate_mtune): Likewise.
17798         (aarch64_isa_flags): Delete.
17799         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17800         instead of aarch64_isa_flags.
17801         (aarch64_get_tune_cpu): New function.
17802         (aarch64_get_arch): Likewise.
17803         (aarch64_override_options): Use above and set up explicit_tune_core
17804         and explicit_arch.
17805         (aarch64_print_extension): Move earlier in file.  Add isa_flags
17806         argument and use that instead of the global aarch64_isa_flags.
17807         (aarch64_option_save): New function.
17808         (aarch64_option_restore): Likewise.
17809         (aarch64_option_print): Likewise.
17810         (aarch64_declare_function_name): Likewise.
17811         (aarch64_start_file): Delete.
17812         (TARGET_ASM_FILE_START): Do not define.
17813         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17814         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17815         Declare prototype.
17817 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17819         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17820         flag_omit_leaf_frame_pointer to 2.
17822 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17824         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17825         define to 0 or 1.
17826         (TARGET_FIX_ERR_A53_835769): New macro.
17827         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17828         handling of opts->x_aarch64_fix_a53_err835769.
17829         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17830         than aarch64_fix_a53_err835769.
17831         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17832         * config/aarch64/aarch64-linux.h: Likewise.
17834 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
17836         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17837         ix86_expand_int_movcc as boolean.
17839 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17841         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17842         (aarch64_cpu_string): Likewise.
17843         (aarch64_tune_string): Likewise.
17844         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17845         (aarch64_parse_extension): Return aarch64_parse_opt_result.
17846         Add extra argument to put result into.
17847         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
17848         (aarch64_parse_cpu): Add arguments to put results into. Return
17849         aarch64_parse_opt_result.
17850         (aarch64_parse_tune): Likewise.
17851         (aarch64_override_options_after_change_1): New function.
17852         (aarch64_override_options_internal): New function.
17853         (aarch64_validate_mcpu): Likewise.
17854         (aarch64_validate_march): Likewise.
17855         (aarch64_validate_mtune): Likewise.
17856         (aarch64_override_options): Update to reflect above changes.
17857         Move some logic into aarch64_override_options_internal.
17858         Initialize target_option_default_node and target_option_current_node.
17859         (aarch64_override_options_after_change): Move logic into
17860         aarch64_override_options_after_change_1 and call it with global_options.
17861         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17862         flag values from that.
17864 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17866         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17867         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17868         * config/aarch64/aarch64.c (struct processor): Add arch field.
17869         (all_architectures): Handle above, move above all_cores.
17870         (all_cores): Handle above.
17871         (aarch64_parse_arch): Handle above changes.
17872         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17873         above.  Update comments.
17874         (armv8.1-a): Likewise.
17875         * config/aarch64/aarch64-cores.def: Update according to above.
17876         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17877         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17878         aarch64_arch_driver_info.
17880 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17882         * config/aarch64/aarch64.c (struct processor): Add ident field.
17883         Rename core sched_core.
17884         (all_cores): Handle above changes.
17885         (all_architectures): Likewise.
17886         (aarch64_parse_arch): Likewise.
17887         (aarch64_override_options): Likewise.
17889 2015-08-04  Richard Biener  <rguenther@suse.de>
17891         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17892         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17893         comparisons embedded in [VEC_]COND_EXPRs.
17895 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
17897         * tree-if-conv.c: Fix various typos in comments.
17898         * tree-vect-stmts.c: Likewise.
17900 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17902         PR tree-optimization/67043
17903         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17904         preheader after hoisting invariant in it.
17905         (find_defs): Force recomputation of all luids.
17907 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
17909         * config/rs6000/htm.md (tabort.): Restrict the source operand to
17910         using a base register.
17912 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
17914         * main.c (main): Pass in NULL for toplev's external_timer.
17915         * timevar.c: Include coretypes.h.
17916         (class timer::named_items): New.
17917         (timer::named_items::named_items): New.
17918         (timer::named_items::~named_items): New.
17919         (timer::named_items::push): New.
17920         (timer::named_items::pop): New.
17921         (timer::named_items::print): New.
17922         (timer::timer): Initialize field "m_jit_client_items".
17923         (timer::~timer): New.
17924         (timer::push): Move bulk of implementation to...
17925         (timer::push_internal): ...here.  New function.
17926         (timer::pop): Move bulk of implementation to...
17927         (timer::pop_internal): ...here.  New function.
17928         (timer::push_client_item): New.
17929         (timer::pop_client_item): New.
17930         (timer::print_row): New function, taken from timer::print.
17931         (timer::print): Print "GCC items" header if we also have client
17932         items.  Move row-printing to timer::print_row.  Print any client
17933         items.
17934         (timer::get_topmost_item_name): New method.
17935         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17936         (TV_JIT_CLIENT_CODE): New.
17937         * timevar.h (timer::push_client_item): New declaration.
17938         (timer::pop_client_item): New declaration.
17939         (timer::get_topmost_item_name): New method.
17940         (timer::push_internal): New declaration.
17941         (timer::pop_internal): New declaration.
17942         (timer::print_row): New declaration.
17943         (timer::named_items): New declaration.
17944         (timer::m_jit_client_items): New field.
17945         (timer): Add friend class named_items.
17946         (auto_timevar::auto_timevar): Add timer param.
17947         (auto_timevar::~auto_timevar): Use field "m_timer".
17948         (auto_timevar::m_timer): New field.
17949         * toplev.c (initialize_rtl): Add g_timer as param when
17950         constructing auto_timevar instance.
17951         (toplev::toplev): Add "external_timer" param, and use it to
17952         initialize the "g_timer" global if non-NULL.
17953         (toplev::~toplev): If this created "g_timer", delete it.
17954         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17955         with "external_timer" timer *.
17957 2015-08-03  Alexander Basov <coohpt@gmail.com>
17959         PR middle-end/64744
17960         PR middle-end/48470
17961         PR middle-end/43404
17962         * cfgexpand.c (expand_one_var): Add check if stack is going to
17963         be used in naked function.
17964         * expr.c (expand_expr_addr_expr_1): Remove excess checking
17965         whether expression should not reside in MEM.
17966         * function.c (use_register_for_decl): Do not use registers for
17967         non-register things (volatile, float, BLKMode) in naked functions.
17969 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
17971         PR target/67060
17972         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17973         Adjust splits to match new pattern.
17975 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17977         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17978         (VEC_M): Likewise.
17979         (VEC_N): Likewise.
17980         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17981         point in VSX registers.
17983         * config/rs6000/constraints.md (wb constraint): Document unused
17984         w<x> constraint.
17985         (we constraint): Likewise.
17986         (wo constraint): Likewise.
17987         (wp constraint): New constraint for IEEE 128-bit floating point in
17988         VSX registers.
17989         (wq constraint): Likewise.
17991         * config/rs6000/predicates.md (easy_fp_constant): Add support for
17992         IEEE 128-bit floating point in VSX registers.
17993         (easy_scalar_constant): Likewise.
17995         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17996         constraints (wp, wq) for IEEE 128-bit floating point in VSX
17997         registers.
17998         (rs6000_init_hard_regno_mode_ok): Likewise.
18000         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18001         floating point in VSX registers.
18002         (VSX_L): Likewise.
18003         (VSX_M): Likewise.
18004         (VSX_M2): Likewise.
18005         (VSm): Likewise.
18006         (VSs): Likewise.
18007         (VSr): Likewise.
18008         (VSa): Likewise.
18009         (VSv): Likewise.
18010         (vsx_le_permute_<mode>): Add support to properly swap bytes for
18011         IEEE 128-bit floating point in VSX registers on little endian.
18012         (vsx_le_undo_permute_<mode>): Likewise.
18013         (vsx_le_perm_load_<mode>): Likewise.
18014         (vsx_le_perm_store_<mode>): Likewise.
18015         (splitters for IEEE 128-bit fp moves): Likewise.
18017         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18018         wq constraints.
18020         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18021         floating point in VSX registers.
18022         (VM2): Likewise.
18024         * doc/md.text (Machine Constraints): Document wp and wq
18025         constraints on PowerPC.
18027 2015-08-03  Jeff Law  <law@redhat.com>
18029         PR middle-end/66314
18030         PR gcov-profile/66899
18031         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18032         iterate over the jump threading paths when an element in the
18033         jump threading paths array is eliminated.
18035 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
18037         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18039 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
18041         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18042         is_use_properly_guarded the variable def_preds.  Free its
18043         contents before returning.
18044         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18045         (is_use_properly_guarded): Replace local variable def_preds with
18046         a parameter.  Adjust accordingly.  Only update *def_preds if it's
18047         the empty vector.
18049 2015-08-03  Richard Biener  <rguenther@suse.de>
18051         * genmatch.c (simplify::for_subst_vec): New member.
18052         (binary_ok): New helper for for lowering.
18053         (lower_for): Delay substituting operators into result expressions
18054         if we can merge the results eventually again.
18055         (capture_info::walk_result): Adjust for user_id appearing as
18056         result expression operator.
18057         (expr::gen_transform): Likewise.
18058         (dt_simplify::gen_1): Likewise.
18059         (dt_simplify::gen): Pass not substituted operators to tail
18060         functions or initialize local variable with it.
18061         (decision_tree::gen): Adjust function signature.
18062         * match.pd: Fix tests against global code and add default
18063         cases to switch stmts.
18065 2015-08-03  Richard Biener  <rguenther@suse.de>
18067         * genmatch.c (dt_simplify::gen): Create captures array
18068         with an initializer.
18070 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18072         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18073         the host compiler is affected by placement new aliasing bug.
18074         * configure: Regenerate.
18075         * Makefile.in (ALIASING_FLAGS): New variable.
18076         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18078 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18080         PR target/66731
18081         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18082         (negmulsf3_vfp): Likewise.
18083         (muldf3negdf_vfp): Disable for -frounding-math.
18084         (mulsf3negsf_vfp): Likewise.
18085         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18086         fix MULT cost with -frounding-math.
18088 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18090         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18091         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18092         explicit.  Prefer to add the flag whenever possible.
18093         (noce_process_if_block): Try noce_try_store_flag_constants before
18094         noce_try_cmove.
18096 2015-08-03  Richard Biener  <rguenther@suse.de>
18098         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18099         New hash-map to record equivalent transforms.
18100         (dt_node::analyze): Populate the equivalent transforms hash-map.
18101         (dt_simplify::info): Add reference to hash-map entry.
18102         (dt_simplify::gen): If we have split out a function for the
18103         transform, generate a call to it.
18104         (sinfo_hashmap_traits::hash): New function.
18105         (compare_op): New helper function for ...
18106         (sinfo_hashmap_traits::equal_keys): ... this new function.
18107         (decision_tree::gen): Split out common equivalent transforms
18108         into functions.
18110 2015-08-03  Richard Biener  <rguenther@suse.de>
18112         * gimple-fold.c (fold_gimple_assign): Remove folding of
18113         the comparison in COND_EXPRs.
18115 2015-08-03  Richard Biener  <rguenther@suse.de>
18117         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18118         on the rhs of assignments first simplify the embedded
18119         GENERIC condition.
18121 2015-08-03  Richard Biener  <rguenther@suse.de>
18123         PR tree-optimization/66917
18124         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18125         field.
18126         (DR_VECT_AUX): New macro.
18127         (set_dr_misalignment): Adjust.
18128         (dr_misalignment): Likewise.
18129         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18130         Compute whether the base is at least element aligned.
18131         * tree-vect-stmts.c (ensure_base_align): Adjust.
18132         (vectorizable_store): If the base is not element aligned
18133         preserve alignment of the original access if misalignment is unknown.
18134         (vectorizable_load): Likewise.
18136 2015-08-02  Martin Sebor  <msebor@redhat.com>
18138         * doc/invoke.texi (Wframe-address): Document it.
18139         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18140         Clarify possible effects of calling the functions with non-zero
18141         arguments and mention -Wframe-address.
18142         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18144 2015-08-01  Michael Collison  <michael.collison@linaro.org
18145             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18147         * config/arm/arm.md (*arm_smin_cmp): New pattern.
18148         (*arm_umin_cmp): Likewise.
18150 2015-08-01  Caroline Tice  <cmtice@google.com>
18152         PR 66521
18153         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18154         global variables.
18155         (vtbl_find_mangled_name):  New function.
18156         (vtbl_register_mangled_name):  New function.
18157         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
18158         mangled name in mangled name vectors.
18159         (find_or_create_vtbl_map_node):  Ditto.
18160         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
18161         update recursion_depth on function entry; pass it to every recursive
18162         call; automatically exit if depth > 25 (give up looking at that point).
18163         (verify_bb_vtables):  Initialize recursion_depth and pass it to
18164         var_is_used_for_virtual_call_p.
18165         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18166         global variable decls.
18167         (vtbl_register_mangled_name): New extern function decl.
18169 2015-08-01  Tom de Vries  <tom@codesourcery.com>
18171         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18172         function.
18173         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18174         Declare.
18175         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18176         operation_no_trapping_overflow.  Allow non-overflow operations.
18177         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18178         operations.
18180 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
18182         PR target/67049
18183         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18185 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18187         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18188         Enable for TARGET_32BIT.
18189         (*if_move_neg): Likewise.
18191 2015-07-31  Nick Clifton  <nickc@redhat.com>
18193         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18194         Returns true for __model__.
18195         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18197 2015-07-31  Alan Modra  <amodra@gmail.com>
18199         PR target/66870
18200         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18201         (rs6000_emit_prologue): Set it.
18202         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18204 2015-07-31  Richard Biener  <rguenther@suse.de>
18206         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18207         -> X == (C1 ^ C2) which is already implemented in match.pd.
18208         Remove redundant dispatching to fold_relational_const.
18209         Move unordered self and NaN compares ...
18210         * match.pd: ... as patterns here.  Remove some stray captures
18211         and add a comment.
18213 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
18215         * config/i386/i386.c
18216         (bdesc_special_args): Convert mask type from signed to unsigned for
18217         masked builtins.
18218         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18219         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18220         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18221         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18222         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18223         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18224         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18225         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18226         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18227         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18228         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18229         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18230         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18231         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18232         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18233         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18234         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18235         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18236         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18237         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18238         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18239         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18240         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18241         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18242         * config/i386/i386-builtin-types.def
18243         (V16QI_FTYPE_V16SI): Remove.
18244         (V8DF_FTYPE_V8SI): Ditto.
18245         (V8HI_FTYPE_V8DI): Ditto.
18246         (V8SI_FTYPE_V8DI): Ditto.
18247         (V8SF_FTYPE_V8DF): Ditto.
18248         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18249         (V16HI_FTYPE_V16SI): Ditto.
18250         (V16SF_FTYPE_V16HI): Ditto.
18251         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18252         (V16SF_FTYPE_V16SI): Ditto.
18253         (V4DI_FTYPE_V4DI): Ditto.
18254         (V16SI_FTYPE_V16SF): Ditto.
18255         (V16SF_FTYPE_FLOAT): Ditto.
18256         (V8DF_FTYPE_DOUBLE): Ditto.
18257         (V8DI_FTYPE_INT64): Ditto.
18258         (V8DI_FTYPE_V4DI): Ditto.
18259         (V16QI_FTYPE_V8DI): Ditto.
18260         (UINT_FTYPE_V4SF): Ditto.
18261         (UINT64_FTYPE_V4SF): Ditto.
18262         (UINT_FTYPE_V2DF): Ditto.
18263         (UINT64_FTYPE_V2DF): Ditto.
18264         (V16SI_FTYPE_V16SI): Ditto.
18265         (V8DI_FTYPE_V8DI): Ditto.
18266         (V16SI_FTYPE_PV4SI): Ditto.
18267         (V16SF_FTYPE_PV4SF): Ditto.
18268         (V8DI_FTYPE_PV2DI): Ditto.
18269         (V8DF_FTYPE_PV2DF): Ditto.
18270         (V4DI_FTYPE_PV2DI): Ditto.
18271         (V4DF_FTYPE_PV2DF): Ditto.
18272         (V16SI_FTYPE_PV2SI): Ditto.
18273         (V16SF_FTYPE_PV2SF): Ditto.
18274         (V8DI_FTYPE_PV4DI): Ditto.
18275         (V8DF_FTYPE_PV4DF): Ditto.
18276         (V8SF_FTYPE_FLOAT): Ditto.
18277         (V4SF_FTYPE_FLOAT): Ditto.
18278         (V4DF_FTYPE_DOUBLE): Ditto.
18279         (V8SF_FTYPE_PV4SF): Ditto.
18280         (V8SI_FTYPE_PV4SI): Ditto.
18281         (V4SI_FTYPE_PV2SI): Ditto.
18282         (V8SF_FTYPE_PV2SF): Ditto.
18283         (V8SI_FTYPE_PV2SI): Ditto.
18284         (V16SF_FTYPE_PV8SF): Ditto.
18285         (V16SI_FTYPE_PV8SI): Ditto.
18286         (V8DI_FTYPE_V8SF): Ditto.
18287         (V4DI_FTYPE_V4SF): Ditto.
18288         (V2DI_FTYPE_V4SF): Ditto.
18289         (V64QI_FTYPE_QI): Ditto.
18290         (V32HI_FTYPE_HI): Ditto.
18291         (V8UHI_FTYPE_V8UHI): Ditto.
18292         (V16UHI_FTYPE_V16UHI): Ditto.
18293         (V32UHI_FTYPE_V32UHI): Ditto.
18294         (V2UDI_FTYPE_V2UDI): Ditto.
18295         (V4UDI_FTYPE_V4UDI): Ditto.
18296         (V8UDI_FTYPE_V8UDI): Ditto.
18297         (V4USI_FTYPE_V4USI): Ditto.
18298         (V8USI_FTYPE_V8USI): Ditto.
18299         (V16USI_FTYPE_V16USI): Ditto.
18300         (V2DF_FTYPE_V2DF_UINT64): Ditto.
18301         (V2DI_FTYPE_V2DF_V2DF): Ditto.
18302         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18303         (V8DF_FTYPE_V8DF_V8DI): Ditto.
18304         (V4SF_FTYPE_V4SF_UINT64): Ditto.
18305         (V4SI_FTYPE_V4SF_V4SF): Ditto.
18306         (V16SF_FTYPE_V16SF_V16SI): Ditto.
18307         (V64QI_FTYPE_V32HI_V32HI): Ditto.
18308         (V32HI_FTYPE_V16SI_V16SI): Ditto.
18309         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18310         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18311         (V32HI_FTYPE_V64QI_V64QI): Ditto.
18312         (V32HI_FTYPE_V32HI_V32HI): Ditto.
18313         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18314         (V16SI_FTYPE_V16SI_V4SI): Ditto.
18315         (V16SI_FTYPE_V16SI_V16SI): Ditto.
18316         (V16SI_FTYPE_V32HI_V32HI): Ditto.
18317         (V16SI_FTYPE_V16SI_SI): Ditto.
18318         (V8DI_FTYPE_V8DI_V8DI): Ditto.
18319         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18320         (V8DI_FTYPE_V16SI_V16SI): Ditto.
18321         (V8DI_FTYPE_V8DI_V2DI): Ditto.
18322         (QI_FTYPE_QI): Ditto.
18323         (SI_FTYPE_SI): Ditto.
18324         (DI_FTYPE_DI): Ditto.
18325         (QI_FTYPE_QI_QI): Ditto.
18326         (QI_FTYPE_QI_INT): Ditto.
18327         (HI_FTYPE_HI_INT): Ditto.
18328         (SI_FTYPE_SI_INT): Ditto.
18329         (DI_FTYPE_DI_INT): Ditto.
18330         (HI_FTYPE_V16QI_V16QI): Ditto.
18331         (SI_FTYPE_V32QI_V32QI): Ditto.
18332         (DI_FTYPE_V64QI_V64QI): Ditto.
18333         (QI_FTYPE_V8HI_V8HI): Ditto.
18334         (HI_FTYPE_V16HI_V16HI): Ditto.
18335         (SI_FTYPE_V32HI_V32HI): Ditto.
18336         (QI_FTYPE_V4SI_V4SI): Ditto.
18337         (QI_FTYPE_V8SI_V8SI): Ditto.
18338         (QI_FTYPE_V2DI_V2DI): Ditto.
18339         (QI_FTYPE_V4DI_V4DI): Ditto.
18340         (QI_FTYPE_V8DI_V8DI): Ditto.
18341         (HI_FTYPE_V16SI_V16SI): Ditto.
18342         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18343         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18344         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18345         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18346         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18347         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18348         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18349         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18350         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18351         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18352         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18353         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18354         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18355         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18356         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18357         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18358         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18359         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18360         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18361         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18362         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18363         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18364         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18365         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18366         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18367         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18368         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18369         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18370         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18371         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18372         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18373         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18374         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18375         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18376         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18377         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18378         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18379         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18380         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18381         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18382         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18383         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18384         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18385         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18386         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18387         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18388         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18389         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18390         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18391         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18392         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18393         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18394         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18395         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18396         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18397         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18398         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18399         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18400         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18401         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18402         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18403         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18404         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18405         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18406         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18407         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18408         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18409         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18410         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18411         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18412         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18413         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18414         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18415         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18416         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18417         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18418         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18419         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18420         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18421         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18422         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18423         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18424         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18425         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18426         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18427         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18428         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18429         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18430         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18431         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18432         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18433         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18434         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18435         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18436         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18437         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18438         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18439         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18440         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18441         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18442         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18443         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18444         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18445         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18446         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18447         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18448         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18449         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18450         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18451         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18452         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18453         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18454         (HI_FTYPE_HI): Ditto.
18455         (HI_FTYPE_V16QI): Ditto.
18456         (SI_FTYPE_V32QI): Ditto.
18457         (DI_FTYPE_V64QI): Ditto.
18458         (QI_FTYPE_V8HI): Ditto.
18459         (HI_FTYPE_V16HI): Ditto.
18460         (SI_FTYPE_V32HI): Ditto.
18461         (QI_FTYPE_V4SI): Ditto.
18462         (QI_FTYPE_V8SI): Ditto.
18463         (HI_FTYPE_V16SI): Ditto.
18464         (QI_FTYPE_V2DI): Ditto.
18465         (QI_FTYPE_V4DI): Ditto.
18466         (QI_FTYPE_V8DI): Ditto.
18467         (V16QI_FTYPE_HI): Ditto.
18468         (V32QI_FTYPE_SI): Ditto.
18469         (V64QI_FTYPE_DI): Ditto.
18470         (V8HI_FTYPE_QI): Ditto.
18471         (V16HI_FTYPE_HI): Ditto.
18472         (V32HI_FTYPE_SI): Ditto.
18473         (V4SI_FTYPE_QI): Ditto.
18474         (V4SI_FTYPE_HI): Ditto.
18475         (V8SI_FTYPE_QI): Ditto.
18476         (V8SI_FTYPE_HI): Ditto.
18477         (V2DI_FTYPE_QI): Ditto.
18478         (V4DI_FTYPE_QI): Ditto.
18479         (HI_FTYPE_HI_HI): Ditto.
18480         (SI_FTYPE_SI_SI): Ditto.
18481         (DI_FTYPE_DI_DI): Ditto.
18482         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18483         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18484         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18485         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18486         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18487         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18488         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18489         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18490         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18491         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18492         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18493         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18494         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18495         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18496         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18497         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18498         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18499         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18500         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18501         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18502         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18503         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18504         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18505         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18506         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18507         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18508         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18509         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18510         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18511         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18512         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18513         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18514         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18515         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18516         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18517         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18518         (V16SI_FTYPE_HI): Ditto.
18519         (V8DI_FTYPE_QI): Ditto.
18520         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18521         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18522         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18523         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18524         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18525         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18526         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18527         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18528         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18529         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18530         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18531         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18532         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18533         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18534         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18535         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18536         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18537         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18538         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18539         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18540         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18541         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18542         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18543         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18544         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18545         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18546         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18547         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18548         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18549         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18550         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18551         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18552         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18553         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18554         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18555         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18556         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18557         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18558         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18559         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18560         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18561         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18562         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18563         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18564         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18565         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18566         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18567         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18568         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18569         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18570         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18571         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18572         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18573         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18574         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18575         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18576         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18577         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18578         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18579         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18580         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18581         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18582         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18583         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18584         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18585         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18586         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18587         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18588         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18589         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18590         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18591         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18592         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18593         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18594         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18595         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18596         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18597         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18598         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18599         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18600         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18601         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18602         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18603         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18604         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18605         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18606         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18607         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18608         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18609         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18610         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18611         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18612         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18613         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18614         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18615         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18616         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18617         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18618         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18619         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18620         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18621         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18622         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18623         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18624         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18625         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18626         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18627         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18628         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18629         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18630         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18631         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18632         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18633         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18634         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18635         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18636         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18637         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18638         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18639         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18640         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18641         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18642         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18643         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18644         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18645         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18646         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18647         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18648         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18649         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18650         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18651         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18652         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18653         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18654         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18655         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18656         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18657         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18658         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18659         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18660         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18661         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18662         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18663         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18664         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18665         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18666         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18667         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18668         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18669         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18670         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18671         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18672         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18673         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18674         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18675         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18676         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18677         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18678         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18679         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18680         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18681         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18682         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18683         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18684         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18685         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18686         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18687         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18688         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18689         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18690         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18691         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18692         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18693         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18694         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18695         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18696         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18697         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18698         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18699         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18700         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18701         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18702         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18703         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18704         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18705         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18706         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18707         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18708         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18709         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18710         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18711         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18712         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18713         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18714         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18715         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18716         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18717         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18718         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18719         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18720         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18721         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18722         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18723         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18724         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18725         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18726         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18727         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18728         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18729         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18730         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18731         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18732         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18733         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18734         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18735         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18736         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18737         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18738         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18739         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18740         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18741         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18742         (QI_FTYPE_V8DF_INT_QI): Ditto.
18743         (QI_FTYPE_V4DF_INT_QI): Ditto.
18744         (QI_FTYPE_V2DF_INT_QI): Ditto.
18745         (HI_FTYPE_V16SF_INT_HI): Ditto.
18746         (QI_FTYPE_V8SF_INT_QI): Ditto.
18747         (QI_FTYPE_V4SF_INT_QI): Ditto.
18748         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18750 2015-07-31  Richard Biener  <rguenther@suse.de>
18752         * gimple-fold.c (fold_gimple_assign): Remove folding of
18753         GIMPLE_BINARY_RHS.
18755 2015-07-31  Tom de Vries  <tom@codesourcery.com>
18757         PR tree-optimization/66846
18758         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18759         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18760         (expand_omp_target) [ENABLE_CHECKING]: Same.
18761         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18762         cfun if !LOOPS_NEED_FIXUP.
18763         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
18764         that omp_for already has its own loop struct.
18765         * tree-parloops.c (create_phi_for_local_result)
18766         (create_call_for_reduction): Handle simple latch bb.
18767         (create_parallel_loop): Add simple latch bb to preserve
18768         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
18769         (gen_parallel_loop): Remove call to cancel_loop_tree.
18770         (parallelize_loops): Skip loops that are inner loops of parallelized
18771         loops.
18772         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18773         verify_loop_structure.
18775 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18777         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18778         * config/v850/v850.md (RV_REGNUM): New constants.
18779         * config/v850/v850.c (v850_libcall_value): New functions.
18780         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18781         (TARGET_LIBCALL_VALUE): Define.
18783 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18785         * rtl.h (lowpart_subreg): Move in file.
18786         * loop-iv.c (lowpart_subreg): Move to...
18787         * simplify-rtx.c (lowpart_subreg): ...here.
18788           (simplify_binary_operation_1): Use lowpart_subreg instead of
18789           simplify_gen_subreg.
18790         * expr.c (expand_expr_real_2): Ditto.
18791         * emit-rtl.c (gen_lowpart_common): Ditto.
18792         * combine.c (gen_lowpart_for_combine): Ditto.
18793         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18794           expand_debug_source_expr): Ditto.
18796 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18798         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18799         (expand_builtin_atomic_clear): Remove support for atomic_clear
18800         pattern.
18802 2015-07-30  Richard Biener  <rguenther@suse.de>
18804         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18805         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18806         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
18807         redundant operand canonicalization.
18809 2015-07-30  David Sherwood  <david.sherwood@arm.com>
18811         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18812         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18813         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18814         * config/arm/arm.c (neon_valid_immediate): Likewise.
18815         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18816         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18817         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18818         (expand_vec_perm_vpshufb2_vpermq): Likewise.
18819         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18820         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18821         * config/i386/sse.md
18822         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18823         (*ssse3_palignr<mode>_perm): Likewise.
18824         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18825         * config/spu/spu.c (arith_immediate_p): Likewise.
18826         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18827         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18829 2015-07-30  Richard Biener  <rguenther@suse.de>
18831         * genmatch.c (decision_tree::gen_gimple): Merge with ...
18832         (decision_tree::gen_generic): ... this into ...
18833         (decision_tree::gen): ... this.
18834         (main): Adjust callers.
18836 2015-07-30  Richard Biener  <rguenther@suse.de>
18838         * genmatch.c (verbose): New global.
18839         (warning_at): Add overload with source_location.
18840         (capture_info::capture_info): Add bool whether generating gimple
18841         or generic.  Add gimple member.
18842         (capture_info::cinfo): Add capture member.
18843         (capture_info::walk_match): Record capture.  Warn on
18844         non-captured leafs.
18845         (capture_info::walk_c_expr): Add more fragments captures cannot
18846         escape through.  Warn on escaped captures.
18847         (dt_simplify::gen_1): Warn on operands we force to have no
18848         side-effects.
18849         (main): Initialize verbose.
18850         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18852 2015-07-30  Richard Biener  <rguenther@suse.de>
18854         PR middle-end/67053
18855         * match.pd: Allow both operands to independently have conversion
18856         when simplifying compares of addresses.
18858 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
18860         PR target/66217
18861         PR target/67045
18862         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18863         around those cases that need one.
18865 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
18867         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18869 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
18871         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18872         New.  Copied from config/i386/gnu-user.h.
18873         (ASM_COMMENT_START): Likewise.
18874         (DBX_REGISTER_NUMBER): Likewise.
18876 2015-07-29  Richard Biener  <rguenther@suse.de>
18878         * gimple-fold.c (fold_gimple_cond): Remove.
18879         (fold_stmt_1): Do not call it.
18881 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
18883         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18884         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18886         * config/aarch64/aarch64-modes.def: Add HFmode.
18888         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18889         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18891         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18892         aarch64_promoted_type): New.
18894         (aarch64_float_const_representable_p): Disable HFmode.
18895         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18896         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18897         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18899         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18900         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18902         * config/aarch64/iterators.md (GPF_F16): New.
18904 2015-07-29  Richard Biener  <rguenther@suse.de>
18906         * match.pd: Merge address comparison patterns and make them
18907         handle some more cases.
18909 2015-07-29  Richard Biener  <rguenther@suse.de>
18911         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18912         (parser::parse_capture): Add bool argument on whether to reject
18913         unknown captures.
18914         (parser::parse_expr): Adjust.
18915         (parser::parse_op): Likewise.
18916         (parser::parse_pattern): Likewise.
18918 2015-07-29  Richard Biener  <rguenther@suse.de>
18920         * gimple-fold.c (has_use_on_stmt): New function.
18921         (replace_stmt_with_simplification): Use it to allow
18922         abnormals originally referenced in the stmt.
18923         (fold_stmt_1): Canonicalize operand order.
18925 2015-07-28  David Sherwood  <david.sherwood@arm.com>
18927         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18928         GET_MODE_INNER unconditionally.
18929         * config/spu/spu.c (arith_immediate_p): Likewise.
18930         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18931         * expmed.c (synth_mult): Remove check for VOIDmode result from
18932         GET_MODE_INNER.
18933         (expand_mult_const): Likewise.
18934         * fold-const.c (fold_binary_loc): Replace call to element_precision
18935         with call to GET_MODE_PRECISION.
18936         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18937         m->name.
18938         (emit_mode_inner): Likewise.
18939         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18940         result check.
18941         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18942         (GET_MODE_UNIT_PRECISION): Likewise.
18943         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18944         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18945         * stor-layout.c (bitwise_type_for_mode): Update assert.
18946         (element_precision): Remove.
18948 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18950         * target-insns.def (reload_load_address): New targetm instruction
18951         pattern.
18952         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18954 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18956         * target-insns.def (atomic_test_and_set): New targetm instruction
18957         pattern.
18958         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18959         HAVE_*/gen_* interface.
18961 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18963         * target-insns.def (can_extend, ptr_extend): New targetm instruction
18964         patterns.
18965         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18966         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18967         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18968         * rtlanal.c (nonzero_bits1): Likewise.
18969         (num_sign_bit_copies1): Likewise.
18971 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18973         * target-insns.def (eh_return): New targetm instruction pattern.
18974         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18975         interface.
18976         * function.c (thread_prologue_and_epilogue_insns): Remove
18977         preprocessor condition.
18979 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18981         * target-insns.def (indirect_jump): New targetm instruction pattern.
18982         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18983         interface.
18985 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18987         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18988         instead of nonimmediate_operand.  Remove C condiition.
18990 2015-07-28  Richard Biener  <rguenther@suse.de>
18992         * match.pd: Add more simplification of address comparisons.
18994 2015-07-28  Richard Biener  <rguenther@suse.de>
18996         * match.pd: Re-order two cases in comparison with max/min
18997         value simplification to make it apply for bools.
18999 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19001         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19002         Handle simple SIGN_EXTEND or ZERO_EXTEND.
19003         (aarch64_rtx_costs): Properly strip extend or extract before
19004         passing down to rtx costs again.
19006 2015-07-28  Nick Clifton  <nickc@redhat.com>
19008         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19009         Optimizes the case where -mes0 is active and a constant symbolic
19010         address is used.
19011         * config/rl78/rl78-protos.h: Prototype the new function.
19012         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19014 2015-07-28  Tom de Vries  <tom@codesourcery.com>
19016         * tree-parloops.c (reduc_stmt_res): New function.
19017         (initialize_reductions, add_field_for_reduction)
19018         (create_phi_for_local_result, create_loads_for_reductions)
19019         (create_stores_for_reduction, build_new_reduction): Handle case that
19020         reduc_stmt is a phi.
19021         (gather_scalar_reductions): Allow double_reduc reductions.
19023 2015-07-28  Richard Biener  <rguenther@suse.de>
19025         * fold-const.c (fold_comparison): Remove equality folding
19026         of decl addresses ...
19027         * match.pd: ... here and merge with existing pattern.
19029 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19031         PR tree-optimization/66828
19032         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19033         from int64_t to uint64_t.
19035 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19037         * opts-common.c (read_cmdline_option): List DriverOnly enum values
19038         as valid only in the error message of the driver, not in the
19039         messages of the language compilers.
19041 2015-07-27  Tom de Vries  <tom@codesourcery.com>
19043         * tree-parloops.c (gather_scalar_reductions): Simplify function
19044         structure.
19046 2015-07-27  Marek Polacek  <polacek@redhat.com>
19048         * ipa-devirt.c (types_same_for_odr): Fix typo.
19050 2015-07-27  Jason Merrill  <jason@redhat.com>
19052         PR debug/66468
19053         * dwarf2out.c (gen_inlined_subroutine_die): Check
19054         cgraph_function_possibly_inlined_p.
19056 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19058         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19059         Place integer variant first.
19060         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19062 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19064         PR/63870
19065         * config/arm/arm-builtins.c (enum arm_builtins):
19066         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19067         (ARM_BUILTIN_NEON_BASE): Rename macro to....
19068         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19069         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19070         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19072 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19074         PR/63870
19075         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19076         Add qualifier_lane_index.
19077         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19078         (arm_getlane_qualifiers): Use qualifier_lane_index.
19079         (arm_lanemac_qualifiers): Rename to...
19080         (arm_mac_n_qualifiers): ...this.
19081         (LANEMAC_QUALIFIERS): Rename to...
19082         (MAC_N_QUALIFIERS): ...this.
19083         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19084         (arm_setlane_qualifiers): Use qualifier_lane_index.
19085         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19086         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19087         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19088         (arm_expand_neon_builtin): Handle qualifier_lane_index.
19090         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19091         * config/arm/arm.c (bounds_check): Likewise, improve error message.
19092         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19093         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19094         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19095         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19096         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19097         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19098         qualifiers to TERNOP_IMM.
19099         (vdup_lane): Change qualifiers to GETLANE.
19100         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19101         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19102         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19103         vqdmlsl_n): Change qualifiers to MAC_N.
19105         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19106         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19107         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19108         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19109         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19110         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19111         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19112         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19113         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19114         Remove call to neon_lane_bounds.
19116 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19118         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19119         Place integer variant first.
19121 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
19123         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19124         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19125         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19126         for armv6kz targets.
19127         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19128         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19129         (FL_FOR_ARCH6ZK): Remove.
19130         (FL_FOR_ARCH6KZ): New.
19131         (arm_arch6zk): New declaration.
19132         * config/arm/arm-tables.opt: Regenerate.
19133         * config/arm/arm.c (arm_arch6kz): New.
19134         (arm_option_override): Set arm_arch6kz.
19135         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19136         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19137         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19139 2015-07-27  Marek Polacek  <polacek@redhat.com>
19141         PR c++/66555
19142         PR c/54979
19143         * doc/invoke.texi: Document -Wtautological-compare.
19145 2015-07-27  Richard Biener  <rguenther@suse.de>
19147         * genmatch.c (decision_tree::gen_gimple): Split out large
19148         subtrees into separate functions.
19149         (decision_tree::gen_generic): Likewise.
19151 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
19153         * config/alpha/alpha.c: Use SUBREG_P predicate.
19154         * config/alpha/predicates.md: Ditto.
19156 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19158         * config.host (s390*-*-*): Include driver-native.c only when
19159         building with s390* as host *and* target.
19161 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
19163         PR target/66930
19164         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19165         T bit register modified_between_p check.
19167 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19169         * config/i386/i386.c: Use SUBREG_P predicate.
19170         * config/i386/i386.md: Ditto.
19171         * config/i386/sse.md: Ditto.
19172         * config/i386/predicates.md: Ditto.
19174 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19176         PR target/67004
19177         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19178         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19180 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19182         * Makefile.in: Remove use of TREEBROWSER.
19183         * config.in: Regenerated.
19184         * configure: Regenerated.
19185         * configure.ac: Remove definition of TREEBROWSER.
19186         * tree-browser.c: Removed.
19187         * tree-browser.def: Removed.
19189 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19191         * graphite-scop-detection.c: Include gimple-pretty-print.h.
19192         (stmt_simple_for_scop_p): Print when a stmt is not handled in
19193         Graphite.
19194         (scopdet_basic_block_info): Print when a loop or bb cannot be
19195         represented in Graphite.
19197 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19199         PR target/66648
19200         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19201         execution guard when min_size is less than size_needed.
19203 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19205         * doc/install.texi: Document supported versions of ISL.
19207 2015-07-25  Jeff Law  <law@redhat.com>
19209         Revert:
19210         PR lto/66752
19211         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19212         unable to find X NE 0 in the tables, return X as the simplified
19213         condition.
19214         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19215         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19216         to VISISTED_BBS.  */
19217         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19218         after removing the control flow statement and unnecessary edges.
19220 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
19222         Revert:
19223         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19225         PR rtl-optimization/64164
19226         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19227         * tree-ssa-copyrename.c: Removed.
19228         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19229         -ftree-coalesce-vars.
19230         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19231         * common.opt (ftree-copyrename): Ignore.
19232         (ftree-coalesce-inlined-vars): Likewise.
19233         * doc/invoke.texi: Remove the ignored options above.
19234         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19235         * tree-ssa-coalesce.h: ... here.
19236         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19237         headers required by it.
19238         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19239         across variables when flag_tree_coalesce_vars.  Check register
19240         use and promoted modes to allow coalescing.  Moved to
19241         tree-ssa-coalesce.c.
19242         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19243         with its member functions to tree-ssa-coalesce.c.
19244         (var_map_base_init): Likewise.  Renamed to
19245         compute_samebase_partition_bases.
19246         (partition_view_normal): Drop want_bases parameter.
19247         (partition_view_bitmap): Likewise.
19248         * tree-ssa-live.h: Adjust declarations.
19249         * tree-ssa-coalesce.c: Include explow.h.
19250         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19251         default defs at the entry point.
19252         (dump_part_var_map): New.
19253         (compute_optimized_partition_bases): New, called by...
19254         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19255         of compute_samebase_partition_bases.  Adjust.
19256         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19257         * cfgexpand.c (leader_merge): New.
19258         (get_rtl_for_parm_ssa_default_def): New.
19259         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19260         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19261         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19262         redundant MEM attr setting.
19263         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19264         from...
19265         (expand_one_stack_var): ... this.  New wrapper to check and
19266         skip already expanded SSA partitions.
19267         (record_alignment_for_reg_var): New, factored out of...
19268         (expand_one_var): ... this.
19269         (expand_one_ssa_partition): New.
19270         (adjust_one_expanded_partition_var): New.
19271         (expand_one_register_var): Check and skip already expanded SSA
19272         partitions.
19273         (expand_used_vars): Don't create DECLs for anonymous SSA
19274         names.  Expand all SSA partitions, then adjust all SSA names.
19275         (pass::execute): Replace the loops that set
19276         SA.partition_to_pseudo from partition leaders and cleared
19277         DECL_RTL for multi-location variables, and that which used to
19278         rename vars and set attrs, with one that clears DECL_RTL and
19279         checks that PARMs and RESULTs default_defs match DECL_RTL.
19280         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19281         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19282         * explow.c (promote_ssa_mode): New.
19283         * explow.h (promote_ssa_mode): Declare.
19284         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19285         * function.c: Include cfgexpand.h.
19286         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19287         (use_register_for_parm_decl): Wrapper for the above to
19288         special-case the result_ptr.
19289         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19290         (split_complex_args): Take assign_parm_data_all argument.
19291         Pass it to rtl_for_parm.  Set up rtl and context for split
19292         args.
19293         (assign_parms_augmented_arg_list): Adjust.
19294         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19295         multiple locations.  Recognize split complex args.
19296         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19297         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19298         (assign_parm_setup_block): Prefer SSA-assigned location.
19299         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19300         if stack_parm is NULL.
19301         (assign_parm_setup_stack): Prefer SSA-assigned location.
19302         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19303         rtl before testing for pointer bounds.  Special-case result_ptr.
19304         (expand_function_start): Maybe reset DECL_RTL of result.
19305         Prefer SSA-assigned location for result and static chain.
19306         Factor out DECL_RESULT and SET_DECL_RTL.
19307         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19308         anonymous SSA names.  Use promote_ssa_mode.
19309         (get_temp_reg): Likewise.
19310         (remove_ssa_form): Adjust.
19311         * stor-layout.c (layout_decl): Don't set mem attributes of
19312         non-MEMs.
19313         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19314         and get its reg_usage for reg invalidation.
19315         (compute_bb_dataflow): Pass it insn.
19316         (emit_notes_in_bb): Likewise.
19318 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19320         * config/i386/i386.c (ix86_va_start): Remove
19321         unneeded !TARGET_64BIT check.
19322         (ix86_gimplify_va_arg): Ditto.
19324 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19326         * graphite-sese-to-poly.c (build_poly_scop): Always call
19327         rewrite_commutative_reductions_out_of_ssa.
19329 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19331         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19332         flag_associative_math to FLOAT_TYPE_P.  Honour
19333         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19335 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19337         PR c++/64079
19338         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19339         and "%qD" in warning_at instead of "%q+D" in warning.
19341 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19343         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19344         (ix86_function_abi): Cleanup.
19346 2015-07-24  Michael Darling  <darlingm@gmail.com>
19348         PR other/66259
19349         * acinclude.m4: Reflects renaming of configure.in to configure.ac
19350         * configure: Likewise
19351         * configure.ac: Likewise
19352         * doc/install.texi: Likewise
19353         * doc/tm.texi: Likewise
19354         * doc/tm.texi.in: Likewise
19356 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19358         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19359         manually swapping values.
19360         * cse.c (fold_rtx): Likewise.
19361         * lra-eliminations.c (form_sum): Likewise.
19363 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19365         PR target/64003
19366         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19367         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19368         (*jcc_1, *jcc_2, jump, simple_return_internal)
19369         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19370         Set length_nobnd attribute instead of length attribute.
19371         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19372         (length_nobnd): Remove attribute.
19373         (length): Remove length_nobnd processing.
19375 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
19377         * gimplify.c (omp_default_clause): New function.  Reorganize flow
19378         for clarity. Broken out of ...
19379         (omp_notice_variable): ... here.
19381 2015-07-24  Gary Funck  <gary@intrepid.com>
19383         PR middle-end/66984
19384         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19385         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19387 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19389         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19390         exit-first loop transform.
19392 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
19394         PR 66714
19395         * tree-cfg.c (struct replace_decls_d): New struct.
19396         (replace_block_vars_by_duplicates_1): New function.
19397         (replace_block_vars_by_duplicates): Use it to replace the decls
19398         in the value exprs by duplicates.
19400 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19402         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19403         -shared, -symbolic, -rdynamic.
19405 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19407         PR target/65711
19408         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19409         -dynamic-linker within %{!static %{!shared, and -rdynamic within
19410         %{!static.
19412 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19414         PR ipa/66566
19415         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19416         edge summary is available.
19418 2015-07-24  Richard Biener  <rguenther@suse.de>
19420         * genmatch.c (struct dt_node): Add statistic fields.
19421         (dt_node::analyze): New method.
19422         (decision_tree::gen_gimple): Call analyze on the root node
19423         and print statistics to stderr.
19424         (decision_tree::gen_generic): Likewise.
19426 2015-07-24  Richard Biener  <rguenther@suse.de>
19428         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19429         against the highest or lowest possible integer ...
19430         * match.pd: ... as patterns here.
19432 2015-07-24  Richard Biener  <rguenther@suse.de>
19434         * genmatch.c (struct capture_info): Add same_as field.
19435         (capture_info::capture_info): Initialize same_as.
19436         (capture_info::walk_match): Compute same_as.
19437         (capture_info::walk_result): Compute stuff for the leader.
19438         (capture_info::walk_c_expr): Likewise.
19439         (dt_simplify::gen_1): Only look at leaders when deciding
19440         to force no side-effects or emit side-effects of omitted operands.
19442 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19444         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19445         reg note to the GPR -> FPR save instructions.
19447 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19449         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19450         cheaper.
19451         (s390_expand_insv): Don't generate risbg pattern for constant zero
19452         sources.
19453         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19454         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
19455         splitters.
19457 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19459         * config/s390/s390.c (s390_reorg): Clean up handling of processors
19460         with
19461         -mtune=
19462         (s390_issue_rate): Likewise.
19463         (s390_sched_reorder): Likewise.
19464         (s390_sched_variable_issue): Likewise.
19465         (s390_loop_unroll_adjust): Likewise.
19466         (s390_option_override):  Likewise.
19468 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19470         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19471         processor capabilities with -march=native.
19472         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19473         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
19474         (S390_TARGET_BITS_STRING): Macro to simplify specs.
19476 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19478         * config/s390/s390.c (s390_issue_rate): Handle
19479         PROCESSOR_2094_Z9_EC.
19480         (s390_option_override): Likewise.
19481         (s390_adjust_priority): Likewise.
19483 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19485         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19486         when cross compiling.
19488 2015-07-24  Richard Biener  <rguenther@suse.de>
19490         * fold-const.c (maybe_canonicalize_comparison_1): Move
19491         A code CST canonicalization ...
19492         * match.pd: ... to a pattern here.
19494 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
19496         Revert:
19497         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19498         PR target/63521
19499         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19500         (HONOR_REG_ALLOC_ORDER): Define.
19502 2015-07-24  Richard Biener  <rguenther@suse.de>
19504         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19505         * fold-const.c (fold_comparison): Move parameter does not
19506         alias &local simplification ...
19507         * match.pd: ... as a pattern here.
19509 2015-07-24  Richard Biener  <rguenther@suse.de>
19511         * gimple-fold.c (replace_stmt_with_simplification): Special-case
19512         valueizing call operands.
19513         * gimple-match-head.c (maybe_push_res_to_seq): Take
19514         number of call arguments from ops array.
19515         (do_valueize): New function.
19516         (gimple_simplify): Return true if valueization changed
19517         any operand even if the result didn't simplify further.
19519 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19521         PR middle-end/25530
19522         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19524 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19526         PR middle-end/25529
19527         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19529 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19531         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19532         instruction.
19534 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19536         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19537         clean up.
19539 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
19541         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19542         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
19543         targets here.
19544         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19545         ms_va_list_type_node initialization.
19547 2015-07-23  Jeff Law  <law@redhat.com>
19549         PR lto/66752
19550         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19551         unable to find X NE 0 in the tables, return X as the simplified
19552         condition.
19553         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19554         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19555         to VISISTED_BBS.  */
19556         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19557         after removing the control flow statement and unnecessary edges.
19559 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19561         * tree-pass.h (get_current_pass_name): Removed.
19563 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19565         PR rtl-optimization/64164
19566         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19567         * tree-ssa-copyrename.c: Removed.
19568         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19569         -ftree-coalesce-vars.
19570         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19571         * common.opt (ftree-copyrename): Ignore.
19572         (ftree-coalesce-inlined-vars): Likewise.
19573         * doc/invoke.texi: Remove the ignored options above.
19574         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19575         * tree-ssa-coalesce.h: ... here.
19576         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19577         headers required by it.
19578         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19579         across variables when flag_tree_coalesce_vars.  Check register
19580         use and promoted modes to allow coalescing.  Moved to
19581         tree-ssa-coalesce.c.
19582         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19583         with its member functions to tree-ssa-coalesce.c.
19584         (var_map_base_init): Likewise.  Renamed to
19585         compute_samebase_partition_bases.
19586         (partition_view_normal): Drop want_bases parameter.
19587         (partition_view_bitmap): Likewise.
19588         * tree-ssa-live.h: Adjust declarations.
19589         * tree-ssa-coalesce.c: Include explow.h.
19590         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19591         default defs at the entry point.
19592         (dump_part_var_map): New.
19593         (compute_optimized_partition_bases): New, called by...
19594         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19595         of compute_samebase_partition_bases.  Adjust.
19596         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19597         * cfgexpand.c (leader_merge): New.
19598         (get_rtl_for_parm_ssa_default_def): New.
19599         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19600         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19601         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19602         redundant MEM attr setting.
19603         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19604         from...
19605         (expand_one_stack_var): ... this.  New wrapper to check and
19606         skip already expanded SSA partitions.
19607         (record_alignment_for_reg_var): New, factored out of...
19608         (expand_one_var): ... this.
19609         (expand_one_ssa_partition): New.
19610         (adjust_one_expanded_partition_var): New.
19611         (expand_one_register_var): Check and skip already expanded SSA
19612         partitions.
19613         (expand_used_vars): Don't create DECLs for anonymous SSA
19614         names.  Expand all SSA partitions, then adjust all SSA names.
19615         (pass::execute): Replace the loops that set
19616         SA.partition_to_pseudo from partition leaders and cleared
19617         DECL_RTL for multi-location variables, and that which used to
19618         rename vars and set attrs, with one that clears DECL_RTL and
19619         checks that PARMs and RESULTs default_defs match DECL_RTL.
19620         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19621         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19622         * explow.c (promote_ssa_mode): New.
19623         * explow.h (promote_ssa_mode): Declare.
19624         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19625         * function.c: Include cfgexpand.h.
19626         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19627         (use_register_for_parm_decl): Wrapper for the above to
19628         special-case the result_ptr.
19629         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19630         (split_complex_args): Take assign_parm_data_all argument.
19631         Pass it to rtl_for_parm.  Set up rtl and context for split
19632         args.
19633         (assign_parms_augmented_arg_list): Adjust.
19634         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19635         multiple locations.  Recognize split complex args.
19636         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19637         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19638         (assign_parm_setup_block): Prefer SSA-assigned location.
19639         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19640         if stack_parm is NULL.
19641         (assign_parm_setup_stack): Prefer SSA-assigned location.
19642         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19643         rtl before testing for pointer bounds.  Special-case result_ptr.
19644         (expand_function_start): Maybe reset DECL_RTL of result.
19645         Prefer SSA-assigned location for result and static chain.
19646         Factor out DECL_RESULT and SET_DECL_RTL.
19647         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19648         anonymous SSA names.  Use promote_ssa_mode.
19649         (get_temp_reg): Likewise.
19650         (remove_ssa_form): Adjust.
19651         * stor-layout.c (layout_decl): Don't set mem attributes of
19652         non-MEMs.
19653         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19654         and get its reg_usage for reg invalidation.
19655         (compute_bb_dataflow): Pass it insn.
19656         (emit_notes_in_bb): Likewise.
19658 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
19660         PR target/66217
19661         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19662         prototype.
19663         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19664         (rs6000_emit_2insn_and): Handle dot forms.
19665         * config/rs6000/rs6000.md (and<mode>3): Adjust.
19666         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
19667         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19669 2015-07-23  Richard Biener  <rguenther@suse.de>
19671         * generic-match-head.c: Include cgraph.h.
19672         * gimple-match-head.c: Likewise.
19673         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19674         SSA names.
19675         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19676         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
19677         pattern.
19679 2015-07-23  Richard Biener  <rguenther@suse.de>
19681         * gimple-fold.c (fold_gimple_cond): Do not require folding
19682         results to pass valid_gimple_rhs_p.
19683         * tree-cfg.h (fold_cond_expr_cond): Remove.
19684         * tree-cfg.c (fold_cond_expr_cond): Likewise.
19685         (make_edges): Do not call it.
19686         * tree-inline.c (tree_function_versioning): Likewise.
19688 2015-07-23  Tom de Vries  <tom@codesourcery.com>
19690         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19691         vect_force_simple_reduction.
19692         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19693         (vect_is_simple_reduction_1): Add and handle
19694         need_wrapping_integral_overflow parameter.
19695         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19696         need_wrapping_integral_overflow parameter.
19697         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19698         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19699         decl.
19701 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
19703         PR tree-optimization/66926,66951
19704         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19705         INNER_LOOP and fix up condition for renaming virtual operands.
19707 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19709         * combine.c (try_combine): Use std::swap instead of manually
19710         swapping.
19712 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
19714         * config/mips/i6400.md: New file.
19715         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19716         (mips64r6): Likewise.
19717         (i6400): Define.
19718         * config/mips/mips-tables.opt: Regenerate.
19719         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19720         (mips_issue_rate): Add support for i6400.
19721         (mips_multipass_dfa_lookahead): Likewise.
19722         * config/mips/mips.h (TUNE_I6400): Define.
19723         * config/mips/mips.md: Include i6400.md.
19724         (processor): Add i6400.
19725         * doc/invoke.texi (-march=@var{arch}): Add i6400.
19727 2015-07-23  Richard Biener  <rguenther@suse.de>
19729         PR middle-end/66916
19730         * match.pd: Guard widen and sign-change comparison simplification
19731         with single_use.
19733 2015-07-23  Richard Biener  <rguenther@suse.de>
19735         PR tree-optimization/66945
19736         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19737         ::before_dom_children): Force the propagators idea of
19738         non-executable edges to materialize, not what the folder
19739         chooses.
19741 2015-07-23  Richard Biener  <rguenther@suse.de>
19743         * gimple.h (gimple_cond_make_false): Use 0 != 0.
19744         (gimple_cond_make_true): Use 1 != 0.
19746 2015-07-22  DJ Delorie  <dj@redhat.com>
19748         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19749         slashes.
19751         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19752         (ashrhi3): Likewise.
19753         (lshrhi3): Likewise.
19754         (movhi): Take advantage of zero-extend to load small constants.
19755         (movpsi): Likewise.
19756         (and<mode>3): Likewise.
19757         (zero_extendqihi2): Likewise.
19758         (zero_extendqisi2): New.
19759         * config/msp430/constraints.md (N,O): New.
19760         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19762 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
19764         PR target/66954
19765         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19766         to enum feature_priority and feature_list.
19767         (fold_builtin_cpu): Add F_AES to enum processor_features
19768         and isa_names_table.
19770 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19772         PR driver/66737
19773         * config/i386/linux-common.h (MPX_SPEC): Use linker option
19774         for 64bit target only.
19776 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
19778         * config/nvptx/nvptx.c: Expand some comments.
19780 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
19782         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19783         (cortex_a53_advsimd): ...This.
19785 2015-07-22  Richard Biener  <rguenther@suse.de>
19787         * genmatch.c (expr::gen_transform): Clarify error message
19788         and display location.
19790 2015-07-22  Richard Biener  <rguenther@suse.de>
19792         * genmatch.c (struct operand): Add location member.
19793         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19794         constructors.
19795         (struct simplify): Remove match_location and result_location
19796         members.
19797         (elsehwere): Adjust.
19799 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
19801         * config/mips/m5100.md: New file.
19802         * config/mips/mips-cpus.def (m5100, m5101): Define.
19803         * config/mips/mips-tables.opt: Regenerate.
19804         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19805         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19806         -march=m5101 to -mips32r5.
19807         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19808         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19809         !-msoft-float.
19810         * config/mips/mips.md: Include m5100.md.
19811         (processor): Add m5100.
19812         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19814 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
19816         * config/mips/mips-cpus.def (interaptiv): Define.
19817         * config/mips/mips-tables.opt: Regenerate.
19818         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19819         -mips32r2.
19820         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19821         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19823 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19825         PR target/63521
19826         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19827         (HONOR_REG_ALLOC_ORDER): Define.
19829 2015-07-22  Richard Biener  <rguenther@suse.de>
19831         PR tree-optimization/66952
19832         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19833         blocks we end up executing unconditionally reset all SSA
19834         info such as range and alignment.
19835         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19836         * tree-ssanames.c (reset_flow_sensitive_info): New function.
19838 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19840         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19841         typo in attribute.
19843 2015-07-22  Richard Biener  <rguenther@suse.de>
19845         * genmatch.c (parser::parse_result): Properly handle
19846         match with result operands and conditions.
19848 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19850         PR target/63870
19851         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19852         Add qualifier_struct_load_store_lane_index.
19853         (aarch64_types_loadstruct_lane_qualifiers): Use
19854         qualifier_struct_load_store_lane_index for lane index argument for
19855         last argument.
19856         (aarch64_types_storestruct_lane_qualifiers): Ditto.
19857         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19858         (aarch64_simd_expand_args): Add new argument describing mode of
19859         builtin. Check lane bounds for arguments with
19860         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19861         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19862         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19863         (aarch64_simd_expand_builtin): Handle arguments with
19864         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19865         aarch64_simd_expand_args.
19866         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19867         vst[234]_lane with BUILTIN_VALLDIF.
19868         * config/aarch64/aarch64-simd.md:
19869         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19870         endianness reversal on lane index.
19871         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19872         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19873         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19874         (vec_store_lanesci_lane<mode>): Ditto.
19875         (vec_store_lanesxi_lane<mode>): Ditto.
19876         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19877         reversal of lane index.
19878         (aarch64_ld3_lane<mode>): Ditto.
19879         (aarch64_ld4_lane<mode>): Ditto.
19880         (aarch64_st2_lane<mode>): Ditto.
19881         (aarch64_st3_lane<mode>): Ditto.
19882         (aarch64_st4_lane<mode>): Ditto.
19883         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19884         to qmode. Add new mode parameter. Update uses.
19885         (__LD3_LANE_FUNC): Ditto.
19886         (__LD4_LANE_FUNC): Ditto.
19887         (__ST2_LANE_FUNC): Ditto.
19888         (__ST3_LANE_FUNC): Ditto.
19889         (__ST4_LANE_FUNC): Ditto.
19891 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
19893         * doc/invoke.texi (Language Independent Options): Rename node to
19894         Diagnostic Message Formatting Options.
19896 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
19898         PR ipa/66424.
19899         * lra-remat.c (operand_to_remat): Prevent using insns with input
19900         subregs processed separately by IRA.
19902 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
19904         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19905         straight loops.
19906         (single_imm_use): Check for iterator node.
19907         (num_imm_uses): Likewise.
19908         * tree-ssa-operands.c (has_zero_uses_1): Delete.
19909         (single_imm_use_1): Check for iterator node.
19911 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
19912             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19914         * configure.ac: Add check for new options in isl-0.15.
19915         * config.in, configure: Rebuilt.
19916         * graphite-blocking.c: Include <isl/constraint.h>
19917         * graphite-interchange.c,  graphite-poly.c: Likewise.
19918         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19919         * graphite.c: Likewise.
19920         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19921         <isl/union_set.h>.
19922         * graphite-dependences.c: Include <isl/constraint.h>.
19923         (max_number_of_out_dimensions): Returns isl_stat.
19924         (extend_schedule_1): Likewise
19925         (extend_schedule): Corresponding changes.
19926         * graphite-optimize-isl.c: Include <isl/constraint.h> and
19927         <isl/union_set.h>.
19928         (getSingleMap): Change return type of isl_stat.
19929         (optimize_isl): Conditionally use
19930         isl_options_set_schedule_serialize_sccs.
19931         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19932         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19934 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
19936         PR target/66956
19937         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19938         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19940 2015-07-21  Richard Biener  <rguenther@suse.de>
19942         PR tree-optimization/66948
19943         * genmatch.c (capture_info::walk_match): Also recurse to
19944         captures.  Properly compute expr state from captures of
19945         captures.
19946         * match.pd: Add single-use guards to
19947         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19949 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
19951         * config/nvptx/mkoffload.c (process): Add static destructor call.
19953 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19955         PR middle-end/66915
19956         * match.pd (A - B -> A + (-B)): Don't allow folding
19957         when type if a fixed-point type.
19959 2015-07-20  DJ Delorie  <dj@redhat.com>
19961         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19962         (iorqi3_real): Likewise for set1.
19964 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
19966         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19967         for !TARGET_64BIT.
19969 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
19971         * graphite-isl-ast-to-gimple.c:
19972         Refactor so that each function can access 'region'. This will help
19973         maintain a parameter rename_map within a region.
19975 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19977         * config/rs6000/rs6000.md (*lt0_disi): New.
19979 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19981         PR target/66217
19982         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
19983         "available letters" comment.
19984         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19985         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19986         and_2rld_operand):  Delete.
19987         (and_operand): Adjust.
19988         (rotate_mask_operator): New.
19989         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19990         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19991         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19992         extract_ME): Delete.
19993         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19994         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19995         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19996         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19997         rs6000_emit_2insn_and): New.
19998         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19999         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20000         includes_rldic_lshift_p, includes_rldicr_lshift_p,
20001         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20002         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20003         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20004         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20005         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20006         rs6000_emit_2insn_and): New.
20007         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20008         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20009         handling.
20010         <NOT>: Don't fall through to next case.
20011         <AND>: Handle the various rotate-and-mask cases directly.
20012         <IOR>: Always cost as one insn.
20013         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20014         (and<mode>3): Adjust expander for the new patterns.
20015         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20016         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20017         (*and<mode>3_imm_dot_shifted): New.
20018         (*and<mode>3_mask): Delete, rewrite as ...
20019         (and<mode>3_mask): ... New.
20020         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20021         (andsi3_internal0_nomc): Delete.
20022         (*andsi3_internal6): Delete.
20023         (*and<mode>3_2insn): New.
20024         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20025         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20026         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20027         *insvdi_internal3): Delete.
20028         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20029         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20030         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20031         *ior<mode>_mask): New.
20032         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20033         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20034         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20035         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20036         Delete.
20037         (ashr<mode>3): Delete expander.
20038         (*ashr<mode>3): Rename to ...
20039         (ashr<mode>3): ... This.
20040         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20041         (*rotldi3_internal4, *rotldi3_internal5 and split,
20042         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20043         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20044         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20045         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20046         (splitter for loading a mask): Adjust.
20047         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20049 2015-07-20  Marek Polacek  <polacek@redhat.com>
20051         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20052         output_add_clobbers, output_added_clobbers_hard_reg_p,
20053         gen_rtx_scratch): Remove declarations.
20055 2015-07-20  Marek Polacek  <polacek@redhat.com>
20057         PR c++/55095
20058         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20060 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20062         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20063         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20065 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20067         * combine.c (combine_simplify_rtx): Move simplification step
20068         before various transformations/substitutions.
20070 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
20072         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20073         (struct int_traits): Likewise.
20075 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20077         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20078         function to vmsdbgout_function_decl.
20080 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20082         PR target/66922
20083         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20084         from misaligned positions.
20085         (ix86_expand_pinsr): Reject insertions to misaligned positions.
20087 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
20089         PR middle-end/46851
20090         PR middle-end/60340
20091         * Makefile.in: Removed omega.o.
20092         * common.opt: Document flag fcheck-data-deps as deprecated.
20093         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20094         its associated params: omega-max-vars, omega-max-geqs,
20095         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20096         omega-max-keys, omega-eliminate-redundant-constraints.
20097         * doc/loop.texi: Remove all the section on Omega.
20098         * graphite-blocking.c: Include missing params.h: it used to be
20099         included through tree-data-ref.h and omega.h.
20100         * graphite-isl-ast-to-gimple.c: Same.
20101         * graphite-optimize-isl.c: Same.
20102         * graphite-sese-to-poly.c: Same.
20103         * graphite.c: Same.
20104         * omega.c: Remove.
20105         * omega.h: Remove.
20106         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20107         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20108         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20109         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20110         * passes.def: Remove pass_check_data_deps.
20111         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20112         (dump_conflict_function): Same.
20113         (dump_subscript): Same.
20114         (print_direction_vector): Same.
20115         (print_dir_vectors): Same.
20116         (print_lambda_vector): Same.
20117         (print_dist_vectors): Same.
20118         (dump_data_dependence_relation): Same.
20119         (dump_data_dependence_relations): Same.
20120         (dump_dist_dir_vectors): Same.
20121         (dump_ddrs): Same.
20122         (init_omega_eq_with_af): Removed.
20123         (omega_extract_distance_vectors): Removed.
20124         (omega_setup_subscript): Removed.
20125         (init_omega_for_ddr_1): Removed.
20126         (init_omega_for_ddr): Removed.
20127         (ddr_consistent_p): Removed.
20128         (compute_affine_dependence): Do not use omega to check data
20129         dependences.
20130         (compute_data_dependences_for_bb): Removed.
20131         (analyze_all_data_dependences): Removed.
20132         (tree_check_data_deps): Removed.
20133         * tree-data-ref.h: Do not include omega.h.
20134         (compute_data_dependences_for_bb): Removed.
20135         (tree_check_data_deps): Removed.
20136         * tree-ssa-loop.c (pass_check_data_deps): Removed.
20137         (make_pass_check_data_deps): Removed.
20138         * tree-ssa-phiopt.c: Include params.h.
20139         * tree-vect-data-refs.c: Same.
20140         * tree-vect-slp.c: Same.
20142 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20144         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20145         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
20146         (mem->fpreg splitters): Ditto.
20147         (general_operand->nonimmediate_operand splitter): Use explicit modes.
20148         Disable DFmode for TARGET_64BIT.
20150 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
20152         PR target/66906
20153         * config/i386/i386.c (ix86_expand_prologue): Replicate static
20154         chain on the stack.
20156 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20158         * config/nvptx/mkoffload.c (process): Constify host data.
20159         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20160         Constify host data.
20161         (generate_host_descr_file): Likewise.
20163 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
20164             Sebastian Pop  <s.pop@samsung.com>
20166         PR middle-end/61929
20167         * graphite-dependences.c (add_pdr_constraints): Renamed
20168         pdr->extent to pdr->subscript_sizes.
20169         * graphite-interchange.c (build_linearized_memory_access): Add
20170         back all gcc_assert's that the "isl_int to isl_val conversion"
20171         patch has removed.  Refactored.
20172         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20173         * graphite-poly.c (new_poly_dr): Same.
20174         (free_poly_dr): Same.
20175         * graphite-poly.h (struct poly_dr): Same.
20176         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20177         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20178         * graphite-scop-detection.h: Fix space.
20179         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20180         back all gcc_assert's removed by a previous patch.
20181         (wrap): Remove the_isl_ctx global variable that the same patch has
20182         added.
20183         (build_loop_iteration_domains): Same.
20184         (add_param_constraints): Same.
20185         (pdr_add_data_dimensions): Same.  Refactored.
20186         (build_poly_dr): Renamed extent to subscript_sizes.
20188 2015-07-17  Marek Polacek  <polacek@redhat.com>
20190         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20191         * match.pd: ... here.
20193 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20195         * config/nvptx/mkoffload.c (process): Constify target data.
20196         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20197         Constify target data.
20198         (generate_target_offloadend_file): Likewise.
20200 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
20202         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20203         to allow renaming of PHI arguments on edges incoming from outer
20204         loop header, add corresponding check before start PHI iterator.
20205         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20206         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20207         with true force_vectorize.  Set-up dominator for outer loop too.
20208         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20209         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20210         was marked with force_vectorize and has restricted cfg.
20211         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20212         inner loop.
20213         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20214         do peeling for outer loops.
20216 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
20217             Matthias Klose  <doko@ubuntu.com>
20219         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20220         build-sysroot, sysroot from the `Miscenalleous configure options' to
20221         the `Directories' section and strip trailing `/' from with_sysroot.
20222         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20223         * configure: Regenerated.
20225 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20227         PR target/66824
20228         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20229         (TARGET_HARD_DF_REGS): Ditto.
20230         (TARGET_HARD_XF_REGS): Ditto.
20231         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20232         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20233         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20234         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20235         (*movsf_internal): Add alternatives 16 and 17. Enable
20236         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20238 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20240         PR rtl-optimization/66891
20241         * calls.c (expand_call): Wrap precompute_register_parameters with
20242         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20244 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
20246         * config/nvptx/mkoffload.c (process): Constify mapping variables.
20247         Define target data struct and initialize it.
20249 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
20251         PR rtl-optimization/66626
20252         * ira.h (emit-rtl.h): Include.
20253         (non_spilled_static_chain_regno_p): New.
20254         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20255         unless it is non spilled static chain pseudo.
20256         (assign_hard_rego): Spill memory profitable allocno unless it is
20257         non spilled static chain pseudo.
20258         (allocno_spill_priority_compare): Put non spilled static chain
20259         pseudo at the end of sorted array.
20260         (improve_allocation): Do nothing if we have static chain and
20261         non-local goto.
20262         (allocno__priority_compare_func): Put non spilled static chain
20263         pseudo at the beginning of sorted array.
20264         (move_spill_restore): Ignore non spilled static chain pseudo.
20265         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20266         to non spilled static chain pseudo.
20267         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20268         pseudo at the beginning of sorted array.
20269         (spill_for): Spill non spilled static chain pseudo last.
20270         * lra-constraints.c (lra_constraints): Remove static chain pseudo
20271         check for equivalence.
20273 2015-07-16  Martin Liska  <mliska@suse.cz>
20275         PR ipa/66896.
20276         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20277         dst_ctx if it does not exist.
20279 2015-07-16  Martin Liska  <mliska@suse.cz>
20281         * hash-set.h (remove): New function.
20282         (iterator): New iteration class for hash_set.
20284 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20286         * genattrtab.c (make_canonical): Add a file_location parameter.
20287         Use fatal_at rather than fatal.
20288         (get_attr_value): Likewise.  Update call to make_canonical.
20289         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20290         (make_internal_attr): Update calls accordingly.
20292 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20294         * read-md.h (message_with_line, error_with_line): Delete.
20295         * read-md.c (message_with_line, error_with_line): Delete.
20296         * gensupport.h: Include read-md.h.
20297         (md_rtx_info): New structure.
20298         (read_md_rtx): Use it.  Return a bool success value.
20299         * gensupport.c (read_md_rtx): Likewise.
20300         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20301         (main): Update after interface changes.
20302         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20303         (main): Update after interface changes.
20304         * genattrtab.c (insn_code_number): Delete.
20305         (optimize_attrs): Add a max_insn_code parameter and use it instead
20306         of insn_code_number.
20307         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20308         Use *_at rather than *_with_line functions.
20309         (gen_insn): Likewise.
20310         (gen_delay): Likewise.
20311         (gen_insn_reserv): Likewise.
20312         (gen_bypass): Take an md_rtx_info rather than an rtx.
20313         (main): Update after interface changes.  Use a local max_insn_code
20314         variable instead of insn_code_number.
20315         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20316         an rtx.  Use fatal_at rather than fatal.
20317         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20318         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20319         (gen_absence_set, gen_final_absence_set, gen_automaton)
20320         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20321         (main): Update after interface changes.
20322         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20323         and code number.
20324         (main): Update after interface changes.
20325         * genconditions.c (main): Use new read_md_rtx interface.
20326         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20327         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20328         (main): Update after interface changes.
20329         * genemit.c (insn_code_number, insn_index_number): Delete.
20330         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20331         Use fatal_at rather than fatal.
20332         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
20333         rather than fatal.
20334         (gen_split): Likewise.
20335         (main): Update after interface changes.
20336         * genextract.c (line_no): Delete.
20337         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20338         Update call to walk_rtx.
20339         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
20340         rather than message_with_line.
20341         (walk_rtx): Add an md_rtx_info argument.  Update call to
20342         VEC_safe_set_locstr.
20343         (main): Update after interface changes.
20344         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20345         and lineno.  Use error_at rather than separate message_with_line
20346         calls and have_error assignments.
20347         (main): Update after interface changes.
20348         * genmddump.c (main): Use new read_md_rtx interface.
20349         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20350         (main): Update after interface changes.
20351         * genoutput.c (next_code_number): Delete.
20352         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20353         (gen_peephole, gen_expand, gen_split): Likewise.
20354         (note_constraint): Likewise.  Use *_at rather than *_with_line
20355         functions.
20356         (main): Update after interface changes.
20357         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20358         rtx and lineno.
20359         (main): Update after interface changes.
20360         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20361         than an rtx and lineno.
20362         (process_define_constraint): Likewise.
20363         (process_define_register_constraint): Likewise.
20364         (main): Update after interface changes.
20365         * genrecog.c (next_insn_code, pattern_lineno): Delete.
20366         (validate_pattern): Replace top-level rtx with an md_rtx_info.
20367         Use *_at rather than *_with_line functions.
20368         (match_pattern_2): Likewise.
20369         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20370         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20371         Use *_at rather than *_with_line functions.
20372         * gentarget-def.c (add_insn): New function.
20373         (main): Use it.  Use new read_md_rtx interface.
20375 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20377         * gensupport.h (compute_test_codes): Take a file_location rather
20378         than a line number.
20379         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
20380         rather than *_with_line functions.
20381         (process_define_predicate): Update call to compute_test_codes.
20382         * genpreds.c (validate_exp): Take a file_location rather than a
20383         line number.  Use *_at functions rather than *_with_line functions.
20384         (process_define_predicate): Update call to validate_exp.
20385         (constraint_data): Replace lineno field with a file_location.
20386         (add_constraint): Take a file_location rather than a line number.
20387         Use *_at functions rather than *_with_line functions.  Fix error
20388         message for address constraints.  Update after changes to
20389         validate_exp, constraint_data and compute_test_codes.
20390         (process_define_constraint): Update accordingly.
20391         (process_define_register_constraint): Likewise.
20393 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20395         * genoutput.c (data): Use a file_location to record the source
20396         position.
20397         (nothing): Delete.
20398         (idata, idata_end): Remove initialization.
20399         (constraint_data): Replace lineno with a file_location.
20400         (output_insn_data): Update after changes to data.
20401         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20402         (scan_operands): Likewise, using *_at rather than *_with_line
20403         functions.
20404         (process_template): Likewise.
20405         (validate_insn_alternatives): Likewise.
20406         (validate_insn_operands): Likewise.
20407         (validate_optab_operands): Likewise.
20408         (init_insn_for_nothing): Initialize idata and idata_end.
20409         (note_constraint): Update after changes to constraint_data,
20410         using at rather than with_line functions.
20411         (mdep_constraint_len): Take a file_location rather than a
20412         line number.  Use at rather than with_line functions.
20414 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20416         * read-md.h (fatal_at): Declare.
20417         * read-md.c (fatal_at): New function.
20418         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20419         to record the source position.
20420         (check_attr_test): Take a file_location instead of a line number.
20421         Use fatal_at instead of fatal.
20422         (check_attr_value): Update after above changes, using "at"
20423         rather than "with_line" reporting functions.
20424         (convert_set_attr_alternative): Likewise.
20425         (gen_attr): Likewise.
20426         (check_defs): Likewise.  Don't assign to read_md_filename.
20427         (gen_insn): Update initialization after above changes.
20428         (gen_delay): Likewise.
20429         (write_insn_cases): Print the filename for a define_peephole.
20430         (gen_insn_reserv): Take a line number as argument and update
20431         the call to check_attr_test.
20432         (main): Pass a line number to gen_insn_reserv.
20434 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20436         * read-md.h (file_location): New structure.
20437         (directive_handler_t): Take a file_location rather than a line number.
20438         (message_at, error_at): Declare.
20439         (read_skip_construct): Delete.
20440         * read-md.c (message_with_line_1): Replace with...
20441         (message_at_1): ...this new function.
20442         (message_at, error_at): New functions.
20443         (message_with_line, error_with_line): Update to use message_at_1.
20444         (handle_enum): Take a file_location rather than a line number
20445         and use error_at for error reporting.
20446         (handle_include): Likewise.
20447         (read_skip_construct): Likewise.  Make static.
20448         (handle_file): Update after above changes.  Pass a file_location
20449         rather than a line number to handle_directive.
20450         * gensupport.c (queue_elem): Replace separate filename and lineno
20451         with a file_location.
20452         (queue_pattern): Replace filename and lineno arguments with a
20453         file_location.  Update after change to queue_elem.
20454         (process_define_predicate): Replace lineno argument with a
20455         file_location and use error_at for error reporting.  Update
20456         after above changes.
20457         (process_rtx): Likewise.
20458         (subst_pattern_match): Likewise.
20459         (get_alternatives_number): Likewise.
20460         (alter_predicate_for_insn): Likewise.
20461         (rtx_handle_directive): Likewise.
20462         (is_predicable): Update after above changes, using error_at rather
20463         than error_with_line.
20464         (has_subst_attribute): Likewise.
20465         (identify_predicable_attribute): Likewise.
20466         (alter_attrs_for_subst_insn): Likewise.
20467         (process_one_cond_exec): Likewise.
20468         (process_substs_on_one_elem): Likewise.
20469         (process_define_subst): Likewise.
20470         (check_define_attr_duplicates): Likewise.
20471         (read_md_rtx): Update after change to queue_elem.
20473 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20475         * genoutput.c (next_index_number): Delete.
20476         (data): Remove index_number.
20477         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20478         (main): Remove manipulation of next_index_number.
20480 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20482         * genattrtab.c (check_attr_value): Remove handling of null attrs.
20483         (make_canonical): Likewise.
20485 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
20487         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20488         instead of adjust_address_nv.
20489         (restore_stack_nonlocal): Likewise.
20490         (nonlocal_goto): Likewise.
20492 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20494         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20495         not have a corresponding loop header phi.
20497 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20499         * tree-parloops.c (create_loads_for_reductions): Handle case that
20500         reduction is unused.
20502 2015-07-16  Richard Biener  <rguenther@suse.de>
20504         PR tree-optimization/66894
20505         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20506         about deriving NE_EXPR from truncated values.
20508 2015-07-16  Martin Liska  <mliska@suse.cz>
20510         * alloc-pool.h
20511         (object_allocator): Add new class.
20512         (pool_allocator::initialize): Use the underlying class.
20513         (pool_allocator::allocate): Likewise.
20514         (pool_allocator::remove): Likewise.
20515         (operator new): A new generic allocator.
20516         * asan.c (struct asan_mem_ref): Remove unused members.
20517         (asan_mem_ref_new): Replace new operator with
20518         object_allocator::allocate.
20519         (free_mem_ref_resources): Change deallocation.
20520         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20521         with object_allocator.
20522         * config/sh/sh.c (add_constant): Replace new operator with
20523         object_allocator::allocate.
20524         (sh_reorg): Change call to a release method.
20525         * cselib.c (struct elt_list): Remove unused members.
20526         (new_elt_list): Replace new operator with
20527         object_allocator::allocate.
20528         (new_elt_loc_list): Likewise.
20529         (new_cselib_val): Likewise.
20530         (unchain_one_elt_list): Change delete operator with remove method.
20531         (unchain_one_elt_loc_list): Likewise.
20532         (unchain_one_value): Likewise.
20533         (cselib_finish): Release newly added static allocators.
20534         * cselib.h (struct cselib_val): Remove unused members.
20535         (struct elt_loc_list): Likewise.
20536         * df-problems.c (df_chain_alloc): Replace pool_allocator with
20537         object_allocator.
20538         * df-scan.c (struct df_scan_problem_data): Likewise.
20539         (df_scan_alloc): Likewise.
20540         * df.h (struct dataflow): Likewise.
20541         * dse.c (struct read_info_type): Likewise.
20542         (struct insn_info_type): Likewise.
20543         (struct dse_bb_info_type): Likewise.
20544         (struct group_info): Likewise.
20545         (struct deferred_change): Likewise.
20546         (get_group_info): Likewise.
20547         (delete_dead_store_insn): Likewise.
20548         (free_read_records): Likewise.
20549         (replace_read): Likewise.
20550         (check_mem_read_rtx): Likewise.
20551         (scan_insn): Likewise.
20552         (dse_step1): Likewise.
20553         (dse_step7): Likewise.
20554         * et-forest.c (struct et_occ): Remove unused members.
20555         (et_new_occ): Use allocate instead of new operator.
20556         (et_new_tree): Likewise.
20557         (et_free_tree): Call release method explicitly.
20558         (et_free_tree_force): Likewise.
20559         (et_free_pools): Likewise.
20560         (et_split): Use remove instead of delete operator.
20561         * et-forest.h (struct et_node): Remove unused members.
20562         * ipa-cp.c: Change pool_allocator to object_allocator.
20563         * ipa-inline-analysis.c: Likewise.
20564         * ipa-profile.c: Likewise.
20565         * ipa-prop.c: Likewise.
20566         * ipa-prop.h: Likewise.
20567         * ira-build.c (initiate_cost_vectors): Cast return value.
20568         (ira_allocate_cost_vector): Likewise.
20569         * ira-color.c (struct update_cost_record): Remove unused members.
20570         * lra-int.h (struct lra_live_range): Likewise.
20571         (struct lra_copy): Likewise.
20572         (struct lra_insn_reg): Likewise.
20573         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20574         * lra.c (new_insn_reg): Replace new operator with allocate method.
20575         (free_insn_regs): Same for operator delete.
20576         (finish_insn_regs): Release new static allocator.
20577         (finish_insn_recog_data): Likewise.
20578         (lra_free_copies): Replace delete operator with remove method.
20579         (lra_create_copy): Replace operator new with allocate method.
20580         (invalidate_insn_data_regno_info): Same for remove method.
20581         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20582         (free_debug_insn_changes): Replace delete operator with remove method.
20583         (replace_oldest_value_reg): Replace operator new with allocate method.
20584         (pass_cprop_hardreg::execute): Release new static variable.
20585         * sched-deps.c (sched_deps_init): Change pool_allocator to
20586         object_allocator.
20587         * sel-sched-ir.c: Likewise.
20588         * sel-sched-ir.h: Likewise.
20589         * stmt.c (expand_case): Likewise.
20590         (expand_sjlj_dispatch_table): Likewise.
20591         * tree-sra.c (struct access): Remove unused members.
20592         (struct assign_link): Likewise.
20593         (sra_deinitialize): Release newly added static pools.
20594         (create_access_1):Replace operator new with allocate method.
20595         (build_accesses_from_assign): Likewise.
20596         (create_artificial_child_access): Likewise.
20597         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20598         pool_allocator to object_allocator.
20599         * tree-ssa-pre.c: Likewise.
20600         * tree-ssa-reassoc.c: Likewise.
20601         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20602         * tree-ssa-strlen.c: Likewise.
20603         * tree-ssa-structalias.c: Likewise.
20604         * var-tracking.c (onepart_pool_allocate): New function.
20605         (unshare_variable): Use the newly added function.
20606         (variable_merge_over_cur): Likewise.
20607         (variable_from_dropped): Likewise.
20608         (variable_was_changed): Likewise.
20609         (set_slot_part): Likewise.
20610         (emit_notes_for_differences_1): Likewise.
20611         (vt_finalize): Release newly added static pools.
20613 2015-07-16  Martin Jambor  <mjambor@suse.cz>
20615         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
20616         all uses.  Fix two typos in its general comment.
20617         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
20619 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
20621         * config/i386/linux-common.h (LINK_MPX): New.
20622         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20623         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20624         indicating '-z bndplt' support by linker.
20625         * configure: Regenerate.
20626         * config.in: Regenerate.
20628 2015-07-16  Richard Biener  <rguenther@suse.de>
20630         * fold-const.c (fold_widened_comparison): Remove.
20631         (fold_sign_changed_comparison): Likewise.
20632         (fold_comparison): Move widened and sign-changed comparison
20633         simplification ...
20634         * match.pd: ... to patterns here.
20635         * generic-match-head.c: Include target.h.
20636         * gimple-match-head.c: Likewise.
20638 2015-07-16  Richard Biener  <rguenther@suse.de>
20640         * tree-ssa-dom.c (dom_valueize): New function.
20641         (record_temporary_equivalences): Also record equivalences
20642         for dominating stmts that have uses of equivalences we are
20643         about to record.
20645 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
20647         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20648         add_autoinc_candidates.
20649         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20650         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20651         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20652         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20653         Call new function.
20654         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20655         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20656         Remove parameter struct iv*.  Call add_autoinc_candidates here.
20657         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20658         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20659         Call new function.
20660         (find_iv_candidates): Call new functions.
20662 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
20664         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20665         uninitialized-variable warning.
20667 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20669         PR target/65249
20670         * config/sh/sh.md (movdi): Split simple reg move to two movsi
20671         when the destination is R0.
20673 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
20675         PR target/66866
20676         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20677         * config/i386/i386.c (ix86_expand_pextr): New function.
20678         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
20679         for non-lowpart subregs.
20680         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20681         (insv<mode>): Use SWI248 mode iterator.
20682         (insv<mode>_1): Ditto.
20684 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20685             Sebastian Pop  <s.pop@samsung.com>
20687         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20688         iterator to use_stmt.
20690 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20691             Sebastian Pop <s.pop@samsung.com>
20693         * graphite-scop-detection.c (build_scops_1): Discard scops for
20694         which entry==exit.
20696 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20697             Sebastian Pop <s.pop@samsung.com>
20699         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20700         case of a return statement in scop.
20702 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20703             Sebastian Pop <s.pop@samsung.com>
20705         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20706         INTEGER_TYPE parameters.
20707         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20708         VECTOR_CST in scan_tree_for_params.
20709         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20711 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20713         * gimple-pretty-print.h: Don't include pretty-print.h.
20714         * tree-streamer.h: Don't include lto-streamer.h.
20715         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20716         * gimple-streamer-in.c: Remove redundant includes.
20717         * gimple-streamer-out.c: Likewise.
20718         * ipa-devirt.c: Likewise.
20719         * ipa-icf.c: Likewise.
20720         * ipa-inline-analysis.c: Likewise.
20721         * ipa-polymorphic-call.c: Likewise.
20722         * ipa-profile.c: Likewise.
20723         * ipa-prop.c: Likewise.
20724         * ipa-pure-const.c: Likewise.
20725         * lto-cgraph.c: Likewise.
20726         * lto-streamer-in.c: Likewise.
20727         * lto-streamer-out.c: Likewise.
20728         * lto-streamer.c: Likewise.
20729         * tree-streamer-in.c: Likewise.
20730         * tree-streamer-out.c: Likewise.
20731         * tree-streamer.c: Likewise.
20733 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20735         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20736         include input.h.
20737         * opts.c: Remove multiline #include comment.
20739 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
20741         * config/nvptx/mkoffload.c (process): Add C++ protection to
20742         emitted code.
20744 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20746         PR target/66854
20747         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20748         null before IEEE 128-bit floating point support patch.
20750 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20752         * simplify-rtx.c (simplify_ternary_operation): Add simplification
20753         for (!c) != {0,...,0} ? a : b for vector modes.
20755 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
20756             Martin Jambor  <mjambor@suse.cz>
20758         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20759         struct func_body_info* instead of struct ipa_node_params*, expecting
20760         fbi->info to be filled in.  Replace throughout.  Adjust call to
20761         ipa_load_from_parm_agg.
20762         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20763         instead of struct ipa_node_params*.  Adjust calls to other functions
20764         so that they pass either fbi or fbi->info.
20765         (set_switch_stmt_execution_predicate): Likewise.
20766         (will_be_nonconstant_predicate): Likewise.
20767         (compute_bb_predicates): Likewise.
20768         (estimate_function_body_sizes): Move asserts earlier.  Fill in
20769         struct func_body_info, replace parms_info with fbi.info.  Adjust
20770         calls to functions that now accept struct func_body_info.
20771         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20772         (struct func_body_info): Likewise.
20773         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20774         remove static.  Adjust callers.
20775         (ipa_load_from_parm_agg): Remove.
20776         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20777         (func_body_info): Likewise.
20778         (ipa_load_from_parm_agg): Adjust prototype.
20780 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20782         * gensupport.c (rtx_handle_directive): Adjust.
20783         * read-rtl.c (apply_iterators): Take vector to add rtxs to
20784         instead of expr list rtx.
20785         (add_define_attr_for_define_subst): Likewise.
20786         (add_define_subst_attr): Likewise.
20787         (read_subst_mapping): Likewise.
20788         (read_rtx): Likewise.
20789         * rtl.h (read_rtx): Adjust.
20791 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20793         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20795 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20797         PR target/58066
20798         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20799         (*tls_local_dynamic_base_64_<mode>): Ditto.
20800         (*tls_local_dynamic_base_64_largepic): Ditto.
20801         (tls_global_dynamic_64_<mode>): Update expander pattern.
20802         (tls_local_dynamic_base_64_<mode>): Ditto.
20804 2015-07-15  Richard Biener  <rguenther@suse.de>
20806         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20807         and bool_var == 1 -> bool_var simplifications ...
20808         * match.pd: ... to patterns here.  Factor out negate_expr_p
20809         cases from the A - B -> A + (-B) patterns as negate_expr_p
20810         predicate and add a -(A + B) -> (-B) - A pattern.
20812 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20814         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20816 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
20817             Robert Suchanek  <robert.suchanek@imgtec.com>
20819         * config/mips/mips.c (mips_int_mask): New enum.
20820         (mips_shadow_set): Likewise.
20821         (int_mask): New variable.
20822         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20823         (machine_function): Add int_mask and use_shadow_register_set.
20824         (mips_attribute_table): Add attribute handlers for interrupt and
20825         use_shadow_register_set.
20826         (mips_interrupt_mask): New static function.
20827         (mips_handle_interrupt_attr): Likewise.
20828         (mips_handle_use_shadow_register_set_attr): Likewise.
20829         (mips_use_shadow_register_set): Change return type to enum
20830         mips_shadow_set.  Add argument handling for use_shadow_register_set
20831         attribute.
20832         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20833         compare with mips_shadow_set enum.
20834         (mips_compute_frame_info): Add interrupt mask and
20835         use_shadow_register_set to per-function information structure.
20836         Add a stack slot for EPC unconditionally.
20837         (mips_expand_prologue): Compare use_shadow_register_set value
20838         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
20839         masked interrupt register but in EIC mode use K0 and save Cause in K0.
20840         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
20841         copying the stack pointer from the shadow register set.
20842         * config/mips/mips.h (SR_IM0): New define.
20843         * config/mips/mips.md (mips_rdpgpr): Rename to...
20844         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
20845         * doc/extend.texi (Declaring Attributes of Functions): Document
20846         optional arguments for interrupt and use_shadow_register_set
20847         attributes.
20849 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20851         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20852         interrupt attribute.
20853         (mips_expand_prologue): Disable the floating point unit in an ISR.
20854         * config/mips/mips.h (SR_COP1): New define.
20856 2015-07-15  Richard Biener  <rguenther@suse.de>
20858         * genmatch.c (parser::peek, parser::peek_ident): Add argument
20859         to tell how many tokens to peek ahead (default 1).
20860         (parser::eat_token, parser::eat_ident): Return token consumed.
20861         (parser::parse_result): Parse new switch statement.
20862         * match.pd: Use case statements where appropriate.
20864 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20866         PR rtl-optimization/58066
20867         * calls.c (expand_call): Precompute register parameters before stack
20868         alignment is performed.
20870 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20872         PR rtl-optimization/66838
20873         * postreload.c (reload_cse_move2add): Also process
20874         CALL_INSN_FUNCTION_USAGE when resetting information of
20875         call-clobbered registers.
20877 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20878             Cesar Philippidis  <cesar@codesourcery.com>
20879             Chung-Lin Tang  <cltang@codesourcery.com>
20881         * config/nios2/constraints.md (U, v): New constraints.
20882         * config/nios2/predicates.md (rdprs_dcache_operand): New.
20883         (ldstex_memory_operand): New.
20884         * config/nios2/sync.md: New file.
20885         * config/nios2/nios2.md (unspecv): Add new builtin function
20886         UNSPECV codes.
20887         (rdprs, flushd, flushda, wrpie, eni): New patterns.
20888         (top-level): Include sync.md.
20889         * config/nios2/nios2.c (N2_FTYPES): Add function types for
20890         new builtins.
20891         (N2_BUILTINS): Add arch field setting, add new builtins.
20892         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20893         for arch field.
20894         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20895         Also handle ldex/stex/ldsex/stsex builtins.
20896         (nios2_expand_rdprs_builtin): New function.
20897         (nios2_expand_cache_builtin): New function.
20898         (nios2_expand_wrpie_builtin): New function.
20899         (nios2_expand_eni_builtin): New function.
20900         (nios2_expand_builtin): Add arch field handling and new builtin
20901         cases.
20902         * doc/extend.texi (Altera Nios II Built-in Functions): Document
20903         new builtins.
20904         * doc/md.texi (Machine Constraints): Document U and v constraints.
20906 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20907             Cesar Philippidis  <cesar@codesourcery.com>
20908             Chung-Lin Tang  <cltang@codesourcery.com>
20910         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20911         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20912         callee_save_reg_size and uses_anonymous_args fields.
20913         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20914         (nios2_create_cfa_notes): New function.
20915         (nios2_adjust_stack): New function for adjusting stack.
20916         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20917         Use nios2_adjust_stack.
20918         (nios2_expand_epilogue): Likewise.
20919         (nios2_expand_return): New function.
20920         (nios2_can_use_return_insn): Update for CDX pop.n usage.
20921         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20922         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20923         * config/nios2/nios2.md (return): Use nios2_expand_return.
20925 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20926             Cesar Philippidis  <cesar@codesourcery.com>
20927             Chung-Lin Tang  <cltang@codesourcery.com>
20929         * config/nios2/predicates.md (pop_operation): New.
20930         (ldwm_operation, stwm_operation): New.
20931         (nios2_hard_register_operand): New.
20932         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20933         (ldstwm_operation_p): Declare.
20934         (gen_ldstwm_peep): Declare.
20935         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20936         (base_reg_adjustment_p): New.
20937         (pop_operation_p): New.
20938         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20939         (nios2_ldstwm_regset_p): New.
20940         (ldstwm_operation_p): New.
20941         (gen_ldst): New.
20942         (nios2_ldst_parallel): New.
20943         (struct ldswm_operand): Declare.
20944         (compare_ldstwm_operands): New.
20945         (can_use_cdx_ldstw): New.
20946         (gen_ldstwm_peep): New.
20947         * config/nios2/nios2-ldstwm.sml: New.
20948         * config/nios2/nios2.md: Include ldstwm.md.
20949         * config/nios2/ldstwm.md: Generated.
20951 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20952             Cesar Philippidis  <cesar@codesourcery.com>
20953             Chung-Lin Tang  <cltang@codesourcery.com>
20955         * config/nios2/nios2.h (LABEL_ALIGN): Define.
20956         (REG_ALLOC_ORDER): Define.
20957         (ADJUST_REG_ALLOC_ORDER): Define.
20958         (HONOR_REG_ALLOC_ORDER): Define.
20959         (CDX_REG_P): Define.
20960         (ANDCLEAR_INT): Define.
20961         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20962         (nios2_label_align): Declare.
20963         (nios2_cdx_narrow_form_p): Declare.
20964         (nios2_adjust_reg_alloc_order): Declare.
20965         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20966         operation.
20967         (nios2_large_unspec_reloc_p): New function, split from...
20968         (nios2_legitimate_pic_operand_p): ...here.
20969         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20970         (nios2_print_operand_punct_valid_p): New.
20971         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
20972         (split_mem_address): New.
20973         (split_alu_insn): New.
20974         (cdxreg): New.
20975         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20976         (enum nios2_add_insn_kind): New.
20977         (nios2_add_insn_names, nios2_add_insn_narrow): New.
20978         (nios2_add_insn_classify): New.
20979         (nios2_add_insn_asm): New.
20980         (nios2_cdx_narrow_form_p): New.
20981         (label_align, min_labelno, max_labelno): New.
20982         (nios2_reorg): New.
20983         (nios2_label_align): New.
20984         (nios2_adjust_reg_alloc_order): New.
20985         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20986         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20987         * config/nios2/constraints.md (P): New constraint.
20988         * config/nios2/predicates.md (const_and_operand): New.
20989         (and_operand): New.
20990         (stack_memory_operand): New.
20991         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20992         (length): Update to use nios2_cdx_narrow_form_p().
20993         (type): Add new insn type values.
20994         (control, alu, st, ld, shift): Update insn reservations with
20995         new insn type values.
20996         (*high, *lo_sum): Define new insn patterns for constant generation.
20997         (movqi_internal, movhi_internal, movsi_internal): Reduce
20998         alternatives, update asm template to handle CDX variants, update
20999         type attributes.
21000         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21001         template, update type attributes.
21002         (extendhisi2, extendqi<mode>2): Likewise.
21003         (addsi3): Change to use function for asm string.
21004         (subsi3): Add CDX notation to asm template, update type attributes.
21005         (negsi3, one_cmplsi3): Likewise.
21006         (andsi3): New pattern, specialized from logical patterns.
21007         (<code>si3): Remove and case, combine alternatives, update asm
21008         template.
21009         (<shift_op>si3): Add CDX notation, update type attributes.
21010         (rotrsi3): Update type attribute.
21011         (*merge, extzv, insv): New insn patterns.
21012         (return): Change to define_expand.
21013         (simple_return): Add CDX notation, update type attributes.
21014         (indirect_jump): Add CDX notation.
21015         (jump): Update asm cases, update length attribute expression.
21016         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21017         (nios2_cbranch): Update asm cases and length attribute expression
21018         to handle CDX variants.
21019         (nios2_cmp<code>): Update asm template.
21020         (nop): Add CDX notation, update type attributes.
21021         (trap): Add CDX notation.
21022         (ctrapsi4): Update asm cases and length attribute expression to
21023         handle CDX variant.
21024         * doc/md.texi (Machine Constraints): Document P constraint.
21026 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21027             Cesar Philippidis  <cesar@codesourcery.com>
21028             Chung-Lin Tang  <cltang@codesourcery.com>
21030         * config/nios2/nios2.h (SMALL_INT12): New macro.
21031         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21032         (nios2_valid_addr_expr_p): Use it.
21033         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21034         with implicit "io" instructions on R2.
21035         * config/nios2/constraints.md (w): New constraint.
21036         * config/nios2/predicates.md (ldstio_memory_operand): New.
21037         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21038         operand predicate and constraint.
21039         (ld<bh>io_signed, st<bhw>io>): Likewise.
21040         * doc/md.texi (Machine Constraints): Document w constraint.
21042 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21043             Cesar Philippidis  <cesar@codesourcery.com>
21044             Chung-Lin Tang  <cltang@codesourcery.com>
21046         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21047         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21048         Nios II architecture level.
21049         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21050         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21051         (OPTION_DEFAULT_SPECS): Define.
21052         (ASM_SPEC): Add -march= spec strings.
21053         * config/nios2/nios2.c (nios2_option_override): Check for
21054         conflicts involving new options.
21055         * config.gcc (nios2*-*-*): Support --with-arch=.
21056         * doc/invoke.texi (Option Summary, Nios II Options): Document
21057         -march=, -mbmx, and -mcdx.
21059 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
21061         PR rtl-optimization/66626
21062         * lra-constraints.c (lra_constraints): Prevent equivalence
21063         substitution for static chain pseudo in functions with nonlocal
21064         goto.
21066 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21068         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21069         (nios2_emit_stack_limit_check): Add size parameter.  Handle
21070         -fstack-limit-symbol as well as -fstack-limit-register.
21071         (nios2_expand_prologue): Emit only a single stack limit check,
21072         even if multiple stack adjustments are required.
21073         (nios2_option_override): Diagnose unsupported combination of -fpic
21074         and -stack-limit-symbol.
21076 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
21078         * Makefile.in (top_srcdir): New.
21079         * configure.ac: Use AM_ZLIB.
21080         * configure: Regeneated.
21082 2015-07-14  Matthias Klose  <doko@ubuntu.com>
21084         PR target/66840
21085         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21087 2015-07-14  Richard Biener  <rguenther@suse.de>
21089         PR tree-optimization/66863
21090         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21091         what we record for conversion use stmt lhs inequalities.
21093 2015-07-14  Richard Biener  <rguenther@suse.de>
21095         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21096         (decision_tree::gen_gimple): Likewise.
21098 2015-07-14  Tom de Vries  <tom@codesourcery.com>
21100         * gcc.c (greater_than_spec_func): Declare forward.
21101         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21102         -ftree-parallelize-loops={0,1}.
21103         (static_spec_functions): Add greater_than_spec_func function with name
21104         "gt".
21105         (greater_than_spec_func): New function.
21107 2015-07-14  Richard Biener  <rguenther@suse.de>
21109         * tree-ssa-dom.c (record_temporary_equivalences): Merge
21110         wideing type conversion case from record_equivalences_from_incoming_edge
21111         and use record_equality to record equivalences.
21112         (record_equivalences_from_incoming_edge): Call
21113         record_temporary_equivalences.
21115 2015-07-14  Richard Biener  <rguenther@suse.de>
21117         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21118         (struct if_expr): New.
21119         (struct with_expr): Likewise.
21120         (is_a_helper): Add helpers for if_expr and with_expr.
21121         (struct simplify): Add simplify_kind enum and member.  Remove
21122         ifexpr_vec member.
21123         (simplify::simplify): Adjust.
21124         (lower_commutative): Adjust.
21125         (lower_opt_convert): Likewise.
21126         (lower_cond): Likewise.
21127         (replace_id): Handle with_expr and if_expr.
21128         (lower_for): Adjust.
21129         (dt_simplify::gen_1): New recursive worker, split out from ...
21130         (dt_simplify::gen): ... here.  Deal with if and with expansion
21131         recursively.
21132         (capture_info::capture_info): Take context argument
21133         (capture_info::walk_result): Only analyze specific result.
21134         (parser::parse_result): New function.
21135         (parser::parse_simplify): Adjust to parse ifs with then end
21136         else case.
21137         (parser::parse_if): Simplify.
21138         (parser::parse_pattern): Pass down simplify kind.
21139         * match.pd: Convert if structure to new syntax.
21141 2015-07-13  Marek Polacek  <polacek@redhat.com>
21143         * rtl.c (rtx_equal_p_cb): Fix typo.
21145 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
21147         * omega.h: Don't include config.h, don't include params.h again if
21148         omega.h has already been included.
21149         * graphite-poly.h: Include sese.h.
21150         * graphite.c: Don't include sese.h, remove needless includes and
21151         minimize includes outside #ifdef HAVE_isl block.
21152         * graphite-blocking.c: Don't include sese.h, remove needless includes,
21153         and wrap entire file in #ifdef HAVE_isl
21154         * graphite-dependences.c: Likewise.
21155         * graphite-interchange.c: Likewise.
21156         * graphite-isl-ast-to-gimple.c: Likewise.
21157         * graphite-optimize-isl.c: Likewise.
21158         * graphite-poly.c: Likewise.
21159         * graphite-scop-detection.c: Likewise.
21160         * graphite-sese-to-poly.c: Likewise.
21162 2015-07-13  Tom de Vries  <tom@codesourcery.com>
21164         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21166 2015-07-13  Renlin Li  <renlin.li@arm.com>
21168         PR rtl/66556
21169         * simplify-rtx.c (simplify_const_relational_operation): Add
21170         side_effects_p checks.
21172 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
21174         * bitmap.h: Fix double word typos.
21175         * builtins.c: Same.
21176         * calls.c: Same.
21177         * cfgloopmanip.c: Same.
21178         * cgraph.c: Same.
21179         * cgraph.h: Same.
21180         * cgraphclones.c: Same.
21181         * combine.c: Same.
21182         * config/aarch64/aarch64-protos.h: Same.
21183         * config/aarch64/aarch64.c: Same.
21184         * config/aarch64/aarch64.md: Same.
21185         * config/arm/arm.md: Same.
21186         * config/arm/arm1020e.md: Same.
21187         * config/arm/arm1026ejs.md: Same.
21188         * config/arm/arm926ejs.md: Same.
21189         * config/arm/fa526.md: Same.
21190         * config/arm/fa606te.md: Same.
21191         * config/arm/fa626te.md: Same.
21192         * config/arm/fa726te.md: Same.
21193         * config/arm/fmp626.md: Same.
21194         * config/darwin.c: Same.
21195         * config/epiphany/epiphany.c: Same.
21196         * config/frv/frv.c: Same.
21197         * config/ft32/ft32.c: Same.
21198         * config/gnu-user.h: Same.
21199         * config/h8300/constraints.md: Same.
21200         * config/i386/i386.c: Same.
21201         * config/i386/i386.md: Same.
21202         * config/iq2000/iq2000.md: Same.
21203         * config/mips/mips.c: Same.
21204         * config/mmix/mmix.md: Same.
21205         * config/moxie/moxie.c: Same.
21206         * config/nds32/nds32.md: Same.
21207         * config/pa/pa.h: Same.
21208         * config/rs6000/aix.h: Same.
21209         * config/rs6000/rs6000.h: Same.
21210         * config/sh/sh.c: Same.
21211         * config/tilegx/tilegx.md: Same.
21212         * config/tilepro/gen-mul-tables.cc: Same.
21213         * cse.c: Same.
21214         * dbxout.c: Same.
21215         * doc/invoke.texi: Same.
21216         * dse.c: Same.
21217         * dwarf2out.c: Same.
21218         * final.c: Same.
21219         * gcc.c: Same.
21220         * genmatch.c: Same.
21221         * gimplify.c: Same.
21222         * hash-table.h: Same.
21223         * internal-fn.c: Same.
21224         * ipa-cp.c: Same.
21225         * ipa-devirt.c: Same.
21226         * ipa-icf.c: Same.
21227         * ipa-icf.h: Same.
21228         * ipa-profile.c: Same.
21229         * ipa-prop.c: Same.
21230         * ipa-prop.h: Same.
21231         * ira.c: Same.
21232         * omp-low.c: Same.
21233         * reg-stack.c: Same.
21234         * regcprop.c: Same.
21235         * reorg.c: Same.
21236         * rtl.h: Same.
21237         * sbitmap.h: Same.
21238         * tree-eh.c: Same.
21239         * tree-inline.c: Same.
21240         * tree-sra.c: Same.
21241         * tree-ssa-dom.c: Same.
21242         * tree-ssa-loop-ivopts.c: Same.
21243         * tree-ssa-structalias.c: Same.
21244         * tree-ssa-tail-merge.c: Same.
21245         * tree-ssa-ter.c: Same.
21246         * tree-ssa-threadupdate.c: Same.
21247         * tree-ssa-uninit.c: Same.
21248         * tree-ssanames.c: Same.
21249         * tree-vect-loop-manip.c: Same.
21250         * tree-vrp.c: Same.
21251         * tree.c: Same.
21252         * valtrack.c: Same.
21253         * vec.h: Same.
21255 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21257         PR middle-end/66726
21258         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21259         tree_ssa_phiopt_worker): Call it.
21261 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21263         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21264         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21265         REG_EQUAL note.
21267 2015-07-11  Marek Polacek  <polacek@redhat.com>
21269         PR middle-end/66353
21270         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21271         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21272         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21273         rather than bb_has_abnormal_call_pred.
21274         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21275         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21276         rather than bb_has_abnormal_call_pred.
21278 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
21280         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21281         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21282         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21283         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21284         v850_legitimate_address_p): New functions.
21285         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21287 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
21289         PR target/66819
21290         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21291         indirect sibcall with register arguments if register available
21292         for argument passing.
21293         (init_cumulative_args): Set cfun->machine->arg_reg_available
21294         to (cum->nregs > 0) or to true if function has a variable
21295         argument list.
21296         (function_arg_advance_32): Set cfun->machine->arg_reg_available
21297         to false if cum->nregs <= 0.
21298         * config/i386/i386.h (machine_function): Add arg_reg_available.
21300 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21302         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21303         and gen_higpart instead of gen_rtx_SUBREG.
21304         * config/i386/i386.md
21305         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21306         (read-modify peephole2): Use gen_lowpart instead of
21307         gen_rtx_SUBREG for operand 5.
21309 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21311         * config/tilepro/gen-mul-tables.cc (main): Change include list for
21312         generated files.
21313         * config/tilepro/mul-tables.c: Regenerate.
21314         * config/tilegx/mul-tables.c: Regenerate.
21316 2015-07-10  Richard Biener  <rguenther@suse.de>
21318         * fold-const.c (distribute_bit_expr): Remove.
21319         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21320         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21321         to A & (B | C) and simplifying A << C1 << C2 to ...
21322         * match.pd: ... patterns here.
21324 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
21326         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21327         Mark mem as READONLY and NOTRAP for PIC symbol.
21329 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21331         * gimple-predict.h: New file.
21332         (gimple_predict_predictor, gimple_predict_set_predictor,
21333         gimple_predict_outcome, gimple_predict_set_outcome,
21334         gimple_build_predict): Relocate here.
21335         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21336         gimple_predict_outcome, gimple_predict_set_outcome): Move to
21337         gimple-predict.h.
21338         * gimple.c (gimple_build_predict): Move to gimple-predict.h
21339         * basic-block.h: Don't include cfghooks.h.
21340         * backend.h: Don't include predict.h.
21341         * cfghooks.h: Include predict.h.
21342         * gimple-pretty-print.c: Include gimple-predict.h.
21343         * gimplify.c: Likwise.
21344         * predict.c: Adjust includes.
21345         * tree-inline.c: Likewise.
21346         * asan.c: Likewise.
21347         * auto-inc-dec.c: Likewise.
21348         * auto-profile.c: Likewise.
21349         * bb-reorder.c: Likewise.
21350         * builtins.c: Likewise.
21351         * caller-save.c: Likewise.
21352         * calls.c: Likewise.
21353         * cfganal.c: Likewise.
21354         * cfgbuild.c: Likewise.
21355         * cfg.c: Likewise.
21356         * cfgcleanup.c: Likewise.
21357         * cfgexpand.c: Likewise.
21358         * cfghooks.c: Likewise.
21359         * cfgloopanal.c: Likewise.
21360         * cfgloop.c: Likewise.
21361         * cfgloopmanip.c: Likewise.
21362         * cfgrtl.c: Likewise.
21363         * cgraph.c: Likewise.
21364         * cgraphunit.c: Likewise.
21365         * combine.c: Likewise.
21366         * cprop.c: Likewise.
21367         * cse.c: Likewise.
21368         * dce.c: Likewise.
21369         * dojump.c: Likewise.
21370         * dse.c: Likewise.
21371         * except.c: Likewise.
21372         * expmed.c: Likewise.
21373         * expr.c: Likewise.
21374         * final.c: Likewise.
21375         * fold-const.c: Likewise.
21376         * function.c: Likewise.
21377         * fwprop.c: Likewise.
21378         * gcc-plugin.h: Likewise.
21379         * gcse.c: Likewise.
21380         * genattrtab.c: Likewise.
21381         * genemit.c: Likewise.
21382         * gengtype.c: Likewise.
21383         * genopinit.c: Likewise.
21384         * genoutput.c: Likewise.
21385         * genpreds.c: Likewise.
21386         * genrecog.c: Likewise.
21387         * gimple-fold.c: Likewise.
21388         * gimple-iterator.c: Likewise.
21389         * gimple-ssa-isolate-paths.c: Likewise.
21390         * gimple-ssa-strength-reduction.c: Likewise.
21391         * graph.c: Likewise.
21392         * graphite-blocking.c: Likewise.
21393         * graphite.c: Likewise.
21394         * graphite-dependences.c: Likewise.
21395         * graphite-interchange.c: Likewise.
21396         * graphite-isl-ast-to-gimple.c: Likewise.
21397         * graphite-optimize-isl.c: Likewise.
21398         * graphite-poly.c: Likewise.
21399         * graphite-scop-detection.c: Likewise.
21400         * graphite-sese-to-poly.c: Likewise.
21401         * haifa-sched.c: Likewise.
21402         * ifcvt.c: Likewise.
21403         * internal-fn.c: Likewise.
21404         * ipa-cp.c: Likewise.
21405         * ipa-profile.c: Likewise.
21406         * ipa-split.c: Likewise.
21407         * ipa-utils.c: Likewise.
21408         * ira-build.c: Likewise.
21409         * ira-color.c: Likewise.
21410         * ira-conflicts.c: Likewise.
21411         * ira-costs.c: Likewise.
21412         * ira-emit.c: Likewise.
21413         * ira-lives.c: Likewise.
21414         * jump.c: Likewise.
21415         * loop-doloop.c: Likewise.
21416         * loop-init.c: Likewise.
21417         * loop-invariant.c: Likewise.
21418         * loop-unroll.c: Likewise.
21419         * lower-subreg.c: Likewise.
21420         * lra-assigns.c: Likewise.
21421         * lra.c: Likewise.
21422         * lra-coalesce.c: Likewise.
21423         * lra-constraints.c: Likewise.
21424         * lra-lives.c: Likewise.
21425         * lto-cgraph.c: Likewise.
21426         * lto-streamer-in.c: Likewise.
21427         * mode-switching.c: Likewise.
21428         * modulo-sched.c: Likewise.
21429         * omp-low.c: Likewise.
21430         * optabs.c: Likewise.
21431         * passes.c: Likewise.
21432         * postreload.c: Likewise.
21433         * postreload-gcse.c: Likewise.
21434         * profile.c: Likewise.
21435         * recog.c: Likewise.
21436         * regstat.c: Likewise.
21437         * reload1.c: Likewise.
21438         * reorg.c: Likewise.
21439         * rtlanal.c: Likewise.
21440         * sched-ebb.c: Likewise.
21441         * sel-sched-ir.c: Likewise.
21442         * sese.c: Likewise.
21443         * shrink-wrap.c: Likewise.
21444         * simplify-rtx.c: Likewise.
21445         * stmt.c: Likewise.
21446         * store-motion.c: Likewise.
21447         * tracer.c: Likewise.
21448         * trans-mem.c: Likewise.
21449         * tree-call-cdce.c: Likewise.
21450         * tree-cfg.c: Likewise.
21451         * tree-cfgcleanup.c: Likewise.
21452         * tree-chkp.c: Likewise.
21453         * tree-complex.c: Likewise.
21454         * tree-eh.c: Likewise.
21455         * tree-if-conv.c: Likewise.
21456         * tree-loop-distribution.c: Likewise.
21457         * tree-outof-ssa.c: Likewise.
21458         * tree-parloops.c: Likewise.
21459         * tree-predcom.c: Likewise.
21460         * tree-pretty-print.c: Likewise.
21461         * tree-profile.c: Likewise.
21462         * tree-sra.c: Likewise.
21463         * tree-ssa.c: Likewise.
21464         * tree-ssa-coalesce.c: Likewise.
21465         * tree-ssa-dce.c: Likewise.
21466         * tree-ssa-dom.c: Likewise.
21467         * tree-ssa-forwprop.c: Likewise.
21468         * tree-ssa-ifcombine.c: Likewise.
21469         * tree-ssa-loop-ch.c: Likewise.
21470         * tree-ssa-loop-im.c: Likewise.
21471         * tree-ssa-loop-ivcanon.c: Likewise.
21472         * tree-ssa-loop-ivopts.c: Likewise.
21473         * tree-ssa-loop-manip.c: Likewise.
21474         * tree-ssa-loop-prefetch.c: Likewise.
21475         * tree-ssa-loop-unswitch.c: Likewise.
21476         * tree-ssa-math-opts.c: Likewise.
21477         * tree-ssa-phiopt.c: Likewise.
21478         * tree-ssa-pre.c: Likewise.
21479         * tree-ssa-reassoc.c: Likewise.
21480         * tree-ssa-sink.c: Likewise.
21481         * tree-ssa-tail-merge.c: Likewise.
21482         * tree-ssa-threadedge.c: Likewise.
21483         * tree-ssa-threadupdate.c: Likewise.
21484         * tree-switch-conversion.c: Likewise.
21485         * tree-tailcall.c: Likewise.
21486         * tree-vect-data-refs.c: Likewise.
21487         * tree-vect-loop.c: Likewise.
21488         * tree-vect-loop-manip.c: Likewise.
21489         * tree-vectorizer.c: Likewise.
21490         * tree-vrp.c: Likewise.
21491         * ubsan.c: Likewise.
21492         * value-prof.c: Likewise.
21493         * varasm.c: Likewise.
21494         * var-tracking.c: Likewise.
21495         * config/aarch64/aarch64-builtins.c: Likewise.
21496         * config/aarch64/aarch64.c: Likewise.
21497         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21498         * config/alpha/alpha.c: Likewise.
21499         * config/arc/arc.c: Likewise.
21500         * config/arm/arm.c: Likewise.
21501         * config/avr/avr.c: Likewise.
21502         * config/bfin/bfin.c: Likewise.
21503         * config/c6x/c6x.c: Likewise.
21504         * config/cr16/cr16.c: Likewise.
21505         * config/cris/cris.c: Likewise.
21506         * config/darwin.c: Likewise.
21507         * config/darwin-c.c: Likewise.
21508         * config/epiphany/epiphany.c: Likewise.
21509         * config/epiphany/mode-switch-use.c: Likewise.
21510         * config/epiphany/resolve-sw-modes.c: Likewise.
21511         * config/fr30/fr30.c: Likewise.
21512         * config/frv/frv.c: Likewise.
21513         * config/ft32/ft32.c: Likewise.
21514         * config/h8300/h8300.c: Likewise.
21515         * config/i386/i386.c: Likewise.
21516         * config/i386/winnt.c: Likewise.
21517         * config/ia64/ia64.c: Likewise.
21518         * config/iq2000/iq2000.c: Likewise.
21519         * config/lm32/lm32.c: Likewise.
21520         * config/m32c/m32c.c: Likewise.
21521         * config/m32r/m32r.c: Likewise.
21522         * config/m68k/m68k.c: Likewise.
21523         * config/mcore/mcore.c: Likewise.
21524         * config/mep/mep.c: Likewise.
21525         * config/microblaze/microblaze.c: Likewise.
21526         * config/mips/mips.c: Likewise.
21527         * config/mmix/mmix.c: Likewise.
21528         * config/mn10300/mn10300.c: Likewise.
21529         * config/moxie/moxie.c: Likewise.
21530         * config/msp430/msp430.c: Likewise.
21531         * config/nds32/nds32.c: Likewise.
21532         * config/nds32/nds32-cost.c: Likewise.
21533         * config/nds32/nds32-fp-as-gp.c: Likewise.
21534         * config/nds32/nds32-intrinsic.c: Likewise.
21535         * config/nds32/nds32-isr.c: Likewise.
21536         * config/nds32/nds32-md-auxiliary.c: Likewise.
21537         * config/nds32/nds32-memory-manipulation.c: Likewise.
21538         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21539         * config/nds32/nds32-predicates.c: Likewise.
21540         * config/nios2/nios2.c: Likewise.
21541         * config/nvptx/nvptx.c: Likewise.
21542         * config/pa/pa.c: Likewise.
21543         * config/pdp11/pdp11.c: Likewise.
21544         * config/rl78/rl78.c: Likewise.
21545         * config/rs6000/rs6000.c: Likewise.
21546         * config/rx/rx.c: Likewise.
21547         * config/s390/s390.c: Likewise.
21548         * config/sh/sh.c: Likewise.
21549         * config/sh/sh-mem.cc: Likewise.
21550         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21551         * config/sh/sh_treg_combine.cc: Likewise.
21552         * config/sparc/sparc.c: Likewise.
21553         * config/spu/spu.c: Likewise.
21554         * config/stormy16/stormy16.c: Likewise.
21555         * config/tilegx/tilegx.c: Likewise.
21556         * config/tilepro/tilepro.c: Likewise.
21557         * config/v850/v850.c: Likewise.
21558         * config/vax/vax.c: Likewise.
21559         * config/visium/visium.c: Likewise.
21560         * config/xtensa/xtensa.c: Likewise.
21562 2015-07-10  Richard Biener  <rguenther@suse.de>
21564         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21565         (decision_tree::gen_gimple): Likewise.
21566         (decision_tree::gen_generic): Likewise.
21568 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21570         PR target/66813
21571         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21572         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21574 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
21576         PR middle-end/66820
21577         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21578         or ORT_TASK contexts.
21579         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21580         is non-zero.
21582 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21584         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21585         above function.
21587 2015-07-10  Tom de Vries  <tom@codesourcery.com>
21589         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21590         insert nit + 1 bound.
21592 2015-07-10  Richard Biener  <rguenther@suse.de>
21594         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21595         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21596         (if_convertible_loop_p_1): For this always compute bb predicates.
21597         (if_convertible_loop_p): And free them.
21599 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21601         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21602         in dump message.
21604 2015-07-10  Richard Biener  <rguenther@suse.de>
21606         PR tree-optimization/66823
21607         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21608         inverted predicate.
21610 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
21612         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21613         to handle mips[32|64]r3 and mips[32|64]r5.
21615 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
21617         PR middle-end/66633
21618         * tree-nested.c (get_static_chain): Or in a flag into
21619         info->static_chain_added.
21620         (get_frame_field, get_nonlocal_debug_decl): Likewise.
21621         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21622         2015-07-01 changes.
21623         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21624         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21625         add it to clauses.
21627         PR tree-optimization/66718
21628         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21629         field.
21630         (vect_simd_lane_linear): New function.
21631         (vectorizable_simd_clone_call): Support using linear arguments for
21632         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21634 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21636         PR target/66821
21637         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21639 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21641         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21642         Use machine mode, not enum machine_mode in the prototype.
21644         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21645         classify 128-bit floating point support.
21646         (FLOAT128_IBM_P): Likewise.
21647         (FLOAT128_VECTOR_P): Likewise.
21648         (FLOAT128_2REG_P): Likewise.
21649         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21650         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21651         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21652         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21654         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21655         tests against TFmode/TDmode, since those modes do not use VSX
21656         addresses.
21657         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21658         support.
21659         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21660         tests against TFmode, etc.
21661         (invalid_e500_subreg): Add tests against IFmode/KFmode.
21662         (reg_offset_addressing_ok_p): Likewise.
21663         (rs6000_legitimate_offset_address_p): Likewise.
21664         (rs6000_legitimize_address): Likewise.
21665         (rs6000_legitimize_reload_address): Likewise.
21666         (rs6000_legitimate_address_p): Clean up tests against TFmode and
21667         TDmode to use the new helper macros, which will include IFmode and
21668         KFmode.
21669         (rs6000_emit_move): Likewise.
21670         (rs6000_darwin64_record_arg_recurse): Likewise.
21671         (print_operand): Likewise.
21672         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21673         that uses a single vector register as a vector and not as a
21674         floating point register in terms of the calling sequence.
21675         (rs6000_discover_homogeneous_aggregate): Likewise.
21676         (rs6000_return_in_memory): Likewise.
21677         (init_cumulative_args): Likewise.
21678         (rs6000_function_arg_boundary): Likewise.
21679         (rs6000_function_arg_advance_1): Likewise.
21680         (rs6000_function_arg): Likewise.
21681         (rs6000_pass_by_reference): Likewise.
21682         (rs6000_gimplify_va_arg): Likewise.
21683         (rs6000_secondary_reload_memory): Use machine_mode not enum
21684         machine mode.
21685         (rs6000_split_multireg_move): Use new helper macros.
21686         (spe_func_has_64bit_regs_p): Likewise.
21687         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21688         (output_toc): Use new helper macros.
21689         (rs6000_register_move_cost): Likewise.
21690         (rs6000_function_value): Add IEEE 128-bit floating point calling
21691         sequence support.
21692         (rs6000_libcall_value): Likewise.
21693         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21694         floating point support.
21695         (rs6000_vector_mode_supported_p): Likewise.
21697 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
21699         PR rtl-optimization/66782
21700         * lra-int.h (struct lra_insn_recog_data): Add comment about
21701         clobbered hard regs for arg_hard_regs.
21702         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21703         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21704         Add condition for processing used hard regs.
21705         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21706         Process clobbered hard regs.
21708 2015-07-09  Michael Matz  <matz@suse.de>
21710         * genmatch.c (fprintf_indent): New function.
21711         (operand::gen_transform): Add indent parameter.
21712         (expr::gen_transform, c_expr::gen_transform,
21713         capture::gen_transform): Ditto and use fprintf_indent.
21714         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21715         (dt_operand::gen, dt_operand::gen_predicate,
21716         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21717         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21718         (decision_tree::gen_gimple): Adjust calls and indent generated
21719         code.
21720         (decision_tree::gen_generic): Ditto.
21721         (write_predicate): Ditto.
21723 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21725         PR target/66814
21726         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21727         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21728         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21729         {GENERAL,SSE,MMX}_REG_P where appropriate.
21731 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21733         * lto-streamer.h: Don't include target.h and alloc-pool.h.
21734         * builtins.c: Adjust includes.
21735         * gimple.c: Likewise.
21736         * ipa-icf.c: Likewise.
21737         * lto-opts.c: Likewise.
21738         * ipa-reference.c: Likewise.
21739         * lto-section-out.c: Likewise.
21740         * lto-streamer-in.c: Likewise.
21741         * lto-streamer-out.c: Likewise.
21742         * opts-global.c: Likewise.
21743         * symtab.c: Likewise.
21744         * tree-chkp.c: Likewise.
21745         * tree-ssa-live.c: Likewise.
21746         * tree-streamer-in.c: Likewise.
21747         * tree-streamer-out.c: Likewise.
21748         * config/darwin.c: Likewise.
21749         * config/i386/winnt.c: Likewise.
21751 2015-07-09  Richard Biener  <rguenther@suse.de>
21753         * genmatch.c (struct expr): Add force_single_use flag.
21754         (expr::expr): Add copy constructor.
21755         (capture_info::walk_match): Gather force_single_use captures.
21756         (expr::gen_transform): Use possibly NULLified sequence.
21757         (dt_simplify::gen): Apply single-use restrictions by NULLifying
21758         seq if any constrained expr is not single-use.
21759         (parser::parse_expr): Refactor to allow multiple flags.  Handle
21760         's' flag to force an expression have a single-use if the pattern
21761         simplifies to more than one statement.
21762         * match.pd: Convert most single_use conditionals to :s flags.
21764 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21766         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21767         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21768         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21770 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21772         * flags.h: Don't include flag-types.h or options.h.
21773         * opts-common.c: Adjust includes.
21774         * opts-global.c: Likewise.
21775         * common/config/epiphany/epiphany-common.c: Likewise.
21777 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21779         PR target/66818
21780         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21781         for IA MCU.
21783 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21785         PR target/66817
21786         * config/i386/i386.c (ix86_return_in_memory): Return true
21787         if int_size_in_bytes returns negative for IA MCU.
21789 2015-07-09  Marek Polacek  <polacek@redhat.com>
21791         PR tree-optimization/66718
21792         * Makefile.in (OBJS): Add gimple-laddress.o.
21793         * passes.def: Schedule pass_laddress.
21794         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21795         * tree-pass.h (make_pass_laddress): Declare.
21796         * gimple-laddress.c: New file.
21798 2015-07-09  Richard Biener  <rguenther@suse.de>
21800         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21802 2015-07-09  Richard Biener  <rguenther@suse.de>
21804         PR tree-optimization/66807
21805         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21807 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
21809         * function.c (stack_protect_epilogue): Use if rather than switch for
21810         check targetm.have_stack_protect_test.
21812 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21814         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21815         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21816         * config/arc/arc.h: Likewise.
21817         * config/arm/arm.h: Likewise.
21818         * config/bfin/bfin.h: Likewise.
21819         * config/epiphany/epiphany.h: Likewise.
21820         * config/frv/frv.h: Likewise.
21821         * config/ia64/ia64.h: Likewise.
21822         * config/iq2000/iq2000.h: Likewise.
21823         * config/lm32/lm32.h: Likewise.
21824         * config/m32r/m32r.h: Likewise.
21825         * config/mcore/mcore.h: Likewise.
21826         * config/mep/mep.h: Likewise.
21827         * config/microblaze/microblaze.h: Likewise.
21828         * config/mips/mips.h: Likewise.
21829         * config/mmix/mmix.h: Likewise.
21830         * config/mn10300/mn10300.h: Likewise.
21831         * config/nds32/nds32.h: Likewise.
21832         * config/nios2/nios2.h: Likewise.
21833         * config/pa/pa.h: Likewise.
21834         * config/rl78/rl78.h: Likewise.
21835         * config/sh/sh.h: Likewise.
21836         * config/sparc/sparc.h: Likewise.
21837         * config/stormy16/stormy16.h: Likewise.
21838         * config/tilegx/tilegx.h: Likewise.
21839         * config/tilepro/tilepro.h: Likewise.
21840         * config/v850/v850.h: Likewise.
21841         * config/xtensa/xtensa.h: Likewise.
21842         * doc/tm.texi: Regenerate.
21843         * doc/tm.texi.in: Adjust.
21844         * combine.c (simplify_set): Likewise.
21845         (simplify_comparison): Likewise.
21846         * expr.c (store_constructor): Likewise.
21847         * internal-fn.c (expand_arith_overflow): Likewise.
21848         * reload.c (push_reload): Likewise.
21849         (find_reloads): Likewise.
21850         (find_reloads_subreg_address): Likewise.
21851         * reload1.c (eliminate_regs_1): Likewise.
21852         * rtlanal.c (nonzero_bits1): Likewise.
21853         (num_sign_bit_copies1): Likewise.
21854         * simplify-rtx.c (simplify_truncation): Likewise.
21856 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21858         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21859         of AUTO_INC_DEC with the preprocessor.
21860         * combine.c (combine_instructions): Likewise.
21861         (can_combine_p): Likewise.
21862         (try_combine): Likewise.
21863         * emit-rtl.c (try_split): Likewise.
21864         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21865         * lower-subreg.c (resolve_simple_move): Likewise.
21866         * lra.c (update_inc_notes): Likewise.
21867         * recog.c (asm_operand_ok): Likewise.
21868         (constrain_operands): Likewise.
21869         * regrename.c (scan_rtx_address): Likewise.
21870         * reload.c (update_auto_inc_notes): Likewise.
21871         (reg_inc_found_and_valid_p): Likewise.
21872         * reload1.c (reload): Likewise.
21873         (emit_input_reload_insns): Likewise.
21874         (delete_output_reload): Likewise.
21875         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21876         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21878 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21880         * rtl.h: Always define AUTO_INC_DEC.
21881         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21882         * combine.c (combine_instructions): Likewise.
21883         (can_combine_p): Likewise.
21884         (try_combine): Likewise.
21885         * emit-rtl.c (try_split): Likewise.
21886         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21887         * lower-subreg.c (resolve_simple_move): Likewise.
21888         * lra.c (update_inc_notes): Likewise.
21889         * recog.c (asm_operand_ok): Likewise.
21890         (constrain_operands): Likewise.
21891         * regrename.c (scan_rtx_address): Likewise.
21892         * reload.c (update_auto_inc_notes): Likewise.
21893         (find_equiv_reg): Likewise.
21894         * reload1.c (reload): Likewise.
21895         (reload_as_needed): Likewise.
21896         (choose_reload_regs): Likewise.
21897         (emit_input_reload_insns): Likewise.
21898         (delete_output_reload): Likewise.
21899         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21900         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21902 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21904         * combine.c (can_combine_def_p): Don't check the value of
21905         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21906         (combinable_i3pat): Likewise.
21907         (mark_used_regs_combine): Likewise.
21908         * regrename.c (rename_chains): Likewise.
21909         * reload.c (find_reloads_address): Likewise.
21910         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21912 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21914         * combine.c (update_rsp_from_reg_equal): Don't check if
21915         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21916         (reg_nonzero_bits_for_combine): Likewise.
21917         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21918         1.
21919         * config/frv/frv.h: Likewise.
21920         * config/lm32/lm32.h: Likewise.
21921         * config/mep/mep.h: Likewise.
21922         * config/mips/mips.h: Likewise.
21923         * config/rs6000/rs6000.h: Likewise.
21924         * config/sh/sh.h: Likewise.
21925         * config/tilegx/tilegx.h (enum reg_class): Likewise.
21926         * config/tilepro/tilepro.h: Likewise.
21927         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21928         * doc/tm.texi: Regenerate.
21929         * doc/tm.texi.in: Adjust.
21930         * rtlanal.c (nonzero_bits1): Likewise.
21932 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21934         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21935         with the preprocessor.
21936         (combine_instructions): Likewise.
21937         (try_combine): Likewise.
21938         (subst): Likewise.
21939         (distribute_notes): Likewise.
21941 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21943         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21944         defined.
21945         (simplify_set): Likewise.
21946         * cse.c (cse_insn): Likewise.
21947         * fold-const.c (fold_single_bit_test): Likewise.
21948         (fold_unary_loc): Likewise.
21949         * postreload.c (reload_cse_simplify_set): Likewise.
21950         (reload_cse_simplify_operands): Likewise.
21952 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
21954         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21955         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21957 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21959         PR target/66746
21960         * config/i386/x86intrin.h: Include <adxintrin.h> even if
21961         __iamcu__ is defined.
21963 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21965         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21967 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
21969         PR target/66523
21970         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21971         names from preservation.
21973 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21975         PR target/66806
21976         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21977         change for IAMCU.
21978         (function_arg_advance_32): Don't pass vectors in registers for
21979         IAMCU.
21980         (function_arg_32): Likewise.
21981         (ix86_return_in_memory): Don't return vectors in registers for
21982         IAMCU.
21984 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
21986         PR middle-end/66334
21987         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21988         hard regno live at the start of BB with incoming abnormal edges.
21989         * lra-lives.c (process_bb_lives): Ditto.
21991 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
21993         PR libgomp/65099
21994         * config/nvptx/mkoffload.c (main): Create an offload image only in
21995         64-bit configurations.
21997 2015-07-08  Martin Liska  <mliska@suse.cz>
21999         PR bootstrap/66744
22000         * tree-sra.c (create_access_1): Call ctor without brackets.
22001         (create_artificial_child_access): Likewise.
22003 2015-07-08  Richard Biener  <rguenther@suse.de>
22005         PR tree-optimization/66793
22006         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22007         Properly split the block after stmts ending it.
22009 2015-07-08  Richard Biener  <rguenther@suse.de>
22011         PR tree-optimization/66794
22012         * passes.c (execute_function_todo): Assert that post-dominators
22013         are not computed.
22014         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22015         Free post-dominators.
22017 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22019         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22020         with early exit.
22022 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22024         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22025         more than or equal 8 and less than 32 when optimizing for size.
22027 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22029         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22030         COSTS_N_INSNS (1) and increment it appropriately throughout the
22031         function.
22033 2015-07-08  Richard Biener  <rguenther@suse.de>
22035         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22037 2015-07-08  Alan Modra  <amodra@gmail.com>
22039         * target.def (rtx_costs): Remove "code" param, add "mode".
22040         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22041         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
22042         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22043         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
22044         call.  Track mode when given in rtx.
22045         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
22046         (default_address_cost): Pass Pmode to rtx_cost.
22047         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22048         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22049         with NULL set.
22050         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
22051         (notreg_cost): Add mode param.  Use it.
22052         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
22053         mode param and pass to set_src_cost.  Update all calls.
22054         (hash_scan_set): Formatting.
22055         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22056         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22057         * hooks.h: Ditto.
22058         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22059         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22060         emit_store_flag): Update set_src_cost and rtx_cost calls.
22061         * auto-inc-dec.c (attempt_change): Likewise.
22062         * calls.c (precompute_register_parameters): Likewise.
22063         * combine.c (expand_compound_operation, make_extraction,
22064         force_to_mode, distribute_and_simplify_rtx): Likewise.
22065         * dojump.c (prefer_and_bit_test): Likewise.
22066         * dse.c (find_shift_sequence): Likewise.
22067         * expr.c (compress_float_constant): Likewise.
22068         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22069         * ifcvt.c (noce_try_sign_mask): Likewise.
22070         * loop-doloop.c (doloop_optimize): Likewise.
22071         * loop-invariant.c (create_new_invariant): Likewise.
22072         * lower-subreg.c (shift_cost, compute_costs): Likewise.
22073         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22074         lshift_cheap_p): Likewise.
22075         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22076         try_replace_in_use, reload_cse_move2add): Likewise.
22077         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22078         Likewise.
22079         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22080         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22081         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22082         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22083         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22084         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
22085         to rtx_cost calls.
22086         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22087         * config/arc/arc.c (arc_rtx_costs): Likewise.
22088         * config/arm/arm.c (arm_rtx_costs): Likewise.
22089         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22090         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22091         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22092         * config/cris/cris.c (cris_rtx_costs): Likewise.
22093         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22094         * config/frv/frv.c (frv_rtx_costs): Likewise.
22095         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22096         * config/i386/i386.c (ix86_rtx_costs): Likewise.
22097         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22098         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22099         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22100         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22101         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22102         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22103         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22104         * config/mep/mep.c (mep_rtx_cost): Likewise.
22105         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22106         * config/mips/mips.c (mips_rtx_costs): Likewise.
22107         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22108         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22109         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22110         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22111         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22112         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22113         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22114         * config/pa/pa.c (hppa_rtx_costs): Likewise.
22115         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22116         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22117         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22118         * config/s390/s390.c (s390_rtx_costs): Likewise.
22119         * config/sh/sh.c (sh_rtx_costs): Likewise.
22120         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22121         * config/spu/spu.c (spu_rtx_costs): Likewise.
22122         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22123         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22124         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22125         * config/v850/v850.c (v850_rtx_costs): Likewise.
22126         * config/vax/vax.c (vax_rtx_costs): Likewise.
22127         * config/visium/visium.c (visium_rtx_costs): Likewise.
22128         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22129         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22130         "code" param, and pass as outer_code to first rtx_cost call.  Pass
22131         mode to rtx_cost calls.
22132         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22133         calls.
22134         (aarch64_rtx_costs_wrapper): Update.
22135         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22136         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22137         rtx_cost calls.
22138         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22139         and rtx_cost calls.
22140         (avr_operand_rtx_cost): Similarly.
22141         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22142         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22143         * config/mips/mips.c (mips_stack_address_p): Comment typo.
22144         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22145         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22146         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22147         rtx_cost.
22148         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22149         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22150         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22151         * doc/tm.texi: Regenerate.
22153 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
22155         * tree-core.h: Include symtab.h.
22156         * rtl.h: Include hard-reg-set.h but not flags.h.
22157         (HARD_CONST): Remove condition compilation involving HARD_CONST since
22158         hard-reg-set.h is always included.
22159         * regs.h: Don't include hard-reg-set.h or rtl.h.
22160         * cfg.h: Include dominance.h.
22161         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22162         * backend.h: New.  Aggregate commonly used backend header files.
22163         * gimple-ssa.h: Don't include tree-hasher.h.
22164         * ssa.h: New.  Aggregate commonly used SSA header files.
22165         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22166         * sel-sched-ir.h: Flatten includes.
22167         * lra-int.h: Flatten completely.
22168         * sel-sched-dump.h: Flatten includes.
22169         * ira-int.h: Flatten includes.
22170         * gimple-streamer.h: Remove all includes.
22171         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22172         * resource.h: Flatten hard-reg-set.h and df.h.
22173         * sched-int.h: Flatten insn-arrt.h and df.h.
22174         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22175         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22176         * genattrtab.c (write_header): Adjust generated includes.
22177         * genautomata.c (main): Likewise.
22178         * genconditions.c (write-header): Likewise.
22179         * genemit.c (main): Likewise.
22180         * gengtype.c (open_base_files): Likewise.
22181         * genopinit.c (main): Likewise.
22182         * genoutput.c (output_prologue): Likewise.
22183         * genpeep.c (main): Likewise.
22184         * genpreds.c (write_insn_preds_c): Likewise.
22185         * genrecog.c (write_header): Likewise.
22186         * alias.c: Adjust includes.
22187         * asan.c: Likewise.
22188         * attribs.c: Likewise.
22189         * auto-inc-dec.c: Likewise.
22190         * auto-profile.c: Likewise.
22191         * bb-reorder.c: Likewise.
22192         * bt-load.c: Likewise.
22193         * builtins.c: Likewise.
22194         * caller-save.c: Likewise.
22195         * calls.c: Likewise.
22196         * ccmp.c: Likewise.
22197         * cfg.c: Likewise.
22198         * cfganal.c: Likewise.
22199         * cfgbuild.c: Likewise.
22200         * cfgcleanup.c: Likewise.
22201         * cfgexpand.c: Likewise.
22202         * cfghooks.c: Likewise.
22203         * cfgloop.c: Likewise.
22204         * cfgloopanal.c: Likewise.
22205         * cfgloopmanip.c: Likewise.
22206         * cfgrtl.c: Likewise.
22207         * cgraph.c: Likewise.
22208         * cgraphbuild.c: Likewise.
22209         * cgraphclones.c: Likewise.
22210         * cgraphunit.c: Likewise.
22211         * cilk-common.c: Likewise.
22212         * combine-stack-adj.c: Likewise.
22213         * combine.c: Likewise.
22214         * compare-elim.c: Likewise.
22215         * convert.c: Likewise.
22216         * coverage.c: Likewise.
22217         * cppbuiltin.c: Likewise.
22218         * cprop.c: Likewise.
22219         * cse.c: Likewise.
22220         * cselib.c: Likewise.
22221         * data-streamer-in.c: Likewise.
22222         * data-streamer-out.c: Likewise.
22223         * data-streamer.c: Likewise.
22224         * dbxout.c: Likewise.
22225         * dce.c: Likewise.
22226         * ddg.c: Likewise.
22227         * debug.c: Likewise.
22228         * df-core.c: Likewise.
22229         * df-problems.c: Likewise.
22230         * df-scan.c: Likewise.
22231         * dfp.c: Likewise.
22232         * dojump.c: Likewise.
22233         * dominance.c: Likewise.
22234         * domwalk.c: Likewise.
22235         * double-int.c: Likewise.
22236         * dse.c: Likewise.
22237         * dumpfile.c: Likewise.
22238         * dwarf2asm.c: Likewise.
22239         * dwarf2cfi.c: Likewise.
22240         * dwarf2out.c: Likewise.
22241         * emit-rtl.c: Likewise.
22242         * et-forest.c: Likewise.
22243         * except.c: Likewise.
22244         * explow.c: Likewise.
22245         * expmed.c: Likewise.
22246         * expr.c: Likewise.
22247         * final.c: Likewise.
22248         * fixed-value.c: Likewise.
22249         * fold-const.c: Likewise.
22250         * function.c: Likewise.
22251         * fwprop.c: Likewise.
22252         * gcc-plugin.h: Likewise.
22253         * gcse-common.c: Likewise.
22254         * gcse.c: Likewise.
22255         * generic-match-head.c: Likewise.
22256         * ggc-page.c: Likewise.
22257         * gimple-builder.c: Likewise.
22258         * gimple-expr.c: Likewise.
22259         * gimple-fold.c: Likewise.
22260         * gimple-iterator.c: Likewise.
22261         * gimple-low.c: Likewise.
22262         * gimple-match-head.c: Likewise.
22263         * gimple-pretty-print.c: Likewise.
22264         * gimple-ssa-isolate-paths.c: Likewise.
22265         * gimple-ssa-strength-reduction.c: Likewise.
22266         * gimple-streamer-in.c: Likewise.
22267         * gimple-streamer-out.c: Likewise.
22268         * gimple-walk.c: Likewise.
22269         * gimple.c: Likewise.
22270         * gimplify-me.c: Likewise.
22271         * gimplify.c: Likewise.
22272         * godump.c: Likewise.
22273         * graph.c: Likewise.
22274         * graphite-blocking.c: Likewise.
22275         * graphite-dependences.c: Likewise.
22276         * graphite-interchange.c: Likewise.
22277         * graphite-isl-ast-to-gimple.c: Likewise.
22278         * graphite-optimize-isl.c: Likewise.
22279         * graphite-poly.c: Likewise.
22280         * graphite-scop-detection.c: Likewise.
22281         * graphite-sese-to-poly.c: Likewise.
22282         * graphite.c: Likewise.
22283         * haifa-sched.c: Likewise.
22284         * hw-doloop.c: Likewise.
22285         * ifcvt.c: Likewise.
22286         * init-regs.c: Likewise.
22287         * internal-fn.c: Likewise.
22288         * ipa-chkp.c: Likewise.
22289         * ipa-comdats.c: Likewise.
22290         * ipa-cp.c: Likewise.
22291         * ipa-devirt.c: Likewise.
22292         * ipa-icf-gimple.c: Likewise.
22293         * ipa-icf.c: Likewise.
22294         * ipa-inline-analysis.c: Likewise.
22295         * ipa-inline-transform.c: Likewise.
22296         * ipa-inline.c: Likewise.
22297         * ipa-polymorphic-call.c: Likewise.
22298         * ipa-profile.c: Likewise.
22299         * ipa-prop.c: Likewise.
22300         * ipa-pure-const.c: Likewise.
22301         * ipa-ref.c: Likewise.
22302         * ipa-reference.c: Likewise.
22303         * ipa-split.c: Likewise.
22304         * ipa-utils.c: Likewise.
22305         * ipa-visibility.c: Likewise.
22306         * ipa.c: Likewise.
22307         * ira-build.c: Likewise.
22308         * ira-color.c: Likewise.
22309         * ira-conflicts.c: Likewise.
22310         * ira-costs.c: Likewise.
22311         * ira-emit.c: Likewise.
22312         * ira-lives.c: Likewise.
22313         * ira.c: Likewise.
22314         * jump.c: Likewise.
22315         * langhooks.c: Likewise.
22316         * lcm.c: Likewise.
22317         * loop-doloop.c: Likewise.
22318         * loop-init.c: Likewise.
22319         * loop-invariant.c: Likewise.
22320         * loop-iv.c: Likewise.
22321         * loop-unroll.c: Likewise.
22322         * lower-subreg.c: Likewise.
22323         * lra-assigns.c: Likewise.
22324         * lra-coalesce.c: Likewise.
22325         * lra-constraints.c: Likewise.
22326         * lra-eliminations.c: Likewise.
22327         * lra-lives.c: Likewise.
22328         * lra-remat.c: Likewise.
22329         * lra-spills.c: Likewise.
22330         * lra.c: Likewise.
22331         * lto-cgraph.c: Likewise.
22332         * lto-compress.c: Likewise.
22333         * lto-opts.c: Likewise.
22334         * lto-section-in.c: Likewise.
22335         * lto-section-out.c: Likewise.
22336         * lto-streamer-in.c: Likewise.
22337         * lto-streamer-out.c: Likewise.
22338         * lto-streamer.c: Likewise.
22339         * mcf.c: Likewise.
22340         * mode-switching.c: Likewise.
22341         * modulo-sched.c: Likewise.
22342         * omega.c: Likewise.
22343         * omp-low.c: Likewise.
22344         * optabs.c: Likewise.
22345         * opts-global.c: Likewise.
22346         * passes.c: Likewise.
22347         * plugin.c: Likewise.
22348         * postreload-gcse.c: Likewise.
22349         * postreload.c: Likewise.
22350         * predict.c: Likewise.
22351         * print-rtl.c: Likewise.
22352         * print-tree.c: Likewise.
22353         * profile.c: Likewise.
22354         * real.c: Likewise.
22355         * realmpfr.c: Likewise.
22356         * recog.c: Likewise.
22357         * ree.c: Likewise.
22358         * reg-stack.c: Likewise.
22359         * regcprop.c: Likewise.
22360         * reginfo.c: Likewise.
22361         * regrename.c: Likewise.
22362         * regstat.c: Likewise.
22363         * reload.c: Likewise.
22364         * reload1.c: Likewise.
22365         * reorg.c: Likewise.
22366         * resource.c: Likewise.
22367         * rtl-chkp.c: Likewise.
22368         * rtlanal.c: Likewise.
22369         * rtlhooks.c: Likewise.
22370         * sanopt.c: Likewise.
22371         * sched-deps.c: Likewise.
22372         * sched-ebb.c: Likewise.
22373         * sched-rgn.c: Likewise.
22374         * sched-vis.c: Likewise.
22375         * sdbout.c: Likewise.
22376         * sel-sched-dump.c: Likewise.
22377         * sel-sched-ir.c: Likewise.
22378         * sel-sched.c: Likewise.
22379         * sese.c: Likewise.
22380         * shrink-wrap.c: Likewise.
22381         * simplify-rtx.c: Likewise.
22382         * stack-ptr-mod.c: Likewise.
22383         * stmt.c: Likewise.
22384         * stor-layout.c: Likewise.
22385         * store-motion.c: Likewise.
22386         * stringpool.c: Likewise.
22387         * symtab.c: Likewise.
22388         * target-globals.c: Likewise.
22389         * targhooks.c: Likewise.
22390         * toplev.c: Likewise.
22391         * tracer.c: Likewise.
22392         * trans-mem.c: Likewise.
22393         * tree-affine.c: Likewise.
22394         * tree-browser.c: Likewise.
22395         * tree-call-cdce.c: Likewise.
22396         * tree-cfg.c: Likewise.
22397         * tree-cfgcleanup.c: Likewise.
22398         * tree-chkp-opt.c: Likewise.
22399         * tree-chkp.c: Likewise.
22400         * tree-chrec.c: Likewise.
22401         * tree-complex.c: Likewise.
22402         * tree-data-ref.c: Likewise.
22403         * tree-dfa.c: Likewise.
22404         * tree-diagnostic.c: Likewise.
22405         * tree-dump.c: Likewise.
22406         * tree-eh.c: Likewise.
22407         * tree-emutls.c: Likewise.
22408         * tree-if-conv.c: Likewise.
22409         * tree-inline.c: Likewise.
22410         * tree-into-ssa.c: Likewise.
22411         * tree-iterator.c: Likewise.
22412         * tree-loop-distribution.c: Likewise.
22413         * tree-nested.c: Likewise.
22414         * tree-nrv.c: Likewise.
22415         * tree-object-size.c: Likewise.
22416         * tree-outof-ssa.c: Likewise.
22417         * tree-parloops.c: Likewise.
22418         * tree-phinodes.c: Likewise.
22419         * tree-predcom.c: Likewise.
22420         * tree-pretty-print.c: Likewise.
22421         * tree-profile.c: Likewise.
22422         * tree-scalar-evolution.c: Likewise.
22423         * tree-sra.c: Likewise.
22424         * tree-ssa-address.c: Likewise.
22425         * tree-ssa-alias.c: Likewise.
22426         * tree-ssa-ccp.c: Likewise.
22427         * tree-ssa-coalesce.c: Likewise.
22428         * tree-ssa-copy.c: Likewise.
22429         * tree-ssa-copyrename.c: Likewise.
22430         * tree-ssa-dce.c: Likewise.
22431         * tree-ssa-dom.c: Likewise.
22432         * tree-ssa-dse.c: Likewise.
22433         * tree-ssa-forwprop.c: Likewise.
22434         * tree-ssa-ifcombine.c: Likewise.
22435         * tree-ssa-live.c: Likewise.
22436         * tree-ssa-loop-ch.c: Likewise.
22437         * tree-ssa-loop-im.c: Likewise.
22438         * tree-ssa-loop-ivcanon.c: Likewise.
22439         * tree-ssa-loop-ivopts.c: Likewise.
22440         * tree-ssa-loop-manip.c: Likewise.
22441         * tree-ssa-loop-niter.c: Likewise.
22442         * tree-ssa-loop-prefetch.c: Likewise.
22443         * tree-ssa-loop-unswitch.c: Likewise.
22444         * tree-ssa-loop.c: Likewise.
22445         * tree-ssa-math-opts.c: Likewise.
22446         * tree-ssa-operands.c: Likewise.
22447         * tree-ssa-phiopt.c: Likewise.
22448         * tree-ssa-phiprop.c: Likewise.
22449         * tree-ssa-pre.c: Likewise.
22450         * tree-ssa-propagate.c: Likewise.
22451         * tree-ssa-reassoc.c: Likewise.
22452         * tree-ssa-sccvn.c: Likewise.
22453         * tree-ssa-scopedtables.c: Likewise.
22454         * tree-ssa-sink.c: Likewise.
22455         * tree-ssa-strlen.c: Likewise.
22456         * tree-ssa-structalias.c: Likewise.
22457         * tree-ssa-tail-merge.c: Likewise.
22458         * tree-ssa-ter.c: Likewise.
22459         * tree-ssa-threadedge.c: Likewise.
22460         * tree-ssa-threadupdate.c: Likewise.
22461         * tree-ssa-uncprop.c: Likewise.
22462         * tree-ssa-uninit.c: Likewise.
22463         * tree-ssa.c: Likewise.
22464         * tree-ssanames.c: Likewise.
22465         * tree-stdarg.c: Likewise.
22466         * tree-streamer-in.c: Likewise.
22467         * tree-streamer-out.c: Likewise.
22468         * tree-streamer.c: Likewise.
22469         * tree-switch-conversion.c: Likewise.
22470         * tree-tailcall.c: Likewise.
22471         * tree-vect-data-refs.c: Likewise.
22472         * tree-vect-generic.c: Likewise.
22473         * tree-vect-loop-manip.c: Likewise.
22474         * tree-vect-loop.c: Likewise.
22475         * tree-vect-patterns.c: Likewise.
22476         * tree-vect-slp.c: Likewise.
22477         * tree-vect-stmts.c: Likewise.
22478         * tree-vectorizer.c: Likewise.
22479         * tree-vrp.c: Likewise.
22480         * tree.c: Likewise.
22481         * tsan.c: Likewise.
22482         * ubsan.c: Likewise.
22483         * valtrack.c: Likewise.
22484         * value-prof.c: Likewise.
22485         * var-tracking.c: Likewise.
22486         * varasm.c: Likewise.
22487         * varpool.c: Likewise.
22488         * vmsdbgout.c: Likewise.
22489         * vtable-verify.c: Likewise.
22490         * web.c: Likewise.
22491         * wide-int.cc: Likewise.
22492         * xcoffout.c: Likewise.
22493         * config/aarch64/aarch64-builtins.c: Likewise.
22494         * config/aarch64/aarch64.c: Likewise.
22495         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22496         * config/alpha/alpha.c: Likewise.
22497         * config/arc/arc.c: Likewise.
22498         * config/arm/aarch-common.c: Likewise.
22499         * config/arm/arm-builtins.c: Likewise.
22500         * config/arm/arm-c.c: Likewise.
22501         * config/arm/arm.c: Likewise.
22502         * config/avr/avr-c.c: Likewise.
22503         * config/avr/avr-log.c: Likewise.
22504         * config/avr/avr.c: Likewise.
22505         * config/bfin/bfin.c: Likewise.
22506         * config/c6x/c6x.c: Likewise.
22507         * config/cr16/cr16.c: Likewise.
22508         * config/cris/cris.c: Likewise.
22509         * config/darwin-c.c: Likewise.
22510         * config/darwin.c: Likewise.
22511         * config/epiphany/epiphany.c: Likewise.
22512         * config/epiphany/mode-switch-use.c: Likewise.
22513         * config/epiphany/resolve-sw-modes.c: Likewise.
22514         * config/fr30/fr30.c: Likewise.
22515         * config/frv/frv.c: Likewise.
22516         * config/ft32/ft32.c: Likewise.
22517         * config/h8300/h8300.c: Likewise.
22518         * config/i386/i386-c.c: Likewise.
22519         * config/i386/i386.c: Likewise.
22520         * config/i386/msformat-c.c: Likewise.
22521         * config/i386/winnt-cxx.c: Likewise.
22522         * config/i386/winnt-stubs.c: Likewise.
22523         * config/i386/winnt.c: Likewise.
22524         * config/ia64/ia64-c.c: Likewise.
22525         * config/ia64/ia64.c: Likewise.
22526         * config/iq2000/iq2000.c: Likewise.
22527         * config/lm32/lm32.c: Likewise.
22528         * config/m32c/m32c-pragma.c: Likewise.
22529         * config/m32c/m32c.c: Likewise.
22530         * config/m32r/m32r.c: Likewise.
22531         * config/m68k/m68k.c: Likewise.
22532         * config/mcore/mcore.c: Likewise.
22533         * config/mep/mep-pragma.c: Likewise.
22534         * config/mep/mep.c: Likewise.
22535         * config/microblaze/microblaze-c.c: Likewise.
22536         * config/microblaze/microblaze.c: Likewise.
22537         * config/mips/mips.c: Likewise.
22538         * config/mmix/mmix.c: Likewise.
22539         * config/mn10300/mn10300.c: Likewise.
22540         * config/moxie/moxie.c: Likewise.
22541         * config/msp430/msp430-c.c: Likewise.
22542         * config/msp430/msp430.c: Likewise.
22543         * config/nds32/nds32-cost.c: Likewise.
22544         * config/nds32/nds32-fp-as-gp.c: Likewise.
22545         * config/nds32/nds32-intrinsic.c: Likewise.
22546         * config/nds32/nds32-isr.c: Likewise.
22547         * config/nds32/nds32-md-auxiliary.c: Likewise.
22548         * config/nds32/nds32-memory-manipulation.c: Likewise.
22549         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22550         * config/nds32/nds32-predicates.c: Likewise.
22551         * config/nds32/nds32.c: Likewise.
22552         * config/nios2/nios2.c: Likewise.
22553         * config/nvptx/nvptx.c: Likewise.
22554         * config/pa/pa.c: Likewise.
22555         * config/pdp11/pdp11.c: Likewise.
22556         * config/rl78/rl78-c.c: Likewise.
22557         * config/rl78/rl78.c: Likewise.
22558         * config/rs6000/rs6000-c.c: Likewise.
22559         * config/rs6000/rs6000.c: Likewise.
22560         * config/rx/rx.c: Likewise.
22561         * config/s390/s390-c.c: Likewise.
22562         * config/s390/s390.c: Likewise.
22563         * config/sh/sh-c.c: Likewise.
22564         * config/sh/sh-mem.cc: Likewise.
22565         * config/sh/sh.c: Likewise.
22566         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22567         * config/sh/sh_treg_combine.cc: Likewise.
22568         * config/sol2-c.c: Likewise.
22569         * config/sol2-cxx.c: Likewise.
22570         * config/sol2-stubs.c: Likewise.
22571         * config/sol2.c: Likewise.
22572         * config/sparc/sparc-c.c: Likewise.
22573         * config/sparc/sparc.c: Likewise.
22574         * config/spu/spu-c.c: Likewise.
22575         * config/spu/spu.c: Likewise.
22576         * config/stormy16/stormy16.c: Likewise.
22577         * config/tilegx/mul-tables.c: Likewise.
22578         * config/tilegx/tilegx-c.c: Likewise.
22579         * config/tilegx/tilegx.c: Likewise.
22580         * config/tilepro/mul-tables.c: Likewise.
22581         * config/tilepro/tilepro-c.c: Likewise.
22582         * config/tilepro/tilepro.c: Likewise.
22583         * config/v850/v850-c.c: Likewise.
22584         * config/v850/v850.c: Likewise.
22585         * config/vax/vax.c: Likewise.
22586         * config/visium/visium.c: Likewise.
22587         * config/vms/vms-c.c: Likewise.
22588         * config/vms/vms.c: Likewise.
22589         * config/vxworks.c: Likewise.
22590         * config/xtensa/xtensa.c: Likewise.
22592 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
22594         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22595         Remove operand constraints.  Change operand 2 predicate to
22596         nonmemory operand.  Limit const_int values to mode bitsize.  Only
22597         allow const_int values less than 32 when optimizing for size.
22598         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22599         Remove operand constraints.
22600         (*bt<mode>): Use SImode for const_int values less than 32.
22601         (regmode): Remove mode attribute.
22603 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
22605         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22606         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22607           moxie_legitimate_address_p): New functions.
22608           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22610 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22612         PR tree-optimization/66642
22613         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22614         header comment.  Rename split_edge variable to edge_at_split.  Split
22615         exit edge to create new loop exit bb.  Insert loop exit phis in new
22616         loop exit bb.
22618 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22620         * tree-cfg.c (get_virtual_phi): New function.
22621         * tree-cfg.h (get_virtual_phi): Declare.
22622         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22623         (rewrite_virtuals_into_loop_closed_ssa): New function.
22624         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22625         Declare.
22626         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22627         (transform_to_exit_first_loop_alt): Use
22628         rewrite_virtuals_into_loop_closed_ssa.
22630 2015-07-07  Richard Biener  <rguenther@suse.de>
22632         * fold-const.c (fold_binary_loc): Move
22633         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22634         * match.pd: ... here.
22635         Add (X * C1) % C2 -> 0 simplification pattern derived from
22636         extract_muldiv_1.
22638 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22640         PR target/66780
22641         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22642         change for target/65249.
22644 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
22646         * symtab.c (address_matters_1): Fix typo in comment above.
22647         (can_increase_alignment_p): Likewise.
22649 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22651         * function.c (free_after_compilation): Clear PROP_cfg in
22652         f->curr_properties.
22654 2015-07-07  Richard Biener  <rguenther@suse.de>
22656         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22657         add which use to.
22658         (add_control_edge): Remove excessive vertical space in dumping.
22659         (process_ssa_edge_worklist): Simulate at most one statement and
22660         return whether we did.  Do not simulate PHIs if they are in a
22661         BB not yet simulated.
22662         (ssa_propagate): Adjust to always drain the BB worklist whenever
22663         a BB is available there, likewise the VARYING edges list before
22664         the interesting edge list.
22666 2015-07-07  Christian Bruel  <christian.bruel@st.com>
22668         PR target/52144
22669         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22671 2015-07-07  Richard Biener  <rguenther@suse.de>
22673         PR middle-end/66739
22674         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22675         A - B.
22677 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22679         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
22680         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
22681         Copy operand 0 to a temporary if !ext_register_operand.  Remove
22682         ancient extract_bit_field workaround.
22683         (insv<mode>_1): Rename from mov<mode>_insv_1.
22684         (*insvqi): Rename from *movqi_insv_2.
22685         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22686         for renamed insvsi_1.
22687         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22689 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
22691         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
22692         call to nvptx_reorg_subreg.
22694 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
22696         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22697         * graphite-dependencies.c, graphite-interchange.c,
22698         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22699         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22700         Likewise.
22702 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
22704         * match.pd: Remove element_mode inside HONOR_*.
22705         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22706         (~X | X -> -1, ~X ^ X -> -1): Merge.
22707         * tree.c (build_each_one_cst): New function.
22708         * tree.h (build_each_one_cst): Likewise.
22710 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22712         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22713         PROCESSOR_IAMCU.
22715 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
22717         * config.gcc <mips*-*-*>: Add fused-madd.opt.
22718         * config/mips/mips.opt (mfused-madd): Remove.
22719         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22720         * config/mips/mips.h (TARGET_MIPS8000): New.
22721         (ISA_HAS_FP_MADD4_MSUB4): Remove.
22722         (ISA_HAS_FP_MADDF_MSUBF): Remove.
22723         (ISA_HAS_FP_MADD3_MSUB3): Remove.
22724         (ISA_HAS_NMADD4_NMSUB4): Remove.
22725         (ISA_HAS_NMADD3_NMSUB3): Remove.
22726         (ISA_HAS_FUSED_MADD4): New.
22727         (ISA_HAS_UNFUSED_MADD4): New.
22728         (ISA_HAS_FUSED_MADDF): New.
22729         (ISA_HAS_FUSED_MADD3): New.
22730         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22731         (*fma<mode>4_madd3) New.
22732         (*fma<mode>4_madd4) New.
22733         (*fma<mode>4_maddf) New.
22734         (fms<mode>4) New.
22735         (*fms<mode>4_msub3) New.
22736         (*fms<mode>4_msub4) New.
22737         (fnma<mode>4) New.
22738         (*fnma<mode>4_nmadd3) New.
22739         (*fnma<mode>4_nmadd4) New.
22740         (fnms<mode>4) New.
22741         (*fnms<mode>4_nmsub3) New.
22742         (*fnms<mode>4_nmsub4) New.
22743         (*madd4<mode>) Modify to be unfused only.
22744         (*msub4<mode>) Modify to be unfused only.
22745         (*nmadd4<mode>) Modify to be unfused only.
22746         (*nmsub4<mode>) Modify to be unfused only.
22747         (*madd3<mode>) Remove.
22748         (*msub3<mode>) Remove.
22749         (*nmadd3<mode>) Remove.
22750         (*nmsub3<mode>) Remove.
22751         (*nmadd3<mode>_fastmath) Remove.
22752         (*nmsub3<mode>_fastmath) Remove.
22753         (*nmadd4<mode>_fastmath) Update condition.
22754         (*nmsub4<mode>_fastmath) Update condition.
22756 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22758         PR target/65956
22759         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22760         alignment attribute, exploring one level down for records and arrays.
22762 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22764         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
22765         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
22766         Copy operand 1 to a temporary if !ext_register_operand.  Remove
22767         ancient extract_bit_field workaround.
22768         (*extv<mode>): Rename from *mov<mode>_extv_1.
22769         (*extvqi): Rename from *movqi_extv_1.
22770         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
22771         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
22772         to a temporary if !ext_register_operand.  Remove ancient
22773         extract_bit_field workaround.
22774         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22775         (*extzvqi): Rename from *movqi_extzv_2.
22776         (*testqi_ext_3): Remove modes from const_int_operand predicated
22777         operands.  Add "n" constraint.
22778         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22779         operand.  Add "J" constraint.
22780         (*btsq, *btrq, *btcq peephole2s): Remove mode from
22781         const_0_to_63 predicated operand.
22782         (regmode): New insn attribute.
22783         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
22784         to nonmemory_operand.  Use regmode insn attribute.
22785         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22786         (*jcc_bt<mode>_mask): Remove mode from operand 3.
22787         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22788         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22789         operands.  Use "N" constraint instead of "n".
22791 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22793         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22795 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22797         PR target/66749
22798         * config/i386/i386.c (iamcu_cost): New.
22799         (m_IAMCU): Likewise.
22800         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22801         (processor_target_table): Add an entry for "iamcu".
22802         (processor_alias_table): Likewise.
22803         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22804         (ix86_adjust_cost): Likewise.
22805         (ia32_multipass_dfa_lookahead): Likewise.
22806         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22807         * config/i386/x86-tune.def: Updated for m_IAMCU.
22809 2015-07-06  Richard Biener  <rguenther@suse.de>
22811         PR tree-optimization/66772
22812         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22813         values are available in the PHI node BB when there are
22814         still unexecutable edges.
22816 2015-07-06  Richard Biener  <rguenther@suse.de>
22818         PR tree-optimization/66767
22819         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22820         Make sure to build the alignment test on a SSA name without
22821         final alignment info valid only if the alignment test
22822         evaluates to true.
22824 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
22826         PR target/66620
22827         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22828         loop start when inserting LSETUP.
22830 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22832         PR target/53383
22833         * config/i386/i386.c (ix86_option_override_internal): Allow
22834         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22836 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22838         * read-md.c (decimal_string): Rename to ...
22839         (md_decimal_string): ... this.
22840         (handle_enum): Reflect this.
22842 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22844         PR target/66731
22845         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22847 2015-07-06  Richard Biener  <rguenther@suse.de>
22849         PR middle-end/66759
22850         * match.pd: Add missing constraint of y to REAL_CST in
22851         REAL_CST - x CMP y to y - CST CMP x simplification.
22853 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
22855         PR tree-optimization/66757
22856         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22858 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
22859             Sandra Loosemore <sandra@codesourcery.com>
22861         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22862         Delete extern declaration.
22863         (gprel_constant_p): Add extern declaration.
22864         * config/nios2/constraints.md ("S"): Use gprel_constant_p
22865         instead of nios2_symbol_ref_in_small_data_p.
22866         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22867         (nios2_symbol_ref_in_small_data_p): Make static.
22868         (gprel_constant_p): Make non-static.
22870 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
22872         * doc/fragments.texi (Target Fragment): Convert debian.org
22873         link to use https.
22874         * doc/install.texi (Configuration): Ditto.
22876 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
22878         PR tree-optimization/66718
22879         * tree-vect-stmts.c (vectorizable_call): Replace uses of
22880         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22882         PR tree-optimization/66718
22883         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22884         vectorizable_load, vectorizable_condition): Move vectype,
22885         nunits, ncopies computation after checking what kind of statement
22886         stmt is.
22888 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22890         * target-insns.def (extv, extzv, insv): New targetm instruction
22891         patterns.
22892         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22893         interface.
22894         * recog.c (simplify_while_replacing): Likewise.
22896 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22898         * target-insns.def (doloop_begin, doloop_end): New targetm
22899         instruction patterns.
22900         * loop-init.c: Include target.h.
22901         (pass_loop2::gate): Use the new targetm patterns instead of
22902         HAVE_*/gen_* interface.
22903         (pass_rtl_doloop::gate): Likewise.
22904         (pass_rtl_doloop::execute): Remove preprocessor condition.
22905         * hw-doloop.c: Build unconditionally.
22906         * loop-doloop.c: Likewise.
22907         (doloop_optimize): Use the new targetm patterns instead of
22908         HAVE_*/gen_* interface.
22909         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22910         * modulo-sched.c (doloop_register_get): Likewise.
22912 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22914         * target-insns.def (clear_cache): New targetm instruction pattern.
22915         * builtins.c (expand_builtin___clear_cache): Use it instead of
22916         HAVE_*/gen_* interface.
22918 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22920         * target-insns.def (allocate_stack, check_stack, probe_stack)
22921         (probe_stack_address, split_stack_prologue, split_stack_space_check):
22922         New targetm instruction patterns.
22923         * explow.c (allocate_dynamic_stack_space): Use them instead of
22924         HAVE_*/gen_* interface.
22925         (emit_stack_probe): Likewise.
22926         (probe_stack_range): Likewise.
22927         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22929 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22931         * target-insns.def (stack_protect_set, stack_protect_test): New
22932         targetm instruction patterns.
22933         * cfgexpand.c (stack_protect_prologue): Use them instead of
22934         HAVE_*/gen_* interface.
22935         * function.c (stack_protect_epilogue): Likewise.
22937 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22939         * expr.h (gen_move_insn_uncast): Delete.
22940         * expr.c (gen_move_insn_uncast): Delete.
22942 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22944         * target-insns.def (restore_stack_block, restore_stack_function)
22945         (restore_stack_nonlocal, save_stack_block, save_stack_function)
22946         (save_stack_nonlocal): New targetm instruction patterns.
22947         * builtins.c (expand_builtin_apply): Use them instead of
22948         HAVE_*/gen_* interface.
22949         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22951 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22953         * target-insns.def (trap): New targetm instruction pattern.
22954         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22955         interface.
22956         * explow.c (allocate_dynamic_stack_space): Likewise.
22957         * ifcvt.c (find_if_header): Likewise.
22959 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22961         * target-insns.def (prefetch): New targetm instruction pattern.
22962         * tree-ssa-loop-prefetch.c: Include targeth.
22963         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22964         of HAVE_*/gen_* interface.
22965         * builtins.c (expand_builtin_prefetch): Likewise.
22966         * toplev.c (process_options): Likewise.
22968 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22970         * target-insns.def (untyped_call, untyped_return): New targetm
22971         instruction patterns.
22972         * builtins.c (expand_builtin_apply): Use them instead of
22973         HAVE_*/gen_* interface.
22974         (result_vector): Define unconditionally.
22976 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22978         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22979         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22980         (nonlocal_goto_receiver): New targetm instruction patterns.
22981         * builtins.c (expand_builtin_setjmp_setup): Use them instead
22982         of HAVE_*/gen_* interface.
22983         (expand_builtin_setjmp_receiver): Likewise.
22984         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22985         * except.c (expand_dw2_landing_pad_for_region): Likewise.
22987 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22989         * target.def: Add code_for_* hooks.
22990         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22991         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22992         * target-insns.def (casesi, tablejump): New targetm instruction
22993         patterns.
22994         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22995         (do_tablejump): Likewise.
22996         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22997         (expand_sjlj_dispatch_table): Likewise.
22998         * targhooks.c (default_case_values_threshold): Likewise.
23000 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
23002         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23003         Use rtx_insn * instead of rtx.
23004         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23005         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23006         (nios2_call_tls_get_addr): Likewise.
23007         (nios2_emit_expensive_div): Likewise.
23008         (nios2_emit_move_sequence): Change return type to bool.
23009         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23010         Change return type to bool.
23012 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23014         PR target/66747
23015         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23017 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
23019         PR target/66114
23020         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23021         of register_operand.  Remove constraint.
23023 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
23025         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23026         the first argument.
23028 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
23030         * attribs.c (decl_attributes): Guard inform with the return value
23031         of the preceding warning.
23033 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23035         * doc/invoke.texi (moverride): Move to correct section.
23037 2015-07-03  Richard Biener  <rguenther@suse.de>
23039         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23040         Copy from tree.c
23041         (dt_operand::gen_gimple_expr): After valueizing operands
23042         re-canonicalize operand order for commutative tree codes.
23044 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
23046         PR target/66746.
23047         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23048         is defined.
23049         (__crc32w): Likewise.
23050         (__crc32d): Likewise.
23051         (__rdpmc): Likewise.
23052         (__rdtscp): Likewise.
23053         (_rdpmc): Likewise.
23054         (_rdtscp): Likewise.
23055         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23056         is defined.
23058 2015-07-03  Richard Biener  <rguenther@suse.de>
23060         * fold-const.c (fold_mathfn_compare): Remove.
23061         (fold_inf_compare): Likewise.
23062         (fold_comparison): Move floating point comparison simplifications...
23063         * match.pd: ... to patterns here.  Introduce simple_comparisons
23064         operator list and use it for patterns formerly in fold_comparison.
23066 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23068         PR tree-optimization/66119
23069         * toplev.c (process_options): Don't set up default values for
23070         the sra_max_scalarization_size_{speed,size} parameters.
23071         * tree-sra (analyze_all_variable_accesses): If no values
23072         have been set for the sra_max_scalarization_size_{speed,size}
23073         parameters, call get_move_ratio to get target defaults.
23075 2015-07-03  Richard Biener  <rguenther@suse.de>
23077         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23078         * match.pd: ... here.
23080 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
23082         PR target/37072
23083         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23084         is not actually the default on FreeBSD.
23086 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23088         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23089         definition.
23090         (CMPGE_8HI): Likewise.
23091         (CMPGE_4SI): Likewise.
23092         (CMPGE_2DI): Likewise.
23093         (CMPGE_U16QI): Likewise.
23094         (CMPGE_U8HI): Likewise.
23095         (CMPGE_U4SI): Likewise.
23096         (CMPGE_U2DI): Likewise.
23097         (CMPLE_16QI): Likewise.
23098         (CMPLE_8HI): Likewise.
23099         (CMPLE_4SI): Likewise.
23100         (CMPLE_2DI): Likewise.
23101         (CMPLE_U16QI): Likewise.
23102         (CMPLE_U8HI): Likewise.
23103         (CMPLE_U4SI): Likewise.
23104         (CMPLE_U2DI): Likewise.
23105         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23106         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23107         ALTIVEC_BUILTIN_VEC_CMPLE.
23108         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23109         floating-point vector modes.
23110         (vector_nlt<mode>): New define_expand.
23111         (vector_nltu<mode>): Likewise.
23112         (vector_ngt<mode>): Likewise.
23113         (vector_ngtu<mode>): Likewise.
23115 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
23117         PR rtl-optimization/66706
23118         * combine.c (make_compound_operation): If an AND of SUBREG of
23119         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23121 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
23123         * tree-pass.h (make_pass_ch_vect): New.
23124         * passes.def: Add pass_ch_vect just before pass_if_conversion.
23126         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23127         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23128         make_pass_ch_vect): New.
23129         (pass_ch): Extend ch_base.
23131         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23132         (ch_base::copy_headers): ...here.
23134 2015-07-02  Richard Biener  <rguenther@suse.de>
23136         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23137         * fold-const.c (get_pointer_modulus_and_residue): Remove.
23138         (fold_binary_loc): Implement (T)ptr & CST in terms of
23139         get_pointer_alignment_1.
23140         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23141         Make sure to build the alignment test on a SSA name without
23142         final alignment info valid only after the prologue.
23144 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
23146         * config/cris/cris.md ("epilogue"): Remove condition.
23147         ("prologue"): Ditto.
23149 2015-07-02  Richard Biener  <rguenther@suse.de>
23151         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23152         parameter to record a condition that is false.
23153         (record_conditions): When recording an extra NE_EXPR that is
23154         true also record a EQ_EXPR that is false.
23156 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
23158         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23159         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23160         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
23161         (set_iv, find_interesting_uses_address, add_candidate_1): New
23162         argument to alloc_iv.
23163         (find_interesting_uses_op, find_interesting_uses_cond): Don't
23164         duplicate struct iv.
23165         (free_loop_data): Don't free struct iv explicitly.
23166         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23168 2015-07-01  DJ Delorie  <dj@redhat.com>
23170         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23171         (LIB_SPEC): Add.
23172         (SUPPORTS_DISCRIMINATOR): Define.
23174 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23176         PR bootstrap/66685
23177         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23178         there are no CALLs in the same pattern.
23180 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23182         PR rtl-optimization/61047
23183         * rtlanal.c (get_initial_register_offset): New function.
23184         (rtx_addr_can_trap_p_1): Check offsets of stack references.
23186 2015-07-01  Richard Biener  <rguenther@suse.de>
23188         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23189         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23190         ~X CMP C -> X CMP' ~C to ...
23191         * match.pd: ... patterns here.
23193 2015-07-01  Nick Clifton  <nickc@redhat.com>
23195         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23196         a 16-bit value into a 20-bit memory slot.
23198 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23200         * doc/sourcebuild.texi (AArch64-specific attributes): Document
23201         "aarch64_tiny", "aarch64_small", "aarch64_large",
23202         "aarch64_little_endian", "aarch64_big_endian".
23204 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23206         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23207         Document "aarch64_small_fpic".
23209 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23211         * configure.ac: Add check for aarch64 assembler -fpic relocation
23212         modifier support.
23213         * configure: Regenerate.
23214         * config.in: Regenerate.
23215         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23216         to -fPIC if not support of -fpic relocation modifier in assembler.
23218 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23220         PR bootstrap/66685
23221         * rtl.c (classify_insn): Handle returns in PARALLELs.
23223 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23225         PR middle-end/66633
23226         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23227         to true if the function is nested and if not optimizing.
23228         (convert_local_omp_clauses): Initialize need_frame to true if the
23229         function contains nested functions and if not optimizing.
23231 2015-07-01  Richard Biener  <rguenther@suse.de>
23233         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23234         (X & Y) ^ Y -> ~X & Y transforms to ...
23235         * match.pd: ... here.
23237 2015-07-01  Richard Biener <rguenther@suse.de>
23239         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23240         of converts to avoid uninteresting noise from the conversion
23241         simplifying patterns.
23243 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
23245         * config/c6x/c6x.c (try_rename_operands): Do not depend on
23246         gcc_assert evaluating its argument for side-effect.
23248 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
23250         PR target/64833
23251         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23252         flag_pic is set.
23254 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23256         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23257         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23258         (hash_scc): Add this_ref_p and ref_p parameters and pass them
23259         to the inner DFS walk.
23261 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23263         * target-insns.def (jump): New targetm instruction pattern.
23264         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23265         instead of gen_jump.
23266         (fix_up_crossing_landing_pad): Likewise.
23267         (add_labels_and_missing_jumps): Likewise.
23268         (fix_crossing_conditional_branches): Likewise.
23269         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23270         (force_nonfallthru_and_redirect): Likewise.
23271         * cse.c (cse_insn): Likewise.
23272         * expmed.c (expand_divmod): Likewise.
23273         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23274         * haifa-sched.c (init_before_recovery): Likewise.
23275         (sched_create_recovery_edges): Likewise.
23276         * ifcvt.c (find_cond_trap): Likewise.
23277         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23278         (expand_float, expand_fix): Likewise.
23279         * stmt.c (emit_jump): Likewise.
23281 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23283         * defaults.h (HAVE_load_multiple, gen_load_multiple)
23284         (HAVE_store_multiple, gen_store_multiple): Delete.
23285         * target-insns.def (load_multiple, store_multiple): New targetm
23286         instruction patterns.
23287         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23288         of HAVE_*/gen_* interface.
23290 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23292         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23293         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23294         (gen_mem_signal_fence): Delete.
23295         * target-insns.def (mem_signal_fence, mem_thread_fence)
23296         (memory_barrier): New targetm instruction patterns.
23297         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23298         interface.
23299         (expand_mem_signal_fence): Likewise.
23301 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23303         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23304         * target-insns.def (epilogue, prologue, sibcall_prologue): New
23305         targetm instruction patterns.
23306         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23307         interface.
23308         * calls.c (expand_call): Likewise.
23309         * cfgrtl.c (cfg_layout_finalize): Likewise.
23310         * df-scan.c (df_get_entry_block_def_set): Likewise.
23311         (df_get_exit_block_use_set): Likewise.
23312         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23313         * final.c (final_start_function): Likewise.
23314         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23315         (reposition_prologue_and_epilogue_notes): Likewise.
23316         * reorg.c (find_end_label): Likewise.
23317         * toplev.c (process_options): Likewise.
23319 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
23321         * typed-splay-tree.h: New file.
23323 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
23325         PR debug/66691
23326         * lra-int.h (lra_substitute_pseudo): Add a parameter.
23327         (lra_substitute_pseudo_within_insn): Ditto.
23328         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
23329         of constant.
23330         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
23331         to lra_substitute_pseudo.
23332         * lra-lives.c (process_bb_lives): Add an argument to
23333         lra_substitute_pseudo_within_insn call.
23334         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23335         argument to lra_substitute_pseudo and
23336         lra_substitute_pseudo_within_insn calls.
23337         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23339 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23341         * configure: Regenerated.
23343 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23345         * config.gcc: Support i[34567]86-*-elfiamcu target.
23346         * config/i386/iamcu.h: New.
23347         * config/i386/i386.opt: Add -miamcu.
23348         * doc/invoke.texi: Document -miamcu.
23349         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
23350         off x87/MMX/SSE/AVX codegen for -miamcu.
23351         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23352         __iamcu/__iamcu__ for -miamcu.
23353         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23354         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23355         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23356         * config/i386/i386.c (ix86_option_override_internal): Ignore and
23357         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
23358         MCU by default.  Default long double to 64-bit for Intel MCU.
23359         Turn on -freg-struct-return for Intel MCU.  Issue an error when
23360         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23361         AVX is turned on.
23362         (function_arg_advance_32): Pass value whose size is no larger
23363         than 8 bytes in registers for Intel MCU.
23364         (function_arg_32): Likewise.
23365         (ix86_return_in_memory): Return value whose size is no larger
23366         than 8 bytes in registers for Intel MCU.
23367         (iamcu_alignment): New function.
23368         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23369         true.
23370         (ix86_local_alignment): Don't increase alignment for Intel MCU.
23371         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23372         true.
23374 2015-06-30  Marek Polacek  <polacek@redhat.com>
23376         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
23377         both operands of the resulting expression.
23379         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
23380         the final expression with the operand's type and then convert
23381         it to the type of the expression.
23383 2015-06-30  Richard Biener  <rguenther@suse.de>
23385         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23386         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23387         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23388         * match.pd: ... to patterns here.
23390 2015-06-30  Richard Biener  <rguenther@suse.de>
23392         PR tree-optimization/66704
23393         * tree-vect-data-refs.c (vect_setup_realignment): Use
23394         make_ssa_name for non-SSA name source.
23396 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
23398         PR middle-end/66702
23399         * omp-low.c (simd_clone_adjust): Handle addressable linear
23400         or uniform parameters or non-gimple type uniform parameters.
23402 2015-06-30  Richard Biener  <rguenther@suse.de>
23404         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23405         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23406         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23407         * match.pd: ... here.
23408         Add a few cases of A - B -> A + (-B) when B "easily" negates.
23409         Move (x & y) | x -> x and friends before
23410         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23412 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23414         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23415         -mfix-ut699 is not specified.
23416         (leon3_load): Rename into...
23417         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
23418         is specified.
23420 2015-06-30  Marek Polacek  <polacek@redhat.com>
23422         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23423         * match.pd: ... here.
23425 2015-06-30  Richard Biener  <rguenther@suse.de>
23427         * target-insns.def (canonicalize_funcptr_for_compare): Add.
23428         * fold-const.c (build_range_check): Replace uses of
23429         HAVE_canonicalize_funcptr_for_compare.
23430         (fold_widened_comparison): Likewise.
23431         (fold_sign_changed_comparison): Likewise.
23432         * dojump.c: Include "target.h".
23433         (do_compare_and_jump): Replace uses of
23434         HAVE_canonicalize_funcptr_for_compare and
23435         gen_canonicalize_funcptr_for_compare.
23436         * expr.c (do_store_flag): Likewise.
23438 2015-06-30  Tom de Vries  <tom@codesourcery.com>
23440         PR tree-optimization/66652
23441         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23442         max_loop_iterations to determine if nit + 1 overflows.
23444 2015-06-30  Richard Biener  <rguenther@suse.de>
23446         * tree-vrp.c (register_edge_assert_for_2): Also register
23447         asserts for dominating conversion results.
23449 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
23451         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23452         field in struct iv.
23454 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
23456         PR target/66509
23457         * configure.ac: Fix filds and fildq test for 64-bit.
23458         * configure: Regenerated.
23460 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
23462         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23463         (nvptx_reorg): Here.  Keep the non-subreg pieces.
23465 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
23467         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23468         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23470 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
23472         * config/i386/i386.md (*jcc_1): Use %! in asm template.
23473         Set attribute "length_nobnd" instead of "length".
23474         (*jcc_2): Ditto.
23475         (jump): Ditto.
23476         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23478 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
23480         * config/nios2/nios2.c (nios2_delegitimize_address): Make
23481         assert less restrictive.
23483 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23485         PR fortran/66605
23486         * cgraphunit.c (cgraph_node::finalize_function): Do not call
23487         do_warn_unused_parameter.
23488         * function.c (do_warn_unused_parameter): Move from here.
23489         * function.h (do_warn_unused_parameter): Do not declare.
23491 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23493         PR target/65697
23494         * gcc.target/arm/armv-sync-comp-swap.c: New.
23495         * gcc.target/arm/armv-sync-op-acquire.c: New.
23496         * gcc.target/arm/armv-sync-op-full.c: New.
23497         * gcc.target/arm/armv-sync-op-release.c: New.
23499 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23501         PR target/65697
23502         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23503         initial acquire barrier with final barrier.
23505 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23507         PR target/65697
23508         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23509         initial acquire barrier with final barrier.
23511 2015-06-29  Richard Henderson  <rth@redhat.com>
23513         * config/i386/constraints.md (Bf): New constraint.
23514         * config/i386/i386-c.c (ix86_target_macros): Define
23515         __GCC_ASM_FLAG_OUTPUTS__.
23516         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23517         as flags outputs.
23518         * doc/extend.texi (FlagOutputOperands): Document them.
23520 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
23522         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23523         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23524         unspec name.
23525         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23526         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23527         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23528         (aarch64_symbol_context): Ditto.
23529         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23530         and use new pattern name.
23531         (aarch64_expand_mov_immediate): Ditto.
23532         (aarch64_print_operand): Ditto.
23533         (aarch64_classify_tls_symbol): Ditto.
23535 2015-06-29  Marek Polacek  <polacek@redhat.com>
23536             Marc Glisse  <marc.glisse@inria.fr>
23538         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23539         * match.pd: ... pattern here.
23541 2015-06-29  Tom de Vries  <tom@codesourcery.com>
23543         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23544         function structure.
23546 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23548         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23549         feature description, split out the native option, add a link to
23550         the feature documentation, rearrange and slightly rewrite text.
23551         (Aarch64 options, -mcpu): Likewise.
23552         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
23553         +rdma implies Adv. SIMD.
23555 2015-06-29  Marek Polacek  <polacek@redhat.com>
23557         PR c/66322
23558         * function.c (stack_protect_epilogue): Remove a cast to int.
23559         * doc/invoke.texi: Update -Wswitch-bool description.
23561 2015-06-29  Richard Biener  <rguenther@suse.de>
23563         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23564         * fold-const.c (fold_binary_loc): Move &A - &B simplification
23565         via ptr_difference_const ...
23566         * match.pd: ... here.
23567         When matching (X ^ Y) == Y also match with swapped operands.
23569 2015-06-29  Richard Biener  <rguenther@suse.de>
23571         * lto-streamer.h (LTO_major_version): Bump to 5.
23573 2015-06-29  Richard Biener  <rguenther@suse.de>
23575         PR tree-optimization/66677
23576         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23577         STMT_VINFO_VEC_STMT clobbering less strict.
23579 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
23581         PR middle-end/64130
23582         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23583         division, compute max and min when value ranges for dividend and
23584         divisor are available.
23586 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
23587             Sandra Loosemore <sandra@codesourcery.com>
23589         * regrename.h (regrename_do_replace): Change to return bool.
23590         * regrename.c (rename_chains): Check return value of
23591         regname_do_replace.
23592         (regrename_do_replace): Re-validate the modified insns and
23593         return bool status.
23594         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23595         Update to match rename_chains changes.
23596         * config/c6x/c6x.c (try_rename_operands): Assert that
23597         regrename_do_replace returns true.
23599 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
23601         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23602         operand 2 here.  Use copy_addr_to_reg to copy non-index
23603         register operand 2 to a temporary.
23604         (<mode>_stx): Ditto for operand 1.
23605         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23606         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23607         (ix86_store_bounds): Ditto.
23609 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
23611         * print-tree.c (print_node) [TREE_VEC]: Print its length.
23613 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
23615         * gimple.c (gimple_call_set_fndecl): Remove.
23616         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23617         build1_loc directly instead of build_fold_addr_expr_loc.
23619 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23621         * hash-map.h (hash_map::traverse): Use the definition of the
23622         Key typedef rather than the typedef itself.
23624 2015-06-26  Martin Jambor  <mjambor@suse.cz>
23626         PR debug/66301
23627         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23628         NULL instead of calling dump_enabled_p.
23630 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23632         * config/aarch64/aarch64.opt: (override): New.
23633         * doc/invoke.texi (override): Document.
23634         * config/aarch64/aarch64.c (aarch64_flag_desc): New
23635         (aarch64_fusible_pairs): Likewise.
23636         (aarch64_tuning_flags): Likewise.
23637         (aarch64_tuning_override_function): Likewise.
23638         (aarch64_tuning_override_functions): Likewise.
23639         (aarch64_parse_one_option_token): Likewise.
23640         (aarch64_parse_boolean_options): Likewise.
23641         (aarch64_parse_fuse_string): Likewise.
23642         (aarch64_parse_tune_string): Likewise.
23643         (aarch64_parse_one_override_token): Likewise.
23644         (aarch64_parse_override_string): Likewise.
23645         (aarch64_override_options): Parse the -override string if it
23646         is present.
23648 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23650         * config/aarch64/aarch64-protos.h (tune_params): Remove
23651         const from members.
23652         (aarch64_tune_params): Remove const, change to no longer be
23653         a pointer.
23654         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23655         change to no longer be a pointer, initialize to generic_tunings.
23656         (aarch64_min_divisions_for_recip_mul): Change dereference of
23657         aarch64_tune_params to member access.
23658         (aarch64_reassociation_width): Likewise.
23659         (aarch64_rtx_mult_cost): Likewise.
23660         (aarch64_address_cost): Likewise.
23661         (aarch64_branch_cost): Likewise.
23662         (aarch64_rtx_costs): Likewise.
23663         (aarch64_register_move_cost): Likewise.
23664         (aarch64_memory_move_cost): Likewise.
23665         (aarch64_sched_issue_rate): Likewise.
23666         (aarch64_builtin_vectorization_cost): Likewise.
23667         (aarch64_override_options): Take a copy of the selected tuning
23668         struct in to aarch64_tune_params, rather than just setting
23669         a pointer, change dereferences of aarch64_tune_params to member
23670         accesses.
23671         (aarch64_override_options_after_change): Change dereferences of
23672         aarch64_tune_params to member access.
23673         (aarch64_macro_fusion_p): Likewise.
23674         (aarch_macro_fusion_pair_p): Likewise.
23675         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23677 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23679         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23680         (aarch64_tune_flags): Likewise.
23681         (AARCH64_TUNE_FMA_STEERING): Likewise.
23682         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23683         to AARCH64_FL_USE_FMA_STEERING_PASS.
23684         (cortex-a57.cortex-a53): Likewise.
23685         (cortex-a72): Use cortexa72_tunings.
23686         (cortex-a72.cortex-a53): Likewise.
23687         (exynos-m1): Likewise.
23688         * config/aarch64/aarch64-protos.h (tune_params): Add
23689         a field: extra_tuning_flags.
23690         * config/aarch64/aarch64-tuning-flags.def: New.
23691         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23692         (aarch64_extra_tuning_flags): Likewise.
23693         (aarch64_tune_params): Declare here.
23694         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23695         (cortexa53_tunings): Likewise.
23696         (cortexa57_tunings): Likewise.
23697         (thunderx_tunings): Likewise.
23698         (xgene1_tunings): Likewise.
23699         (cortexa72_tunings): New.
23700         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23701          (gate): Check against aarch64_tune_params.
23702         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23703         aarch64-protos.h.
23705 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23707         * config/aarch64/aarch64-fusion-pairs.def: New.
23708         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23709         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23710         aarch64_fusion_pairs.
23711         (AARCH64_FUSE_MOV_MOVK): Likewise.
23712         (AARCH64_FUSE_ADRP_ADD): Likewise.
23713         (AARCH64_FUSE_MOVK_MOVK): Likewise.
23714         (AARCH64_FUSE_ADRP_LDR): Likewise.
23715         (AARCH64_FUSE_CMP_BRANCH): Likewise.
23717 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23719         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23720         SYMBOL_SMALL_GOT_28K.
23721         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23722         relocation modifiers.
23723         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23724         (ldr_got_small_28k_<mode>): New.
23725         (ldr_got_small_28k_sidi): New.
23726         * config/aarch64/iterators.md (got_modifier): New mode iterator.
23727         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23728         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23729         SYMBOL_SMALL_GOT_28K.
23730         (aarch64_rtx_costs): Add costs for new instruction sequences.
23731         (initialize_aarch64_code_model): Initialize new model.
23732         (aarch64_classify_symbol): Recognize new model and new symbol classification.
23733         (aarch64_asm_preferred_eh_data_format): Support new model.
23734         (aarch64_load_symref_appropriately): Generate new instruction
23735         sequences for -fpic.
23736         (TARGET_USE_PSEUDO_PIC_REG): New definition.
23737         (aarch64_use_pseudo_pic_reg): New function.
23739 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23741         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23742         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23743         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23744         (aarch64_expand_mov_immediate): Ditto.
23745         (aarch64_print_operand): Ditto.
23746         (aarch64_classify_symbol): Ditto.
23748 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
23750         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23752 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
23754         PR bootstrap/66638
23755         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23756         assertion failed.  Remove assertion itself.
23758 2015-06-26  Richard Biener  <rguenther@suse.de>
23760         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23761         and -A CMP CST -> A CMP -CST which is redundant with a pattern
23762         in match.pd.
23763         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23764         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23765         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23766         * match.pd: ... patterns here.
23768 2015-06-26  Marek Polacek  <polacek@redhat.com>
23770         * match.pd ((x | y) & ~(x & y) -> x ^ y,
23771         (x | y) & (~x ^ y) -> x & y): New patterns.
23773 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23775         * rtl.h (emit): Add an optional boolean parameter to control
23776         whether barriers are emitted.
23777         * emit-rtl.c (emit): Likewise.
23778         * gensupport.c (get_emit_function): Return null rather than "emit".
23779         * genemit.c (gen_emit_seq): Handle the null return value.
23780         Don't emit barriers after the final instruction in the sequence.
23781         * gentarget-def.c (main): Don't emit barriers after the instruction.
23783 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23785         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23786         TARGET_UNIFIED_ASM.
23788 2015-06-26  Richard Biener  <rguenther@suse.de>
23790         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23792 2015-06-26  Richard Biener  <rguenther@suse.de>
23794         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23795         irrespective on whether the inner operation has a single use
23796         of both off are constant.
23798 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
23799             Segher Boessenkool  <segher@kernel.crashing.org>
23801         PR target/66412
23802         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23803         before doing PUT_MODE or PUT_CODE on operands to avoid
23804         in-place RTX modification.
23806 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23808         * gentarget-def.c (def_target_insn): Cast return of strtol to
23809         unsigned int.
23811 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23813         * gimple.h (gimple_call_set_fn): Move inline function.
23814         * gimple.c (gimple_call_set_fn): Relocate here.
23816 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
23818         PR target/65979
23819         PR target/66611
23820         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23821         the replacement insn will work.
23823 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23825         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23826         by default.
23828 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23830         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23831         * cgraph.h: Include ipa-ref.h and plugin-api.h.
23832         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23833         (symtab_node::address_can_be_compared_p): Move function.
23834         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23835         definition here.
23836         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23837         * auto-profile.c: Likewise.
23838         * bb-reorder.c: Likewise.
23839         * builtins.c: Likewise.
23840         * calls.c: Likewise.
23841         * cfgexpand.c: Likewise.
23842         * cgraphbuild.c: Likewise.
23843         * cgraphclones.c: Likewise.
23844         * cgraphunit.c: Likewise.
23845         * combine.c: Likewise.
23846         * coverage.c: Likewise.
23847         * data-streamer-in.c: Likewise.
23848         * data-streamer-out.c: Likewise.
23849         * data-streamer.c: Likewise.
23850         * dbxout.c: Likewise.
23851         * dwarf2out.c: Likewise.
23852         * except.c: Likewise.
23853         * expr.c: Likewise.
23854         * final.c: Likewise.
23855         * fold-const.c: Likewise.
23856         * ggc-page.c: Likewise.
23857         * gimple-fold.c: Likewise.
23858         * gimple-iterator.c: Likewise.
23859         * gimple-pretty-print.c: Likewise.
23860         * gimple-streamer-in.c: Likewise.
23861         * gimple-streamer-out.c: Likewise.
23862         * gimple.c: Likewise.
23863         * gimplify.c: Likewise.
23864         * ipa-chkp.c: Likewise.
23865         * ipa-comdats.c: Likewise.
23866         * ipa-cp.c: Likewise.
23867         * ipa-devirt.c: Likewise.
23868         * ipa-icf-gimple.c: Likewise.
23869         * ipa-icf.c: Likewise.
23870         * ipa-inline-analysis.c: Likewise.
23871         * ipa-inline-transform.c: Likewise.
23872         * ipa-inline.c: Likewise.
23873         * ipa-polymorphic-call.c: Likewise.
23874         * ipa-profile.c: Likewise.
23875         * ipa-prop.c: Likewise.
23876         * ipa-pure-const.c: Likewise.
23877         * ipa-ref.c: Likewise.
23878         * ipa-reference.c: Likewise.
23879         * ipa-split.c: Likewise.
23880         * ipa-utils.c: Likewise.
23881         * ipa-visibility.c: Likewise.
23882         * ipa.c: Likewise.
23883         * langhooks.c: Likewise.
23884         * lto-cgraph.c: Likewise.
23885         * lto-compress.c: Likewise.
23886         * lto-opts.c: Likewise.
23887         * lto-section-in.c: Likewise.
23888         * lto-section-out.c: Likewise.
23889         * lto-streamer-in.c: Likewise.
23890         * lto-streamer-out.c: Likewise.
23891         * lto-streamer.c: Likewise.
23892         * omp-low.c: Likewise.
23893         * opts-global.c: Likewise.
23894         * passes.c: Likewise.
23895         * predict.c: Likewise.
23896         * print-tree.c: Likewise.
23897         * profile.c: Likewise.
23898         * ree.c: Likewise.
23899         * sanopt.c: Likewise.
23900         * stor-layout.c: Likewise.
23901         * symtab.c: Likewise.
23902         * toplev.c: Likewise.
23903         * trans-mem.c: Likewise.
23904         * tree-cfg.c: Likewise.
23905         * tree-chkp.c: Likewise.
23906         * tree-eh.c: Likewise.
23907         * tree-emutls.c: Likewise.
23908         * tree-inline.c: Likewise.
23909         * tree-nested.c: Likewise.
23910         * tree-parloops.c: Likewise.
23911         * tree-pretty-print.c: Likewise.
23912         * tree-profile.c: Likewise.
23913         * tree-sra.c: Likewise.
23914         * tree-ssa-alias.c: Likewise.
23915         * tree-ssa-live.c: Likewise.
23916         * tree-ssa-loop-ivcanon.c: Likewise.
23917         * tree-ssa-loop-ivopts.c: Likewise.
23918         * tree-ssa-pre.c: Likewise.
23919         * tree-ssa-sccvn.c: Likewise.
23920         * tree-ssa-strlen.c: Likewise.
23921         * tree-ssa-structalias.c: Likewise.
23922         * tree-streamer-in.c: Likewise.
23923         * tree-streamer-out.c: Likewise.
23924         * tree-streamer.c: Likewise.
23925         * tree-switch-conversion.c: Likewise.
23926         * tree-tailcall.c: Likewise.
23927         * tree-vect-data-refs.c: Likewise.
23928         * tree-vect-stmts.c: Likewise.
23929         * tree-vectorizer.c: Likewise.
23930         * tree.c: Likewise.
23931         * tsan.c: Likewise.
23932         * ubsan.c: Likewise.
23933         * value-prof.c: Likewise.
23934         * varasm.c: Likewise.
23935         * varpool.c: Likewise.
23936         * config/arm/arm.c: Likewise.
23937         * config/bfin/bfin.c: Likewise.
23938         * config/c6x/c6x.c: Likewise.
23939         * config/cris/cris.c: Likewise.
23940         * config/darwin-c.c: Likewise.
23941         * config/darwin.c: Likewise.
23942         * config/i386/i386.c: Likewise.
23943         * config/i386/winnt.c: Likewise.
23944         * config/microblaze/microblaze.c: Likewise.
23945         * config/mips/mips.c: Likewise.
23946         * config/rs6000/rs6000.c: Likewise.
23947         * config/rx/rx.c: Likewise.
23948         * config/s390/s390.c: Likewise.
23949         * config/tilegx/mul-tables.c: Likewise.
23951 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23953         * config/aarch64/aarch64.c, config/alpha/alpha.c,
23954         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23955         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23956         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23957         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23958         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23959         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23960         config/microblaze/microblaze.c, config/mips/mips.c,
23961         config/mmix/mmix.c, config/mn10300/mn10300.c,
23962         config/moxie/moxie.c, config/msp430/msp430.c,
23963         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23964         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23965         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23966         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23967         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23968         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23969         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23970         target-def.h include.
23971         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
23973 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23975         * Makefile.in (TARGET_DEF): Add target-insns.def.
23976         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23977         (build/gentarget-def.o): New rule.
23978         (genprogrtl): Add target-def.
23979         * target-insns.def, gentarget-def.c: New files.
23980         * target.def: Add targetm.have_* and targetm.gen_* hooks,
23981         based on the contents of target-insns.def.
23982         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23983         (HAVE_return, gen_return): Delete.
23984         * target-def.h: Include insn-target-def.h.
23985         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23986         instead of direct calls.  Rely on them to do the appropriate assertions.
23987         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
23988         (convert_jumps_to_returns): Use targetm interface instead of
23989         direct calls.
23990         (thread_prologue_and_epilogue_insns): Likewise.
23991         * reorg.c (find_end_label, dbr_schedule): Likewise.
23992         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23993         * shrink-wrap.c (convert_to_simple_return): Likewise.
23994         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23996 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23998         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23999         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24000         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24001         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24002         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24003         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24004         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24005         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24006         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24007         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24008         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24009         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24010         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24011         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24012         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24013         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24014         includes to end.
24016 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24018         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24019         (unbounded_int_hashmap_traits::key_type): Likewise.
24020         * hash-map.h (hash_map): Get the key type from the traits.
24021         * hash-traits.h (default_hash_traits): By default, inherit from the
24022         template parameter.
24023         * alias.c (alias_set_traits): Delete.
24024         (alias_set_entry_d::children): Use alias_set_hash as the first
24025         template parameter.
24026         (record_alias_subset): Update accordingly.
24027         * except.c (tree_hash_traits): Delete.
24028         (type_to_runtime_map): Use tree_hash as the first template parameter.
24029         (init_eh): Update accordingly.
24030         * genmatch.c (capture_id_map_hasher): Delete.
24031         (cid_map_t): Use nofree_string_hash as first template parameter.
24032         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24033         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24034         Use symbol_compare_hash as the first template parameter in
24035         subdivide_hash_map.
24036         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24037         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24038         template parameter.
24039         * passes.c (pass_registry_hasher): Delete.
24040         (name_to_pass_map): Use nofree_string_hash as the first template
24041         parameter.
24042         (register_pass_name): Update accordingly.
24043         * sanopt.c (sanopt_tree_map_traits): Delete.
24044         (sanopt_tree_triplet_map_traits): Delete.
24045         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24046         template parameter.
24047         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24048         the first template parameter.
24049         * sese.c (rename_map_hasher): Delete.
24050         (rename_map_type): Use tree_ssa_name_hash as the first template
24051         parameter.
24052         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24053         (function_summary::m_map): Use map_hash as the first template
24054         parameter.
24055         (function_summary::release): Update accordingly.
24056         * tree-if-conv.c (phi_args_hash_traits): Delete.
24057         (predicate_scalar_phi): Use tree_operand_hash as the first template
24058         parameter to phi_arg_map.
24059         * tree-inline.h (dependence_hasher): Delete.
24060         (copy_body_data::dependence_map): Use dependence_hash as the first
24061         template parameter.
24062         * tree-inline.c (remap_dependence_clique): Update accordingly.
24063         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24064         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24065         parameter.
24066         (addr_stridxptr): Update accordingly.
24067         * value-prof.c (profile_id_traits): Delete.
24068         (cgraph_node_map): Use profile_id_hash as the first template
24069         parameter.
24070         (init_node_map): Update accordingly.
24071         * config/alpha/alpha.c (string_traits): Delete.
24072         (machine_function::links): Use nofree_string_hash as the first
24073         template parameter.
24074         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24075         * config/m32c/m32c.c (pragma_traits): Delete.
24076         (pragma_htab): Use nofree_string_hash as the first template parameter.
24077         (m32c_note_pragma_address): Update accordingly.
24078         * config/mep/mep.c (pragma_traits): Delete.
24079         (pragma_htab): Use nofree_string_hash as the first template parameter.
24080         (mep_note_pragma_flag): Update accordingly.
24081         * config/mips/mips.c (mips16_flip_traits): Delete.
24082         (mflip_mips16_htab): Use nofree_string_hash as the first template
24083         parameter.
24084         (mflip_mips16_use_mips16_p): Update accordingly.
24085         (local_alias_traits): Delete.
24086         (mips16_local_aliases): Use nofree_string_hash as the first template
24087         parameter.
24088         (mips16_local_alias): Update accordingly.
24090 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24092         * hash-map-traits.h (default_hashmap_traits): Delete.
24094 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24096         * hash-map-traits.h (unbounded_hashmap_traits): New class.
24097         (unbounded_int_hashmap_traits): Likewise.
24098         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24100 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24102         * ipa-icf.h (symbol_compare_hash): New class.
24103         (symbol_compare_hashmap_traits): Use it.
24104         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24105         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24106         (mem_alloc_description::reverse_mem_map_t): Remove redundant
24107         default_hashmap_traits.
24108         * sanopt.c (sanopt_tree_triplet_hash): New class.
24109         (sanopt_tree_triplet_map_traits): Use it.
24111 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24113         * gengtype-parse.c (require_template_declaration): Allow '+' in
24114         template parameters.  Consolidate cases.
24115         * hash-traits.h (int_hash): New class.
24116         * alias.c (alias_set_hash): New structure.
24117         (alias_set_traits): Use it.
24118         * symbol-summary.h (function_summary::map_hash): New class.
24119         (function_summary::summary_hashmap_traits): Use it.
24120         * tree-inline.h (dependence_hash): New class.
24121         (dependence_hasher): Use it.
24122         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24123         * value-prof.c (profile_id_hash): New class.
24124         (profile_id_traits): Use it.
24126 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24128         * config/mips/mips.c (mips16_flip_traits): Use it.
24129         (local_alias_traits, mips16_local_aliases): Convert from a map of
24130         rtxes to a map of symbol names.
24131         (mips16_local_alias): Update accordingly.
24133 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24135         * hash-traits.h (string_hash, nofree_string_hash): New classes.
24136         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24137         * passes.c (pass_registry_hasher): Likewise.
24138         * config/alpha/alpha.c (string_traits): Likewise.
24139         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24140         * config/m32c/m32c.c (pragma_traits): Likewise.
24141         * config/mep/mep.c (pragma_traits): Likewise.
24143 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24145         * tree-hash-traits.h (tree_hash): New class.
24146         * except.c: Include tree-hash-traits.h.
24147         (tree_hash_traits): Use tree_hash.
24149 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24151         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24152         * sese.c: Include tree-hash-traits.h.
24153         (rename_map_hasher): Use tree_ssa_name_hasher.
24155 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24157         * tree-hash-traits.h (tree_decl_hash): New class.
24158         * tree-ssa-strlen.c: Include tree-hash-traits.h.
24159         (stridxlist_hash_traits): Use tree_decl_hash.
24161 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24163         * tree-hash-traits.h: New file.
24164         (tree_operand_hash): New class.
24165         * sanopt.c: Include tree-hash-traits.h.
24166         (sanopt_tree_map_traits): Use tree_operand_hash.
24167         * tree-if-conv.c: Include tree-hash-traits.h.
24168         (phi_args_hash_traits): Use tree_operand_hash.
24169         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24170         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24172 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24174         * hash-map-traits.h: Include hash-traits.h.
24175         (simple_hashmap_traits): New class.
24176         * mem-stats.h (hash_map): Change the default traits to
24177         simple_hashmap_traits<default_hash_traits<Key> >.
24179 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24181         * hash-table.h: Update comments.
24183 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24185         * hash-traits.h (default_hash_traits): New structure.
24186         * hash-set.h (default_hashset_traits): Delete.
24187         (hash_set): Use default_hash_traits<Key> instead of
24188         default_hashset_traits.  Delete hash_entry type and use Key directly.
24189         * ipa-devirt.c (pair_traits): Delete.
24190         (default_hash_traits <type_pair>): Override.
24191         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24192         (odr_types_equivalent_p, add_type_duplicate): Likewise.
24194 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24196         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24198 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24200         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24201         (has_is_empty, is_empty_helper): Delete.
24202         (has_mark_deleted, mark_deleted_helper): Delete.
24203         (has_mark_empty, mark_empty_helper): Delete.
24204         (hash_table::is_deleted): Call the Descriptor unconditionally.
24205         (hash_table::is_empty): Likewise.
24206         (hash_table::mark_deleted): Likewise.
24207         (hash_table::mark_empty): Likewise.
24209 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24211         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
24212         redundant typedefs and members.
24213         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
24214         redundant typedefs.
24215         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24216         * ipa-devirt.c (odr_name_hasher): Likewise.
24217         (polymorphic_call_target_hasher): Likewise.
24218         * ira-costs.c (cost_classes_hasher): Likewise.
24219         * statistics.c (stats_counter_hasher): Likewise.
24220         * trans-mem.c (log_entry_hasher): Likewise.
24221         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24222         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24223         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24224         * var-tracking.c (variable_hasher): Likewise.
24225         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24226         Remove redundant typedefs and members.
24228 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24230         * hash-traits.h (ggc_cache_hasher): Rename to...
24231         (ggc_cache_remove): ...this and remove typedefs.
24232         (ggc_cache_ptr_hash): New class.
24233         * hash-table.h: Update commentary.
24234         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24235         rather than ggc_cache_hasher.
24236         (const_wide_int_hasher, reg_attr_hasher): Likewise.
24237         (const_double_hasher, const_fixed_hasher): Likewise.
24238         * function.c (insn_cache_hasher): Likewise.
24239         * trans-mem.c (tm_wrapper_hasher): Likewise.
24240         * tree.h (tree_decl_map_cache_hasher): Likewise.
24241         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24242         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24243         * ubsan.c (tree_type_map_cache_hasher): Likewise.
24244         * varasm.c (tm_clone_hasher): Likewise.
24245         * config/i386/i386.c (dllimport_hasher): Likewise.
24246         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24247         (tree_hasher): Likewise.
24249 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24251         * hash-traits.h (ggc_hasher): Rename to...
24252         (ggc_remover): ...this and remove typedefs.
24253         (ggc_cache_hasher): Update accordingly.  Add typedefs.
24254         (ggc_ptr_hash): New class.
24255         * hash-table.h: Update comment.
24256         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24257         ggc_hasher.
24258         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24259         (tree_descriptor_hasher): Likewise.
24260         * cgraph.c (function_version_hasher): Likewise.
24261         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24262         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24263         (dw_loc_list_hasher, addr_hasher): Likewise.
24264         * function.h (used_type_hasher): Likewise.
24265         * function.c (temp_address_hasher): Likewise.
24266         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24267         * libfuncs.h (libfunc_hasher): Likewise.
24268         * lto-streamer.h (decl_state_hasher): Likewise.
24269         * optabs.c (libfunc_decl_hasher): Likewise.
24270         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24271         * varasm.c (section_hasher, object_block_hasher): Likewise.
24272         (const_rtx_desc_hasher): Likewise.
24273         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24274         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24276 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24278         * hash-traits.h (free_ptr_hash): New class.
24279         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24280         rather than typed_free_remove.  Remove redudant typedefs.
24281         (external_ref_hasher): Likewise.
24282         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24283         (ehspec_hasher): Likewise.
24284         * ggc-common.c (saving_hasher): Likewise.
24285         * gimplify.c (gimplify_hasher): Likewise.
24286         * haifa-sched.c (delay_i2_hasher): Likewise.
24287         * loop-invariant.c (invariant_expr_hasher): Likewise.
24288         * loop-iv.c (biv_entry_hasher): Likewise.
24289         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24290         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24291         * tree-cfg.c (locus_discrim_hasher): Likewise.
24292         * tree-eh.c (finally_tree_hasher): Likewise.
24293         * tree-into-ssa.c (var_info_hasher): Likewise.
24294         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24295         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24296         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24297         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24298         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24299         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24300         (shared_bitmap_hasher): Likewise.
24301         * tree-ssa-threadupdate.c (redirection_data): Likewise.
24302         * tree-vectorizer.h (peel_info_hasher): Likewise.
24303         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24304         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24306 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24308         * hash-table.h: Update comments.
24309         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24310         (nofree_ptr_hash): New class.
24311         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24312         than typed_noop_remove.  Remove redudant typedefs.
24313         * attribs.c (attribute_hasher): Likewise.
24314         * cfg.c (bb_copy_hasher): Likewise.
24315         * cselib.c (cselib_hasher): Likewise.
24316         * dse.c (invariant_group_base_hasher): Likewise.
24317         * dwarf2cfi.c (trace_info_hasher): Likewise.
24318         * dwarf2out.c (macinfo_entry_hasher): Likewise.
24319         (comdat_type_hasher, loc_list_hasher): Likewise.
24320         * gcse.c (pre_ldst_expr_hasher): Likewise.
24321         * genmatch.c (id_base): Likewise.
24322         * genrecog.c (test_pattern_hasher): Likewise.
24323         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24324         * haifa-sched.c (delay_i1_hasher): Likewise.
24325         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24326         * ipa-icf.h (congruence_class_group_hash): Likewise.
24327         * ipa-profile.c (histogram_hash): Likewise.
24328         * ira-color.c (allocno_hard_regs_hasher): Likewise.
24329         * lto-streamer.h (string_slot_hasher): Likewise.
24330         * lto-streamer.c (tree_entry_hasher): Likewise.
24331         * plugin.c (event_hasher): Likewise.
24332         * postreload-gcse.c (expr_hasher): Likewise.
24333         * store-motion.c (st_expr_hasher): Likewise.
24334         * tree-sra.c (uid_decl_hasher): Likewise.
24335         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24336         (ssa_name_var_hash): Likewise.
24337         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24338         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24339         * tree-ssa-pre.c (pre_expr_d): Likewise.
24340         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24341         * vtable-verify.h (registration_hasher): Likewise.
24342         * vtable-verify.c (vtbl_map_hasher): Likewise.
24343         * config/arm/arm.c (libcall_hasher): Likewise.
24344         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24345         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24346         * config/sol2.c (comdat_entry_hasher): Likewise.
24347         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24348         (print_fold_checksum, fold_checksum_tree): Likewise.
24349         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24350         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24351         (fold_build_call_array_loc): Likewise.
24352         * tree-ssa-ccp.c (gimple_htab): Likewise.
24353         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24354         rather than pointer_type.
24356 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24358         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24359         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24361 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24363         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24364         (ggc_hasher::ggc_mx): Likewise.
24365         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
24366         that duplicate ggc_hasher ones.
24368 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24370         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24371         (gt_cleare_cache): Check here for deleted and empty entries.
24372         Replace handle_cache_entry with a call to keep_cache_entry.
24373         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24374         (ggc_cache_hasher::keep_cache_entry): New function.
24375         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24376         (tm_wrapper_hasher::keep_cache_entry): New function.
24377         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24378         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24379         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24380         (type_cache_hasher::keep_cache_entry): New function.
24381         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24382         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24383         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24384         (tree_type_map_cache_hasher::keep_cache_entry): New function.
24385         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24386         (tm_clone_hasher::keep_cache_entry): New function.
24387         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24388         (dllimport_hasher::keep_cache_entry): New function.
24390 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24392         * hash-table.h: Include hash-traits.h.
24393         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24394         (ggc_cache_hasher): Move to...
24395         * hash-traits.h: ...this new file.
24397 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24399         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24400         struct cl_optimization.
24401         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24402         * tree.c (make_node_stat): Allocate cl_optimization struct.
24403         (copy_node_stat): Allocate and copy cl_optimization struct.
24405 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24407         * function.h (struct incoming_args): Move struct.
24408         (pass_by_reference, reference_callee_copied): Remove prototypes.
24409         * emit-rtl.h (struct incoming_args): Relocate struct here.
24410         * calls.h (pass_by_reference, reference_callee_copied): Relocate
24411         prototypes here.
24412         * function.c (pass_by_reference, reference_callee_copied): Move.
24413         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24414         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24415         * ipa-chkp.c: Include calls.h.
24417 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
24419         * alias.h (alias_set_type): Move typedef.
24420         * coretypes.h (alias_set_type): Relocate typedef here.
24421         * rtl.h: Don't include alias.h.
24423 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24425         * cgraph.h (cgraph_rtl_info): Move to rtl.h
24426         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24427         and instance.
24428         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24429         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24430         doesn't exist.
24431         * calls.c: Include hard-reg-set.h before rtl.h.
24432         * ira.c: Likewise.
24434 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24435             Vladimir Makarov  <vmakarov@redhat.com>
24437         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24438         Add assert.
24440 2015-06-25  Richard Biener  <rguenther@suse.de>
24442         * fold-const.c (fold_binary_loc): Move simplification of
24443         (X <<>> C1) & C2 ...
24444         * match.pd: ... here.
24446 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
24448         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24450 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24452         * match.pd: Add patterns for vec_conds between 1 and 0.
24454 2015-06-25  Richard Biener  <rguenther@suse.de>
24456         * tree-vect-stmts.c (vectorizable_conversion): Do not set
24457         STMT_VINFO_VEC_STMT for SLP.
24458         (vectorizable_store): Likewise.
24459         (vectorizable_load): Likewise.
24460         (vect_transform_stmt): Catch SLP vectorization clobbering
24461         STMT_VINFO_VEC_STMT.
24463 2015-06-25  Richard Biener  <rguenther@suse.de>
24465         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24466         dumping.
24467         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24468         cleanup resulting dead code and parameters.
24469         (vect_transform_slp_perm_load): Adjust.
24471 2015-06-25  Nick Clifton  <nickc@redhat.com>
24473         * config/bfin/bfin.c (bfin_expand_prologue): Set
24474         current_function_static_stack_size if flag_stack_usage_info is set.
24475         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24476         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24477         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24478         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24480 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24482         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24483         comment that the generated IV is unsigned.
24485 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24487         PR target/29693
24488         * config/arm/arm.c (arm_dbx_register_number): Return
24489         DWARF_FRAME_REGISTERS by default.
24491 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24493         * dominance.c (calculate_dominance_info): Fix verify_dominators call
24494         argument.  Call verify_dominator when reusing dominator info.
24496 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
24498         PR target/66563
24499         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24500         an additional element of the unspec vector.  Modify indices
24501         of operands.
24502         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24503         * config/sh/sh.c (prepare_move_operands): Pass incremented
24504         const_int to gen_GOTaddr2picreg.
24505         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24507 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24509         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24510         Condition on TARGET_FLOAT.
24512 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24514         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24515         and (no)crypto.
24517 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24519         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24521         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24522         aarch64_err_no_fpadvsimd.
24524         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24525         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24526         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24527         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24528         Turn error into assert, test TARGET_FLOAT.
24529         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24530         TARGET_FLOAT.
24532 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
24534         PR debug/66482
24535         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24537 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
24539         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24541 2015-06-24  Renlin Li <renlin.li@arm.com>
24543         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24544         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24546 2015-06-24  Richard Biener  <rguenther@suse.de>
24548         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24549         (main): Likewise.
24550         (lower_opt_convert): Support lowering of conditional view_convert.
24551         (parser::parse_operation): Likewise.
24552         (parser::parse_for): Likewise.
24554 2015-06-24  Renlin Li  <renlin.li@arm.com>
24556         * varasm.c (emit_local): Use unsigned int for align variable.
24558 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24560         PR target/63408
24561         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24562         for negative numbers.
24564 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24566         PR rtl-optimization/66306
24567         * reload.c (find_reloads): Swap the match_dup info for
24568         commutative operands.
24570 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24572         * config/s390/vx-builtins.md
24573         ("vec_scatter_element<mode>_<non_vec_int>")
24574         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24575         attribute with bhfgq.
24577 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24579         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24581 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24583         * config/s390/s390-builtin-types.def: Add flag to indicate the
24584         options under which the function type is needed.
24585         * config/s390/s390-builtins.def: Add flag to indicate the options
24586         under which the builtin is enabled.
24587         * config/s390/s390-builtins.h: Add flags parameter to macro
24588         definitions.
24589         (bflags_for_builtin): New function.
24590         (flags_for_builtin): Renamed to ...
24591         (opflags_for_builtin): ... this.
24592         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24593         flags_for_builtin to bflags_for_builtin and
24594         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24595         * config/s390/s390.c: Add initialization of bflags_builtin and
24596         opflags_builtin arrays.
24597         Remove code for flags_builtin.
24598         (s390_init_builtins): Only create builtin function types if one of
24599         their flags is active.
24600         Only create builtins if all of their flags are active.
24601         (s390_expand_builtin): Rename flags_for_builtin to
24602         opflags_for_builtin.
24604 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24606         * config/s390/vecintrin.h: Remove internal builtins.
24608 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24610         * config/s390/s390.c (s390_secondary_reload): Fix check for
24611         GENERAL_REGS register class.
24613 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24615         * config/s390/s390.c (s390_support_vector_misalignment): Call
24616         default implementation for !TARGET_VX.
24618 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24620         * config/s390/s390.c (s390_legitimate_constant_p): Add
24621         TARGET_VX check.
24623 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24625         * config/s390/s390.c (s390_vector_abi): New variable definition.
24626         (s390_check_type_for_vector_abi): New function.
24627         (TARGET_ASM_FILE_END): New macro definition.
24628         (s390_asm_file_end): New function.
24629         (s390_function_arg): Call s390_check_type_for_vector_abi.
24630         (s390_gimplify_va_arg): Likewise.
24631         * configure: Regenerate.
24632         * configure.ac: Check for .gnu_attribute Binutils feature.
24634 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
24636         PR target/65803
24637         * config/bfin/bfin.c (hwloop_optimize): Initialize
24638         JUMP_LABEL for newly created jump.
24640 2015-06-23  Tristan Gingold  <gingold@adacore.com>
24642         * collect-utils.c (collect_wait): Unlink the response file here
24643         instead of...
24644         (do_wait): ...here.
24645         (utils_cleanup): ...and here.
24647 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
24649         * df-scan.c: Don't include target-def.h.
24650         * targhooks.c: Likewise.
24651         * config/arm/arm-c.c: Likewise.
24652         * config/i386/i386-c.c: Likewise.
24653         * config/nds32/nds32-cost.c: Likewise.
24654         * config/nds32/nds32-fp-as-gp.c: Likewise.
24655         * config/nds32/nds32-intrinsic.c: Likewise.
24656         * config/nds32/nds32-isr.c: Likewise.
24657         * config/nds32/nds32-md-auxiliary.c: Likewise.
24658         * config/nds32/nds32-memory-manipulation.c: Likewise.
24659         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24660         * config/nds32/nds32-predicates.c: Likewise.
24662 2015-06-23  Richard Biener  <rguenther@suse.de>
24664         PR tree-optimization/66636
24665         * tree-vect-stmts.c (vectorizable_store): Properly compute the
24666         def type for further defs for strided stores.
24668 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
24670         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24671         conditional selects.
24672         (setcc_int<mode>, setcc_float<mode>): Reformat.
24674 2015-06-23  Marek Polacek  <polacek@redhat.com>
24676         * match.pd ((x + y) - (x | y) -> x & y,
24677         (x + y) - (x & y) -> x | y): New patterns.
24679 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
24681         PR 65711
24682         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24683         '-dynamic-linker' within %{!shared: ...}.
24685 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
24687         PR target/66560
24688         * config/i386/predicates.md (addsub_vm_operator): New predicate.
24689         (addsub_vs_operator): Ditto.
24690         (addsub_vs_parallel): Ditto.
24691         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24692         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24693         Put minus RTX before plus and adjust vec_merge selector.
24694         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24695         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24696         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24697         (addsub vec_merge splitters): New combiner splitters.
24698         (addsub vec_select/vec_concat splitters): Ditto.
24700 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
24702         PR tree-optimization/66449
24703         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24704         POINTER_PLUS_EXPR for pointers.
24706 2015-06-23  Alan Modra  <amodra@gmail.com>
24708         * rtlanal.c (commutative_operand_precedence): Correct comments.
24709         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24710         declaration.  Return an int.  Distinguish REG,REG return from
24711         others.
24712         (struct simplify_plus_minus_op_data): Make local to function.
24713         (simplify_plus_minus): Don't set canonicalized if merely sorting
24714         registers.  Avoid packing ops if nothing changes.  White space fixes.
24716 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
24718         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24719         -fdump-ada-spec is passed but not if -fsyntax-only is.
24721 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
24723         PR bootstrap/63740
24724         * lra-lives.c (process_bb_lives): Check insn copying the same
24725         reload pseudo and don't create a copy for it.
24727 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24729         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24730         for cond_stmt.
24732 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24734         * builtins.def (DEF_GOMP_BUILTIN): Test
24735         'flag_tree_parallelize_loops > 1' instead of
24736         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
24738 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24740         * dominance.c (calculate_dominance_info): Verify dominators if
24741         early-out.
24743 2015-06-22  Marek Polacek  <polacek@redhat.com>
24745         * match.pd ((x ^ y) ^ (x | y) -> x & y,
24746         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24747         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24748         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24750 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
24752         PR target/65871
24753         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24754         cost of embedded comparison.
24756 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24758         PR target/65914
24759         * config/rs6000/predicates.md (altivec_register_operand): Permit
24760         virtual stack registers.
24761         (vsx_register_operand): Likewise.
24762         (vfloat_operand): Likewise.
24763         (vint_operand): Likewise.
24764         (vlogical_operand): Likewise.
24766 2015-06-22  Richard Biener  <rguenther@suse.de>
24768         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24769         and single_scalar_iteration_cost members.
24770         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24771         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24772         (vect_get_single_scalar_iteration_cost): Remove.
24773         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24774         Use LOOP_VINFO_SCALAR_ITERATION_COST.
24775         * tree-vect-loop.c (destroy_loop_vec_info): Free
24776         scalar_cost_vec.
24777         (vect_get_single_scalar_iteration_cost): Compute result into
24778         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24779         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
24780         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24781         (vect_estimate_min_profitable_iters): Use them.
24783 2015-06-22  Christian Bruel  <christian.bruel@st.com>
24785         PR target/52144
24786         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24787         (TARGET_INSERT_ATTRIBUTES): Define.
24788         (thumb_flipper): New var.
24789         * config/arm/arm.opt (-mflip-thumb): New switch.
24791 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24792             Martin Liska  <mliska@suse.cz>
24794         PR ipa/65908
24795         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24796         construction of arg_types.
24797         (sem_function::sem_function): Likewise.
24798         (sem_function::~sem_function): Remove destruction of arg_types.
24799         (sem_function::compatible_parm_types_p): New function.
24800         (sem_function::equals_wpa): Reorg matching of return values
24801         and parameter types.
24802         (sem_function::equals_private): Reorg mathcing of argument types.
24803         (sem_function::parse_tree_args): Remove.
24804         * ipa-icf.h (init_wpa): Do not call it.
24805         (parse_tree_args): Remove.
24806         (compatible_parm_types_p): Declare.
24807         (result_type): Remove.
24808         (arg_types): Remove.
24810 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24812         PR ipa/66351
24813         * ipa-polymorphic-call.c
24814         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24815         initializing alias oracle; fix formating; set base_alias_set if it
24816         is known.
24818 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
24820         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24821         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24822         (find_inc): Likewise.
24823         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24824         swapping.
24825         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24826         * df-scan.c (df_swap_refs): Remove.
24827         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24828         * dominance.c (link_roots): Use std::swap instead of manually swapping.
24829         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24830         * fold-const.c (fold_relational_const): Likewise.
24831         * genattrtab.c (simplify_test_exp): Likewise.
24832         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24833         gimple_simplify): Likewise.
24834         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24835         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24836         * ipa-devirt.c (add_type_duplicate): Likewise.
24837         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24838         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24839         * lra.c (lra_create_copy): Likewise.
24840         * lto-streamer-out.c (DFS::DFS): Likewise.
24841         * modulo-sched.c (get_sched_window): Likewise.
24842         * omega.c (omega_pretty_print_problem): Likewise.
24843         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24844         * reload1.c (reloads_unique_chain_p): Likewise.
24845         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24846         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24847         use std::swap.
24848         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24849         manually swapping.
24850         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24851         predicate_mem_writes): Likewise.
24852         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24853         * tree-predcom.c (combine_chains): Likewise.
24854         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24855         refs_may_alias_p_1): Likewise.
24856         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24857         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24858         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24859         number_of_iterations_cond): Likewise.
24860         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24861         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24862         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24863         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24864         * tree-vrp.c (extract_range_from_binary_expr_1,
24865         extract_range_from_unary_expr_1): Likewise.
24867 2015-06-20  Marek Polacek  <polacek@redhat.com>
24869         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24871 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24873         PR target/66591
24874         * config/sh/sh.c (prepare_move_operands): Replace subreg
24875         index term with R0 for base and index addressing.
24877 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
24879         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24880         op1 is an fp zero.
24881         (movsf_aarch64): Change condition from register_operand to
24882         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
24883         load1.  Change type for alternative 7 to store1.
24884         (movdf_aarch64): Likewise.
24886 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
24888         * config/vax/vax.md: Adjust sign/zero extend patterns to
24889         handle SUBREGs in operands[1].
24891 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24893         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24894         of manually swapping.
24895         (expand_vec_perm_interleave2): Likewise.
24897 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
24899         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24900         reuse bounds created for abnormal ssa names.
24902 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
24904         * config/nvptx/nvptx.md (allocate_stack): Rename to...
24905         (allocate_stack_<mode>): ... this, and add :P on both
24906         match_operand and unspec.
24907         (allocate_stack): New expander.
24909 2015-06-19  Christian Bruel  <christian.bruel@st.com>
24911         PR target/66541
24912         PR target/52144
24913         * config/arm/arm.c (arm_set_current_function): Handle
24914         explicit default options.
24916 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24918         * config/i386/i386.md (*movsicc_noc_zext): New insn.
24919         (zero-extended cmove with mem peephole2): New pattern.
24920         (cmove with mem peephole2): Merge patterns.
24922 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
24924         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24926 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
24928         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24929         * config/mips/mips.md (*madd4<mode>): Ditto.
24930         (*nmadd3<mode>) Ditto.
24931         (*nmadd4<mode>_fastmath): Ditto.
24932         (*nmadd3<mode>_fastmath): Ditto.
24933         (*nmsub4<mode>): Ditto.
24934         (*nmsub3<mode>): Ditto.
24935         (*nmsub4<mode>_fastmath): Ditto.
24936         (*nmsub3<mode>_fastmath): Ditto.
24938 2015-06-18  Michael Matz  <matz@suse.de>
24940         PR middle-end/66253
24941         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24942         grouped strided stores.
24943         (vectorizable_load): Don't use the DR from first_stmt in
24944         the non-SLP grouped strided case.
24946 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24948         PR target/66569
24949         * function.c (assign_bounds): Add arguments assign_regs,
24950         assign_special, assign_bt.
24951         (assign_parms): For vararg functions handle bounds in BT
24952         and special slots after incoming vararg bounds.
24954 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24956         PR middle-end/66568
24957         * cfgexpand.c (expand_return): Handle missing bounds.
24958         (expand_gimple_stmt_1): Likewise.
24959         * tree-chkp.c (chkp_expand_zero_bounds): New.
24960         * tree-chkp.h (chkp_expand_zero_bounds): New.
24962 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24964         PR middle-end/66567
24965         * ipa-chkp.c (chkp_maybe_create_clone): Require
24966         functions to be instrumentable.
24967         * tree-chkp.c (chkp_replace_function_pointer): Use
24968         chkp_instrumentable_p instead of attribute check.
24970 2015-06-18  Richard Biener  <rguenther@suse.de>
24972         PR tree-optimization/66510
24973         * tree-vect-stmts.c (vectorizable_load): Properly compute the
24974         number of vector loads for SLP permuted loads.
24975         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24976         check the stride for loop vectorization.
24977         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24978         vectorization factor.
24979         (vect_analyze_group_access): If the group size is not a power
24980         of two require a epilogue loop.
24981         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24982         compute and optimizing and alias test pruning after final
24983         vectorization factor computation.
24984         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24985         vector alignment.
24986         (vect_transform_slp_perm_load): Properly compute the original
24987         number of vector load stmts.
24989 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24991         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24992         "unlikely character , in @var" warning.
24994 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
24996         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24997         (ix86_function_arg_advance): Ditto.
24998         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
25000 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25002         * function.h (struct rtl_data): Remove struct and accessor macros.
25003         * emit-rtl.h (struct rtl_data): Relocate to here.
25004         * Makefile.in (GTFILES): Add emit-rtl.h.
25005         * df-core.c: Include emit-rtl.h.
25006         * genattrtab.c: Likewise.
25007         * genconditions.c: Likewise.
25008         * genpreds.c: Likewise.
25009         * genrecog.c: Likewise.
25010         * regcprop.c: Likewise.
25011         * resource.c: Likewise.
25012         * sched-rgn.c: Likewise.
25013         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25014         * config/i386/winnt.c: Likewise.
25016 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
25018         PR middle-end/66429
25019         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25020         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
25021         and has_force_vectorize_loops flags from cfun into
25022         child_cfun.
25023         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25024         if simduid is non-NULL.
25025         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25026         * passes.def (pass_simduid_cleanup): Add new pass after loop
25027         passes.
25028         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25029         indirection from htab argument's type.
25030         (shrink_simd_arrays): New function.
25031         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
25032         Don't call adjust_simduid_builtins if there are no loops.
25033         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25034         (pass_simduid_cleanup::execute): New method.
25035         (make_pass_simduid_cleanup): New function.
25037 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
25039         * tree-core.h (tree_target_option): Make opts field a pointer to a
25040         cl_target_option instead of an instance of the struct.
25041         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25042         the structure.
25043         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25044         TARGET_OPTION_NODE.
25045         (copy_node_stat): Allocate and copy struct cl_target_option.
25047 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25049         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25050         Remove conditional exposure of prototypes.
25051         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25052         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
25053         definitions in tree.h with functions.
25054         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25055         anon_aggrname_p.
25056         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25058 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
25060         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25061         (*cmp<mode>_signed): ... this.
25062         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25063         (*cmp<mode>_unsigned): ... this.  Remove %b.
25065 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25067         * coretypes.h: Include input.h and as-a.h.
25068         * rtl.h: Include input.h and as-a.h for generator files.
25069         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25070         * vec.c: Don't include diagnostic-core.h.
25071         * alias.c: Do not include input.h, line-map.h or is-a.h.
25072         * asan.c: Likewise.
25073         * attribs.c: Likewise.
25074         * auto-inc-dec.c: Likewise.
25075         * auto-profile.c: Likewise.
25076         * bb-reorder.c: Likewise.
25077         * bt-load.c: Likewise.
25078         * builtins.c: Likewise.
25079         * caller-save.c: Likewise.
25080         * calls.c: Likewise.
25081         * ccmp.c: Likewise.
25082         * cfg.c: Likewise.
25083         * cfganal.c: Likewise.
25084         * cfgbuild.c: Likewise.
25085         * cfgcleanup.c: Likewise.
25086         * cfgexpand.c: Likewise.
25087         * cfghooks.c: Likewise.
25088         * cfgloop.c: Likewise.
25089         * cfgloop.h: Likewise.
25090         * cfgloopanal.c: Likewise.
25091         * cfgloopmanip.c: Likewise.
25092         * cfgrtl.c: Likewise.
25093         * cgraph.c: Likewise.
25094         * cgraphbuild.c: Likewise.
25095         * cgraphclones.c: Likewise.
25096         * cgraphunit.c: Likewise.
25097         * cilk-common.c: Likewise.
25098         * combine-stack-adj.c: Likewise.
25099         * combine.c: Likewise.
25100         * compare-elim.c: Likewise.
25101         * convert.c: Likewise.
25102         * coverage.c: Likewise.
25103         * cppbuiltin.c: Likewise.
25104         * cprop.c: Likewise.
25105         * cse.c: Likewise.
25106         * cselib.c: Likewise.
25107         * data-streamer-in.c: Likewise.
25108         * data-streamer-out.c: Likewise.
25109         * data-streamer.c: Likewise.
25110         * dbxout.c: Likewise.
25111         * dce.c: Likewise.
25112         * ddg.c: Likewise.
25113         * debug.c: Likewise.
25114         * df-core.c: Likewise.
25115         * df-problems.c: Likewise.
25116         * df-scan.c: Likewise.
25117         * df.h: Likewise.
25118         * dfp.c: Likewise.
25119         * diagnostic-core.h: Likewise.
25120         * diagnostic.c: Likewise.
25121         * dojump.c: Likewise.
25122         * dominance.c: Likewise.
25123         * domwalk.c: Likewise.
25124         * double-int.c: Likewise.
25125         * dse.c: Likewise.
25126         * dumpfile.c: Likewise.
25127         * dumpfile.h: Likewise.
25128         * dwarf2asm.c: Likewise.
25129         * dwarf2cfi.c: Likewise.
25130         * dwarf2out.c: Likewise.
25131         * emit-rtl.c: Likewise.
25132         * et-forest.c: Likewise.
25133         * except.c: Likewise.
25134         * explow.c: Likewise.
25135         * expmed.c: Likewise.
25136         * expr.c: Likewise.
25137         * final.c: Likewise.
25138         * fixed-value.c: Likewise.
25139         * fold-const.c: Likewise.
25140         * function.c: Likewise.
25141         * fwprop.c: Likewise.
25142         * gcc-plugin.h: Likewise.
25143         * gcse.c: Likewise.
25144         * generic-match-head.c: Likewise.
25145         * ggc-page.c: Likewise.
25146         * gimple-builder.c: Likewise.
25147         * gimple-expr.c: Likewise.
25148         * gimple-fold.c: Likewise.
25149         * gimple-iterator.c: Likewise.
25150         * gimple-low.c: Likewise.
25151         * gimple-match-head.c: Likewise.
25152         * gimple-pretty-print.c: Likewise.
25153         * gimple-ssa-isolate-paths.c: Likewise.
25154         * gimple-ssa-strength-reduction.c: Likewise.
25155         * gimple-streamer-in.c: Likewise.
25156         * gimple-streamer-out.c: Likewise.
25157         * gimple-streamer.h: Likewise.
25158         * gimple-walk.c: Likewise.
25159         * gimple.c: Likewise.
25160         * gimplify-me.c: Likewise.
25161         * gimplify.c: Likewise.
25162         * godump.c: Likewise.
25163         * graph.c: Likewise.
25164         * graphite-blocking.c: Likewise.
25165         * graphite-dependences.c: Likewise.
25166         * graphite-interchange.c: Likewise.
25167         * graphite-isl-ast-to-gimple.c: Likewise.
25168         * graphite-optimize-isl.c: Likewise.
25169         * graphite-poly.c: Likewise.
25170         * graphite-scop-detection.c: Likewise.
25171         * graphite-sese-to-poly.c: Likewise.
25172         * graphite.c: Likewise.
25173         * haifa-sched.c: Likewise.
25174         * hw-doloop.c: Likewise.
25175         * ifcvt.c: Likewise.
25176         * init-regs.c: Likewise.
25177         * input.c: Likewise.
25178         * internal-fn.c: Likewise.
25179         * ipa-chkp.c: Likewise.
25180         * ipa-comdats.c: Likewise.
25181         * ipa-cp.c: Likewise.
25182         * ipa-devirt.c: Likewise.
25183         * ipa-icf-gimple.c: Likewise.
25184         * ipa-icf.c: Likewise.
25185         * ipa-inline-analysis.c: Likewise.
25186         * ipa-inline-transform.c: Likewise.
25187         * ipa-inline.c: Likewise.
25188         * ipa-polymorphic-call.c: Likewise.
25189         * ipa-profile.c: Likewise.
25190         * ipa-prop.c: Likewise.
25191         * ipa-pure-const.c: Likewise.
25192         * ipa-ref.c: Likewise.
25193         * ipa-reference.c: Likewise.
25194         * ipa-split.c: Likewise.
25195         * ipa-utils.c: Likewise.
25196         * ipa-visibility.c: Likewise.
25197         * ipa.c: Likewise.
25198         * ira-build.c: Likewise.
25199         * ira-color.c: Likewise.
25200         * ira-conflicts.c: Likewise.
25201         * ira-costs.c: Likewise.
25202         * ira-emit.c: Likewise.
25203         * ira-lives.c: Likewise.
25204         * ira.c: Likewise.
25205         * jump.c: Likewise.
25206         * langhooks.c: Likewise.
25207         * lcm.c: Likewise.
25208         * loop-doloop.c: Likewise.
25209         * loop-init.c: Likewise.
25210         * loop-invariant.c: Likewise.
25211         * loop-iv.c: Likewise.
25212         * loop-unroll.c: Likewise.
25213         * lower-subreg.c: Likewise.
25214         * lra-assigns.c: Likewise.
25215         * lra-coalesce.c: Likewise.
25216         * lra-constraints.c: Likewise.
25217         * lra-eliminations.c: Likewise.
25218         * lra-lives.c: Likewise.
25219         * lra-remat.c: Likewise.
25220         * lra-spills.c: Likewise.
25221         * lra.c: Likewise.
25222         * lto-cgraph.c: Likewise.
25223         * lto-compress.c: Likewise.
25224         * lto-opts.c: Likewise.
25225         * lto-section-in.c: Likewise.
25226         * lto-section-out.c: Likewise.
25227         * lto-streamer-in.c: Likewise.
25228         * lto-streamer-out.c: Likewise.
25229         * lto-streamer.c: Likewise.
25230         * mcf.c: Likewise.
25231         * mode-switching.c: Likewise.
25232         * modulo-sched.c: Likewise.
25233         * omega.c: Likewise.
25234         * omp-low.c: Likewise.
25235         * optabs.c: Likewise.
25236         * opts-global.c: Likewise.
25237         * opts.h: Likewise.
25238         * passes.c: Likewise.
25239         * plugin.c: Likewise.
25240         * postreload-gcse.c: Likewise.
25241         * postreload.c: Likewise.
25242         * predict.c: Likewise.
25243         * pretty-print.h: Likewise.
25244         * print-rtl.c: Likewise.
25245         * print-tree.c: Likewise.
25246         * profile.c: Likewise.
25247         * real.c: Likewise.
25248         * realmpfr.c: Likewise.
25249         * recog.c: Likewise.
25250         * ree.c: Likewise.
25251         * reg-stack.c: Likewise.
25252         * regcprop.c: Likewise.
25253         * reginfo.c: Likewise.
25254         * regrename.c: Likewise.
25255         * regstat.c: Likewise.
25256         * reload.c: Likewise.
25257         * reload1.c: Likewise.
25258         * reorg.c: Likewise.
25259         * resource.c: Likewise.
25260         * rtl-chkp.c: Likewise.
25261         * rtl-error.c: Likewise.
25262         * rtlanal.c: Likewise.
25263         * rtlhooks.c: Likewise.
25264         * sanopt.c: Likewise.
25265         * sched-deps.c: Likewise.
25266         * sched-ebb.c: Likewise.
25267         * sched-rgn.c: Likewise.
25268         * sched-vis.c: Likewise.
25269         * sdbout.c: Likewise.
25270         * sel-sched-dump.c: Likewise.
25271         * sel-sched-ir.c: Likewise.
25272         * sel-sched.c: Likewise.
25273         * sese.c: Likewise.
25274         * shrink-wrap.c: Likewise.
25275         * simplify-rtx.c: Likewise.
25276         * stack-ptr-mod.c: Likewise.
25277         * statistics.c: Likewise.
25278         * stmt.c: Likewise.
25279         * stor-layout.c: Likewise.
25280         * store-motion.c: Likewise.
25281         * streamer-hooks.c: Likewise.
25282         * stringpool.c: Likewise.
25283         * symtab.c: Likewise.
25284         * target-globals.c: Likewise.
25285         * targhooks.c: Likewise.
25286         * toplev.c: Likewise.
25287         * tracer.c: Likewise.
25288         * trans-mem.c: Likewise.
25289         * tree-affine.c: Likewise.
25290         * tree-browser.c: Likewise.
25291         * tree-call-cdce.c: Likewise.
25292         * tree-cfg.c: Likewise.
25293         * tree-cfgcleanup.c: Likewise.
25294         * tree-chkp-opt.c: Likewise.
25295         * tree-chkp.c: Likewise.
25296         * tree-chrec.c: Likewise.
25297         * tree-complex.c: Likewise.
25298         * tree-data-ref.c: Likewise.
25299         * tree-dfa.c: Likewise.
25300         * tree-diagnostic.c: Likewise.
25301         * tree-dump.c: Likewise.
25302         * tree-eh.c: Likewise.
25303         * tree-emutls.c: Likewise.
25304         * tree-if-conv.c: Likewise.
25305         * tree-inline.c: Likewise.
25306         * tree-into-ssa.c: Likewise.
25307         * tree-iterator.c: Likewise.
25308         * tree-loop-distribution.c: Likewise.
25309         * tree-nested.c: Likewise.
25310         * tree-nrv.c: Likewise.
25311         * tree-object-size.c: Likewise.
25312         * tree-outof-ssa.c: Likewise.
25313         * tree-parloops.c: Likewise.
25314         * tree-phinodes.c: Likewise.
25315         * tree-predcom.c: Likewise.
25316         * tree-pretty-print.c: Likewise.
25317         * tree-profile.c: Likewise.
25318         * tree-scalar-evolution.c: Likewise.
25319         * tree-sra.c: Likewise.
25320         * tree-ssa-address.c: Likewise.
25321         * tree-ssa-alias.c: Likewise.
25322         * tree-ssa-ccp.c: Likewise.
25323         * tree-ssa-coalesce.c: Likewise.
25324         * tree-ssa-copy.c: Likewise.
25325         * tree-ssa-copyrename.c: Likewise.
25326         * tree-ssa-dce.c: Likewise.
25327         * tree-ssa-dom.c: Likewise.
25328         * tree-ssa-dse.c: Likewise.
25329         * tree-ssa-forwprop.c: Likewise.
25330         * tree-ssa-ifcombine.c: Likewise.
25331         * tree-ssa-live.c: Likewise.
25332         * tree-ssa-loop-ch.c: Likewise.
25333         * tree-ssa-loop-im.c: Likewise.
25334         * tree-ssa-loop-ivcanon.c: Likewise.
25335         * tree-ssa-loop-ivopts.c: Likewise.
25336         * tree-ssa-loop-manip.c: Likewise.
25337         * tree-ssa-loop-niter.c: Likewise.
25338         * tree-ssa-loop-prefetch.c: Likewise.
25339         * tree-ssa-loop-unswitch.c: Likewise.
25340         * tree-ssa-loop.c: Likewise.
25341         * tree-ssa-math-opts.c: Likewise.
25342         * tree-ssa-operands.c: Likewise.
25343         * tree-ssa-phiopt.c: Likewise.
25344         * tree-ssa-phiprop.c: Likewise.
25345         * tree-ssa-pre.c: Likewise.
25346         * tree-ssa-propagate.c: Likewise.
25347         * tree-ssa-reassoc.c: Likewise.
25348         * tree-ssa-sccvn.c: Likewise.
25349         * tree-ssa-scopedtables.c: Likewise.
25350         * tree-ssa-sink.c: Likewise.
25351         * tree-ssa-strlen.c: Likewise.
25352         * tree-ssa-structalias.c: Likewise.
25353         * tree-ssa-tail-merge.c: Likewise.
25354         * tree-ssa-ter.c: Likewise.
25355         * tree-ssa-threadedge.c: Likewise.
25356         * tree-ssa-threadupdate.c: Likewise.
25357         * tree-ssa-uncprop.c: Likewise.
25358         * tree-ssa-uninit.c: Likewise.
25359         * tree-ssa.c: Likewise.
25360         * tree-ssanames.c: Likewise.
25361         * tree-stdarg.c: Likewise.
25362         * tree-streamer-in.c: Likewise.
25363         * tree-streamer-out.c: Likewise.
25364         * tree-streamer.c: Likewise.
25365         * tree-switch-conversion.c: Likewise.
25366         * tree-tailcall.c: Likewise.
25367         * tree-vect-data-refs.c: Likewise.
25368         * tree-vect-generic.c: Likewise.
25369         * tree-vect-loop-manip.c: Likewise.
25370         * tree-vect-loop.c: Likewise.
25371         * tree-vect-patterns.c: Likewise.
25372         * tree-vect-slp.c: Likewise.
25373         * tree-vect-stmts.c: Likewise.
25374         * tree-vectorizer.c: Likewise.
25375         * tree-vrp.c: Likewise.
25376         * tree.c: Likewise.
25377         * tsan.c: Likewise.
25378         * ubsan.c: Likewise.
25379         * valtrack.c: Likewise.
25380         * value-prof.c: Likewise.
25381         * var-tracking.c: Likewise.
25382         * varasm.c: Likewise.
25383         * varpool.c: Likewise.
25384         * vmsdbgout.c: Likewise.
25385         * vtable-verify.c: Likewise.
25386         * web.c: Likewise.
25387         * wide-int.cc: Likewise.
25388         * xcoffout.c: Likewise.
25389         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25390         * common/common-targhooks.c: Likewise.
25391         * config/aarch64/aarch64-builtins.c: Likewise.
25392         * config/aarch64/aarch64.c: Likewise.
25393         * config/alpha/alpha.c: Likewise.
25394         * config/arc/arc.c: Likewise.
25395         * config/arm/aarch-common.c: Likewise.
25396         * config/arm/arm-builtins.c: Likewise.
25397         * config/arm/arm-c.c: Likewise.
25398         * config/arm/arm.c: Likewise.
25399         * config/avr/avr-c.c: Likewise.
25400         * config/avr/avr-log.c: Likewise.
25401         * config/avr/avr.c: Likewise.
25402         * config/bfin/bfin.c: Likewise.
25403         * config/c6x/c6x.c: Likewise.
25404         * config/cr16/cr16.c: Likewise.
25405         * config/cris/cris.c: Likewise.
25406         * config/darwin-c.c: Likewise.
25407         * config/darwin.c: Likewise.
25408         * config/default-c.c: Likewise.
25409         * config/epiphany/epiphany.c: Likewise.
25410         * config/epiphany/mode-switch-use.c: Likewise.
25411         * config/epiphany/resolve-sw-modes.c: Likewise.
25412         * config/fr30/fr30.c: Likewise.
25413         * config/frv/frv.c: Likewise.
25414         * config/ft32/ft32.c: Likewise.
25415         * config/glibc-c.c: Likewise.
25416         * config/h8300/h8300.c: Likewise.
25417         * config/i386/i386-c.c: Likewise.
25418         * config/i386/i386.c: Likewise.
25419         * config/i386/msformat-c.c: Likewise.
25420         * config/i386/winnt-cxx.c: Likewise.
25421         * config/i386/winnt-stubs.c: Likewise.
25422         * config/i386/winnt.c: Likewise.
25423         * config/ia64/ia64-c.c: Likewise.
25424         * config/ia64/ia64.c: Likewise.
25425         * config/iq2000/iq2000.c: Likewise.
25426         * config/lm32/lm32.c: Likewise.
25427         * config/m32c/m32c-pragma.c: Likewise.
25428         * config/m32c/m32c.c: Likewise.
25429         * config/m32r/m32r.c: Likewise.
25430         * config/m68k/m68k.c: Likewise.
25431         * config/mcore/mcore.c: Likewise.
25432         * config/mep/mep-pragma.c: Likewise.
25433         * config/mep/mep.c: Likewise.
25434         * config/microblaze/microblaze-c.c: Likewise.
25435         * config/microblaze/microblaze.c: Likewise.
25436         * config/mips/mips.c: Likewise.
25437         * config/mmix/mmix.c: Likewise.
25438         * config/mn10300/mn10300.c: Likewise.
25439         * config/moxie/moxie.c: Likewise.
25440         * config/msp430/msp430-c.c: Likewise.
25441         * config/msp430/msp430.c: Likewise.
25442         * config/nds32/nds32-cost.c: Likewise.
25443         * config/nds32/nds32-fp-as-gp.c: Likewise.
25444         * config/nds32/nds32-intrinsic.c: Likewise.
25445         * config/nds32/nds32-isr.c: Likewise.
25446         * config/nds32/nds32-md-auxiliary.c: Likewise.
25447         * config/nds32/nds32-memory-manipulation.c: Likewise.
25448         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25449         * config/nds32/nds32-predicates.c: Likewise.
25450         * config/nds32/nds32.c: Likewise.
25451         * config/nios2/nios2.c: Likewise.
25452         * config/nvptx/nvptx.c: Likewise.
25453         * config/pa/pa.c: Likewise.
25454         * config/pdp11/pdp11.c: Likewise.
25455         * config/rl78/rl78-c.c: Likewise.
25456         * config/rl78/rl78.c: Likewise.
25457         * config/rs6000/rs6000-c.c: Likewise.
25458         * config/rs6000/rs6000.c: Likewise.
25459         * config/rx/rx.c: Likewise.
25460         * config/s390/s390-c.c: Likewise.
25461         * config/s390/s390.c: Likewise.
25462         * config/sh/sh-c.c: Likewise.
25463         * config/sh/sh-mem.cc: Likewise.
25464         * config/sh/sh.c: Likewise.
25465         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25466         * config/sh/sh_treg_combine.cc: Likewise.
25467         * config/sol2-c.c: Likewise.
25468         * config/sol2-cxx.c: Likewise.
25469         * config/sol2-stubs.c: Likewise.
25470         * config/sol2.c: Likewise.
25471         * config/sparc/sparc-c.c: Likewise.
25472         * config/sparc/sparc.c: Likewise.
25473         * config/spu/spu-c.c: Likewise.
25474         * config/spu/spu.c: Likewise.
25475         * config/stormy16/stormy16.c: Likewise.
25476         * config/tilegx/mul-tables.c: Likewise.
25477         * config/tilegx/tilegx-c.c: Likewise.
25478         * config/tilegx/tilegx.c: Likewise.
25479         * config/tilepro/mul-tables.c: Likewise.
25480         * config/tilepro/tilepro-c.c: Likewise.
25481         * config/tilepro/tilepro.c: Likewise.
25482         * config/v850/v850-c.c: Likewise.
25483         * config/v850/v850.c: Likewise.
25484         * config/vax/vax.c: Likewise.
25485         * config/visium/visium.c: Likewise.
25486         * config/vms/vms-c.c: Likewise.
25487         * config/vms/vms.c: Likewise.
25488         * config/vxworks.c: Likewise.
25489         * config/winnt-c.c: Likewise.
25490         * config/xtensa/xtensa.c: Likewise.
25492 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
25494         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25495         function.
25496         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25498 2015-06-17  Richard Biener  <rguenther@suse.de>
25500         PR tree-optimization/66251
25501         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25502         stmts for SLP strided stores.
25504         Revert
25505         2015-05-22  Richard Biener  <rguenther@suse.de>
25507         PR tree-optimization/66251
25508         * tree-vect-stmts.c (vectorizable_conversion): Properly
25509         set STMT_VINFO_VEC_STMT even for the SLP case.
25511         2015-05-26  Michael Matz  <matz@suse.de>
25513         PR middle-end/66251
25514         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25515         STMT_VINFO_VEC_STMT, also with SLP.
25517 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
25519         PR target/56766
25520         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25521         (*avx_addsubv4df3_1s): Ditto.
25522         (*sse3_addsubv2df3_1): Ditto.
25523         (*sse3_addsubv2df3_1s): Ditto.
25524         (*avx_addsubv8sf3_1): Ditto.
25525         (*avx_addsubv8sf3_1s): Ditto.
25526         (*sse3_addsubv4sf3_1): Ditto.
25527         (*sse3_addsubv4sf3_1s): Ditto.
25529 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
25531         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25532         (SYSROOT_SUFFIX_SPEC): Update.
25533         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25534         (STARTFILE_PREFIX_SPEC): Update.
25535         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25536         (MULTILIB_REQUIRED): New.
25537         (MULTILIB_OSDIRNAMES): New.
25538         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25539         (MULTILIB_REQUIRED): New.
25540         (MULTILIB_OSDIRNAMES): New.
25542 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
25544         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25545         * config/aarch64/aarch64-options-extensions.def: Update "fP",
25546         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
25547         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25548         (AARCH64_FL_PAN): New.
25549         (AARCH64_FL_LOR): New.
25550         (AARCH64_FL_RDMA): New.
25551         (AARCH64_FL_FOR_ARCH8_1): New.
25552         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25553         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25555 2015-06-16  Martin Liska  <mliska@suse.cz>
25557         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25558         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25559         guard.
25561 2015-06-16  Richard Biener  <rguenther@suse.de>
25563         * tree-vect-stmts.c (vectorizable_store): Adjust.
25564         (vectorizable_load): Likewise.
25565         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25566         Simplify.
25567         (vect_create_data_ref_ptr): Likewise.
25568         (bump_vector_ptr): Adjust.
25570 2015-06-16  Richard Biener  <rguenther@suse.de>
25572         * tree-vect-stmts.c (vectorizable_load): Properly start loads
25573         with the first element if this is grouped loads.
25575 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
25577         * config/arm/arm-protos.h (struct tune_params): Rename
25578         log_op_non_sc to log_op_non_short_circuit, and rename enum
25579         values to expand SC to SHORT_CIRCUIT.
25580         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25581         to LOG_OP_NON_SHORT_CIRCUIT.
25582         (arm_fastmul_tune):Likewise
25583         (arm_strongarm_tune): Likewise.
25584         (arm_xscale_tune): Likewise.
25585         (arm_9e_tune): Likewise.
25586         (arm_marvell_pj4_tune): Likewise.
25587         (arm_v6t2_tune): Likewise.
25588         (arm_cortex_tune): Likewise.
25589         (arm_cortex_a8_tune): Likewise.
25590         (arm_cortex_a7_tune): Likewise.
25591         (arm_cortex_a15_tune): Likewise.
25592         (arm_cortex_a53_tune): Likewise.
25593         (arm_cortex_a57_tune): Likewise.
25594         (arm_xgene1_tune): Likewise.
25595         (arm_cortex_a5_tune): Likewise.
25596         (arm_cortex_a9_tune): Likewise.
25597         (arm_cortex_a12_tune): Likewise.
25598         (arm_v7m_tune): Likewise.
25599         (arm_cortex_m7_tune): Likewise.
25600         (arm_v6m_tune): Likewise.
25601         (arm_fa726te_tune): Likewise.
25603 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
25605         * altivec.md: Delete UNSPEC_VMLADDUHM.
25606         (mulv4si3_p8): New pattern.
25607         (mulv4si3): Use it for POWER8.
25608         (mulv8hi3): Use vmladduhm with zero addend.
25609         (altivec_vmladduhm): Descriptive RTL.
25611 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
25613         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25614         to use neon_move instead of mov_imm.
25615         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25616         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25618         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25619         aarch64_float_const_zero_rtx_p check before TFmode check.
25620         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25621         an fp zero.
25622         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
25623         code and attributes to match.  Change condition from register_operand
25624         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
25625         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
25626         to store2.
25628 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
25630         PR debug/66535
25631         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25632         there is no parent.
25634 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
25636         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25637         HOST_WIDE_INT parameter.
25639 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
25641         PR ipa/66181
25642         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25643         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25644         TYPE_NO_FORCE_BLK.
25645         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25647 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
25649         * rtl.h (classify_insn): Declare.
25650         * emit-rtl.c (classify_insn): Move to...
25651         * rtl.c: ...here and add generator support.
25652         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25653         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25654         * genemit.c (gen_emit_seq): New function.
25655         (gen_expand, gen_split): Use it.
25657 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
25659         * tree.c (make_vector_stat): Fix comment to state that the
25660         function returns a VECTOR_CST.
25662 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
25664         * gensupport.h (add_implicit_parallel): Declare.
25665         * genrecog.c (add_implicit_parallel): Move to...
25666         * gensupport.c (add_implicit_parallel): ...here.
25667         (process_one_cond_exec): Use it.
25668         * genemit.c (gen_insn): Likewise.
25670 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
25672         PR bootstrap/66448
25673         * passes.c (rest_of_decl_compilation): Do not register globals for
25674         early debug if they are declared in built-ins.
25676 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
25678         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25680 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25682         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25683         manually swapping.
25684         (noce_try_cmove_arith): Likewise.
25685         (noce_get_alt_condition): Likewise.
25687 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25689         * common/config/i386/i386-common.c
25690         (OPTION_MASK_ISA_MWAITX_SET): New.
25691         (ix86_handle_option): Handle mwaitx.
25692         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25693         (x86_64-*-*): Likewise.
25694         * config/i386/mwaitxintrin.h: New header.
25695         * config/i386/cpuid.h (bit_MWAITX):  Define.
25696         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25697         MWAITX support.
25698         * config/i386/i386.opt (mwaitx): New.
25699         * config/i386/i386-builtin-types.def
25700         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25701         * config/i386/i386-c.c: Define __MWAITX__ if needed.
25702         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25703         (PTA_MWAITX): New.
25704         (ix86_option_override_internal): Handle new option.
25705         (processor_alias_table): Added PTA_MWAITX.
25706         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25707         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25708         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25709         IX86_BUILTIN_MONITORX  built-ins.
25710         * config/i386/i386.h (TARGET_MWAITX): New.
25711         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25712         UNSPEC_MONITORX.
25713         (mwaitx):  New pattern.
25714         (monitorx_<mode>): New pattern.
25715         * config/i386/x86intrin.h: Include mwaitxintrin.h.
25716         * doc/extend.texi: Document monitorx and mwaitx builtins.
25717         * doc/invoke.texi: Document -mmwaitx option.
25719 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
25721         * emit-rtl.c (need_atomic_barrier_p): Mask model with
25722         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
25724 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25726         * dbxout.c (xcoff_debug_hooks): Provide a function for
25727         register_main_translation_unit hook.
25729 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25731         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25732         variants cases from switch.
25733         (rs6000_post_atomic_barrier): Same.
25734         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25735         (rs6000_expand_atomic_exchange): Same.
25736         (rs6000_expand_atomic_op): Same.
25737         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25738         SYNC variants cases from switch.
25739         (atomic_load): Same.
25740         (atomic_store): Same.
25742 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
25744         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25745         CONST_INT for goto.
25747 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
25749         PR bootstrap/66448
25750         * dwarf2out.c (check_die): Check for common duplicate attributes.
25751         (add_location_or_const_value_attribute): Do not add duplicate
25752         attributes.
25753         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25754         time around.
25755         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25756         (gen_type_die_with_usage): Call check_die.
25757         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25759 2015-06-11  Jason Merrill  <jason@redhat.com>
25761         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25762         dies.
25764 2015-06-11  Marek Polacek  <polacek@redhat.com>
25766         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25768 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
25770         PR bootstrap/66252
25771         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25772         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25773         (*addx_extend_sp32): Fix pasto.
25774         (*subx_extend): Rename into...
25775         (*subx_extend_sp32): ...this.
25776         (*adddi3_extend_sp32): Add earlyclobber.
25777         (*subdi3_insn_sp32): Likewise.
25778         (*subdi3_extend_sp32): Likewise.
25779         (*and_not_di_sp32): Likewise.
25780         (*or_not_di_sp32): Likewise.
25781         (*xor_not_di_sp32): Likewise.
25782         (*negdi2_sp32): Likewise.
25783         (*one_cmpldi2_sp32): Likewise.
25785 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
25787         * debug.h (struct gcc_debug_hooks): Add a
25788         register_main_translation_unit hook.
25789         * debug.c (do_nothing_debug_hooks): Provide a function for this
25790         new hook.
25791         * dbxout.c (dbx_debug_hooks): Likewise.
25792         * sdbout.c (sdb_debug_hooks): Likewise.
25793         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25794         * dwarf2out.c (main_translation_unit): New global variable.
25795         (dwarf2out_register_main_translation_unit): New function
25796         implementing the new hook.
25797         (dwarf2_debug_hooks): Assign
25798         dwarf2out_register_main_translation_unit to this new hook.
25799         (dwarf2out_init): Associate any main translation unit to
25800         comp_unit_die ().
25802 2015-06-11  Marek Polacek  <polacek@redhat.com>
25804         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25806 2015-06-11  Marek Polacek  <polacek@redhat.com>
25808         * match.pd: Use single_use throughout.
25810 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25812         * config/arm/arm.c (arm_option_params_internal): When optimising
25813         for speed set max_insns_skipped when arm_restrict_it.
25815 2015-06-11  Christian Bruel  <christian.bruel@st.com>
25817         PR target/52144
25818         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25819          macros in ...
25820         (arm_cpu_builtins): New function.
25821         (arm_pragma_target_parse): Call arm_cpu_builtins.
25822         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25823         (arm_register_target_pragmas): Likewise.
25824         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25825          Call arm_register_target_pragmas.
25826         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25827         (arm_pragma_target_parse): Likewise.
25829 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
25831         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25832         of the second operand.
25834 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
25836         PR target/66473
25837         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25838         to prepare mask operand for AVX512 modes.
25840 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
25842         PR target/66474
25843         * doc/md.texi (Machine Constraints): Document that on the PowerPC
25844         if you use a constraint that targets a VSX register, you must use
25845         %x<n> in the template.
25847 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
25849         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25850         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25851         (define_insn "trap"): New definition.
25853 2015-06-10  Richard Biener  <rguenther@suse.de>
25855         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25856         out from ...
25857         (vect_supported_load_permutation_p): ... here.  Handle
25858         supportable permutations in reductions.
25859         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25860         for vectorizing strided group loads.
25862 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
25864         PR target/66470
25865         * config/i386/i386.c (ix86_split_long_move): For collisions
25866         involving direct tls segment refs, move the UNSPEC_TP possibly
25867         wrapped in ZERO_EXTEND out of the address for lea, to each of
25868         the memory loads.
25870 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25872         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25873         dmb sy. Adjust tabs.
25875 2015-06-10  Tom de Vries  <tom@codesourcery.com>
25877         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25879 2015-06-10  Martin Liska  <mliska@suse.cz>
25881         PR bootstrap/66471
25882         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25883         all enum values in mem_alloc_origin.
25884         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25885         name.
25886         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25887         * bitmap.c (bitmap_register): Likewise.
25888         (dump_bitmap_statistics): Likewise.
25889         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25890         (ggc_record_overhead): Likewise.
25891         * hash-map.h: Likewise.
25892         * hash-set.h: Likewise.
25893         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25894         * hash-table.h: Likewise.
25895         * vec.c (vec_prefix::register_overhead): Likewise.
25896         (vec_prefix::release_overhead): Likewise.
25897         (dump_vec_loc_statistics): Likewise.
25899 2015-06-09  Christian Bruel  <christian.bruel@st.com>
25901         PR target/52144
25902         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25903         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25904         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25905         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25906         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25907         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25908         (arm_valid_target_attribute_p): Likewise.
25909         (arm_set_current_function, arm_can_inline_p): Likewise.
25910         (arm_valid_target_attribute_rec): Likewise.
25911         (arm_previous_fndecl): New variable.
25912         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25913         (TARGET_CAN_INLINE_P): Define.
25914         (arm_asm_trampoline_template): Emit mode.
25915         (arm_file_start): Don't set unified syntax.
25916         (arm_declare_function_name): Set unified syntax and mode.
25917         (arm_option_override): Init target_option_default_node.
25918         and target_option_current_node.
25919         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25920         (*call_symbol): Likewise.
25921         * doc/extend.texi: Document ARM/Thumb target attribute.
25922         * doc/invoke.texi: Likewise.
25924 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25926         Revert:
25927         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25928         PR rtl-optimization/64164
25929         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25930         * tree-ssa-copyrename.c: Removed.
25931         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25932         -ftree-coalesce-vars.
25933         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25934         * common.opt (ftree-copyrename): Ignore.
25935         (ftree-coalesce-inlined-vars): Likewise.
25936         * doc/invoke.texi: Remove the ignored options above.
25937         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25938         * tree-ssa-coalesce.h: ... here.
25939         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25940         headers required by it.
25941         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25942         across variables when flag_tree_coalesce_vars.  Check register
25943         use and promoted modes to allow coalescing.  Moved to
25944         tree-ssa-coalesce.c.
25945         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25946         with its member functions to tree-ssa-coalesce.c.
25947         (var_map_base_init): Likewise.  Renamed to
25948         compute_samebase_partition_bases.
25949         (partition_view_normal): Drop want_bases parameter.
25950         (partition_view_bitmap): Likewise.
25951         * tree-ssa-live.h: Adjust declarations.
25952         * tree-ssa-coalesce.c: Include explow.h.
25953         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25954         default defs at the entry point.
25955         (dump_part_var_map): New.
25956         (compute_optimized_partition_bases): New, called by...
25957         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25958         of compute_samebase_partition_bases.  Adjust.
25959         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25960         * cfgexpand.c (leader_merge): New.
25961         (get_rtl_for_parm_ssa_default_def): New.
25962         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25963         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25964         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25965         redundant MEM attr setting.
25966         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25967         from...
25968         (expand_one_stack_var): ... this.  New wrapper to check and
25969         skip already expanded SSA partitions.
25970         (record_alignment_for_reg_var): New, factored out of...
25971         (expand_one_var): ... this.
25972         (expand_one_ssa_partition): New.
25973         (adjust_one_expanded_partition_var): New.
25974         (expand_one_register_var): Check and skip already expanded SSA
25975         partitions.
25976         (expand_used_vars): Don't create DECLs for anonymous SSA
25977         names.  Expand all SSA partitions, then adjust all SSA names.
25978         (pass::execute): Replace the loops that set
25979         SA.partition_to_pseudo from partition leaders and cleared
25980         DECL_RTL for multi-location variables, and that which used to
25981         rename vars and set attrs, with one that clears DECL_RTL and
25982         checks that PARMs and RESULTs default_defs match DECL_RTL.
25983         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25984         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25985         * explow.c (promote_ssa_mode): New.
25986         * explow.h (promote_ssa_mode): Declare.
25987         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25988         * function.c: Include cfgexpand.h.
25989         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25990         (use_register_for_parm_decl): Wrapper for the above to
25991         special-case the result_ptr.
25992         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25993         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25994         multiple locations.
25995         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25996         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25997         (assign_parm_setup_block): Prefer SSA-assigned location.
25998         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25999         if stack_parm is NULL.
26000         (assign_parm_setup_stack): Prefer SSA-assigned location.
26001         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26002         rtl before testing for pointer bounds.  Special-case result_ptr.
26003         (expand_function_start): Maybe reset DECL_RTL of result.
26004         Prefer SSA-assigned location for result and static chain.
26005         Factor out DECL_RESULT and SET_DECL_RTL.
26006         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26007         anonymous SSA names.  Use promote_ssa_mode.
26008         (get_temp_reg): Likewise.
26009         (remove_ssa_form): Adjust.
26010         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26011         and get its reg_usage for reg invalidation.
26012         (compute_bb_dataflow): Pass it insn.
26013         (emit_notes_in_bb): Likewise.
26014         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26015         fail assert on conversion between unsigned types.
26017 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26019         PR tree-optimization/65460
26020         * omp-low.c (expand_omp_target): Set parallelized_function on
26021         cgraph_node for child_fn.
26023 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26025         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26026         parallelized_function before add_new_function.
26028 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
26030         * gcc-plugin.h: Move decls to plugin.h and include it.
26031         * plugin.h: Relocate decls from gcc-plugin.h
26032         * ggc-page.c: Include required header files.
26033         * passes.c: Likewise.
26034         * cgraphunit.c: Likewise.
26036 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26038         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26040 2015-06-09  Jason Merrill  <jason@redhat.com>
26042         PR bootstrap/66448
26043         * toplev.c (check_global_declaration): Don't warn about a clone.
26045 2015-06-09  Marek Polacek  <polacek@redhat.com>
26047         PR tree-optimization/66299
26048         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26049         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26050         patterns.
26052 2015-06-09  Richard Biener  <rguenther@suse.de>
26054         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26055         (vect_analyze_slp_instance): Instead do not falsely drop
26056         load permutations.
26058 2015-06-09  Richard Biener  <rguenther@suse.de>
26060         PR middle-end/66423
26061         * match.pd: Handle A % (unsigned)(1 << B).
26063 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
26065         * varasm.c (output_object_block_htab): Remove.
26066         (output_object_block_compare): New.
26067         (output_object_blocks): Sort named object_blocks before outputting
26068         them.
26070 2015-06-09  Richard Biener  <rguenther@suse.de>
26072         PR tree-optimization/66419
26073         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26074         consider GROUP_GAP when detecting a perfect subchain.
26076 2015-06-09  Nick Clifton  <nickc@redhat.com>
26078         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26079         place read only data in the .frodata section.
26081 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
26083         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26084         (atomic_store<mode>): Likewise.
26086 2015-06-09  Richard Biener  <rguenther@suse.de>
26088         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26090 2015-06-09  Richard Biener  <rguenther@suse.de>
26092         PR middle-end/66413
26093         * tree-inline.c (insert_init_debug_bind): Unshare value.
26095 2015-06-09  Richard Biener  <rguenther@suse.de>
26097         PR tree-optimization/66396
26098         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26099         Rename virtual operands.
26101 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26103         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26104         always return false.
26106 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26108         PR rtl-optimization/64164
26109         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26110         * tree-ssa-copyrename.c: Removed.
26111         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26112         -ftree-coalesce-vars.
26113         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26114         * common.opt (ftree-copyrename): Ignore.
26115         (ftree-coalesce-inlined-vars): Likewise.
26116         * doc/invoke.texi: Remove the ignored options above.
26117         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26118         * tree-ssa-coalesce.h: ... here.
26119         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26120         headers required by it.
26121         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26122         across variables when flag_tree_coalesce_vars.  Check register
26123         use and promoted modes to allow coalescing.  Moved to
26124         tree-ssa-coalesce.c.
26125         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26126         with its member functions to tree-ssa-coalesce.c.
26127         (var_map_base_init): Likewise.  Renamed to
26128         compute_samebase_partition_bases.
26129         (partition_view_normal): Drop want_bases parameter.
26130         (partition_view_bitmap): Likewise.
26131         * tree-ssa-live.h: Adjust declarations.
26132         * tree-ssa-coalesce.c: Include explow.h.
26133         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26134         default defs at the entry point.
26135         (dump_part_var_map): New.
26136         (compute_optimized_partition_bases): New, called by...
26137         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26138         of compute_samebase_partition_bases.  Adjust.
26139         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26140         * cfgexpand.c (leader_merge): New.
26141         (get_rtl_for_parm_ssa_default_def): New.
26142         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26143         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26144         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26145         redundant MEM attr setting.
26146         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26147         from...
26148         (expand_one_stack_var): ... this.  New wrapper to check and
26149         skip already expanded SSA partitions.
26150         (record_alignment_for_reg_var): New, factored out of...
26151         (expand_one_var): ... this.
26152         (expand_one_ssa_partition): New.
26153         (adjust_one_expanded_partition_var): New.
26154         (expand_one_register_var): Check and skip already expanded SSA
26155         partitions.
26156         (expand_used_vars): Don't create DECLs for anonymous SSA
26157         names.  Expand all SSA partitions, then adjust all SSA names.
26158         (pass::execute): Replace the loops that set
26159         SA.partition_to_pseudo from partition leaders and cleared
26160         DECL_RTL for multi-location variables, and that which used to
26161         rename vars and set attrs, with one that clears DECL_RTL and
26162         checks that PARMs and RESULTs default_defs match DECL_RTL.
26163         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26164         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26165         * explow.c (promote_ssa_mode): New.
26166         * explow.h (promote_ssa_mode): Declare.
26167         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26168         * function.c: Include cfgexpand.h.
26169         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26170         (use_register_for_parm_decl): Wrapper for the above to
26171         special-case the result_ptr.
26172         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26173         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26174         multiple locations.
26175         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26176         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26177         (assign_parm_setup_block): Prefer SSA-assigned location.
26178         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26179         if stack_parm is NULL.
26180         (assign_parm_setup_stack): Prefer SSA-assigned location.
26181         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26182         rtl before testing for pointer bounds.  Special-case result_ptr.
26183         (expand_function_start): Maybe reset DECL_RTL of result.
26184         Prefer SSA-assigned location for result and static chain.
26185         Factor out DECL_RESULT and SET_DECL_RTL.
26186         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26187         anonymous SSA names.  Use promote_ssa_mode.
26188         (get_temp_reg): Likewise.
26189         (remove_ssa_form): Adjust.
26190         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26191         and get its reg_usage for reg invalidation.
26192         (compute_bb_dataflow): Pass it insn.
26193         (emit_notes_in_bb): Likewise.
26194         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26195         fail assert on conversion between unsigned types.
26197 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26199         PR debug/58315
26200         * tree-inline.c (reset_debug_binding): New.
26201         (reset_debug_bindings): Likewise.
26202         (expand_call_inline): Call it.
26204 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26206         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26207         TYPE_STRING_FLAG.
26209 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26211         * lto-streamer-out.c (lto_output_location): Stream
26212         reserved locations correctly.
26213         * lto-streamer-in.c (lto_output_location): Likewise.
26215 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
26217         * coretypes.h: Include hash-table.h and hash-set.h for host files.
26218         * ggc.h: Don't include statistics.h>
26219         * hash-map.h: Remove all includes.
26220         * hash-set.h: Likewise.
26221         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26222         the include list. Remove <new>.
26223         * inchash.h: Remove all includes.
26224         * mem-stats.h: Likewise.
26225         * vec.h: No special processing for generators or ggc.
26226         * alias.c : Adjust include files.
26227         * alloc-pool.c : Likewise.
26228         * alloc-pool.h : Likewise.
26229         * asan.c : Likewise.
26230         * attribs.c : Likewise.
26231         * auto-inc-dec.c : Likewise.
26232         * auto-profile.c : Likewise.
26233         * bb-reorder.c : Likewise.
26234         * bitmap.c : Likewise.
26235         * bitmap.h : Likewise.
26236         * bt-load.c : Likewise.
26237         * builtins.c : Likewise.
26238         * caller-save.c : Likewise.
26239         * calls.c : Likewise.
26240         * ccmp.c : Likewise.
26241         * cfg.c : Likewise.
26242         * cfganal.c : Likewise.
26243         * cfgbuild.c : Likewise.
26244         * cfgcleanup.c : Likewise.
26245         * cfgexpand.c : Likewise.
26246         * cfghooks.c : Likewise.
26247         * cfgloop.c : Likewise.
26248         * cfgloop.h : Likewise.
26249         * cfgloopanal.c : Likewise.
26250         * cfgloopmanip.c : Likewise.
26251         * cfgrtl.c : Likewise.
26252         * cgraph.c : Likewise.
26253         * cgraphbuild.c : Likewise.
26254         * cgraphclones.c : Likewise.
26255         * cgraphunit.c : Likewise.
26256         * cilk-common.c : Likewise.
26257         * combine-stack-adj.c : Likewise.
26258         * combine.c : Likewise.
26259         * compare-elim.c : Likewise.
26260         * context.c : Likewise.
26261         * convert.c : Likewise.
26262         * coverage.c : Likewise.
26263         * cppbuiltin.c : Likewise.
26264         * cprop.c : Likewise.
26265         * cse.c : Likewise.
26266         * cselib.c : Likewise.
26267         * data-streamer-in.c : Likewise.
26268         * data-streamer-out.c : Likewise.
26269         * data-streamer.c : Likewise.
26270         * data-streamer.h : Likewise.
26271         * dbxout.c : Likewise.
26272         * dce.c : Likewise.
26273         * ddg.c : Likewise.
26274         * debug.c : Likewise.
26275         * df-core.c : Likewise.
26276         * df-problems.c : Likewise.
26277         * df-scan.c : Likewise.
26278         * df.h : Likewise.
26279         * dfp.c : Likewise.
26280         * dojump.c : Likewise.
26281         * dominance.c : Likewise.
26282         * domwalk.c : Likewise.
26283         * double-int.c : Likewise.
26284         * dse.c : Likewise.
26285         * dumpfile.c : Likewise.
26286         * dwarf2asm.c : Likewise.
26287         * dwarf2cfi.c : Likewise.
26288         * dwarf2out.c : Likewise.
26289         * emit-rtl.c : Likewise.
26290         * et-forest.c : Likewise.
26291         * except.c : Likewise.
26292         * except.h : Likewise.
26293         * explow.c : Likewise.
26294         * expmed.c : Likewise.
26295         * expr.c : Likewise.
26296         * final.c : Likewise.
26297         * fixed-value.c : Likewise.
26298         * fold-const.c : Likewise.
26299         * function.c : Likewise.
26300         * fwprop.c : Likewise.
26301         * gcc-plugin.h : Likewise.
26302         * gcc.c : Likewise.
26303         * gcse-common.c : Likewise.
26304         * gcse.c : Likewise.
26305         * genattrtab.c : Likewise.
26306         * genautomata.c : Likewise.
26307         * genconditions.c : Likewise.
26308         * genemit.c : Likewise.
26309         * generic-match-head.c : Likewise.
26310         * genextract.c : Likewise.
26311         * gengtype-state.c : Likewise.
26312         * gengtype.c : Likewise.
26313         * genhooks.c : Likewise.
26314         * genmatch.c : Likewise.
26315         * genmodes.c : Likewise.
26316         * genrecog.c : Likewise.
26317         * gensupport.c : Likewise.
26318         * ggc-common.c : Likewise.
26319         * ggc-internal.h : Likewise.
26320         * ggc-none.c : Likewise.
26321         * ggc-page.c : Likewise.
26322         * gimple-builder.c : Likewise.
26323         * gimple-expr.c : Likewise.
26324         * gimple-fold.c : Likewise.
26325         * gimple-iterator.c : Likewise.
26326         * gimple-low.c : Likewise.
26327         * gimple-match-head.c : Likewise.
26328         * gimple-pretty-print.c : Likewise.
26329         * gimple-ssa-isolate-paths.c : Likewise.
26330         * gimple-ssa-strength-reduction.c : Likewise.
26331         * gimple-ssa.h : Likewise.
26332         * gimple-streamer-in.c : Likewise.
26333         * gimple-streamer-out.c : Likewise.
26334         * gimple-streamer.h : Likewise.
26335         * gimple-walk.c : Likewise.
26336         * gimple.c : Likewise.
26337         * gimplify-me.c : Likewise.
26338         * gimplify.c : Likewise.
26339         * godump.c : Likewise.
26340         * graph.c : Likewise.
26341         * graphds.c : Likewise.
26342         * graphite-blocking.c : Likewise.
26343         * graphite-dependences.c : Likewise.
26344         * graphite-interchange.c : Likewise.
26345         * graphite-isl-ast-to-gimple.c : Likewise.
26346         * graphite-optimize-isl.c : Likewise.
26347         * graphite-poly.c : Likewise.
26348         * graphite-scop-detection.c : Likewise.
26349         * graphite-sese-to-poly.c : Likewise.
26350         * graphite.c : Likewise.
26351         * haifa-sched.c : Likewise.
26352         * hard-reg-set.h : Likewise.
26353         * hw-doloop.c : Likewise.
26354         * ifcvt.c : Likewise.
26355         * inchash.c : Likewise.
26356         * incpath.c : Likewise.
26357         * init-regs.c : Likewise.
26358         * input.c : Likewise.
26359         * internal-fn.c : Likewise.
26360         * ipa-chkp.c : Likewise.
26361         * ipa-comdats.c : Likewise.
26362         * ipa-cp.c : Likewise.
26363         * ipa-devirt.c : Likewise.
26364         * ipa-icf-gimple.c : Likewise.
26365         * ipa-icf.c : Likewise.
26366         * ipa-inline-analysis.c : Likewise.
26367         * ipa-inline-transform.c : Likewise.
26368         * ipa-inline.c : Likewise.
26369         * ipa-polymorphic-call.c : Likewise.
26370         * ipa-profile.c : Likewise.
26371         * ipa-prop.c : Likewise.
26372         * ipa-pure-const.c : Likewise.
26373         * ipa-ref.c : Likewise.
26374         * ipa-reference.c : Likewise.
26375         * ipa-split.c : Likewise.
26376         * ipa-utils.c : Likewise.
26377         * ipa-visibility.c : Likewise.
26378         * ipa.c : Likewise.
26379         * ira-build.c : Likewise.
26380         * ira-color.c : Likewise.
26381         * ira-conflicts.c : Likewise.
26382         * ira-costs.c : Likewise.
26383         * ira-emit.c : Likewise.
26384         * ira-lives.c : Likewise.
26385         * ira.c : Likewise.
26386         * jump.c : Likewise.
26387         * langhooks.c : Likewise.
26388         * lcm.c : Likewise.
26389         * libfuncs.h : Likewise.
26390         * lists.c : Likewise.
26391         * loop-doloop.c : Likewise.
26392         * loop-init.c : Likewise.
26393         * loop-invariant.c : Likewise.
26394         * loop-iv.c : Likewise.
26395         * loop-unroll.c : Likewise.
26396         * lower-subreg.c : Likewise.
26397         * lra-assigns.c : Likewise.
26398         * lra-coalesce.c : Likewise.
26399         * lra-constraints.c : Likewise.
26400         * lra-eliminations.c : Likewise.
26401         * lra-lives.c : Likewise.
26402         * lra-remat.c : Likewise.
26403         * lra-spills.c : Likewise.
26404         * lra.c : Likewise.
26405         * lto-cgraph.c : Likewise.
26406         * lto-compress.c : Likewise.
26407         * lto-opts.c : Likewise.
26408         * lto-section-in.c : Likewise.
26409         * lto-section-out.c : Likewise.
26410         * lto-streamer-in.c : Likewise.
26411         * lto-streamer-out.c : Likewise.
26412         * lto-streamer.c : Likewise.
26413         * lto-streamer.h : Likewise.
26414         * mcf.c : Likewise.
26415         * mode-switching.c : Likewise.
26416         * modulo-sched.c : Likewise.
26417         * omega.c : Likewise.
26418         * omp-low.c : Likewise.
26419         * optabs.c : Likewise.
26420         * opts-global.c : Likewise.
26421         * opts.h : Likewise.
26422         * passes.c : Likewise.
26423         * plugin.c : Likewise.
26424         * postreload-gcse.c : Likewise.
26425         * postreload.c : Likewise.
26426         * predict.c : Likewise.
26427         * print-rtl.c : Likewise.
26428         * print-tree.c : Likewise.
26429         * profile.c : Likewise.
26430         * read-md.c : Likewise.
26431         * read-md.h : Likewise.
26432         * read-rtl.c : Likewise.
26433         * real.c : Likewise.
26434         * realmpfr.c : Likewise.
26435         * recog.c : Likewise.
26436         * ree.c : Likewise.
26437         * reg-stack.c : Likewise.
26438         * regcprop.c : Likewise.
26439         * reginfo.c : Likewise.
26440         * regrename.c : Likewise.
26441         * regstat.c : Likewise.
26442         * reload.c : Likewise.
26443         * reload1.c : Likewise.
26444         * reorg.c : Likewise.
26445         * resource.c : Likewise.
26446         * rtl-chkp.c : Likewise.
26447         * rtl.c : Likewise.
26448         * rtl.h : Likewise.
26449         * rtlanal.c : Likewise.
26450         * rtlhash.c : Likewise.
26451         * rtlhash.h : Likewise.
26452         * rtlhooks.c : Likewise.
26453         * sanopt.c : Likewise.
26454         * sched-deps.c : Likewise.
26455         * sched-ebb.c : Likewise.
26456         * sched-rgn.c : Likewise.
26457         * sched-vis.c : Likewise.
26458         * sdbout.c : Likewise.
26459         * sel-sched-dump.c : Likewise.
26460         * sel-sched-ir.c : Likewise.
26461         * sel-sched-ir.h : Likewise.
26462         * sel-sched.c : Likewise.
26463         * sese.c : Likewise.
26464         * shrink-wrap.c : Likewise.
26465         * shrink-wrap.h : Likewise.
26466         * simplify-rtx.c : Likewise.
26467         * stack-ptr-mod.c : Likewise.
26468         * statistics.c : Likewise.
26469         * stmt.c : Likewise.
26470         * stor-layout.c : Likewise.
26471         * store-motion.c : Likewise.
26472         * stringpool.c : Likewise.
26473         * symtab.c : Likewise.
26474         * target-globals.c : Likewise.
26475         * targhooks.c : Likewise.
26476         * tlink.c : Likewise.
26477         * toplev.c : Likewise.
26478         * tracer.c : Likewise.
26479         * trans-mem.c : Likewise.
26480         * tree-affine.c : Likewise.
26481         * tree-affine.h : Likewise.
26482         * tree-browser.c : Likewise.
26483         * tree-call-cdce.c : Likewise.
26484         * tree-cfg.c : Likewise.
26485         * tree-cfgcleanup.c : Likewise.
26486         * tree-chkp-opt.c : Likewise.
26487         * tree-chkp.c : Likewise.
26488         * tree-chrec.c : Likewise.
26489         * tree-complex.c : Likewise.
26490         * tree-data-ref.c : Likewise.
26491         * tree-dfa.c : Likewise.
26492         * tree-diagnostic.c : Likewise.
26493         * tree-dump.c : Likewise.
26494         * tree-eh.c : Likewise.
26495         * tree-eh.h : Likewise.
26496         * tree-emutls.c : Likewise.
26497         * tree-hasher.h : Likewise.
26498         * tree-if-conv.c : Likewise.
26499         * tree-inline.c : Likewise.
26500         * tree-inline.h : Likewise.
26501         * tree-into-ssa.c : Likewise.
26502         * tree-iterator.c : Likewise.
26503         * tree-loop-distribution.c : Likewise.
26504         * tree-nested.c : Likewise.
26505         * tree-nrv.c : Likewise.
26506         * tree-object-size.c : Likewise.
26507         * tree-outof-ssa.c : Likewise.
26508         * tree-parloops.c : Likewise.
26509         * tree-phinodes.c : Likewise.
26510         * tree-predcom.c : Likewise.
26511         * tree-pretty-print.c : Likewise.
26512         * tree-profile.c : Likewise.
26513         * tree-scalar-evolution.c : Likewise.
26514         * tree-sra.c : Likewise.
26515         * tree-ssa-address.c : Likewise.
26516         * tree-ssa-alias.c : Likewise.
26517         * tree-ssa-ccp.c : Likewise.
26518         * tree-ssa-coalesce.c : Likewise.
26519         * tree-ssa-copy.c : Likewise.
26520         * tree-ssa-copyrename.c : Likewise.
26521         * tree-ssa-dce.c : Likewise.
26522         * tree-ssa-dom.c : Likewise.
26523         * tree-ssa-dse.c : Likewise.
26524         * tree-ssa-forwprop.c : Likewise.
26525         * tree-ssa-ifcombine.c : Likewise.
26526         * tree-ssa-live.c : Likewise.
26527         * tree-ssa-loop-ch.c : Likewise.
26528         * tree-ssa-loop-im.c : Likewise.
26529         * tree-ssa-loop-ivcanon.c : Likewise.
26530         * tree-ssa-loop-ivopts.c : Likewise.
26531         * tree-ssa-loop-manip.c : Likewise.
26532         * tree-ssa-loop-niter.c : Likewise.
26533         * tree-ssa-loop-prefetch.c : Likewise.
26534         * tree-ssa-loop-unswitch.c : Likewise.
26535         * tree-ssa-loop.c : Likewise.
26536         * tree-ssa-math-opts.c : Likewise.
26537         * tree-ssa-operands.c : Likewise.
26538         * tree-ssa-phiopt.c : Likewise.
26539         * tree-ssa-phiprop.c : Likewise.
26540         * tree-ssa-pre.c : Likewise.
26541         * tree-ssa-propagate.c : Likewise.
26542         * tree-ssa-reassoc.c : Likewise.
26543         * tree-ssa-sccvn.c : Likewise.
26544         * tree-ssa-scopedtables.c : Likewise.
26545         * tree-ssa-sink.c : Likewise.
26546         * tree-ssa-strlen.c : Likewise.
26547         * tree-ssa-structalias.c : Likewise.
26548         * tree-ssa-tail-merge.c : Likewise.
26549         * tree-ssa-ter.c : Likewise.
26550         * tree-ssa-threadedge.c : Likewise.
26551         * tree-ssa-threadupdate.c : Likewise.
26552         * tree-ssa-uncprop.c : Likewise.
26553         * tree-ssa-uninit.c : Likewise.
26554         * tree-ssa.c : Likewise.
26555         * tree-ssanames.c : Likewise.
26556         * tree-stdarg.c : Likewise.
26557         * tree-streamer-in.c : Likewise.
26558         * tree-streamer-out.c : Likewise.
26559         * tree-streamer.c : Likewise.
26560         * tree-streamer.h : Likewise.
26561         * tree-switch-conversion.c : Likewise.
26562         * tree-tailcall.c : Likewise.
26563         * tree-vect-data-refs.c : Likewise.
26564         * tree-vect-generic.c : Likewise.
26565         * tree-vect-loop-manip.c : Likewise.
26566         * tree-vect-loop.c : Likewise.
26567         * tree-vect-patterns.c : Likewise.
26568         * tree-vect-slp.c : Likewise.
26569         * tree-vect-stmts.c : Likewise.
26570         * tree-vectorizer.c : Likewise.
26571         * tree-vectorizer.h : Likewise.
26572         * tree-vrp.c : Likewise.
26573         * tree.c : Likewise.
26574         * tsan.c : Likewise.
26575         * ubsan.c : Likewise.
26576         * valtrack.c : Likewise.
26577         * valtrack.h : Likewise.
26578         * value-prof.c : Likewise.
26579         * var-tracking.c : Likewise.
26580         * varasm.c : Likewise.
26581         * varpool.c : Likewise.
26582         * vec.c: Likewise.
26583         * vmsdbgout.c : Likewise.
26584         * vtable-verify.c : Likewise.
26585         * vtable-verify.h : Likewise.
26586         * web.c : Likewise.
26587         * wide-int.cc : Likewise.
26588         * xcoffout.c : Likewise.
26589         * config/aarch64/aarch64-builtins.c : Likewise.
26590         * config/aarch64/aarch64.c : Likewise.
26591         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26592         * config/alpha/alpha.c : Likewise.
26593         * config/arc/arc.c : Likewise.
26594         * config/arm/aarch-common.c : Likewise.
26595         * config/arm/arm-builtins.c : Likewise.
26596         * config/arm/arm-c.c : Likewise.
26597         * config/arm/arm.c : Likewise.
26598         * config/avr/avr-c.c : Likewise.
26599         * config/avr/avr-log.c : Likewise.
26600         * config/avr/avr.c : Likewise.
26601         * config/bfin/bfin.c : Likewise.
26602         * config/c6x/c6x.c : Likewise.
26603         * config/cr16/cr16.c : Likewise.
26604         * config/cris/cris.c : Likewise.
26605         * config/darwin-c.c : Likewise.
26606         * config/darwin.c : Likewise.
26607         * config/default-c.c : Likewise.
26608         * config/epiphany/epiphany.c : Likewise.
26609         * config/epiphany/mode-switch-use.c : Likewise.
26610         * config/epiphany/resolve-sw-modes.c : Likewise.
26611         * config/fr30/fr30.c : Likewise.
26612         * config/frv/frv.c : Likewise.
26613         * config/ft32/ft32.c : Likewise.
26614         * config/glibc-c.c : Likewise.
26615         * config/h8300/h8300.c : Likewise.
26616         * config/i386/i386-c.c : Likewise.
26617         * config/i386/i386.c : Likewise.
26618         * config/i386/msformat-c.c : Likewise.
26619         * config/i386/winnt-cxx.c : Likewise.
26620         * config/i386/winnt-stubs.c : Likewise.
26621         * config/i386/winnt.c : Likewise.
26622         * config/ia64/ia64-c.c : Likewise.
26623         * config/ia64/ia64.c : Likewise.
26624         * config/iq2000/iq2000.c : Likewise.
26625         * config/lm32/lm32.c : Likewise.
26626         * config/m32c/m32c-pragma.c : Likewise.
26627         * config/m32c/m32c.c : Likewise.
26628         * config/m32r/m32r.c : Likewise.
26629         * config/m68k/m68k.c : Likewise.
26630         * config/mcore/mcore.c : Likewise.
26631         * config/mep/mep-pragma.c : Likewise.
26632         * config/mep/mep.c : Likewise.
26633         * config/microblaze/microblaze-c.c : Likewise.
26634         * config/microblaze/microblaze.c : Likewise.
26635         * config/mips/mips.c : Likewise.
26636         * config/mmix/mmix.c : Likewise.
26637         * config/mn10300/mn10300.c : Likewise.
26638         * config/moxie/moxie.c : Likewise.
26639         * config/msp430/msp430-c.c : Likewise.
26640         * config/msp430/msp430.c : Likewise.
26641         * config/nds32/nds32-cost.c : Likewise.
26642         * config/nds32/nds32-fp-as-gp.c : Likewise.
26643         * config/nds32/nds32-intrinsic.c : Likewise.
26644         * config/nds32/nds32-isr.c : Likewise.
26645         * config/nds32/nds32-md-auxiliary.c : Likewise.
26646         * config/nds32/nds32-memory-manipulation.c : Likewise.
26647         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26648         * config/nds32/nds32-predicates.c : Likewise.
26649         * config/nds32/nds32.c : Likewise.
26650         * config/nios2/nios2.c : Likewise.
26651         * config/nvptx/nvptx.c : Likewise.
26652         * config/pa/pa.c : Likewise.
26653         * config/pdp11/pdp11.c : Likewise.
26654         * config/rl78/rl78-c.c : Likewise.
26655         * config/rl78/rl78.c : Likewise.
26656         * config/rs6000/rs6000-c.c : Likewise.
26657         * config/rs6000/rs6000.c : Likewise.
26658         * config/rx/rx.c : Likewise.
26659         * config/s390/s390-c.c : Likewise.
26660         * config/s390/s390.c : Likewise.
26661         * config/sh/sh-c.c : Likewise.
26662         * config/sh/sh-mem.cc : Likewise.
26663         * config/sh/sh.c : Likewise.
26664         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26665         * config/sh/sh_treg_combine.cc : Likewise.
26666         * config/sol2-c.c : Likewise.
26667         * config/sol2-cxx.c : Likewise.
26668         * config/sol2-stubs.c : Likewise.
26669         * config/sol2.c : Likewise.
26670         * config/sparc/sparc-c.c : Likewise.
26671         * config/sparc/sparc.c : Likewise.
26672         * config/spu/spu-c.c : Likewise.
26673         * config/spu/spu.c : Likewise.
26674         * config/stormy16/stormy16.c : Likewise.
26675         * config/tilegx/mul-tables.c : Likewise.
26676         * config/tilegx/tilegx-c.c : Likewise.
26677         * config/tilegx/tilegx.c : Likewise.
26678         * config/tilepro/mul-tables.c : Likewise.
26679         * config/tilepro/tilepro-c.c : Likewise.
26680         * config/tilepro/tilepro.c : Likewise.
26681         * config/v850/v850-c.c : Likewise.
26682         * config/v850/v850.c : Likewise.
26683         * config/vax/vax.c : Likewise.
26684         * config/visium/visium.c : Likewise.
26685         * config/vms/vms-c.c : Likewise.
26686         * config/vms/vms.c : Likewise.
26687         * config/vxworks.c : Likewise.
26688         * config/winnt-c.c : Likewise.
26689         * config/xtensa/xtensa.c : Likewise.
26691 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26693         PR lto/65378
26694         * ipa-utils.h (warn_types_mismatch): Update prototype.
26695         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26696         parameters.
26697         (type_mismatch_p): New function.
26698         (warn_types_mismatch): Reorg to work better on non-C++ types.
26699         (odr_types_equivalent_p): Add loc1/loc2 parameters.
26700         (add_type_duplicate): Update.
26702 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26704         PR rtl-optimization/66444
26705         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26706         call_used_regs.
26708 2015-06-08  Richard Biener  <rguenther@suse.de>
26710         PR tree-optimization/66422
26711         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26712         block after inserted gcc_unreachable.
26714 2015-06-08  Nick Clifton  <nickc@redhat.com>
26716         * config/rx/rx.c (rx_function_value): Do not promote vector types.
26717         (rx_promote_function_mode): Likewise.
26718         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26720 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
26722         * genattrtab.c (insn_alternatives): Change type from int *
26723         to uint64_t *.
26724         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26725         (get_attr_value): Change type of num_alt to uint64_t.
26726         (compute_alternative_mask): Change return type from
26727         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26728         (make_alternative_compare, mk_attr_alt): Change argument type
26729         from int to uint64_t.
26730         (simplify_test_exp): Change type of i from int to uint64_t.
26731         Shift ((uint64_t) 1) instead of 1 up.
26732         (main): Adjust oballocvec first argument from int to uint64_t.
26733         Shift ((uint64_t) 1) instead of 1 up.
26735 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
26737         PR other/65366
26738         * gdbhooks.py: Import sys.
26739         (intptr): New function.  Replace int(...) by intptr(...).
26741 2015-06-08  Richard Biener  <rguenther@suse.de>
26743         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26744         adjustment for gaps at the end of a SLP load group properly.
26745         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26746         all permutations we can generate.
26747         (vect_transform_slp_perm_load): Use the correct group-size.
26749 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
26751         * genmatch.c (expr::gen_transform): For conditions, guess the type
26752         from the second operand.
26754 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26756         PR tree-optimization/66442
26757         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26758         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26759         if the loop latch is not a singleton.  Use
26760         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26762 2015-06-08  Marek Polacek  <polacek@redhat.com>
26764         PR sanitizer/66452
26765         * toplev.c (check_global_declaration): Don't warn about artificial
26766         decls.
26768 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26770         PR tree-optimization/66436
26771         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26772         dump file.
26773         * gimplify.c: Add tree-dump.h include.
26774         (gimplify_function_tree): Dump function to gimple dump file.
26775         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26776         dump file.
26778 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26780         PR tree-optimization/66435
26781         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26782         function.
26784 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
26786         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26787         of ptr_type_node to not be ptr_to_node.
26788         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26789         TREE_TYPE of pointers.
26790         * gimple-expr.c (useless_type_conversion): Reorder the check for
26791         function pointers and TYPE_CANONICAL.
26793 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
26795         PR bootstrap/66319
26796         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26797         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26798         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26799         later.
26800         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26801         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26802         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26803         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26804         and non iso if unix2003.
26806 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
26808         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26810 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
26812         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26813         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26814         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26815         except.c, final.c, function.c, gcse-common.c, genemit.c,
26816         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26817         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26818         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26819         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26820         more derived ones.
26822 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
26824         * combine.c (combine_split_insns): Remove cast.
26825         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26826         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26827         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26828         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26829         * genemit.c (gen_split): Change return type of generated functions to
26830         rtx_insn.
26831         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26832         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26833         gen_peephole2_* functions.
26834         (print_subroutine, main): Likewise.
26835         * recog.c (peephole2_optimize): Remove cast.
26836         (peep2_next_insn): Promote return type to rtx_insn.
26837         * recog.h (peep2_next_insn): Fix prototype.
26838         * rtl.h (try_split, split_insns): Likewise.
26840 2015-06-06  DJ Delorie  <dj@redhat.com>
26842         * config/msp430/msp430.c (msp430_asm_integer): Support addition
26843         and subtraction too.
26845 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26847         PR target/66410
26848         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26849         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26850         instead of Snd.  Disparage Sid/z alternative with '^'.
26852 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
26854         * dwarf2out.c: Remove deferred_locations*.
26855         (dwarf2_debug_hooks): Add early_finish hook.
26856         Remove global_decl hook.
26857         Add early_global_decl and late_global_decl hook.
26858         New global early_dwarf.
26859         New structure set_early_dwarf.
26860         (output_die): Indicate whether a DIE was generated early
26861         when generating assembly with -dA.
26862         (struct limbo_die_struct): Document created_for field.
26863         Remove file_table_last_lookup.
26864         (remove_AT): Return TRUE if successful.
26865         (remove_child_TAG): Clear die_parent.
26866         (reparent_child): New function abstracted from...
26867         (splice_child_die): ...here.
26868         (new_die): ICE if a DIE ends up in limbo too late.
26869         (check_die): New.
26870         (defer_location): Remove.
26871         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26872         (fill_variable_array_bounds): New.
26873         (decl_start_label): Call fill_variable_array_bounds.
26874         (gen_formal_parameter_die): Rewrite to reuse previously generated
26875         DIEs.
26876         (gen_subprogram_die): Same.
26877         (gen_variable_die): Same.
26878         (gen_const_die): Same.
26879         (gen_label_die): Same.
26880         (gen_lexical_block_die): Same.
26881         (decl_will_get_specification_p): New.
26882         (local_function_static): New.
26883         (gen_struct_or_union_type_die): Fill in variable-length fields.
26884         (gen_typedef_die): Fill in variable-length typedefs.
26885         (gen_tagged_type_die): Gracefully return on error_mark_node.
26886         Handle re-entrancy.
26887         (gen_type_die_with_usage): Handle variable-length types.
26888         Remove duplicate code for ARRAY_TYPE case.
26889         (process_scope_var): Only process imported modules during early
26890         dwarf.
26891         (dwarf2out_early_global_decl): New.
26892         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26893         (dwarf2out_type_decl): Set early_dwarf while calling
26894         dwarf2out_decl.
26895         (dwarf2out_decl): Verify that we did not recreate a previously
26896         generated DIE.
26897         Do not return on DECL_EXTERNALs in VAR_DECLs.
26898         Abstract some code to local_function_static.
26899         (lookup_filename): Remove use of file_table_last_lookup.
26900         Gracefully exit on missing file_name.
26901         (dwarf2out_finish): Verify limbo list.
26902         Remove deferred_locations_list use.
26903         Move deferred_asm_name and limbo flushing to...
26904         (dwarf2out_early_finish): ...here.  New.
26905         (dwarf2out_c_finalize): Remove set of deferred_location_list,
26906         deferred_asm_name, and file_table_last_lookup.
26907         * cgraph.h (referred_to_p): Add default argument.
26908         * cgraphunit.c (referred_to_p): Add and handle include_self
26909         argument.
26910         (analyze_functions): Add first_time argument.
26911         Call check_global_declaration for all symbols.
26912         Call late_global_decl for nodes for moribund nodes.
26913         (finalize_compilation_unit): Add new argument to
26914         analyze_functions.
26915         Call early_global_decl for functions.
26916         Call early_finish debug hook.
26917         * dbxout.c (dbxout_early_global_decl): New.
26918         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
26919         (dbx_debug_hooks): Add new hooks.
26920         (xcoff_debug_hooks): Same.
26921         * debug.c (do_nothing_debug_hooks): Add early_finish field.
26922         Add early and late debug hooks.
26923         Remove global_decl hook.
26924         * debug.h (struct gcc_debug_hooks): Add early_finish,
26925         early_global_decl, and late_global_decl fields.
26926         Remove global_decl field.
26927         Document gcc_debug_hooks.
26928         * gengtype.c (output_typename): Remove.
26929         * godump.c (go_early_global_decl): New.
26930         (go_late_global_decl): New.
26931         (go_global_decl): Remove.
26932         (dump_go_spec_init): Remove global_decl.  Add
26933         {early,late}_global_decl.
26934         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26935         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26936         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26937         (write_global_declarations): Remove.
26938         (global_decl_processing): New.
26939         * langhooks.h (struct lang_hooks_for_decls): Remove
26940         final_write_globals field.
26941         Add post_compilation_parsing_cleanups field.
26942         * passes.c (rest_of_decl_compilation): Call early_global_decl.
26943         * sdbout.c: Add early and late_global_decl hooks.  Remove
26944         sdbout_global_decl hook.
26945         Add early_finish field for sdb_debug_hooks.
26946         (sdbout_global_decl): Remove.
26947         (sdbout_early_global_decl): New.
26948         (sdbout_late_global_decl): New.
26949         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26950         * toplev.c (check_global_declaration): Rename from
26951         check_global_declaration_1.
26952         Adapt to use symtab infrastructure.
26953         (check_global_declarations): Remove.
26954         (emit_debug_global_declarations): Remove.
26955         (compile_file): Remove call to final_write_globals langhook.
26956         Run the actual compilation process.
26957         Perform any post compilation parser cleanups.
26958         Generate late debug info.
26959         * toplev.h (check_global_declaration): New.
26960         (check_global_declaration_1): Remove.
26961         (check_global_declarations): Remove.
26962         (write_global_declarations): Remove.
26963         (emit_debug_global_declarations): Remove.
26964         (global_decl_processing): New.
26965         * tree-core.h (struct tree_block): Add DIE field.
26966         * tree.h (BLOCK_DIE): New.
26967         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26968         throughout.
26969         (vmsdbgout_early_global_decl): New.
26970         (vmsdbgout_late_global_decl): New.
26971         Add early_finish debug hook field to vmsdbg_debug_hooks.
26972         Remove vmsdbgout_decl to vmsdbgout_function_decl.
26973         Add early and late_global_decl debug hooks.
26975 2015-06-05  Julian Brown  <julian@codesourcery.com>
26976             Sandra Loosemore  <sandra@codesourcery.com>
26978         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26979         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26980         to print-sysroot-suffix.sh script.
26982 2015-06-05  Tom de Vries  <tom@codesourcery.com>
26984         merge from gomp4 branch:
26985         2015-05-28  Tom de Vries  <tom@codesourcery.com>
26987         PR tree-optimization/65443
26988         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26989         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26990         (try_transform_to_exit_first_loop_alt): New function.
26991         (transform_to_exit_first_loop): Use
26992         try_transform_to_exit_first_loop_alt.
26994 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
26996         * builtins.c (expand_builtin_atomic_compare_exchange): Call
26997         emit_cmp_and_jump_insns with the mode of target.
26999 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27001         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27003 2015-06-04  DJ Delorie  <dj@redhat.com>
27005         * config/msp430/msp430.md (movsi_s): New.  Special case for
27006         storing a 20-bit symbol into a 32-bit register.
27007         * config/msp430/msp430.c (msp430_subreg): Add support for it.
27008         * config/msp430/predicates.md (msp430_symbol_operand): New.
27010 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
27012         * calls.c (prepare_call_address): Check for noplt
27013         attribute.
27014         * config/i386/i386.c (ix86_expand_call): Check
27015         for noplt attribute.
27016         (ix86_nopic_noplt_attribute_p): New function.
27017         (ix86_output_call_insn): Output indirect call for non-pic
27018         no plt calls.
27019         * doc/extend.texi (noplt): Document new attribute.
27020         * doc/invoke.texi: Document new attribute.
27022 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
27024         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27025         real.h, and fixed-value.h when included in host source files.
27026         * double-int.h: Remove redundant #includes listed above.
27027         * fixed-value.h: Likewise.
27028         * real.h: Likewise.
27029         * wide-int.h: Likewise.
27030         * inchash.h: Likewise.
27031         * rtl.h: Add some include files When included from a generator file.
27032         * target.h: Remove wide-int.h and insn-modes.h from the include list.
27033         * internal-fn.h: Don't include coretypes.h.
27034         * alias.c: Adjust includes for restructured coretypes.h.
27035         * asan.c: Likewise.
27036         * attribs.c: Likewise.
27037         * auto-inc-dec.c: Likewise.
27038         * auto-profile.c: Likewise.
27039         * bb-reorder.c: Likewise.
27040         * bt-load.c: Likewise.
27041         * builtins.c: Likewise.
27042         * caller-save.c: Likewise.
27043         * calls.c: Likewise.
27044         * ccmp.c: Likewise.
27045         * cfg.c: Likewise.
27046         * cfganal.c: Likewise.
27047         * cfgbuild.c: Likewise.
27048         * cfgcleanup.c: Likewise.
27049         * cfgexpand.c: Likewise.
27050         * cfghooks.c: Likewise.
27051         * cfgloop.c: Likewise.
27052         * cfgloop.h: Likewise.
27053         * cfgloopanal.c: Likewise.
27054         * cfgloopmanip.c: Likewise.
27055         * cfgrtl.c: Likewise.
27056         * cgraph.c: Likewise.
27057         * cgraphbuild.c: Likewise.
27058         * cgraphclones.c: Likewise.
27059         * cgraphunit.c: Likewise.
27060         * cilk-common.c: Likewise.
27061         * combine-stack-adj.c: Likewise.
27062         * combine.c: Likewise.
27063         * compare-elim.c: Likewise.
27064         * convert.c: Likewise.
27065         * coverage.c: Likewise.
27066         * cppbuiltin.c: Likewise.
27067         * cprop.c: Likewise.
27068         * cse.c: Likewise.
27069         * cselib.c: Likewise.
27070         * data-streamer-in.c: Likewise.
27071         * data-streamer-out.c: Likewise.
27072         * data-streamer.c: Likewise.
27073         * dbxout.c: Likewise.
27074         * dce.c: Likewise.
27075         * ddg.c: Likewise.
27076         * debug.c: Likewise.
27077         * df-core.c: Likewise.
27078         * df-problems.c: Likewise.
27079         * df-scan.c: Likewise.
27080         * df.h: Likewise.
27081         * dfp.c: Likewise.
27082         * dojump.c: Likewise.
27083         * dominance.c: Likewise.
27084         * domwalk.c: Likewise.
27085         * double-int.c: Likewise.
27086         * dse.c: Likewise.
27087         * dumpfile.c: Likewise.
27088         * dwarf2asm.c: Likewise.
27089         * dwarf2cfi.c: Likewise.
27090         * dwarf2out.c: Likewise.
27091         * dwarf2out.h: Likewise.
27092         * emit-rtl.c: Likewise.
27093         * et-forest.c: Likewise.
27094         * except.c: Likewise.
27095         * explow.c: Likewise.
27096         * expmed.c: Likewise.
27097         * expr.c: Likewise.
27098         * final.c: Likewise.
27099         * fixed-value.c: Likewise.
27100         * fold-const.c: Likewise.
27101         * function.c: Likewise.
27102         * fwprop.c: Likewise.
27103         * gcc-plugin.h: Likewise.
27104         * gcse.c: Likewise.
27105         * generic-match-head.c: Likewise.
27106         * ggc-page.c: Likewise.
27107         * gimple-builder.c: Likewise.
27108         * gimple-expr.c: Likewise.
27109         * gimple-fold.c: Likewise.
27110         * gimple-iterator.c: Likewise.
27111         * gimple-low.c: Likewise.
27112         * gimple-match-head.c: Likewise.
27113         * gimple-pretty-print.c: Likewise.
27114         * gimple-ssa-isolate-paths.c: Likewise.
27115         * gimple-ssa-strength-reduction.c: Likewise.
27116         * gimple-streamer-in.c: Likewise.
27117         * gimple-streamer-out.c: Likewise.
27118         * gimple-streamer.h: Likewise.
27119         * gimple-walk.c: Likewise.
27120         * gimple.c: Likewise.
27121         * gimplify-me.c: Likewise.
27122         * gimplify.c: Likewise.
27123         * godump.c: Likewise.
27124         * graph.c: Likewise.
27125         * graphite-blocking.c: Likewise.
27126         * graphite-dependences.c: Likewise.
27127         * graphite-interchange.c: Likewise.
27128         * graphite-isl-ast-to-gimple.c: Likewise.
27129         * graphite-optimize-isl.c: Likewise.
27130         * graphite-poly.c: Likewise.
27131         * graphite-scop-detection.c: Likewise.
27132         * graphite-sese-to-poly.c: Likewise.
27133         * graphite.c: Likewise.
27134         * haifa-sched.c: Likewise.
27135         * hooks.h: Likewise.
27136         * hw-doloop.c: Likewise.
27137         * ifcvt.c: Likewise.
27138         * incpath.c: Likewise.
27139         * init-regs.c: Likewise.
27140         * internal-fn.c: Likewise.
27141         * ipa-chkp.c: Likewise.
27142         * ipa-comdats.c: Likewise.
27143         * ipa-cp.c: Likewise.
27144         * ipa-devirt.c: Likewise.
27145         * ipa-icf-gimple.c: Likewise.
27146         * ipa-icf.c: Likewise.
27147         * ipa-inline-analysis.c: Likewise.
27148         * ipa-inline-transform.c: Likewise.
27149         * ipa-inline.c: Likewise.
27150         * ipa-polymorphic-call.c: Likewise.
27151         * ipa-profile.c: Likewise.
27152         * ipa-prop.c: Likewise.
27153         * ipa-pure-const.c: Likewise.
27154         * ipa-ref.c: Likewise.
27155         * ipa-reference.c: Likewise.
27156         * ipa-split.c: Likewise.
27157         * ipa-utils.c: Likewise.
27158         * ipa-visibility.c: Likewise.
27159         * ipa.c: Likewise.
27160         * ira-build.c: Likewise.
27161         * ira-color.c: Likewise.
27162         * ira-conflicts.c: Likewise.
27163         * ira-costs.c: Likewise.
27164         * ira-emit.c: Likewise.
27165         * ira-lives.c: Likewise.
27166         * ira.c: Likewise.
27167         * jump.c: Likewise.
27168         * langhooks.c: Likewise.
27169         * lcm.c: Likewise.
27170         * loop-doloop.c: Likewise.
27171         * loop-init.c: Likewise.
27172         * loop-invariant.c: Likewise.
27173         * loop-iv.c: Likewise.
27174         * loop-unroll.c: Likewise.
27175         * lower-subreg.c: Likewise.
27176         * lra-assigns.c: Likewise.
27177         * lra-coalesce.c: Likewise.
27178         * lra-constraints.c: Likewise.
27179         * lra-eliminations.c: Likewise.
27180         * lra-lives.c: Likewise.
27181         * lra-remat.c: Likewise.
27182         * lra-spills.c: Likewise.
27183         * lra.c: Likewise.
27184         * lto-cgraph.c: Likewise.
27185         * lto-compress.c: Likewise.
27186         * lto-opts.c: Likewise.
27187         * lto-section-in.c: Likewise.
27188         * lto-section-out.c: Likewise.
27189         * lto-streamer-in.c: Likewise.
27190         * lto-streamer-out.c: Likewise.
27191         * lto-streamer.c: Likewise.
27192         * mcf.c: Likewise.
27193         * mode-switching.c: Likewise.
27194         * modulo-sched.c: Likewise.
27195         * omega.c: Likewise.
27196         * omp-low.c: Likewise.
27197         * optabs.c: Likewise.
27198         * opts-global.c: Likewise.
27199         * passes.c: Likewise.
27200         * plugin.c: Likewise.
27201         * postreload-gcse.c: Likewise.
27202         * postreload.c: Likewise.
27203         * predict.c: Likewise.
27204         * print-rtl.c: Likewise.
27205         * print-tree.c: Likewise.
27206         * profile.c: Likewise.
27207         * real.c: Likewise.
27208         * realmpfr.c: Likewise.
27209         * realmpfr.h: Likewise.
27210         * recog.c: Likewise.
27211         * ree.c: Likewise.
27212         * reg-stack.c: Likewise.
27213         * regcprop.c: Likewise.
27214         * reginfo.c: Likewise.
27215         * regrename.c: Likewise.
27216         * regs.h: Likewise.
27217         * regstat.c: Likewise.
27218         * reload.c: Likewise.
27219         * reload1.c: Likewise.
27220         * reorg.c: Likewise.
27221         * resource.c: Likewise.
27222         * rtl-chkp.c: Likewise.
27223         * rtlanal.c: Likewise.
27224         * rtlhooks.c: Likewise.
27225         * sanopt.c: Likewise.
27226         * sched-deps.c: Likewise.
27227         * sched-ebb.c: Likewise.
27228         * sched-rgn.c: Likewise.
27229         * sched-vis.c: Likewise.
27230         * sdbout.c: Likewise.
27231         * sel-sched-dump.c: Likewise.
27232         * sel-sched-ir.c: Likewise.
27233         * sel-sched.c: Likewise.
27234         * sese.c: Likewise.
27235         * shrink-wrap.c: Likewise.
27236         * shrink-wrap.h: Likewise.
27237         * simplify-rtx.c: Likewise.
27238         * stack-ptr-mod.c: Likewise.
27239         * statistics.c: Likewise.
27240         * stmt.c: Likewise.
27241         * stor-layout.c: Likewise.
27242         * store-motion.c: Likewise.
27243         * stringpool.c: Likewise.
27244         * symtab.c: Likewise.
27245         * target-globals.c: Likewise.
27246         * targhooks.c: Likewise.
27247         * toplev.c: Likewise.
27248         * tracer.c: Likewise.
27249         * trans-mem.c: Likewise.
27250         * tree-affine.c: Likewise.
27251         * tree-affine.h: Likewise.
27252         * tree-browser.c: Likewise.
27253         * tree-call-cdce.c: Likewise.
27254         * tree-cfg.c: Likewise.
27255         * tree-cfgcleanup.c: Likewise.
27256         * tree-chkp-opt.c: Likewise.
27257         * tree-chkp.c: Likewise.
27258         * tree-chrec.c: Likewise.
27259         * tree-complex.c: Likewise.
27260         * tree-data-ref.c: Likewise.
27261         * tree-dfa.c: Likewise.
27262         * tree-diagnostic.c: Likewise.
27263         * tree-dump.c: Likewise.
27264         * tree-eh.c: Likewise.
27265         * tree-emutls.c: Likewise.
27266         * tree-if-conv.c: Likewise.
27267         * tree-inline.c: Likewise.
27268         * tree-into-ssa.c: Likewise.
27269         * tree-iterator.c: Likewise.
27270         * tree-loop-distribution.c: Likewise.
27271         * tree-nested.c: Likewise.
27272         * tree-nrv.c: Likewise.
27273         * tree-object-size.c: Likewise.
27274         * tree-outof-ssa.c: Likewise.
27275         * tree-parloops.c: Likewise.
27276         * tree-phinodes.c: Likewise.
27277         * tree-predcom.c: Likewise.
27278         * tree-pretty-print.c: Likewise.
27279         * tree-pretty-print.h: Likewise.
27280         * tree-profile.c: Likewise.
27281         * tree-scalar-evolution.c: Likewise.
27282         * tree-sra.c: Likewise.
27283         * tree-ssa-address.c: Likewise.
27284         * tree-ssa-alias.c: Likewise.
27285         * tree-ssa-ccp.c: Likewise.
27286         * tree-ssa-coalesce.c: Likewise.
27287         * tree-ssa-copy.c: Likewise.
27288         * tree-ssa-copyrename.c: Likewise.
27289         * tree-ssa-dce.c: Likewise.
27290         * tree-ssa-dom.c: Likewise.
27291         * tree-ssa-dse.c: Likewise.
27292         * tree-ssa-forwprop.c: Likewise.
27293         * tree-ssa-ifcombine.c: Likewise.
27294         * tree-ssa-live.c: Likewise.
27295         * tree-ssa-loop-ch.c: Likewise.
27296         * tree-ssa-loop-im.c: Likewise.
27297         * tree-ssa-loop-ivcanon.c: Likewise.
27298         * tree-ssa-loop-ivopts.c: Likewise.
27299         * tree-ssa-loop-manip.c: Likewise.
27300         * tree-ssa-loop-niter.c: Likewise.
27301         * tree-ssa-loop-prefetch.c: Likewise.
27302         * tree-ssa-loop-unswitch.c: Likewise.
27303         * tree-ssa-loop.c: Likewise.
27304         * tree-ssa-loop.h: Likewise.
27305         * tree-ssa-math-opts.c: Likewise.
27306         * tree-ssa-operands.c: Likewise.
27307         * tree-ssa-phiopt.c: Likewise.
27308         * tree-ssa-phiprop.c: Likewise.
27309         * tree-ssa-pre.c: Likewise.
27310         * tree-ssa-propagate.c: Likewise.
27311         * tree-ssa-reassoc.c: Likewise.
27312         * tree-ssa-sccvn.c: Likewise.
27313         * tree-ssa-scopedtables.c: Likewise.
27314         * tree-ssa-sink.c: Likewise.
27315         * tree-ssa-strlen.c: Likewise.
27316         * tree-ssa-structalias.c: Likewise.
27317         * tree-ssa-tail-merge.c: Likewise.
27318         * tree-ssa-ter.c: Likewise.
27319         * tree-ssa-threadedge.c: Likewise.
27320         * tree-ssa-threadupdate.c: Likewise.
27321         * tree-ssa-uncprop.c: Likewise.
27322         * tree-ssa-uninit.c: Likewise.
27323         * tree-ssa.c: Likewise.
27324         * tree-ssanames.c: Likewise.
27325         * tree-stdarg.c: Likewise.
27326         * tree-streamer-in.c: Likewise.
27327         * tree-streamer-out.c: Likewise.
27328         * tree-streamer.c: Likewise.
27329         * tree-switch-conversion.c: Likewise.
27330         * tree-tailcall.c: Likewise.
27331         * tree-vect-data-refs.c: Likewise.
27332         * tree-vect-generic.c: Likewise.
27333         * tree-vect-loop-manip.c: Likewise.
27334         * tree-vect-loop.c: Likewise.
27335         * tree-vect-patterns.c: Likewise.
27336         * tree-vect-slp.c: Likewise.
27337         * tree-vect-stmts.c: Likewise.
27338         * tree-vectorizer.c: Likewise.
27339         * tree-vrp.c: Likewise.
27340         * tree.c: Likewise.
27341         * tsan.c: Likewise.
27342         * ubsan.c: Likewise.
27343         * valtrack.c: Likewise.
27344         * value-prof.c: Likewise.
27345         * var-tracking.c: Likewise.
27346         * varasm.c: Likewise.
27347         * varpool.c: Likewise.
27348         * vmsdbgout.c: Likewise.
27349         * vtable-verify.c: Likewise.
27350         * web.c: Likewise.
27351         * wide-int-print.cc: Likewise.
27352         * wide-int-print.h: Likewise.
27353         * wide-int.cc: Likewise.
27354         * xcoffout.c: Likewise.
27355         * config/aarch64/aarch64-builtins.c: Likewise.
27356         * config/aarch64/aarch64.c: Likewise.
27357         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27358         * config/alpha/alpha.c: Likewise.
27359         * config/arc/arc.c: Likewise.
27360         * config/arm/aarch-common.c: Likewise.
27361         * config/arm/arm-builtins.c: Likewise.
27362         * config/arm/arm-c.c: Likewise.
27363         * config/arm/arm.c: Likewise.
27364         * config/avr/avr-c.c: Likewise.
27365         * config/avr/avr-log.c: Likewise.
27366         * config/avr/avr.c: Likewise.
27367         * config/bfin/bfin.c: Likewise.
27368         * config/c6x/c6x.c: Likewise.
27369         * config/cr16/cr16.c: Likewise.
27370         * config/cris/cris.c: Likewise.
27371         * config/darwin-c.c: Likewise.
27372         * config/darwin.c: Likewise.
27373         * config/default-c.c: Likewise.
27374         * config/epiphany/epiphany.c: Likewise.
27375         * config/epiphany/mode-switch-use.c: Likewise.
27376         * config/epiphany/resolve-sw-modes.c: Likewise.
27377         * config/fr30/fr30.c: Likewise.
27378         * config/frv/frv.c: Likewise.
27379         * config/ft32/ft32.c: Likewise.
27380         * config/glibc-c.c: Likewise.
27381         * config/h8300/h8300.c: Likewise.
27382         * config/i386/i386-c.c: Likewise.
27383         * config/i386/i386.c: Likewise.
27384         * config/i386/msformat-c.c: Likewise.
27385         * config/i386/winnt-cxx.c: Likewise.
27386         * config/i386/winnt-stubs.c: Likewise.
27387         * config/i386/winnt.c: Likewise.
27388         * config/ia64/ia64-c.c: Likewise.
27389         * config/ia64/ia64.c: Likewise.
27390         * config/iq2000/iq2000.c: Likewise.
27391         * config/lm32/lm32.c: Likewise.
27392         * config/m32c/m32c-pragma.c: Likewise.
27393         * config/m32c/m32c.c: Likewise.
27394         * config/m32r/m32r.c: Likewise.
27395         * config/m68k/m68k.c: Likewise.
27396         * config/mcore/mcore.c: Likewise.
27397         * config/mep/mep-pragma.c: Likewise.
27398         * config/mep/mep.c: Likewise.
27399         * config/microblaze/microblaze-c.c: Likewise.
27400         * config/microblaze/microblaze.c: Likewise.
27401         * config/mips/mips.c: Likewise.
27402         * config/mmix/mmix.c: Likewise.
27403         * config/mn10300/mn10300.c: Likewise.
27404         * config/moxie/moxie.c: Likewise.
27405         * config/msp430/msp430-c.c: Likewise.
27406         * config/msp430/msp430.c: Likewise.
27407         * config/nds32/nds32-cost.c: Likewise.
27408         * config/nds32/nds32-fp-as-gp.c: Likewise.
27409         * config/nds32/nds32-intrinsic.c: Likewise.
27410         * config/nds32/nds32-isr.c: Likewise.
27411         * config/nds32/nds32-md-auxiliary.c: Likewise.
27412         * config/nds32/nds32-memory-manipulation.c: Likewise.
27413         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27414         * config/nds32/nds32-predicates.c: Likewise.
27415         * config/nds32/nds32.c: Likewise.
27416         * config/nios2/nios2.c: Likewise.
27417         * config/nvptx/nvptx.c: Likewise.
27418         * config/pa/pa.c: Likewise.
27419         * config/pdp11/pdp11.c: Likewise.
27420         * config/rl78/rl78-c.c: Likewise.
27421         * config/rl78/rl78.c: Likewise.
27422         * config/rs6000/rs6000-c.c: Likewise.
27423         * config/rs6000/rs6000.c: Likewise.
27424         * config/rx/rx.c: Likewise.
27425         * config/s390/s390-c.c: Likewise.
27426         * config/s390/s390.c: Likewise.
27427         * config/sh/sh-c.c: Likewise.
27428         * config/sh/sh-mem.cc: Likewise.
27429         * config/sh/sh.c: Likewise.
27430         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27431         * config/sh/sh_treg_combine.cc: Likewise.
27432         * config/sol2-c.c: Likewise.
27433         * config/sol2-cxx.c: Likewise.
27434         * config/sol2-stubs.c: Likewise.
27435         * config/sol2.c: Likewise.
27436         * config/sparc/sparc-c.c: Likewise.
27437         * config/sparc/sparc.c: Likewise.
27438         * config/spu/spu-c.c: Likewise.
27439         * config/spu/spu.c: Likewise.
27440         * config/stormy16/stormy16.c: Likewise.
27441         * config/tilegx/mul-tables.c: Likewise.
27442         * config/tilegx/tilegx-c.c: Likewise.
27443         * config/tilegx/tilegx.c: Likewise.
27444         * config/tilepro/mul-tables.c: Likewise.
27445         * config/tilepro/tilepro-c.c: Likewise.
27446         * config/tilepro/tilepro.c: Likewise.
27447         * config/v850/v850-c.c: Likewise.
27448         * config/v850/v850.c: Likewise.
27449         * config/vax/vax.c: Likewise.
27450         * config/visium/visium.c: Likewise.
27451         * config/vms/vms-c.c: Likewise.
27452         * config/vms/vms.c: Likewise.
27453         * config/vxworks.c: Likewise.
27454         * config/winnt-c.c: Likewise.
27455         * config/xtensa/xtensa.c: Likewise.
27456         * common/config/bfin/bfin-common.c: Likewise.
27458 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
27460         * tree.h (tree_code_for_canonical_type_merging): New function.
27461         * tree.c (gimple_canonical_types_compatible_p): Use
27462         tree_code_for_canonical_type_merging..
27464 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27466         PR c++/66192
27467         PR target/66200
27468         * doc/tm.texi: Regenerate.
27469         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27470         * target.def (TARGET_RELAXED_ORDERING): Likewise.
27471         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27472         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27473         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27474         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27475         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27476         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27477         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27479 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27481         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27482         register fma steering pass.
27483         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27484         AARCH64_TUNE_FMA_STEERING.
27486 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
27488         * tree.c (verify_type_variant): Verify that type and variant is
27489         compatible.
27490         (gimple_canonical_types_compatible_p): Look for main variants.
27492 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27494         * config.gcc (powerpc*-*-*): Add support for a new configure
27495         option --with-advance-toolchain=<xxx> which overrides using the
27496         default header files, libraries and dynamic linker.
27498         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27499         specs to support the configure --with-advance-toolchain=<xxx>
27500         option.
27501         (INCLUDE_EXTRA_SPEC): Likewise.
27502         (LINK_OS_EXTRA_SPEC32): Likewise.
27503         (LINK_OK_EXTRA_SPEC64): Likewise.
27504         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27505         (DYNAMIC_LINKER_PREFIX): Likewise.
27506         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27507         toolchain support.
27508         (GLIBC_DYNAMIC_LINKER32): Likewise.
27509         (GLIBC_DYNAMIC_LINKER64): Likewise.
27510         (LINK_OS_LINUX_SPEC32): Likewise.
27511         (LINK_OS_LINUX_SPEC64): Likewise.
27513         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27514         configuration option.
27516 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
27518         PR target/66275
27519         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27520         to determine current function ABI.
27521         (ix86_function_value_regno_p): Ditto.
27523 2015-06-03  Martin Liska  <mliska@suse.cz>
27525         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27526         * bitmap.h (struct bitmap_usage): Likewise.
27527         * ggc-common.c (struct ggc_usage): Likewise.
27528         * mem-stats.h (struct mem_location): Likewise.
27529         (struct mem_usage): Likewise.
27530         * vec.c (struct vec_usage): Likewise.
27532 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
27534         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27535         -Bsymbolic.
27537 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
27539         * doc/plugins.texi (enum plugin_event): New event.
27540         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27541         and PLUGIN_FINISH_FUNCTION.
27542         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27543         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27545 2015-06-03  Richard Biener  <rguenther@suse.de>
27547         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27548         compute GROUP_GAP for the first element.
27549         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27550         on in-group gaps.
27552 2015-06-03  Nick Clifton  <nickc@redhat.com>
27554         * config/rl78/rl78-real.md: Add peepholes to avoid a register
27555         copy when calling a function.
27556         * config/rl78/rl78.c (need_to_save): Do not push the frame
27557         pointer in an interrupt handler prologue if it is never used.
27559 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27561         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27563 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27565         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27566         reference when cloning alias node.
27568 2015-06-03  Martin Liska  <mliska@suse.cz>
27570         * alloc-pool.h (struct pool_usage): Correct space padding.
27571         * ggc-page.c (ggc_print_statistics): Align columns in a report.
27572         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27573         * tree.c (dump_tree_statistics): Align columns in a report.
27575 2015-06-03  Martin Liska  <mliska@suse.cz>
27577         * alloc-pool.c (allocate_pool_descriptor): Remove.
27578         (struct pool_output_info): Likewise.
27579         (print_alloc_pool_statistics): Likewise.
27580         (dump_alloc_pool_statistics): Likewise.
27581         * alloc-pool.h (struct pool_usage): New struct.
27582         (pool_allocator::initialize): Change usage of memory statistics
27583         to a new interface.
27584         (pool_allocator::release): Likewise.
27585         (pool_allocator::allocate): Likewise.
27586         (pool_allocator::remove): Likewise.
27587         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27588         for a pool allocator.
27589         * mem-stats.h (struct mem_location): Add new ctor.
27590         (struct mem_usage): Add counter for number of
27591         instances.
27592         (mem_alloc_description::register_descriptor): New overload of
27593         * mem-stats.h (mem_location::to_string): New function.
27594         * bitmap.h (struct bitmap_usage): Use this new function.
27595         * ggc-common.c (struct ggc_usage): Likewise.
27596         the function.
27598 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27600         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27601         of GCC_INSN_FLAGS_H block.
27603 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
27605         * explow.c (plus_constant): Update check after force_const_mem call
27606         to see if the value returned is not a NULL_RTX.
27608 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27610         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27611         remove instumentation thunks calling reachable functions.
27612         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27613         * lto/lto-partition.c (privatize_symbol_name_1): New.
27614         (privatize_symbol_name): Privatize both decl and orig_decl
27615         names for instrumented functions.
27616         * cgraph.c (cgraph_node::verify_node): Add transparent
27617         alias chain check for instrumented node.
27619 2015-06-03  Marek Polacek  <polacek@redhat.com>
27621         PR c/64223
27622         PR c/29358
27623         * tree.c (attribute_value_equal): Handle attribute format.
27624         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27626 2015-06-03  Richard Biener  <rguenther@suse.de>
27628         PR tree-optimization/63916
27629         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27630         Forward-propagate non-invariant addresses by splicing their
27631         reference ops if the result isn't going to be used by PRE.
27632         (vn_reference_lookup_3): Remove pointless assert.
27634 2015-06-03  Richard Biener  <rguenther@suse.de>
27636         PR tree-optimization/66375
27637         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27638         add to the evolution before following SSA edges.
27640 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
27642         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27643         (dump_use, dump_cand, find_induction_variables): Pass new argument
27644         to dump_iv.
27645         (record_use): Preserve the ssa name information in IV.
27647 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27649         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27650         NO_MODE_TEST.
27651         (add_mode_tests): Don't add mode tests if the predicate only
27652         accepts scalar constant integers.  Otherwise, allow the mode
27653         of "op" to be VOIDmode if the predicate does accept such integers.
27655 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
27657         PR target/66258
27658         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27659         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27660         (aarch64_secondary_reload): Likewise
27661         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27662         to !TARGET_FLOAT.
27663         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27664         Likewise.
27666 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
27667             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27669         PR target/65768
27670         * cprop.c (try_replace_reg): Check cost of constants before propagating.
27672 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27674         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27675         provide access to the IBM extended double floating point mode if
27676         long double is IEEE 128-bit floating point.
27677         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27678         point if long double is the IBM extended double type.
27680         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27681         enable adding IEEE 128-bit floating point support.
27682         (-mfloat128-software): Likewise.
27683         (-mfloat128-sw): Likewise.
27685         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27686         128-bit floating point types to occupy any register if
27687         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
27688         -mfloat128-software is enabled.
27689         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27690         support.
27691         (rs6000_option_override_internal): Add -mfloat128-* support.
27692         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27694         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27695         and float128 type nodes.
27696         (ieee128_float_type_node): Likewise.
27697         (ibm128_float_type_node): Likewise.
27699 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27701         PR target/66136
27702         * config/aarch64/geniterators.sh: Rewrite in awk.
27704 2015-06-02  Martin Liska  <mliska@suse.cz>
27706         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27707         values to avoid -Wmaybe-uninitialized errors.
27709 2015-06-02  Richard Biener  <rguenther@suse.de>
27711         PR debug/65549
27712         * dwarf2out.c (lookup_context_die): New function.
27713         (resolve_addr): Avoid forcing a full DIE for the
27714         target of a DW_TAG_GNU_call_site during late compilation.
27715         Instead create a stub DIE without a type if we have a
27716         context DIE present.
27718 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
27720         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27722 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27724         PR tree-optimization/48052
27725         * cfgloop.h (struct control_iv): New.
27726         (struct loop): New field control_ivs.
27727         * tree-ssa-loop-niter.c : Include "stor-layout.h".
27728         (number_of_iterations_lt): Set no_overflow information.
27729         (number_of_iterations_exit): Init control iv in niter struct.
27730         (record_control_iv): New.
27731         (estimate_numbers_of_iterations_loop): Call record_control_iv.
27732         (loop_exits_before_overflow): New.  Interface factored out of
27733         scev_probably_wraps_p.
27734         (scev_probably_wraps_p): Factor loop niter related code into
27735         loop_exits_before_overflow.
27736         (free_numbers_of_iterations_estimates_loop): Free control ivs.
27737         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27739 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
27741         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27742         the target doesn't belong to the current function.
27744 2015-06-02  Marek Polacek  <polacek@redhat.com>
27746         PR middle-end/66345
27747         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27748         get_maxval_strlen does not produce an INTEGER_CST.
27750 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
27752         * config/arc/constraints.md: Use lower-case names in match_code.
27753         * config/mmix/constraints.md: Likewise.
27755 2015-06-02  Richard Biener  <rguenther@suse.de>
27757         PR tree-optimization/65961
27758         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27759         check and clarify dump message.
27760         (vect_build_slp_tree): If all children are built up from scalars
27761         build up the parent from scalars instead.
27762         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27764 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
27766         PR other/65366
27767         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
27768         instead of print ... .
27770 2015-06-02  Alan Modra  <amodra@gmail.com>
27772         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27773         2014-08-11 change.
27775 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27777         PR tree-optimization/52563
27778         PR tree-optimization/62173
27779         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
27780         (alloc_iv, set_iv): New parameter.
27781         (determine_biv_step): Delete.
27782         (find_bivs): Inline original determine_biv_step.  Pass new
27783         argument to set_iv.
27784         (idx_find_step): Use no_overflow information for conversion.
27785         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27786         resolve_mixers handle folded_casts.
27787         (instantiate_scev_name): Change bool parameter to bool pointer.
27788         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27789         (instantiate_array_ref, instantiate_scev_not): Ditto.
27790         (instantiate_scev_3, instantiate_scev_2): Ditto.
27791         (instantiate_scev_1, instantiate_scev_r): Ditto.
27792         (instantiate_scev_convert, ): Change parameter.  Pass argument
27793         to chrec_convert_aggressive.
27794         (instantiate_scev): Change argument.
27795         (resolve_mixers): New parameter and set it.
27796         (scev_const_prop): New argument.
27797         * tree-scalar-evolution.h (resolve_mixers): New parameter.
27798         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27799         of chrec_conert_1.
27800         (chrec_convert): New parameter.  Move definition below.
27801         (chrec_convert_aggressive): New parameter and set it.  Call
27802         convert_affine_scev.
27803         * tree-chrec.h (chrec_convert): New parameter.
27804         (chrec_convert_aggressive): Ditto.
27806 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27808         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27809         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27810         the LHS of a no-return call if its type has variable size.
27811         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27812         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27814 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
27816         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27817         * config.in: Regenerate.
27819 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27821         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27822         consecutive accesses within outer-loop with force_vectorize
27823         for references with zero step in inner-loop.
27825 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27827         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27828         rather than from gcc/build directory.
27830 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27832         PR target/65697
27833         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27834         for __sync memory models, emit initial loads and final barriers as
27835         appropriate.
27837 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27839         PR target/65697
27840         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27841         (aarch64_split_atomic_op): Check for __sync memory models, emit
27842         appropriate initial loads and final barriers.
27844 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27846         * Makefile.in: Fix gcov dependencies that should
27847         not point to a build folder.
27849 2015-06-01  Richard Biener  <rguenther@suse.de>
27851         Revert
27852         2015-05-29  Richard Biener  <rguenther@suse.de>
27854         PR tree-optimization/66314
27855         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27856         parameter that says which loop the new block belongs to.
27857         (ssa_create_duplicates): Blocks duplicated for the threaded
27858         path belong to the loop of the thread destination.
27860 2015-06-01  Martin Liska  <mliska@suse.cz>
27862         * sched-deps.c: Include pool-alloc.h before
27863         cselib.h header file is included.
27865 2015-06-01  Richard Biener  <rguenther@suse.de>
27867         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27868         functions.
27870 2015-06-01  Martin Liska  <mliska@suse.cz>
27872         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27873         a function local variable.
27875 2015-06-01  Martin Liska  <mliska@suse.cz>
27877         * alloc-pool.c (create_alloc_pool): Remove.
27878         (empty_alloc_pool): Likewise.
27879         (free_alloc_pool): Likewise.
27880         (free_alloc_pool_if_empty): Likewise.
27881         (pool_alloc): Likewise.
27882         (pool_free): Likewise.
27883         * alloc-pool.h: Remove old declarations.
27885 2015-06-01  Martin Liska  <mliska@suse.cz>
27887         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27888         (ira_create_object): Likewise.
27889         (ira_create_allocno): Likewise.
27890         (ira_create_live_range): Likewise.
27891         (copy_live_range): Likewise.
27892         (ira_finish_live_range): Likewise.
27893         (ira_free_allocno_costs): Likewise.
27894         (finish_allocno): Likewise.
27895         (finish_allocnos): Likewise.
27896         (initiate_prefs): Likewise.
27897         (ira_create_pref): Likewise.
27898         (finish_pref): Likewise.
27899         (finish_prefs): Likewise.
27900         (initiate_copies): Likewise.
27901         (ira_create_copy): Likewise.
27902         (finish_copy): Likewise.
27903         (finish_copies): Likewise.
27904         (finish_prefs): Likewise.
27906 2015-06-01  Martin Liska  <mliska@suse.cz>
27908         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27909         (allocate_and_init_ipcp_value): Likewise.
27910         (ipcp_lattice::add_value): Likewise.
27911         (merge_agg_lats_step): Likewise.
27912         (ipcp_driver): Likewise.
27913         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27914         (ipa_free_all_structures_after_iinln): Likewise.
27915         * ipa-prop.h: Likewise.
27917 2015-06-01  Martin Liska  <mliska@suse.cz>
27919         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27920         pool allocator.
27921         (set_hint_predicate): Likewise.
27922         (inline_summary_alloc): Likewise.
27923         (reset_inline_edge_summary): Likewise.
27924         (reset_inline_summary): Likewise.
27925         (set_cond_stmt_execution_predicate): Likewise.
27926         (set_switch_stmt_execution_predicate): Likewise.
27927         (compute_bb_predicates): Likewise.
27928         (estimate_function_body_sizes): Likewise.
27929         (inline_free_summary): Likewise.
27931 2015-06-01  Martin Liska  <mliska@suse.cz>
27933         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27934         (ipa_edge_duplication_hook): Likewise.
27935         (ipa_free_all_structures_after_ipa_cp): Likewise.
27936         (ipa_free_all_structures_after_iinln): Likewise.
27938 2015-06-01  Martin Liska  <mliska@suse.cz>
27940         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27941         (ipa_profile_generate_summary): Likewise.
27942         (ipa_profile_read_summary): Likewise.
27943         (ipa_profile): Likewise.
27945 2015-06-01  Martin Liska  <mliska@suse.cz>
27947         * tree-ssa-structalias.c (new_var_info): Use new type-based
27948         pool allocator.
27949         (new_constraint): Likewise.
27950         (init_alias_vars): Likewise.
27951         (delete_points_to_sets): Likewise.
27953 2015-06-01  Martin Liska  <mliska@suse.cz>
27955         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27956         (free_strinfo): Likewise.
27957         (pass_strlen::execute): Likewise.
27959 2015-06-01  Martin Liska  <mliska@suse.cz>
27961         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27962         pool allocator.
27963         (vn_reference_insert_pieces): Likewise.
27964         (vn_phi_insert): Likewise.
27965         (visit_reference_op_call): Likewise.
27966         (copy_phi): Likewise.
27967         (copy_reference): Likewise.
27968         (process_scc): Likewise.
27969         (allocate_vn_table): Likewise.
27970         (free_vn_table): Likewise.
27972 2015-06-01  Martin Liska  <mliska@suse.cz>
27974         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27975         pool allocator.
27976         (add_repeat_to_ops_vec): Likewise.
27977         (get_ops): Likewise.
27978         (maybe_optimize_range_tests): Likewise.
27979         (init_reassoc): Likewise.
27980         (fini_reassoc): Likewise.
27982 2015-06-01  Martin Liska  <mliska@suse.cz>
27984         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27985         pool allocator.
27986         (bitmap_set_new): Likewise.
27987         (get_or_alloc_expr_for_constant): Likewise.
27988         (get_or_alloc_expr_for): Likewise.
27989         (phi_translate_1): Likewise.
27990         (compute_avail): Likewise.
27991         (init_pre): Likewise.
27992         (fini_pre): Likewise.
27994 2015-06-01  Martin Liska  <mliska@suse.cz>
27996         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27997         (delete_dep_node): Likewise.
27998         (create_deps_list): Likewise.
27999         (free_deps_list): Likewise.
28000         (sched_deps_init): Likewise.
28001         (sched_deps_finish): Likewise.
28003 2015-06-01  Martin Liska  <mliska@suse.cz>
28005         * regcprop.c (free_debug_insn_changes): Use new type-based
28006         pool allocator.
28007         (replace_oldest_value_reg): Likewise.
28008         (pass_cprop_hardreg::execute): Likewise.
28010 2015-06-01  Martin Liska  <mliska@suse.cz>
28012         * ira-build.c (initiate_cost_vectors): Use new type-based
28013         pool allocator.
28014         (ira_allocate_cost_vector): Likewise.
28015         (ira_free_cost_vector): Likewise.
28016         (finish_cost_vectors): Likewise.
28018 2015-06-01  Martin Liska  <mliska@suse.cz>
28020         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28021         pool allocator.
28022         (free_sched_pools): Likewise.
28023         * sel-sched-ir.h (_list_alloc): Likewise.
28024         (_list_remove): Likewise.
28026 2015-06-01  Martin Liska  <mliska@suse.cz>
28028         * stmt.c (add_case_node): Use new type-based pool allocator.
28029         (expand_case): Likewise.
28030         (expand_sjlj_dispatch_table): Likewise.
28032 2015-06-01  Martin Liska  <mliska@suse.cz>
28034         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28035         (free_bb): Likewise.
28036         (pass_cse_reciprocals::execute): Likewise.
28038 2015-06-01  Martin Liska  <mliska@suse.cz>
28040         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28041         (sra_deinitialize) Likewise.
28042         (create_access_1) Likewise.
28043         (build_accesses_from_assign) Likewise.
28044         (create_artificial_child_access) Likewise.
28046 2015-06-01  Martin Liska  <mliska@suse.cz>
28048         * dse.c (get_group_info):Use new type-based pool allocator.
28049         (dse_step0) Likewise.
28050         (free_store_info) Likewise.
28051         (delete_dead_store_insn) Likewise.
28052         (free_read_records) Likewise.
28053         (record_store) Likewise.
28054         (replace_read) Likewise.
28055         (check_mem_read_rtx) Likewise.
28056         (scan_insn) Likewise.
28057         (dse_step1) Likewise.
28058         (dse_step7) Likewise.
28060 2015-06-01  Martin Liska  <mliska@suse.cz>
28062         * df-scan.c (struct df_scan_problem_data):Use new type-based
28063         pool allocator.
28064         (df_scan_free_internal) Likewise.
28065         (df_scan_alloc) Likewise.
28066         (df_grow_reg_info) Likewise.
28067         (df_free_ref) Likewise.
28068         (df_insn_create_insn_record) Likewise.
28069         (df_mw_hardreg_chain_delete) Likewise.
28070         (df_insn_info_delete) Likewise.
28071         (df_free_collection_rec) Likewise.
28072         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28073         (df_sort_and_compress_mws) Likewise.
28074         (df_ref_create_structure) Likewise.
28075         (df_ref_record) Likewise.
28077 2015-06-01  Martin Liska  <mliska@suse.cz>
28079         * df-problems.c (df_chain_create):Use new type-based pool allocator.
28080         (df_chain_unlink_1) Likewise.
28081         (df_chain_unlink) Likewise.
28082         (df_chain_remove_problem) Likewise.
28083         (df_chain_alloc) Likewise.
28084         (df_chain_free) Likewise.
28085         * df.h (struct dataflow) Likewise.
28087 2015-06-01  Martin Liska  <mliska@suse.cz>
28089         * cselib.c (new_elt_list):Use new type-based pool allocator.
28090         (new_elt_loc_list) Likewise.
28091         (unchain_one_elt_list) Likewise.
28092         (unchain_one_elt_loc_list) Likewise.
28093         (unchain_one_value) Likewise.
28094         (new_cselib_val) Likewise.
28095         (cselib_init) Likewise.
28096         (cselib_finish) Likewise.
28098 2015-06-01  Martin Liska  <mliska@suse.cz>
28100         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28101         (sh_reorg) Likewise.
28103 2015-06-01  Martin Liska  <mliska@suse.cz>
28105         * cfg.c (initialize_original_copy_tables):Use new type-based
28106         pool allocator.
28107         (free_original_copy_tables) Likewise.
28108         (copy_original_table_clear) Likewise.
28109         (copy_original_table_set) Likewise.
28111 2015-06-01  Martin Liska  <mliska@suse.cz>
28113         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28114         pool allocator.
28115         (asan_mem_ref_new) Likewise.
28116         (free_mem_ref_resources) Likewise.
28118 2015-06-01  Martin Liska  <mliska@suse.cz>
28120         * var-tracking.c (variable_htab_free):Use new type-based
28121         pool allocator.
28122         (attrs_list_clear) Likewise.
28123         (attrs_list_insert) Likewise.
28124         (attrs_list_copy) Likewise.
28125         (shared_hash_unshare) Likewise.
28126         (shared_hash_destroy) Likewise.
28127         (unshare_variable) Likewise.
28128         (var_reg_delete_and_set) Likewise.
28129         (var_reg_delete) Likewise.
28130         (var_regno_delete) Likewise.
28131         (drop_overlapping_mem_locs) Likewise.
28132         (variable_union) Likewise.
28133         (insert_into_intersection) Likewise.
28134         (canonicalize_values_star) Likewise.
28135         (variable_merge_over_cur) Likewise.
28136         (dataflow_set_merge) Likewise.
28137         (remove_duplicate_values) Likewise.
28138         (variable_post_merge_new_vals) Likewise.
28139         (dataflow_set_preserve_mem_locs) Likewise.
28140         (dataflow_set_remove_mem_locs) Likewise.
28141         (variable_from_dropped) Likewise.
28142         (variable_was_changed) Likewise.
28143         (set_slot_part) Likewise.
28144         (clobber_slot_part) Likewise.
28145         (delete_slot_part) Likewise.
28146         (loc_exp_insert_dep) Likewise.
28147         (notify_dependents_of_changed_value) Likewise.
28148         (emit_notes_for_differences_1) Likewise.
28149         (vt_emit_notes) Likewise.
28150         (vt_initialize) Likewise.
28151         (vt_finalize) Likewise.
28153 2015-06-01  Martin Liska  <mliska@suse.cz>
28155         * ira-color.c (init_update_cost_records):Use new type-based
28156         pool allocator.
28157         (get_update_cost_record) Likewise.
28158         (free_update_cost_record_list) Likewise.
28159         (finish_update_cost_records) Likewise.
28160         (initiate_cost_update) Likewise.
28162 2015-06-01  Martin Liska  <mliska@suse.cz>
28164         * lra.c (init_insn_regs): Use new type-based pool allocator.
28165         (new_insn_reg) Likewise.
28166         (free_insn_reg) Likewise.
28167         (free_insn_regs) Likewise.
28168         (finish_insn_regs) Likewise.
28169         (init_insn_recog_data) Likewise.
28170         (init_reg_info) Likewise.
28171         (finish_reg_info) Likewise.
28172         (lra_free_copies) Likewise.
28173         (lra_create_copy) Likewise.
28174         (invalidate_insn_data_regno_info) Likewise.
28176 2015-06-01  Martin Liska  <mliska@suse.cz>
28178         * lra-lives.c (free_live_range): Use new type-based pool allocator.
28179         (free_live_range_list) Likewise.
28180         (create_live_range) Likewise.
28181         (copy_live_range) Likewise.
28182         (lra_merge_live_ranges) Likewise.
28183         (remove_some_program_points_and_update_live_ranges) Likewise.
28184         (lra_live_ranges_init) Likewise.
28185         (lra_live_ranges_finish) Likewise.
28187 2015-06-01  Martin Liska  <mliska@suse.cz>
28189         * et-forest.c (et_new_occ): Use new type-based pool allocator.
28190         (et_new_tree): Likewise.
28191         (et_free_tree): Likewise.
28192         (et_free_tree_force): Likewise.
28193         (et_free_pools): Likewise.
28194         (et_split): Likewise.
28196 2015-06-01  Martin Liska  <mliska@suse.cz>
28198         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28199         to header file.
28200         * alloc-pool.h (pool_allocator::pool_allocator): New function.
28201         (pool_allocator::release): Likewise.
28202         (inline pool_allocator::release_if_empty): Likewise.
28203         (inline pool_allocator::~pool_allocator): Likewise.
28204         (pool_allocator::allocate): Likewise.
28205         (pool_allocator::remove): Likewise.
28207 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28209         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28210         in comment.
28212 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28214         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28215         to fusible_ops.
28216         * config/arm/arm.c (arm_print_tune_info): Likewise.
28217         (arm_macro_fusion_p): Likewise.
28218         (arm_macro_fusion_pair_p): Likewise.
28220 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28222         * config/aarch64/aarch64-protos.h (tune_params): Rename
28223         fuseable_ops to fusible_ops.
28224         * config/aarch64/aarch64.c (generic_tunings): Rename
28225         fuseable_ops to fusible_ops.
28226         (cortexa53_tunings): Likewise.
28227         (cortexa57_tunings): Likewise.
28228         (thunderx_tunings): Likewise.
28229         (xgene1_tunings): Likewise.
28230         (aarch64_macro_fusion_p): Likewise.
28231         (aarch64_macro_fusion_pair_p): Likewise.
28233 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28235         * config/s390/driver-native.c: New file.
28236         * config/s390/x-native: New file.
28237         * config.host: Add new files for s390.
28238         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28239         and -march=native
28240         * config.gcc: Likewise.
28241         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28242         * config/s390/s390-opts.h (enum processor_type): Ditto.
28243         * config/s390/s390.c (s390_option_override): Catch unhandled
28244         PROCESSOR_NATIVE
28246 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
28248         PR target/65527
28249         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28250         redirection for instrumented calls.
28251         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28252         (append_compiler_options): Append -fcheck-pointer-bounds.
28253         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28254         (chkp_redirect_edge): New.
28255         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28256         (chkp_redirect_edge): New.
28258 2015-06-01  Richard Biener  <rguenther@suse.de>
28260         PR tree-optimization/66280
28261         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28262         def-use walking.
28264 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28266         * config/aarch64/aarch64.md
28267         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28268         logic_shift_imm.
28270 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28272         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28273         Remove obsolete kludge.
28275 2015-06-01  Richard Biener  <rguenther@suse.de>
28277         * tree-ssa-reassoc.c (get_rank): Simplify.
28279 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28281         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28282         * configure: Regenerated.
28284 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
28286         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28287         issue (add space between string literal and macro).
28288         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28290 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
28292         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28293         implict or explicit -fPIE or -fpie.
28295 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
28297         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28299 2015-05-28  DJ Delorie  <dj@redhat.com>
28301         * expmed.c (extract_bit_field_1): Avoid clobbering a
28302         yet-to-be-used base/index register.
28304 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
28306         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28307         (alias_stats): Add num_universal.
28308         (alias_set_subset_of): Special case pointers; be ready for NULL
28309         children.
28310         (alias_sets_conflict_p): Special case pointers; be ready for NULL
28311         children.
28312         (init_alias_set_entry): Break out from ...
28313         (record_alias_subset): ... here; propagate new fields;
28314         allocate children only when really needed.
28315         (get_alias_set): Do less generous pointer globbing.
28316         (dump_alias_stats_in_alias_c): Update statistics.
28318 2015-05-30  Alan Modra  <amodra@gmail.com>
28320         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28321         correct block for use of r12.
28322         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28324 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28326         PR target/66215
28327         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28328         with -mhotpatch=.
28330 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
28332         PR tree-optimization/66142
28333         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28334         virtual phis that feed themselves.
28336 2015-05-29  Richard Biener  <rguenther@suse.de>
28338         PR tree-optimization/66314
28339         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28340         parameter that says which loop the new block belongs to.
28341         (ssa_create_duplicates): Blocks duplicated for the threaded
28342         path belong to the loop of the thread destination.
28344 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28346         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28347         to cleanup-saved-temps.
28348         * doc/sourcebuild.texi (Clean up generated test files): Expand
28349         introduction.
28350         (dg-keep-saved-temps): Document new proc.
28351         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28352         cleanup-saved-temps): Remove.
28354 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
28356         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28357         gcc_AC_CHECK_DECLS.
28358         * configure: Regenerate.
28360 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28362         * config/nios2/linux.h (CPP_SPEC): Define.
28364 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28366         * config/microblaze/linux.h (CPP_SPEC): Define.
28368 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28370         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28371         -pthread is specified.
28373 2015-05-28  Richard Biener  <rguenther@suse.de>
28375         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28376         (vect_fixup_scalar_cycles_with_patterns): Likewise.
28377         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28378         after pattern recog.
28379         (vect_create_epilog_for_reduction): Properly handle reductions
28380         with patterns.
28381         (vectorizable_reduction): Likewise.
28382         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28383         reduction chains.
28384         (vect_get_constant_vectors): Create the correct number of
28385         initial values for reductions.
28386         (vect_schedule_slp_instance): Handle reduction chains that are
28387         type changing properly.
28388         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28390 2015-05-28  Richard Biener  <rguenther@suse.de>
28392         PR tree-optimization/66142
28393         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28394         values better in memcpy destination handling.  Handle non-aliasing
28395         we discover here.
28397 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
28399         PR target/63810
28400         * config/darwin-c.c (version_components): New global enum.
28401         (parse_version, version_as_legacy_macro)
28402         (version_as_modern_macro, macosx_version_as_macro): New functions.
28403         (version_as_macro): Remove.
28404         (darwin_cpp_builtins): Use new function.
28406 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
28408         * builtins.c (expand_builtin_acc_on_device): Mark parameters
28409         with ATTRIBUTE_UNUSED.
28411 2015-05-28  Julian Brown  <julian@codesourcery.com>
28413         PR libgomp/65742
28415         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28416         sequence for !ACCEL_COMPILER.
28418 2015-05-28  Nick Clifton  <nickc@redhat.com>
28420         * config/rx/rx.c (push_regs): New function.  Extracts code from...
28421         (rx_expand_prologue): ... here.  Use push_regs to push even small
28422         spans of registers.
28423         (pop_regs): New function.
28424         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
28425         registers.
28427 2015-05-28  Richard Biener  <rguenther@suse.de>
28429         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28430         member.
28431         (SLP_INSTANCE_BODY_COST_VEC): Remove.
28432         (vect_update_slp_costs_according_to_vf): Likewise.
28433         (vect_slp_analyze_operations): Update prototype.
28434         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28435         vect_update_slp_costs_according_to_vf, adjust.
28436         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28437         (vect_analyze_slp_cost_1): Likewise.
28438         (vect_analyze_slp_cost): Likewise.  Properly deal with
28439         widening reduction ops.  Commit body costs.
28440         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
28441         cost for loops from here.
28442         (vect_slp_analyze_operations): But do it from here when
28443         the vectorization factor is known and stmts are analyzed.
28444         (vect_bb_vectorization_profitable_p): Simplify.
28445         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28446         (vect_update_slp_costs_according_to_vf): Remove.
28448 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
28449             H.J. Lu  <hongjiu.lu@intel.com>
28451         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28452         (BUILD_CFLAGS): Likewise.
28453         (BUILD_CXXFLAGS): Likewise.
28454         (LINKER): Add @NO_PIE_FLAG@.
28455         (BUILD_LDFLAGS): Likewise.
28456         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28457         --enable-default-pie.
28458         * common.opt (fPIE): Initialize to -1.
28459         (fpie): Likewise.
28460         (no-pie): New option.
28461         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28462         * configure.ac: Add --enable-default-pie.
28463         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
28464         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
28465         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
28466         * gcc.c (NO_PIE_SPEC): New.
28467         (PIE_SPEC): Likewise.
28468         (NO_FPIE1_SPEC): Likewise.
28469         (FPIE1_SPEC): Likewise.
28470         (NO_FPIE2_SPEC): Likewise.
28471         (FPIE2_SPEC): Likewise.
28472         (NO_FPIE2_SPEC): Likewise.
28473         (FPIE_SPEC): Likewise.
28474         (NO_FPIE_SPEC): Likewise.
28475         (NO_FPIC1_SPEC): Likewise.
28476         (FPIC1_SPEC): Likewise.
28477         (NO_FPIC2_SPEC): Likewise.
28478         (FPIC2_SPEC): Likewise.
28479         (NO_FPIC2_SPEC): Likewise.
28480         (FPIC_SPEC): Likewise.
28481         (NO_FPIC_SPEC): Likewise.
28482         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28483         (FPIE1_OR_FPIC1_SPEC): Likewise.
28484         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28485         (FPIE2_OR_FPIC2_SPEC): Likewise.
28486         (NO_FPIE_AND_FPIC_SPEC): Likewise.
28487         (FPIE_OR_FPIC_SPEC): Likewise.
28488         (LD_PIE_SPEC): Likewise.
28489         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
28490         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28491         * config/darwin.h (PIE_SPEC): Renamed to ...
28492         (DARWIN_PIE_SPEC): This.
28493         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28494         * config/darwin9.h (PIE_SPEC): Renamed to ...
28495         (DARWIN_PIE_SPEC): This.
28496         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28497         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28498         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28499         FPIE2_OR_FPIC2_SPEC.
28500         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28501         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28502         * config/sol2.h (ASM_PIC_SPEC): Likewise.
28503         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28504         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28505         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28506         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28507         * config/m32r/m32r.h (ASM_SPEC): Likewise.
28508         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28509         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28510         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28511         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28512         * config/sparc/linux.h (ASM_SPEC): Likewise.
28513         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28514         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28515         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28516         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28517         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28518         * config/sparc/sparc.h (ASM_SPEC): Likewise.
28519         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28520         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28521         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28522         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28523         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28524         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28525         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28526         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28527         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28528         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28529         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28530         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28531         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28532         * config/vax/linux.h (ASM_SPEC): Likewise.
28533         * doc/install.texi: Document --enable-default-pie.
28534         * doc/invoke.texi: Document -no-pie.
28535         * config.in: Regenerated.
28536         * configure: Likewise.
28538 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28540         PR rtl-optimization/66168
28541         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28542         can_move_invariant_reg.
28544 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
28546         PR target/66148
28547         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28548         REG_EQUAL note when doing insert.
28550         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28551         instead of "%d" for 'o' operand.
28553 2015-05-27  Nathan Sidwell  <nathan@acm.org>
28555         PR c++/66270
28556         * tree.c (build_pointer_type_for_mode): Canonical type does not
28557         inherit can_alias_all.
28558         (build_reference_type_for_mode): Likewise.
28560 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
28562         * expr.h (array_at_struct_end_p): Move to...
28563         (array_ref_element_size): Likewise.
28564         (component_ref_field_offset): Likewise.
28565         * tree.h (array_ref_element_size): ...here.
28566         (array_at_struct_end_p): Likewise.
28567         (component_ref_field_offset): Likewise.
28568         * expr.c (array_ref_element_size): Move to...
28569         (array_ref_low_bound): Likewise.
28570         (array_at_struct_end_p): Likewise.
28571         (array_ref_up_bound): Likewise.
28572         (component_ref_field_offset): Likewise.
28573         * tree.c (array_ref_element_size): ...here.
28574         (array_ref_low_bound): Likewise.
28575         (array_ref_up_bound): Likewise.
28576         (array_at_struct_end_p): Likewise.
28577         (component_ref_field_offset): Likewise.
28579 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28580             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28582         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28584 2015-05-27  Jason Merrill  <jason@redhat.com>
28586         PR bootstrap/66304
28587         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28588         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28589         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28591 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
28593         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28594         is true.
28596         * statistics.c (statistics_fini_pass): Print pass name.
28598 2015-05-27  Richard Biener  <rguenther@suse.de>
28600         PR tree-optimization/66272
28601         Revert parts of
28602         2014-08-15  Richard Biener  <rguenther@suse.de>
28604         PR tree-optimization/62031
28605         * tree-data-ref.c (dr_analyze_indices): Do not set
28606         DR_UNCONSTRAINED_BASE.
28607         (dr_may_alias_p): All indirect accesses have to go the
28608         formerly DR_UNCONSTRAINED_BASE path.
28609         * tree-data-ref.h (struct indices): Remove
28610         unconstrained_base member.
28611         (DR_UNCONSTRAINED_BASE): Remove.
28613 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
28615         * dwarf2out.c: Remove block_map.
28616         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28617         (gen_lexical_block_die): Same.
28618         (dwarf2out_function_decl): Remove block_map use.
28619         (dwarf2out_c_finalize): Same.
28620         * tree-core.h (struct tree_block): Add die field.
28621         * tree.h (BLOCK_DIE): New.
28623 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28625         PR target/65358
28626         * expr.c (memory_load_overlap): New function.
28627         (emit_push_insn): When pushing partial args to the stack would
28628         clobber the register part load the overlapping part into a pseudo
28629         and put it into the hard reg after pushing.  Change return type
28630         to bool.  Add bool argument.
28631         * expr.h (emit_push_insn): Change return type to bool.
28632         Add bool argument.
28633         * calls.c (expand_call): Cancel sibcall optimization when encountering
28634         partial argument on targets with ARGS_GROW_DOWNWARD and
28635         !STACK_GROWS_DOWNWARD.
28636         (emit_library_call_value_1): Update callsite of emit_push_insn.
28637         (store_one_arg): Likewise.
28639 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28641         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28643 2015-05-27  Martin Liska  <mliska@suse.cz>
28645         * Makefile.in: Add additional dependencies related to memory report
28646         enhancement.
28647         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28648         * bitmap.c (struct bitmap_descriptor_d): Remove.
28649         (struct loc): Likewise.
28650         (struct bitmap_desc_hasher): Likewise.
28651         (bitmap_desc_hasher::hash): Likewise.
28652         (bitmap_desc_hasher::equal): Likewise.
28653         (get_bitmap_descriptor): Likewise.
28654         (bitmap_register): User new memory descriptor API.
28655         (register_overhead): Likewise.
28656         (bitmap_find_bit): Register nsearches and search_iter statistics.
28657         (struct bitmap_output_info): Remove.
28658         (print_statistics): Likewise.
28659         (dump_bitmap_statistics): Use new memory descriptor.
28660         * bitmap.h (struct bitmap_usage): New class.
28661         * genmatch.c: Extend header file inclusion.
28662         * genpreds.c: Likewise.
28663         * ggc-common.c (struct ggc_usage): New class.
28664         (struct ggc_loc_desc_hasher): Remove.
28665         (ggc_loc_desc_hasher::hash): Likewise.
28666         (ggc_loc_desc_hasher::equal): Likewise.
28667         (struct ggc_ptr_hash_entry): Likewise.
28668         (struct ptr_hash_hasher): Likewise.
28669         (ptr_hash_hasher::hash): Likewise.
28670         (ptr_hash_hasher::equal): Likewise.
28671         (make_loc_descriptor): Likewise.
28672         (ggc_prune_ptr): Likewise.
28673         (dump_ggc_loc_statistics): Use new memory descriptor.
28674         (ggc_record_overhead): Likewise.
28675         (ggc_free_overhead): Likewise.
28676         (final_cmp_statistic): Remove.
28677         (cmp_statistic): Likewise.
28678         (ggc_add_statistics): Liekwise.
28679         (ggc_prune_overhead_list): Likewise.
28680         * hash-map-traits.h: New file.
28681         * hash-map.h (struct default_hashmap_traits): Move the traits to a
28682         separate header file.
28683         * hash-set.h: Pass memory statistics info to ctor.
28684         * hash-table.c (void dump_hash_table_loc_statistics): New function.
28685         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28686         (hash_table::~hash_table): Register memory release operation.
28687         (hash_table::alloc_entries): Handle memory allocation operation.
28688         (hash_table::expand): Likewise.
28689         * inchash.c (iterative_hash_hashval_t): Move implementation to header
28690         file.
28691         (iterative_hash_host_wide_int): Likewise.
28692         * inchash.h (class hash): Likewise.
28693         * mem-stats-traits.h: New file.
28694         * mem-stats.h: New file.
28695         (mem_location): Add new class.
28696         (mem_usage): Likewise.
28697         (mem_alloc_description): Likewise.
28698         * sese.c: Add new header file inclusision.
28699         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28700         and hash_set.
28701         * tree-sra.c: Add new header file inclusision.
28702         * vec.c (struct vec_descriptor): Remove.
28703         (hash_descriptor): Likewise.
28704         (struct vec_usage): Likewise.
28705         (struct ptr_hash_entry): Likewise.
28706         (hash_ptr): Likewise.
28707         (eq_ptr): Likewise.
28708         (vec_prefix::register_overhead): Use new memory descriptor API.
28709         (vec_prefix::release_overhead): Likewise.
28710         (add_statistics): Remove.
28711         (dump_vec_loc_statistics): Use new memory descriptor API.
28712         * vec.h (struct vec_prefix): Likewise.
28713         (va_heap::reserve): Likewise.
28714         (va_heap::release): Likewise.
28715         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28717 2015-05-27  Richard Biener  <rguenther@suse.de>
28719         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28720         earlier and remove ??? comment.
28721         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28722         and got called from loop analysis bail out.  Always pass the SLP
28723         node to the vectorizable_* functions.
28724         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28725         the premature SLP check here.
28726         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28727         detected SLP stmts.
28728         (vect_detect_hybrid_slp_1): Likewise.
28730 2015-05-26  Jeff Law  <law@redhat.com>
28732         * combine.c (find_split_point): Verify that the shift count is a
28733         constant when choosing (plus (ashift ...)) as a split point.
28735         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28736         No functional changes.
28738 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
28740         * ipa-polymorphic-call.c
28741         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28742         case when call target is already known.
28744 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
28746         PR target/65979
28747         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28748         take into account the case that operands[1] and operands[2]
28749         are the same register.
28751 2015-05-26  Michael Matz  <matz@suse.de>
28753         PR middle-end/66251
28755         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28756         stores.
28757         (vect_create_vectorized_demotion_stmts): Always set
28758         STMT_VINFO_VEC_STMT, also with SLP.
28759         (vectorizable_store): Handle strided group stores.
28761 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28763         PR target/66049
28764         * config/aarch64/aarch64.md
28765         (*adds_shift_imm_<mode>):  New pattern.
28766         (*subs_shift_imm_<mode>):  Likewise.
28767         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
28768         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28769         (*add_uxt<mode>_shift2): Likewise.
28770         (*add_uxtsi_shift2_uxtw): Likewise.
28771         (*sub_uxt<mode>_shift2): Likewise.
28772         (*sub_uxtsi_shift2_uxtw): Likewise.
28774 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
28776         * config/rs6000/constraints.md (Y, U): Use match_test.
28778 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28780         PR target/52144
28781         * config/arm/arm.c (arm_option_check_internal)
28782         (arm_option_params_internal): Check opts->target_flags to set macros.
28783         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28784         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28785         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28786         (builtin_define): Replaced with def_or_undef_macro.
28787         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28788         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28789         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28790         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28791         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28792         (TARGET_ARM_FEATURE_LDREX_P)
28793         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28794         * config/arm/arm-c.c (def_or_undef_macro): New function.
28795         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28797 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28799         * c-common.h (builtin_define_with_int_value)
28800         (builtin_define_type_sizeof): Declare.
28801         * c-cppbuiltin.c (builtin_define_with_int_value)
28802         (builtin_define_type_sizeof): Externalize.
28803         (builtin_define_std): Cleanup declaration.
28804         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28805         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28806         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28807         (builtin_define, builtin_assert): New macros.
28809 2015-05-26  Richard Biener  <rguenther@suse.de>
28811         PR tree-optimization/66142
28812         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28813         MEM_REFs for the same base address.
28815 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28817         PR ipa/66181
28818         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28820 2015-05-26  Jason Merrill  <jason@redhat.com>
28822         * configure.ac: Set CXXFLAGS for ISL test.
28823         * configure: Regenerate.
28825         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
28826         strstr and basename.
28827         * configure: Regenerate.
28829 2015-05-26  Richard Biener  <rguenther@suse.de>
28831         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28832         X % C -> X & (C - 1) for C being a power-of two to ...
28833         * match.pd: ... patterns.
28835 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
28837         * match.pd (swapped_tcc_comparison): New operator list.
28838         (-A CMP -B): New simplification.
28839         * fold-const.c (fold_comparison): Remove corresponding code.
28841 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28843         * caller-save.c (init_caller_save): Base temporary register numbers
28844         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28845         * cfgloopanal.c (init_set_costs): Likewise.
28846         * dojump.c (prefer_and_bit_test): Likewise.
28847         * expr.c (init_expr_target): Likewise.
28848         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28849         * lower-subreg.c (init_lower_subreg): Likewise.
28850         * postreload.c (reload_cse_regs_1): Likewise.
28852 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28854         * gensupport.h (compute_test_codes): Declare.
28855         * gensupport.c (compute_predicate_codes): Rename to...
28856         (compute_test_codes): ...this.  Generalize error message.
28857         (process_define_predicate): Update accordingly.
28858         * genpreds.c (compute_maybe_allows): Delete.
28859         (add_constraint): Use compute_test_codes to determine whether
28860         something can accept a SUBREG, REG or MEM.
28862 2015-05-26  Torvald Riegel  <triegel@redhat.com>
28864         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28865         'memory model' to align with C++11; fix description of memory orders;
28866         fix a few typos.
28868 2015-05-26  Richard Biener  <rguenther@suse.de>
28870         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28871         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
28872         detect whether we apply SLP.  Remove call to
28873         vect_update_slp_costs_according_to_vf.
28874         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28875         vect_update_slp_costs_according_to_vf from here.  Dispatch
28876         to vect_slp_analyze_operations to analyze SLP stmts.
28877         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28878         unused bb_vec_info parameter, adjust assert.
28879         (vect_slp_analyze_operations): Pass in the slp instance tree
28880         instead of bb_vec_info.
28881         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28882         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28884 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28886         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28887         Q_REGS.  Expand comment.
28888         (REG_CLASS_NAMES): Ditto.
28889         (REG_CLASS_CONTENTS): Ditto.
28891 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
28893         PR target/66274
28894         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28895         when LEGACY_INT_REGNO_P is processed.
28897 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28899         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28901 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28903         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28904         register if not marked dead/unused, before return.
28906 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28908         PR lto/66180
28909         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28910         is set; check for assembler name at LTO time.
28911         (type_in_anonymous_namespace): Remove hacks, check that all
28912         anonymous types are called "<anon>"
28913         (odr_type_p): Simplify; add check for "<anon>"
28914         (odr_subtypes_equivalent): Add odr_type_p check.
28915         * tree.c (need_assembler_name_p): Even anonymous namespace needs
28916         assembler name.
28918 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28920         * ipa-utils.h (method_class_type): Remove.
28921         * cgraphunit.c (walk_polymorphic_call_targets): Use
28922         TYPE_METHOD_BASETYPE.
28923         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28924         on main variants only.
28925         (method_class_type): Remove.
28926         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28927         (build_type_inheritance_graph): Likewise.
28928         * ipa-icf.c (sem_function::equals_wpa): Likewise.
28929         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28930         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28932 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28934         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28935         is_typedef_decl, typedef_variant_p): Constify.
28936         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28937         is_typedef_decl, typedef_variant_p): Constify.
28939 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28941         * defaults.h (gen_tablejump): New function.
28942         (HAVE_tablejump): Add default value.
28943         * expr.c: Adjust.
28944         * stmt.c: Likewise.
28946 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28948         * defaults.h (gen_store_multiple): New function.
28949         (HAVE_store_multiple): Add default value.
28950         * expr.c (move_block_from_reg): Adjust.
28952 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28954         * defaults.h (gen_load_multiple): New function.
28955         (HAVE_load_multiple): Add default value.
28956         * expr.c (move_block_to_reg): Adjust.
28958 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28960         * defaults.h (gen_mem_signal_fence): New function.
28961         (HAVE_mem_signal_fence): Add default value.
28962         * optabs.c: Adjust.
28964 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28966         * defaults.h (gen_memory_barrier): New function.
28967         (HAVE_memory_barrier): Add default value.
28968         * optabs.c: Adjust.
28970 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28972         * defaults.h (gen_mem_thread_fence): New function.
28973         (HAVE_mem_thread_fence): Add default definition.
28974         * optabs.c: Adjust.
28976 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28978         * combine.c (find_split_point): Check the value of HAVE_lo_sum
28979         instead of if it is defined.
28980         (combine_simplify_rtx): Likewise.
28981         * lra-constraints.c (process_address_1): Likewise.
28982         * config/darwin.c: Adjust.
28983         * genconfig.c (main): Always define HAVE_lo_sum.
28985 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28987         * genmatch.c (parser::parse_operation): Reject expanding
28988         operator-list inside 'for'.
28990 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28992         * genmatch.c (parser::parse_for): Reject iterator if used as
28993         operator-list.
28995 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28997         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28998         after end of id-list.
29000 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29002         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29003         we do not try to compute canonical type for type that does not need
29004         alias set.
29005         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29006         FUNCITON_TYPE.
29007         * tree.h (type_with_alias_set_p): New.
29009 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29011         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
29012         function attributes.
29013         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29015 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
29017         * Makefile.in (check_gcc_parallelize): Delete.
29018         (lang_checks_parallelized): Update comment.
29020 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
29022         PR rtl-optimization/66237
29023         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29024         location of an "as_a" cast.
29026 2015-05-22  Jeff Law  <law@redhat.com>
29028         * config/pa/pa.md (non-canonical shift-add insns): Remove.
29029         (peepholes with non-canonical RTL sources): Remove.
29030         (peepholes for indexed stores of FP regs in integer modes): Match and
29031         generate canonical RTL.
29033 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29035         PR tree-optimization/63387
29036         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29037         ((x ord x) & (y ord y) -> (x ord y),
29038         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29039         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29040         vectors like scalars.
29042 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29044         * convert.c (convert_to_integer, convert_to_vector): Include the
29045         types in the error message.
29047 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29049         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29050         simplifications.
29052 2015-05-22  Jeff Law  <law@redhat.com>
29054         * config/pa/pa.md (integer_indexed_store splitters): Use
29055         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
29056         insns -- adjusting the constant 2nd operand accordingly.
29058         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29059         (plus (ashift X log2) Y) if it is a split point.
29061         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29062         out of hppa_legitimize_address to handle both forms of a multiply
29063         by 2, 4 or 8.
29064         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29065         Always generate the ASHIFT variant as the result is not directly
29066         used in a MEM.  Update comments and refactor slightly to improve
29067         readability.
29069 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29071         PR target/65491
29072         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29073         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
29074         (aarch64_composite_type_p): Return false if given type and mode are
29075         for a short vector.
29077 2015-05-22  Richard Biener  <rguenther@suse.de>
29079         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29080         member.
29081         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29082         patterns when determining whether SLP is pure.
29083         (vect_is_slp_reduction): Remove check for pattern stmts.
29084         (vect_is_simple_reduction_1): Remove dead code.
29085         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29086         (vect_get_and_check_slp_defs): Pass in the stmt number.
29087         Allow the first def in a reduction to be not a pattern stmt when
29088         the rest of the stmts def are patterns.
29089         (vect_build_slp_tree_1): Allow tcc_expression codes like
29090         SAD_EXPR and DOT_PROD_EXPR.
29091         (vect_build_slp_tree): Adjust.
29092         (vect_analyze_slp): Refactor and move BB vect error message ...
29093         (vect_slp_analyze_bb_1): ... here.
29095 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
29097         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29098         for CSWTCH temporary.
29100 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29102         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29103         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
29104         unknown unspecs.
29106 2015-05-22  Richard Biener  <rguenther@suse.de>
29108         PR tree-optimization/66251
29109         * tree-vect-stmts.c (vectorizable_conversion): Properly
29110         set STMT_VINFO_VEC_STMT even for the SLP case.
29112 2015-05-22  Marek Polacek  <polacek@redhat.com>
29114         * doc/extend.texi: Use @pxref instead of @xref.
29116 2015-05-22  hiraditya  <hiraditya@msn.com>
29118         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29119         redundant if.
29121 2015-05-22  Richard Biener  <rguenther@suse.de>
29123         PR tree-optimization/65701
29124         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29125         Move peeling cost models into one place.  Peel for alignment
29126         for single loads only if an aligned load is cheaper than
29127         an unaligned load.
29129 2015-05-22  Marek Polacek  <polacek@redhat.com>
29131         PR c/47043
29132         * doc/extend.texi (Enumerator Attributes): New section.
29133         Document syntax of enumerator attributes.
29135 2015-05-22  Richard Biener  <rguenther@suse.de>
29137         * tree-vect-loop.c (get_reduction_op): New function.
29138         (vect_model_reduction_cost): Use it, add reduc_index parameter.
29139         Make ready for BB reductions.
29140         (vect_create_epilog_for_reduction): Use get_reduction_op.
29141         (vectorizable_reduction): Init reduc_index to a valid value.
29142         Adjust vect_model_reduction_cost call.
29143         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29144         operand for reduction defaults.  Add SAD_EXPR support.
29145         Assert we have a neutral op for SLP reductions.
29146         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29147         walking pattern stmt ops only recurse to SSA names.
29149 2015-05-22  Richard Biener  <rguenther@suse.de>
29151         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29152         assert with guard, remove check on detected reduction.
29153         (vect_recog_sad_pattern): Likewise.
29154         (vect_recog_widen_sum_pattern): Likewise.
29156 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29158         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29159         __always_inline__ attribute.
29160         (vaesdq_u8): Likewise.
29161         (vaesmcq_u8): Likewise.
29162         (vaesimcq_u8): Likewise.
29163         (vsha1cq_u32): Likewise.
29164         (vsha1mq_u32): Likewise.
29165         (vsha1pq_u32): Likewise.
29166         (vsha1h_u32): Likewise.
29167         (vsha1su0q_u32): Likewise.
29168         (vsha1su1q_u32): Likewise.
29169         (vsha256hq_u32): Likewise.
29170         (vsha256h2q_u32): Likewise.
29171         (vsha256su0q_u32): Likewise.
29172         (vsha256su1q_u32): Likewise.
29173         (vmull_p64): Likewise.
29174         (vmull_high_p64): Likewise.
29176 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29178         * final.c (final_scan_insn): Don't check HAVE_peephole with the
29179         preprocessor.
29180         * output.h: Likewise.
29181         * genconfig.c (main): Alwways define HAVE_peephole.
29182         * genpeep.c: Don't emit checks of HAVE_peephole.
29184 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29186         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29187         check HAVE_conditional_move with the preprocessor.
29189 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29191         * genconfig.c (main): Always define HAVE_conditional_move.
29192         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29193         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29194         is defined.
29196 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29198         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29199         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29200         and FRAME_POINTER_REGNUM with the preprocessor.
29202 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29204         * defaults.h: Add default for STACK_PUSH_CODE.
29205         * expr.c: Don't redefine STACK_PUSH_CODE.
29206         * recog.c: Likewise.
29208 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29210         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29211         sched-deps.c: Use if instead of preprocessor checks with
29212         STACK_GROWS_DOWNWARD.
29214 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29216         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29217         is defined.
29218         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29219         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29220         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29221         * doc/tm.texi: Regenerate.
29223 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29225         PR target/66232
29226         * config/i386/constraints.md (Bg): New constraint for GOT memory
29227         operand.
29228         * config/i386/i386.md (*call_got_x32): New pattern.
29229         (*call_value_got_x32): Likewise.
29230         * config/i386/predicates.md (GOT_memory_operand): New predicate.
29232 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
29234         PR tree-optimization/66233
29235         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29236         Simplify.
29238 2015-05-21  Jeff Law  <law@redhat.com>
29240         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29241         than MULT for shadd sequences.
29243 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
29245         * alias.c (alias_stats): New static var.
29246         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29247         (dump_alias_stats_in_alias_c): New function.
29248         * alias.h (dump_alias_stats_in_alias_c): Declare.
29249         * tree-ssa-alias.c (dump_alias_stats): Call it.
29251 2015-05-08  Michael Matz  <matz@suse.de>
29253         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29254         to strided_p.
29255         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29256         (STMT_VINFO_STRIDED_P): ... this.
29257         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29258         (vect_verify_datarefs_alignment): Likewise.
29259         (vect_enhance_data_refs_alignment): Likewise.
29260         (vect_analyze_data_ref_access): Likewise.
29261         (vect_analyze_data_refs): Accept strided stores.
29262         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29263         (vect_model_load_cost): Adjust for macro rename.
29264         (vectorizable_mask_load_store): Likewise.
29265         (vectorizable_load): Likewise.
29266         (vectorizable_store): Open code strided stores.
29268 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29270         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29271         Document sqrt_insn.
29273 2015-05-21  Richard Biener  <rguenther@suse.de>
29275         PR c++/66211
29276         * match.pd: Guard pattern optimzing (int)(float)int
29277         conversions to apply only on GIMPLE.
29279 2015-05-21  Jeff Law  <law@redhat.com>
29281         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29282         multiply-accumulate/shift-add insn generation.
29284 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
29286         PR target/54236
29287         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29288         operands[1] are the same.
29290 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
29292         PR middle-end/66221
29293         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29294         build_distinct_type_copy to copy bounds.
29296 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
29298         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29299         Change to unsigned int.
29301 2015-05-20  Jeff Law  <law@redhat.com>
29303         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29304         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29305         (pa_shadd_constant_p): Allow constants for shadd insns rather
29306         than valid scaling constants for memory addresses.
29307         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29308         * config/pa/predicates.md (mem_shadd_operand): New predicate.
29309         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29310         (shift-add insns using ASHIFT): New patterns.
29312 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
29314         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29315         feasible.
29316         (fix_up_fall_thru_edges): Likewise.
29317         (fix_crossing_conditional_branches): Likewise. Promote jump targets
29318         from to rtx_insn to rtx_code_label where feasible.
29319         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29320         gen_move_insn (returned type changed to rtx_insn).
29321         * builtins.c (expand_errno_check): Fix arguments of
29322         do_compare_rtx_and_jump (now expects rtx_code_label).
29323         (expand_builtin_acc_on_device): Likewise.
29324         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29325         invert_jump (now exprects rtx_jump_insn).
29326         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29327         (construct_init_block): Use rtx_code_label.
29328         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29329         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29330         calling redirect_jump.
29331         (patch_jump_insn): Likewise.
29332         (redirect_branch_edge): Likewise.
29333         (force_nonfallthru_and_redirect): Likewise.
29334         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29335         when suitable.
29336         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29337         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29338         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29339         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29340         to store the value retured by gen_label_rtx.
29341         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29342         rtx_jump_insn.
29343         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29344         (split_branches): Fix calls of redirect_jump.
29345         * dojump.c (jumpifnot): Promote argument type from rtx to
29346         rtx_code_label.
29347         (jumpifnot_1): Likewise.
29348         (jumpif): Likewise.
29349         (jumpif_1): Likewise.
29350         (do_jump_1): Likewise.
29351         (do_jump): Likewise. Use rtx_code_label when feasible.
29352         (do_jump_by_parts_greater_rtx): Likewise.
29353         (do_jump_by_parts_zero_rtx): Likewise.
29354         (do_jump_by_parts_equality_rtx): Likewise.
29355         (do_compare_rtx_and_jump): Likewise.
29356         * dojump.h: Update function prototypes.
29357         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29358         returns rtx_insn).
29359         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29360         rtx_jump_insn.
29361         (emit_label_before): Likewise.
29362         (emit_jump_insn_after_noloc): Likewise.
29363         (emit_jump_insn_after_setloc): Likewise.
29364         (emit_jump_insn_after): Likewise
29365         (emit_jump_insn_before_setloc): Likewise.
29366         (emit_jump_insn_before): Likewise.
29367         (emit_label_before): Promote return type to rtx_code_label.
29368         (emit_label): Likewise.
29369         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29370         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29371         gen_move_insn.
29372         (emit_stack_restore): Likewise.
29373         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29374         (do_cmp_and_jump): Likewise.
29375         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29376         from rtx to rtx_code_label.
29377         (gen_move_insn_uncast): New function.
29378         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29379         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29380         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29381         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29382         invert_jump_1 and redirect_jump_1.
29383         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29384         do_compare_rtx_and_jump.
29385         (expand_addsub_overflow): Likewise.
29386         (expand_neg_overflow): Likewise.
29387         (expand_mul_overflow): Likewise.
29388         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29389         return value of gen_move_insn.
29390         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29391         * loop-doloop.c (add_test): Use rtx_code_label.
29392         (doloop_modify): Likewise.
29393         (doloop_optimize): Likewise.
29394         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29395         * lra-constraints.c (emit_spill_move): Remove cast of value returned
29396         by gen_move_insn.
29397         (inherit_reload_reg): Add cast when calling dump_insn_slim.
29398         (split_reg): Likewise.
29399         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29400         gen_move_insn.
29401         * optabs.c (expand_binop_directly): Remove casts of values returned by
29402         maybe_gen_insn.
29403         (expand_unop_direct): Likewise.
29404         (expand_abs): Likewise.
29405         (maybe_emit_unop_insn): Likewise.
29406         (maybe_gen_insn): Promote return type to rtx_insn.
29407         * optabs.h: Update prototype of maybe_gen_insn.
29408         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29409         redundant cast.
29410         * recog.c (struct peep2_insn_data): Promote type of insn field to
29411         rtx_insn.
29412         (peep2_reinit_state): Use NULL instead of NULL_RTX.
29413         (peep2_attempt): Remove casts of insn in peep2_insn_data.
29414         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29415         * recog.h (struct insn_gen_fn): Promote return types of function
29416         pointers and operator ().from rtx to rtx_insn.
29417         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29418         (fill_eager_delay_slots): Likewise.
29419         (relax_delay_slots): Likewise.
29420         (make_return_insns): Likewise.
29421         (dbr_schedule): Likewise.
29422         (optimize_skips): Likewise.
29423         (reorg_redirect_jump): Likewise.
29424         (fill_slots_from_thread): Likewise.
29425         * reorg.h: Update prototypes.
29426         * resource.c (find_dead_or_set_registers): Use dyn_cast to
29427         rtx_jump_insn instead of check.  Use it's jump_target method.
29428         * rtl.h (rtx_jump_insn::jump_label): Define new method.
29429         (rtx_jump_insn::jump_target): Define new method.
29430         (rtx_jump_insn::set_jump_target): Define new method.
29431         * rtlanal.c (tablejump_p): Promote type of one local variable.
29432         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29433         (sched_analyze_insn): Likewise.
29434         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29435         (print_insn): Likewise.
29436         * stmt.c (label_rtx): Promote return type to rtx_insn.
29437         (force_label_rtx): Likewise.
29438         (jump_target_rtx): Define new function.
29439         (expand_label): Use it, get rid of one cast.
29440         (expand_naked_return): Promote rtx to rtx_code_label.
29441         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29442         (expand_case): Use rtx_code_label instread of rtx where feasible.
29443         (expand_sjlj_dispatch_table): Likewise.
29444         (emit_case_nodes): Likewise.
29445         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
29446         * store-motion.c (insert_store): Make use of new return type of
29447         gen_move_insn and remove a cast.
29448         (replace_store_insn): Likewise.
29450 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
29452         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29453         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29455 2015-05-20  Jeff Law  <law@redhat.com>
29457         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29458         dispose of the jump thread path when the jump threading
29459         opportunity is cancelled.
29461 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29463         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29464         when printing the caret character.
29466 2015-05-20  Marek Polacek  <polacek@redhat.com>
29468         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29470 2015-05-20  Marek Polacek  <polacek@redhat.com>
29472         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29473         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29474         * gimple-fold.c (canonicalize_bool): Likewise.
29475         (same_bool_result_p): Likewise.
29476         * tree-if-conv.c (parse_predicate): Likewise.
29478 2015-05-20  Marek Polacek  <polacek@redhat.com>
29480         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29481         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29483 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29485         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29486         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29487         values.
29489 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
29491         * config/mips/mips.h (micromips_globals): Declare.
29493 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
29495         * timevar.def (TV_INITIALIZE_RTL): New.
29496         * toplev.c (initialize_rtl): Use an auto_timevar to account this
29497         function's time to TV_INITIALIZE_RTL.
29499 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
29501         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29502         gimple_build_nop calls.
29503         (chkp_find_bounds_for_elem): Likewise.
29504         (chkp_get_zero_bounds): Likewise.
29505         (chkp_get_none_bounds): Likewise.
29506         (chkp_get_bounds_by_definition): Likewise.
29507         (chkp_generate_extern_var_bounds): Likewise.
29508         (chkp_get_bounds_for_decl_addr): Likewise.
29509         (chkp_get_bounds_for_string_cst): Likewise.
29511 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
29513         PR tree-optimization/65447
29514         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29515         (dump_use, dump_uses): Support to dump sub use.
29516         (record_use): New parameters to support sub use.  Remove call to
29517         dump_use.
29518         (record_sub_use, record_group_use): New functions.
29519         (compute_max_addr_offset, split_all_small_groups): New functions.
29520         (group_address_uses, rewrite_use_address): New functions.
29521         (strip_offset): New declaration.
29522         (find_interesting_uses_address): Call record_group_use.
29523         (add_candidate): New assertion.
29524         (infinite_cost_p): Move definition forward.
29525         (add_costs): Check INFTY cost and return immediately.
29526         (get_computation_cost_at): Clear setup cost and dependent bitmap
29527         for sub uses.
29528         (determine_use_iv_cost_address): Compute cost for sub uses.
29529         (rewrite_use_address_1): Rename from old rewrite_use_address.
29530         (free_loop_data): Free sub uses.
29531         (tree_ssa_iv_optimize_loop): Call group_address_uses.
29533 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29534             Jim Wilson  <jim.wilson@linaro.org>
29536         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29537         new  fields loadv and storev.
29538         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29539         Initialize loadv and storev.
29540         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29541         (cortexa53_extra_costs): Likewise.
29542         (cortexa57_extra_costs): Likewise.
29543         (xgene1_extra_costs): Likewise.
29544         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29545         rtx_costs.
29547 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29549         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29550          storev.
29551         (cortexa8_extra_costs): Likewise.
29552         (cortexa5_extra_costs): Likewise.
29553         (cortexa7_extra_costs): Likewise.
29554         (cortexa12_extra_costs): Likewise.
29555         (cortexa15_extra_costs): Likewise.
29556         (v7m_extra_costs): Likewise.
29558 2015-05-20  Jeff Law  <law@redhat.com>
29560         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29561         instead of open-coded version.  Also delete the jump thread created
29562         within this function.
29564 2015-05-20  Alan Modra  <amodra@gmail.com>
29566         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29567         stack adjusting insn.  Formatting.
29568         (rs6000_emit_prologue): Track stack adjusting insn, and use of
29569         r12.  If possible, emit first -fsplit-stack arg pointer insn
29570         before stack adjust.  Don't use r12 to save cr if split-stack.
29572 2015-05-20  Alan Modra  <amodra@gmail.com>
29574         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29575         Define.
29576         (rs6000_supports_split_stack): New function.
29577         * config/rs6000/rs6000.c (machine_function): Add
29578         split_stack_arg_pointer.
29579         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29580         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29581         rather than virtual_incoming_args_rtx.
29582         (rs6000_va_start): Likewise.
29583         (split_stack_arg_pointer_used_p): New function.
29584         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29585         (morestack_ref): New var.
29586         (gen_add3_const, rs6000_expand_split_stack_prologue,
29587         rs6000_internal_arg_pointer, rs6000_live_on_entry,
29588         rs6000_split_stack_space_check): New functions.
29589         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29590         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29591         (UNSPECV_SPLIT_STACK_RETURN): Define.
29592         (split_stack_prologue, load_split_stack_limit,
29593         load_split_stack_limit_di, load_split_stack_limit_si,
29594         split_stack_return, split_stack_space_check): New expands and insns.
29595         * config/rs6000/rs6000-protos.h
29596         (rs6000_expand_split_stack_prologue): Declare.
29597         (rs6000_split_stack_space_check): Declare.
29599 2015-05-20  Alan Modra  <amodra@gmail.com>
29601         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29602         (direct_return): Test vrsave_size rather than vrsave_mask.
29603         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
29604         (rs6000_emit_epilogue): Likewise.
29606 2015-05-20  Alan Modra  <amodra@gmail.com>
29608         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29609         when not saving registers.
29610         (debug_stack_info): Adjust to omit printing unused offsets,
29611         as before.
29612         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29613         expression.
29615 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29617         PR c++/65835
29618         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29619         value_type to const char *.
29621 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
29623         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29624         to build a biarch toolchain again.
29626 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29628         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29629         or implicit declarations.
29630         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29631         into it.
29632         (get_odr_type): Check type has linkage before adding bases.
29633         (register_odr_type): Check that type has linkage before adding it.
29634         (type_known_to_have_no_deriavations_p): Rename to ..
29635         (type_known_to_have_no_derivations_p): This one.
29636         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29637         (type_known_to_have_no_derivations_p): This one.
29638         * ipa-polymorphic-call.c
29639         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29640         type has linkage.
29642 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29644         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29645         (layout_type): Use RECORD_OR_UNION_TYPE_P.
29647 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29649         * config/s390/s390.c (s390_vector_bool_type_p): New function.
29650         (s390_invalid_binary_op): New function.
29651         (TARGET_INVALID_BINARY_OP): Define macro.
29653 2015-05-19  David Sherwood  <david.sherwood@arm.com>
29655         * loop-invariant.c (create_new_invariant): Don't calculate address cost
29656         if mode is not a scalar integer.
29657         (get_inv_cost): Increase computational cost for unused invariants.
29659 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29661         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
29662         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
29663         * config/s390/s390-builtin-types.def: New file.
29664         * config/s390/s390-builtins.def: New file.
29665         * config/s390/s390-builtins.h: New file.
29666         * config/s390/s390-c.c: New file.
29667         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29668         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29669         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29670         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29671         prototypes.
29672         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29673         Include.
29674         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29675         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29676         variable definitions.
29677         (s390_const_operand_ok): New function.
29678         (s390_expand_builtin): Rewrite.
29679         (s390_init_builtins): New function.
29680         (s390_handle_vectorbool_attribute): New function.
29681         (s390_attribute_table): Add s390_vector_bool attribute.
29682         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29683         (s390_branch_condition_mask): Generate masks for new modes.
29684         (s390_expand_vec_compare_cc): New function.
29685         (s390_mangle_type): Add mangling for vector bool types.
29686         (enum s390_builtin): Remove.
29687         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29688         efpc builtins.
29689         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29690         s390_cpu_cpp_builtins.
29691         (REGISTER_TARGET_PRAGMAS): New macro.
29692         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29693         (insn_cmp mode attribute): Add new CC modes.
29694         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29695         (lcbb): New pattern definition.
29696         * config/s390/s390intrin.h: Include vecintrin.h.
29697         * config/s390/t-s390: New file.
29698         * config/s390/vecintrin.h: New file.
29699         * config/s390/vector.md: Include vx-builtins.md.
29700         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29701         support.
29703 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29705         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29706         CCVFHE.
29707         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29708         (s390_select_ccmode): Likewise.
29709         (s390_canonicalize_comparison): Swap operands if necessary.
29710         (s390_expand_vec_compare_scalar): Expand DFmode compare using
29711         single element vector instructions.
29712         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29713         (s390_branch_condition_mask): Generate CC masks for the new modes.
29714         * config/s390/s390.md (v0, vf, vd): New mode attributes.
29715         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29716         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29717         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29718         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29719         (*extend<DSF:mode><BFP:mode>2): New insn definition.
29720         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29721         (extend<DSF:mode><BFP:mode>2): Turn into expander.
29722         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29723         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29724         (sqrt<mode>2): Add vector instruction.
29726 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29728         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29729         constraints.
29730         * config/s390/predicates.md (const0_operand, constm1_operand)
29731         (constable_operand): Accept vector operands.
29732         * config/s390/s390-modes.def: Add supported vector modes.
29733         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29734         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29735         (s390_bytemask_vector_p, s390_expand_vec_strlen)
29736         (s390_expand_vec_compare, s390_expand_vcond)
29737         (s390_expand_vec_init): Add prototypes.
29738         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29739         (s390_vector_mode_supported_p): New function.
29740         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29741         (s390_contiguous_bitmask_vector_p): New function.
29742         (s390_bytemask_vector_p): New function.
29743         (s390_split_ok_p): Vector regs don't work either.
29744         (regclass_map): Add VEC_REGS.
29745         (s390_legitimate_constant_p): Handle vector constants.
29746         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29747         (legitimate_reload_vector_constant_p): New function.
29748         (s390_preferred_reload_class): Handle CONST_VECTOR.
29749         (s390_reload_symref_address):  Likewise.
29750         (s390_secondary_reload): Vector memory instructions only support
29751         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
29752         (s390_emit_ccraw_jump): New function.
29753         (s390_expand_vec_strlen): New function.
29754         (s390_expand_vec_compare): New function.
29755         (s390_expand_vcond): New function.
29756         (s390_expand_vec_init): New function.
29757         (s390_dwarf_frame_reg_mode): New function.
29758         (print_operand): Handle addresses with 'O' and 'R' constraints.
29759         (NR_C_MODES, constant_modes): Add vector modes.
29760         (s390_output_pool_entry): Handle vector constants.
29761         (s390_hard_regno_mode_ok): Handle vector registers.
29762         (s390_class_max_nregs): Likewise.
29763         (s390_cannot_change_mode_class): New function.
29764         (s390_invalid_arg_for_unprototyped_fn): New function.
29765         (s390_function_arg_vector): New function.
29766         (s390_function_arg_float): Remove size variable.
29767         (s390_pass_by_reference): Handle vector arguments.
29768         (s390_function_arg_advance): Likewise.
29769         (s390_function_arg): Likewise.
29770         (s390_return_in_memory): Vector values are returned in a VR if
29771         possible.
29772         (s390_function_and_libcall_value): Handle vector arguments.
29773         (s390_gimplify_va_arg): Likewise.
29774         (s390_call_saved_register_used): Consider the arguments named.
29775         (s390_conditional_register_usage): Disable v16-v31 for non-vec
29776         targets.
29777         (s390_preferred_simd_mode): New function.
29778         (s390_support_vector_misalignment): New function.
29779         (s390_vector_alignment): New function.
29780         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29781         (TARGET_VECTOR_MODE_SUPPORTED_P)
29782         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29783         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29784         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29785         (TARGET_VECTOR_ALIGNMENT): Define target macro.
29786         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29787         (FIRST_PSEUDO_REGISTER): Increase value.
29788         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29789         (VECTOR_REG_P): Define macros.
29790         (FIXED_REGISTERS, CALL_USED_REGISTERS)
29791         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29792         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29793         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29794         Add vector registers.
29795         (CANNOT_CHANGE_MODE_CLASS): Call C function.
29796         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29797         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29798         memory.
29799         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29800         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29801         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29802         (VR*_REGNUM): New constants.
29803         (ALL): New mode iterator.
29804         (INTALL): Remove mode iterator.
29805         Include vector.md.
29806         (movti): Implement TImode moves for VRs.
29807         Disable TImode splitter for VR targets.
29808         Implement splitting TImode GPR<->VR moves.
29809         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29810         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29811         reload<mode>_la_in, reload<mode>_la_out.
29812         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29813         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29814         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29815         (mov<mode> SF SD): Prefer lder, lde for loading.
29816         Add lrl and strl instructions.
29817         Add vector instructions.
29818         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29819         Call s390_expand_vec_strlen on z13.
29820         (*cc_to_int): Change predicate to nonimmediate_operand.
29821         (addti3): Rename to *addti3.  New expander.
29822         (subti3): Rename to *subti3.  New expander.
29823         * config/s390/vector.md: New file.
29825 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29827         * common/config/s390/s390-common.c (processor_flags_table): Add
29828         z13.
29829         * config.gcc: Add z13.
29830         * config/s390/s390-opts.h (enum processor_type): Add
29831         PROCESSOR_2964_Z13.
29832         * config/s390/s390.c (s390_adjust_priority): Check for
29833         PROCESSOR_2964_Z13.
29834         (s390_reorg): Likewise.
29835         (s390_sched_reorder): Likewise.
29836         (s390_sched_variable_issue): Likewise.
29837         (s390_loop_unroll_adjust): Likewise.
29838         (s390_option_override): Likewise. Default to -mvx when available.
29839         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29840         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29841         (TARGET_VX_ABI): Define macros.
29842         macros.
29843         (TARGET_DEFAULT): Add MASK_OPT_VX.
29844         * config/s390/s390.md ("cpu" attribute): Add z13.
29845         ("cpu_facility" attribute): Add vec.
29846         * config/s390/s390.opt (processor_type): Add z13.
29847         (mvx): New options.
29848         * doc/invoke.texi: Add z13 option for -march.
29850 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29852         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29853         mode check to make sure that only scalar integer values are
29854         accepted.
29856 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29858         * tree.c (verify_type_variant): Fix #undef.
29859         (gimple_canonical_types_compatible_p): Move here from lto.c
29860         (verify_type): Verify TYPE_CANONICAL compatibility.
29861         * tree.h (gimple_canonical_types_compatible_p): Declare.
29863 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29865         PR middle-end/66199
29866         * tree.h (OMP_TEAMS_COMBINED): Define.
29867         * gimplify.c (enum gimplify_omp_var_data): Add
29868         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29869         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29870         (omp_notice_variable): Accept both ORT_TEAMS
29871         and ORT_COMBINED_TEAMS.  Don't recurse if
29872         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29873         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29874         GOVD_FIRSTPRIVATE.
29875         (omp_no_lastprivate): New function.
29876         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29877         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29878         notice_outer and set appropriate bits, otherwise make
29879         sure default(none) combined constructs won't complain.
29880         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29881         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29882         omp_no_lastprivate either remove the clause or turn it
29883         into OMP_CLAUSE_PRIVATE.
29884         (gimplify_omp_for): Fix up handling of implicit
29885         lastprivate or linear iterators.
29886         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29887         ORT_COMBINED_TEAMS.
29888         * omp-low.c (lower_omp_for_lastprivate): For combined
29889         for simd use fd.loop.n2 from the for rather than simd.
29891 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29893         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29894         instead of gen_rtx_raw_REG.
29895         (cris_expand_epilogue): Likewise.
29896         * config/microblaze/microblaze.c (microblaze_classify_address):
29897         Likewise.
29898         * config/sparc/sparc.md: Likewise.
29900 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
29902         * config/alpha/alpha.c (alpha_legitimize_reload_address)
29903         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29904         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29905         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29906         Use CASE_CONST_SCALAR_INT.
29907         (print_operand) <case 'M'>: Use mode_width_operand to check the
29908         value of the constant.
29909         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29910         * config/alpha/predicates.md (input_operand): Use general_operand
29911         instead of match_code as operand check.
29912         (symbolic_operand): Use match_code with subexpression digits.
29913         * config/alpha/constraints.md (Q): Ditto.
29915 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29917         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29919 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29921         * config/s390/s390.c (s390_secondary_reload): Fix check for
29922         load/store relative.
29924 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29926         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
29927         alternative_mask to uint64_t.
29929 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29931         PR tree-optimization/66187
29932         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29933         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
29934         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29936 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
29938         * diagnostic.c (diagnostic_report_current_module): Strengthen
29939         local "new_map" from const line_map * to
29940         const line_map_ordinary *.
29941         * genmatch.c (error_cb): Likewise for local "map".
29942         (output_line_directive): Likewise for local "map".
29943         * input.c (expand_location_1): Likewise for local "map".
29944         Pass NULL rather than &map to
29945         linemap_unwind_to_first_non_reserved_loc, since the value is never
29946         read from there, and the value written back not read from here.
29947         (is_location_from_builtin_token): Strengthen local "map" from
29948         const line_map * to const line_map_ordinary *.
29949         (dump_location_info): Strengthen locals "map" from
29950         line_map *, one to const line_map_ordinary *, the other
29951         to const line_map_macro *.
29952         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29953         const line_map * to const line_map_macro *.
29954         (maybe_unwind_expanded_macro_loc): Add a call to
29955         linemap_check_macro when writing to the "map" field of the
29956         loc_map_pair.
29957         Introduce local const line_map_ordinary * "ord_map", using it in
29958         place of "map" in the part of the function where we know we have
29959         an ordinary map.  Strengthen local "m" from const line_map * to
29960         const line_map_ordinary *.
29962 2015-05-19  Nick Clifton  <nickc@redhat.com>
29964         PR target/66156
29965         * config/msp430/msp430.md (zero_extendhisi2): Add support for
29966         separate source and destination registers.
29968 2015-05-19  Richard Biener  <rguenther@suse.de>
29970         PR tree-optimization/66165
29971         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29972         for no load permutation.
29974         PR tree-optimization/66185
29975         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29976         when building the SLP node from scalars.
29978 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29979             Tristan Gingold  <gingold@adacore.com>
29981         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29982         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29983         (expand_stack_restore): Call record_new_stack_level.
29984         (expand_stack_save): Do not call do_pending_stack_adjust.
29985         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29986         * calls.c (expand_call): Call record_new_stack_level for alloca.
29987         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29988         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29989         (update_sjlj_context): New global function.
29990         * except.h (update_sjlj_context): Declare.
29991         * explow.c (record_new_stack_level): New global function.
29992         (allocate_dynamic_stack_space): Call record_new_stack_level.
29993         * explow.h (record_new_stack_level): Declare.
29994         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29995         * cfgrtl.c (duplicate_insn_chain): Likewise.
29997 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29999         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30000         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30001         STACK_GROWS_DOWNWARD as normal if.
30002         (expand_call): Likewise.
30004 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
30006         PR target/54236
30007         * config/sh/sh.md (*round_int_even): New insn_and_split and
30008         accompanying new unnamed split.
30010 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30012         * bitmap.c (bitmap_set_range): Handle count==1 specially.
30013         (bitmap_clear_range): Likewise.
30014         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30015         bitmap_set_range unconditionally.
30016         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30017         * df-scan.c (df_mark_reg): Likewise.
30018         * haifa-sched.c (setup_ref_regs): Likewise.
30019         * sched-rgn.c (update_live_1): Likewise.
30021 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30023         * regs.h (END_HARD_REGNO): Delete.
30024         (END_REGNO): Move to...
30025         * rtl.h: ...here.
30026         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30027         * caller-save.c (mark_set_regs): Likewise.
30028         * combine.c (move_deaths, distribute_notes): Likewise.
30029         * cse.c (invalidate, invalidate_for_call): Likewise.
30030         * df-scan.c (df_ref_record): Likewise.
30031         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30032         (record_last_reg_set_info): Likewise.
30033         * reg-stack.c (convert_regs_exit): Likewise.
30034         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30035         * resource.c (update_live_status): Likewise.
30036         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30038 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30040         * rtl.h (reg_info): Add an nregs field.
30041         (REG_NREGS): Use it.
30042         (SET_REGNO_RAW): Delete.
30043         (set_regno_raw): New function.
30044         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30045         (END_REGNO): Redefine in terms of REG_NREGS.
30046         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30047         SET_REGNO_RAW.
30048         * emit-rtl.c (set_mode_and_regno): Likewise.
30049         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30050         instead of SET_REGNO_RAW.
30052 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30054         * rtl.h (PUT_MODE_RAW): New macro.
30055         (PUT_REG_NOTE_KIND): Use it.
30056         (set_mode_and_regno): Declare.
30057         (gen_raw_REG): Change regno to "unsigned int".
30058         (gen_rtx_REG): Change "unsigned" to "unsigned int".
30059         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30060         use set_mode_and_regno to change the mode of registers.
30061         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30062         * emit-rtl.c (set_mode_and_regno): New function.
30063         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
30064         * caller-save.c (reg_save_code): Use set_mode_and_regno.
30065         * expr.c (init_expr_target): Likewise.
30066         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30067         * postreload.c (reload_cse_simplify_operands): Likewise.
30069 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30071         * caller-save.c (init_caller_save): Use word_mode and
30072         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30073         * expr.c (init_expr_target): Likewise.
30074         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30075         * postreload.c (reload_cse_regs_1): Likewise.
30077 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30079         * rtl.def (REG): Change format to "r".
30080         * rtl.h (rtunion): Remove rt_reg.
30081         (reg_info): New structure.
30082         (rtx_def): Add reg field to main union.
30083         (X0REGATTR): Delete.
30084         (REG_CHECK): New macro.
30085         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30086         * rtl.c (rtx_format): Document "r".
30087         (rtx_code_size): Handle REG specially.
30088         * gengenrtl.c (special_format): Return true for formats
30089         that include 'r'.
30090         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30091         Deal with REG_ATTRS after the field loop.
30092         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30093         * expmed.c (init_expmed): Call gen_raw_REG instead of
30094         gen_rtx_raw_REG.
30095         * expr.c (init_expr_target): Likewise.
30096         * regcprop.c (maybe_mode_change): Likewise.
30097         * varasm.c (make_decl_rtl): Likewise.
30098         * final.c (leaf_renumber_regs_insn): Return early after
30099         handling REGs.
30100         * genemit.c (gen_exp): Handle 'r' fields.
30101         * genpeep.c (match_rtx): Likewise.
30102         * gensupport.c (subst_pattern_match): Likewise.
30103         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30104         (alter_constraints, subst_dup): Likewise.
30105         * read-rtl.c (read_rtx_code): Likewise.
30106         * print-rtl.c (print_rtx): Likewise.
30107         * genrecog.c (find_operand, find_matching_operand): Likewise.
30108         (validate_pattern, match_pattern_2): Likewise.
30109         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30110         (rtx_test::regno_field): New function.
30111         (operator ==, safe_to_hoist_p, transition_parameter_type)
30112         (parameter_type_string, print_parameter_value)
30113         (print_nonbool_test, print_test): Handle new enum values.
30114         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30115         * lra-constraints.c (operands_match_p): Likewise.
30117 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30119         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30120         Change type of new_regno to unsigned int.
30121         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30122         new_regno to unsigned int.
30123         (df_ref_change_reg_with_loc): Remove old_regno parameter.
30124         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
30125         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30126         (SET_REGNO_RAW): Add space after ",".
30128 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30130         * rtl.h (REG_NREGS): New macro
30131         * alias.c (record_set): Use it.
30132         * cfgcleanup.c (mark_effect): Likewise.
30133         * combine.c (likely_spilled_retval_1): Likewise.
30134         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30135         (move_deaths, distribute_notes): Likewise.
30136         * cselib.c (cselib_record_set): Likewise.
30137         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30138         * df-scan.c (df_mark_reg): Likewise.
30139         * dse.c (look_for_hardregs): Likewise.
30140         * dwarf2out.c (reg_loc_descriptor): Likewise.
30141         (multiple_reg_loc_descriptor): Likewise.
30142         * expr.c (write_complex_part, read_complex_part): Likewise.
30143         (emit_move_complex): Likewise.
30144         * haifa-sched.c (setup_ref_regs): Likewise.
30145         * ira-lives.c (mark_hard_reg_live): Likewise.
30146         * lra.c (lra_set_insn_recog_data): Likewise.
30147         * mode-switching.c (create_pre_exit): Likewise.
30148         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30149         (reload_combine_recognize_pattern): Likewise.
30150         (reload_combine_note_use, move2add_record_mode): Likewise.
30151         (reload_cse_move2add): Likewise.
30152         * reg-stack.c (subst_stack_regs_pat): Likewise.
30153         * regcprop.c (kill_value, copy_value): Likewise.
30154         (copyprop_hardreg_forward_1): Likewise.
30155         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30156         (build_def_use): Likewise.
30157         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30158         (deps_analyze_insn): Likewise.
30159         * sched-rgn.c (check_live_1, update_live_1): Likewise.
30160         * sel-sched.c (count_occurrences_equiv): Likewise.
30161         * valtrack.c (dead_debug_insert_temp): Likewise.
30163 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30165         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30166         * dse.c (note_add_store): Likewise.
30167         * ira-lives.c (mark_hard_reg_dead): Likewise.
30168         * loop-invariant.c (mark_reg_store): Likewise.
30169         (mark_reg_death): Likewise.
30170         * postreload.c (reload_combine): Likewise.
30171         (reload_combine_note_store): Likewise.
30172         (reload_combine_note_use): Likewise.
30173         * recog.c (peep2_reg_dead_p): Likewise.
30175 2015-05-19  Alan Modra  <amodra@gmail.com>
30177         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30178         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30179         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30180         unused predicates.
30181         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30182         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
30183         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30184         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30186 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
30188         * config/mips/mips.md (JOIN_MODE): New mode iterator.
30189         (join2_load_Store<JOIN_MODE:mode>): New pattern.
30190         (join2_loadhi): Likewise.
30191         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30192         load-load and store-stores.
30193         * config/mips/mips.opt (mload-store-pairs): New option.
30194         (TARGET_LOAD_STORE_PAIRS): New macro.
30195         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30196         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30197         * config/mips/mips.c (mips_load_store_bonding_p): New function.
30199 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
30201         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30202         explicit swaps.
30203         * dojump.c (do_compare_rtx_and_jump): Likewise.
30204         * expmed.c (emit_store_flag_1): Likewise.
30205         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30206         * final.c (sprint_ul): Use std::reverse for reversing a string.
30207         * fold-const.c (extract_muldiv_1): Use std::swap.
30208         * genmodes.c (emit_mode_int_n): Likewise.
30209         * ifcvt.c (dead_or_predicable): Likewise.
30210         * ira-build.c (ira_merge_live_ranges): Likewise.
30211         (swap_allocno_copy_ends_if_necessary): Likewise.
30212         * ira.c (ira_setup_alts): Likewise.
30213         * loop-iv.c (iv_analyze_expr): Likewise.
30214         (implies_p): Likewise.
30215         (canon_condition): Likewise.
30216         * lra-constraints.c (swap_operands): Likewise.
30217         * lra-lives.c (lra_merge_live_ranges): Likewise.
30218         * omega.c (swap): Remove.
30219         (bswap): Remove.
30220         (omega_unprotect_1): Use std::swap.
30221         (omega_solve_geq): Likewise.
30222         * optabs.c (expand_binop_directly): Likewise.
30223         (expand_binop): Likewise.
30224         (emit_conditional_move): Likewise.
30225         (emit_conditional_add): Likewise.
30226         * postreload.c (reload_cse_simplify_operands): Likewise.
30227         * reg-stack.c (emit_swap_insn): Likewise.
30228         (swap_to_top): Likewise.
30229         (compare_for_stack_reg): Likewise.
30230         (subst_asm_stack_regs): Likewise.
30231         * reload.c (find_reloads): Likewise.
30232         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30233         * sel-sched.c (invoke_reorder_hooks): Likewise.
30234         (create_block_for_bookkeeping): Likewise.
30235         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30236         (lambda_matrix_right_hermite): Use std::swap.
30237         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30238         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30239         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30240         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30241         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30242         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30243         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30244         * tree-vrp.c (compare_ranges): Likewise.
30245         * var-tracking.c (add_with_sets): Likewise.
30246         (vt_find_locations): Likewise.
30248 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
30250         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30251         pie executables.
30252         (FBSD_ENDFILE_SPEC): Likewise.
30253         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30254         config/freebsd-spec.h.
30255         (ENDFILE_SPEC): Likewise.
30257 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
30258             Richard Henderson  <rth@redhat.com>
30260         PR target/57032
30261         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30262         Check for a memory location that is not a reference (using an AND)
30263         to an unaligned location here.
30264         * config/alpha/predicates.md (normal_memory_operand): Remove.
30266 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
30268         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30269         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30271 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
30273         * config/mips/mips.c (micromips_globals): New variable.
30274         (mips_set_compression_mode): Save and reinitialize target-dependent
30275         state for microMIPS.
30277 2015-05-18  Martin Liska  <mliska@suse.cz>
30279         * dbgcnt.def: Add new counter.
30280         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30282 2015-05-18  Martin Liska  <mliska@suse.cz>
30284         * dbgcnt.def: Sort counters.
30285         * opts.c (common_handle_option): Do not compile if
30286         -fdbg-cnt-list is enabled.
30288 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30290         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30291         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
30292         address operator to va_list operand.
30293         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30294         unconditionally.
30295         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30296         operand.
30297         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30298         * config/s390/s390.c (s390_gimplify_va_arg): Same.
30299         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30301 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30303         * tree-ssa-tail-merge.c: Fix whitespace.
30305 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
30307         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30308         cortex-a17, and cortex-a17.cortex-a7.
30310 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
30312         PR target/54236
30313         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30315 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
30317         PR target/66174
30318         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30319         QImode inner modes for TARGET_AVX512BW.  Force mask operand
30320         to a register for AVX512F modes.
30322 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30324         * toplev.c (emit_debug_global_declarations): Do not output debug info
30325         when doing slim LTO objects.
30327 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30329         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30330         odr_types_equivalent_p): Declare.
30331         (odr_type_p): Use gcc_checking_assert.
30332         (type_in_anonymous_namespace_p) Declare.
30333         (type_with_linkage_p): Declare.
30334         * common.opt (Wlto-type-mismatch): New warning.
30335         * ipa-devirt.c (compound_type_base): New function.
30336         (odr_or_derived_type_p): New function.
30337         (odr_types_equivalent_p): New function.
30338         (add_type_duplicate): Simplify.
30339         (type_with_linkage_p): Add hack to prevent false positives on C types
30340         (type_in_anonymous_namespace_p): Likewise.
30341         * tree.c (need_assembler_name_p): Use type_with_linkage.
30342         * tree.h (type_in_anonymous_namespace_p): Remove.
30343         * doc/invoke.texi (-Wlto-type-mismatch): Document
30345 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30347         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30348         (verify_type): Verify STRING_FLAG.
30350 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30352         PR fortran/44054
30353         * tree-pretty-print.c (percent_K_format): Replace locus pointer
30354         with accessor function.
30355         * tree-diagnostic.c (diagnostic_report_current_function): Use
30356         diagnostic_location function.
30357         (maybe_unwind_expanded_macro_loc): Likewise.
30358         (virt_loc_aware_diagnostic_finalizer): Likewise.
30359         (default_tree_printer): Replace locus pointer with accessor function.
30360         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30361         (diagnostic_set_info_translated): Initialize second location.
30362         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30363         (diagnostic_show_locus): Handle two locations. Call
30364         diagnostic_print_caret_line.
30365         (diagnostic_print_caret_line): New.
30366         (default_diagnostic_starter): Use diagnostic_location function.
30367         (diagnostic_report_diagnostic): Use diagnostic_location function.
30368         (verbatim): Do not set text.locus.
30369         * diagnostic.h (struct diagnostic_info): Remove location field.
30370         (struct diagnostic_context): Make caret_chars an array of two.
30371         (diagnostic_location): New inline.
30372         (diagnostic_expand_location): Handle two locations.
30373         (diagnostic_same_line): New inline.
30374         (diagnostic_print_caret_line): Declare.
30375         (CARET_LINE_MARGIN): New constant.
30376         * pretty-print.c (pp_printf): Do not set text.locus.
30377         (pp_verbatim): Do not set text.locus.
30378         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30379         (struct text_info): Replace locus pointer with locations
30380         array. Add accessor functions.
30382 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
30383             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30385         PR target/65768
30386         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30387         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30388          large constants in register instead of splitting them.
30390 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
30392         PR target/66140
30393         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30394         replacements in memory addresses.
30395         (get_unaligned_address): Ditto.
30397 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
30399         * config/ft32/*: New files for FT32 port.
30400         * doc/install.texi: Add FT32 information.
30401         * doc/invoke.texi: Add FT32 information.
30402         * doc/md.texi: Add FT32 information.
30403         * doc/contrib.texi: Self added.
30405 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
30407         PR tree-optimization/64454
30408         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30409         (-1 - A -> ~A): Remove unnecessary condition.
30411 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
30413         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30414         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30415         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30417 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
30419         * ipa-chkp.h (chkp_wrap_function): New.
30420         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30421         (chkp_wrap_function_name): New.
30422         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30423         to get wrapper name.
30424         * lto-cgraph.c: Include ipa-chkp.h.
30425         (input_cgraph_1): Avoid alias chain for wrappers.
30427 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30429         PR middle-end/66134
30430         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30431         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30433 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30435         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30436         (AARCH64_FL_SLOWMUL): Delete.
30437         (AARCH64_FL_CRC): Redefine to 1<<3.
30438         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30440 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30442         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30443         casting.
30445 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30447         * config/alpha/alpha.md (extendqidi2): Use general_operand
30448         instead of some_operand for operand[1] predicate.
30449         (extendhidi2): Ditto.
30450         (cbranchdi4): Use general_operand instead of some_operand
30451         for operand[1] and operands[2] predicates.
30452         (cstoredi4): Ditto.
30453         * config/alpha/predicates.md (some_operand): Remove unused predicate.
30454         (some_ni_operand): Ditto.
30456 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30458         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30459         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
30460         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30461         low part of the constant using alpha_emit_set_const_1.
30462         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30464 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
30466         * varasm.c (output_constant_pool_1): Pass down alignment from
30467         constant pool entry's descriptor to output_constant_pool_2.
30468         (output_object_block): Add comment prior to call to
30469         output_constant_pool_1.
30471 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
30473         PR rtl-optimization/65862
30474         * target.def (ira_change_pseudo_allocno_class): New hook.
30475         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30476         value of the hook.
30477         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30478         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30479         hook.
30480         * ira-costs.c (find_costs_and_classes): Call the hook and change
30481         classes when it is necessary.
30482         * doc/tm.texi: Update.
30484 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
30486         * config/i386/i386.md (sibcall_memory): Check that register with
30487         callee address is not also used as one of the arguments, instead
30488         of checking that it is not live after the sibcall.
30489         (sibcall_pop_memory): Ditto.
30490         (sibcall_value_memory): Ditto.
30491         (sibcall_value_pop_memory): Ditto.
30493 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
30495         * generic-match-head.c (types_match): Handle non-types.
30496         * gimple-match-head.c (types_match): Likewise.
30497         * match.pd: Remove unnecessary TREE_TYPE for types_match.
30499 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
30501         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30502         (csneg3<mode>_insn): Enable expansion of pattern.
30504 2015-05-14  Nick Clifton  <nickc@redhat.com>
30506         * config/rl78/rl78.c (rl78_select_section): Select the correct
30507         default section based upon the category of the decl.
30509 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30511         PR rtl-optimization/30967
30512         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30513         destination mode for the cost of scc patterns.
30515 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30517         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30518         using SWIM248 mode iterator.
30519         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30520         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
30521         for operand[2] constraint.
30522         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30524 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30526         PR middle-end/66133
30527         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30528         make sure it is never noreturn, even when the task body does not
30529         return.
30530         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30531         right before GIMPLE_OMP_RETURN.
30532         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30533         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
30534         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30536 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30538         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30539         * tree-ssa-math-opts.c: Include params.h
30540         (pow_synth_sqrt_info): New struct.
30541         (representable_as_half_series_p): New function.
30542         (get_fn_chain): Likewise.
30543         (print_nested_fn): Likewise.
30544         (dump_fractional_sqrt_sequence): Likewise.
30545         (dump_integer_part): Likewise.
30546         (expand_pow_as_sqrts): Likewise.
30547         (gimple_expand_builtin_pow): Use above to attempt to expand
30548         pow as series of square roots.  Removed now unused variables.
30550 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30552         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30553         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30554         Remove *p0 and *p1 arguments.  Rewrite function.
30555         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30556         (alpha_split_const_mov): Update calls to alpha_extract_integer and
30557         alpha_emit_set_long_const.
30558         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30559         (alpha_output_mi_thunk_osf): Ditto.
30560         * config/alpha/alpha.md (movti): Do not check operands[1]
30561         for CONST_DOUBLE.
30563 2015-05-13  Richard Biener  <rguenther@suse.de>
30565         PR tree-optimization/66129
30566         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30567         commutative.
30568         (vect_schedule_slp_instance): Fix typo.
30570 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
30572         * common.opt (fdump-internal-locations): New option.
30573         * input.c: Include diagnostic-core.h.
30574         (get_end_location): New function.
30575         (write_digit): New function.
30576         (write_digit_row): New function.
30577         (dump_location_range): New function.
30578         (dump_labelled_location_range): New function.
30579         (dump_location_info): New function.
30580         * input.h (dump_location_info): New prototype.
30581         * toplev.c (compile_file): Handle flag_dump_locations.
30583 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
30585         * gimple-expr.h (is_gimple_constant): Reorder.
30586         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30588 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30590         * combine.c (simplify_set): When generating a CC set, if the
30591         source already is in the correct mode, do not wrap it in a
30592         compare.  Simplify the rest of that code.
30594 2015-05-13  Richard Biener  <rguenther@suse.de>
30596         PR tree-optimization/66123
30597         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30598         a taken edge.
30600 2015-05-13  Richard Biener  <rguenther@suse.de>
30602         PR middle-end/66110
30603         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30604         specially.
30605         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30607 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
30609         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30610         * aclocal.m4: Regenerated with automake-1.11.6.
30612 2015-05-13  Tom de Vries  <tom@codesourcery.com>
30614         PR tree-optimization/66010
30615         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30616         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30617         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
30618         and rval based on do_deref.
30620 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30622         PR target/65103
30623         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30624         link time constants into adress expressions and therefore set
30625         their cost to 0.
30627 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30629         PR target/66112
30630         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30631         Use SWI248 iterator instead of SWI.
30632         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
30633         Use eq_attr "alternative" "0" instead of match_test in
30634         length_immediate attribute computation.
30635         (*mulvhi4, *mulvhi4_1): New define_insns.
30637         PR target/66112
30638         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30639         SIGNED to get precision of non-negative value.
30641 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30643         PR target/66048
30644         * function.c (diddle_return_value_1): Process bounds first.
30645         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30646         register.
30648 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30650         PR rtl-optimization/64616
30651         * loop-invariant.c (can_move_invariant_reg): New.
30652         (move_invariant_reg): Call above new function to decide whether
30653         instruction can just be moved, skipping creation of temporary
30654         register.
30656 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30658         PR target/pr66047.c
30659         * i386.c (ix86_function_sseregparm): Only return -1 if local function
30660         with implied regparm is called from -mno-sse function.
30661         (init_cumulative_args): Output error if ix86_function_sseregparm
30662         return -1 and SSE register would be needed.
30663         (function_arg_advance_32): Likewise.
30664         (function_arg_32): Likewise.
30665         * i386.h (ix86_args): Add decl field.
30667 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30669         PR ipa/65873
30670         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30671         inlines across optimization boundary.
30673 2015-05-12  Jason Merrill  <jason@redhat.com>
30675         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30676         string literal and macro name.
30678 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
30680         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30681         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30682         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30684 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30686         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30687         (-Wmisleading-indentation): New option.
30688         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30690 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
30692         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30693         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30694         (alpha_extract_integer): Ditto.
30695         (alpha_legitimate_constant_p): Ditto.
30696         (alpha_split_tmode_pair): Ditto.
30697         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30698         (alpha_expand_mov): Ditto.
30699         (print_operand): Remove handling of 'H' modifier.
30700         <case 'm'>: Remove CONST_DOUBLE handling.
30701         (summarize_insn): Handle CONST_WIDE_INT.
30702         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30703         (anddi3): Ditto.
30704         (movti): Handle CONST_WIDE_INT.
30705         * config/alpha/constraints.md ('H'): Remove constraint definition.
30706         ('G'): Do not match MODE_FLOAT class.
30707         * config/alpha/predicates.md (const0_operand): Also match
30708         const_wide_int.
30709         (non_add_const_operand): Ditto.
30710         (non_zero_const_operand): Ditto.
30711         (some_operand): Ditto.
30712         (input_operand): Ditto.  Handle CONST_WIDE_INT.
30713         (and_operand): Do not match const_double.
30714         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30716 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
30718         PR target/65697
30719         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30720         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30721         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30722         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30723         is_mm_seq_cst, is_mm_sync): New accessor functions.
30724         * builtins.c (expand_builtin_sync_operation,
30725         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30726         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30727         (get_memmodel,  expand_builtin_atomic_compare_exchange,
30728         expand_builtin_atomic_load, expand_builtin_atomic_store,
30729         expand_builtin_atomic_clear): Use new accessor routines.
30730         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30731         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30732         (maybe_emit_sync_lock_test_and_set): Use new accessors and
30733         MEMMODEL_SYNC_ACQUIRE.
30734         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30735         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30736         expand_atomic_store): Use new accessors.
30737         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30738         * tsan.c (instrument_builtin_call): Update check for memory model beyond
30739         final enum to use MEMMODEL_LAST.
30740         * c-family/c-common.c: Use new accessor for memmodel_base.
30741         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30742         accessors.
30743         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30744         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30745         mem_thread_fence, *dmb): Likewise.
30746         * config/alpha/alpha.c (alpha_split_compare_and_swap,
30747         alpha_split_compare_and_swap_12): Likewise.
30748         * config/arm/arm.c (arm_expand_compare_and_swap,
30749         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30750         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30751         atomic_loaddi): Likewise.
30752         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30753         Likewise.
30754         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30755         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30756         use new accessors.
30757         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30758         atomic_store<mode>, atomic_compare_and_swap<mode>,
30759         atomic_exchange<mode>): Use new accessors.
30760         * config/mips/mips.c (mips_process_sync_loop): Likewise.
30761         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30762         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30763         rs6000_post_atomic_barrier): Add new cases.
30764         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30765         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30766         (atomic_load<mode>): Add new cases and use new accessors.
30767         (store_quadpti): Add new cases.
30768         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30769         accessors.
30770         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30771         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30772         model, not 8.
30774 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30776         * ipa-devirt.c (type_with_linkage_p): New function.
30777         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30778         type has linkage.
30779         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30780         (can_be_name_hashed_p): Simplify.
30781         (hash_odr_name): Check that type has linkage before checking if it is
30782         anonymous.
30783         (types_same_for_odr): Likewise.
30784         (odr_name_hasher::equal): Likewise.
30785         (odr_subtypes_equivalent_p): Likewise.
30786         (warn_types_mismatch): Likewise.
30787         (get_odr_type): Likewise.
30788         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30789         * ipa-utils.h (odr_type_p): Move offline.
30790         * tree.c (need_assembler_name_p): Fix handling of types
30791         without linkages.
30792         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30794 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30796         * timevar.c (timevar_enable): Delete in favor of...
30797         (g_timer): New global.
30798         (struct timevar_def): Move to timevar.h inside class timer.
30799         (struct timevar_stack_def): Likewise.
30800         (timevars): Delete global in favor of field "m_timevars" within
30801         class timer in timevar.h
30802         (stack): Likewise, in favor of field "m_stack".
30803         (unused_stack_instances): Likewise, in favor of field
30804         "m_unused_stack_instances".
30805         (start_time): Likewise, in favor of field "m_start_time".
30806         (get_time): Eliminate check for timevar_enable.
30807         (timer::timer): New function, built from part of timevar_init.
30808         (timevar_init): Rewrite idempotency test from using
30809         "timevar_enable" bool to using dynamic allocation of "g_timer".
30810         Move rest of implementation into timer's constructor.
30811         (timevar_push_1): Rename to...
30812         (timer::push): ...this, adding "m_" prefixes to variables that
30813         are now fields of timer.
30814         (timevar_pop_1): Likewise, rename to...
30815         (timer::pop): ...this, and add "m_" prefixes.
30816         (timevar_start): Replace test for "timevar_enable" with one for
30817         "g_timer", and move bulk of implementation to...
30818         (timer::start): ...here, adding "m_" prefixes.
30819         (timevar_stop): Likewise, from here...
30820         (timer::stop): ...to here.
30821         (timevar_cond_start): Likewise, from here...
30822         (timer::cond_start): ...to here.
30823         (timevar_cond_stop): Likewise, from here...
30824         (timer::cond_stop): ...to here.
30825         (validate_phases): Rename to...
30826         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
30827         locals "total" and "tv" const.
30828         (timevar_print): Rename to...
30829         (timer::print): ...this, and add "m_" prefixes.  Make locals
30830         "total" and "tv" const.  Eliminate test for timevar_enable.
30831         * timevar.h (timevar_enable): Eliminate.
30832         (g_timer): New declaration.
30833         (timevar_push_1): Eliminate.
30834         (timevar_pop_1): Eliminate.
30835         (timevar_print): Eliminate.
30836         (class timer): New class.
30837         (timevar_push): Rewrite to use g_timer.
30838         (timevar_pop): Likewise.
30839         * toplev.c (toplev::~toplev): Likewise.
30841 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
30843         * arm-protos.h (arm_sched_autopref): Delete.
30844         (tune_params): Re-organize, use enums for flag values.
30845         (FUSE_OPS): New macro.
30846         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30847         (ARM_PREFETCH_BENEFICIAL): Likewise.
30848         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30849         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30850         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30851         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30852         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30853         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
30854         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30855         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30856         format.
30857         (arm_option_override, thumb2_reorg, arm_print_tune_info)
30858         (aarch_macro_fusion_pair_p): Update uses of current_tune.
30859         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30861 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
30863         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30864         "break".
30866 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
30867             Sandra Loosemore <sandra@codesourcery.com>
30869         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30870         value.
30871         (REG_CLASS_NAMES): Add "IJMP_REGS".
30872         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30873         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30874         use new "c" register constraint.
30875         * config/nios2/constraint.md (c): New register constraint
30876         corresponding to IJMP_REGS.
30878 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30880         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30881         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30882         define_splits): Delete, revamp, transmogrify into ...
30883         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30884         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30885         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30886         New.
30888 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30890         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30891         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30893 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30895         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30896         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30897         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30898         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30899         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30900         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30901         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30902         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30903         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30904         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30905         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30906         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30907         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30908         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30909         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30910         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30911         and 30 corresponding splitters): Delete.
30913 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30915         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30916         zero_extract.
30918 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30920         * combine.c (recog_for_combine_1): New function, factored out
30921         from recog_for_combine.
30922         (change_zero_ext): New function.
30923         (recog_for_combine): If recog fails, try again with the pattern
30924         modified by change_zero_ext; if that still fails, restore the
30925         pattern.
30927 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30929         * combine.c (get_undo_marker): New function.
30930         (undo_to_marker): New function, largely factored out from ...
30931         (undo_all): ... this.  Adjust.
30933 2015-05-12  Richard Biener  <rguenther@suse.de>
30935         PR tree-optimization/66101
30936         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30937         fixup if we turn a loop exit edge to a fallthru edge.
30939 2015-05-12  Richard Biener  <rguenther@suse.de>
30941         PR tree-optimization/37021
30942         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30943         (SLP_TREE_TWO_OPERATORS): New define.
30944         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30945         SLP_TREE_TWO_OPERATORS.
30946         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30947         SLP node.
30948         (vect_build_slp_tree): Adjust.
30949         (vect_analyze_slp_cost_1): Likewise.
30950         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30951         emitting two vector stmts and mixing the results.
30953 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30955         * call.c (print_z_candidates): Remove dead code.
30957 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30959         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30960         and zEC12_simple_fp.
30961         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30962         to 1.
30964 2015-05-12  Tom de Vries  <tom@codesourcery.com>
30966         PR tree-optimization/66010
30967         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30968         ifn_va_arg.
30969         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30970         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
30971         va_lists are passed, and remove corresponding handling.
30972         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
30973         do_deref argument to ifn_va_arg.
30974         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30975         ifn_va_arg.
30977 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30979         PR target/65955
30980         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30981         REG before taking its REGNO.
30983 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30985         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30986         rsp->sign_bit_copies and rsp->nonzero_bits into ...
30987         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
30988         present to get more accurate information about the number of sign bit
30989         copies and non zero bits.
30991 2015-05-12  Richard Biener  <rguenther@suse.de>
30993         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30994         do not allow unrolling.
30996 2015-05-11  Richard Henderson  <rth@redhat.com>
30998         * config/i386/i386-modes.def (CCP): New.
30999         * config/i386/i386.c (put_condition_code): Handle it.
31000         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31002 2015-05-11  Richard Henderson  <rth@redhat.com>
31004         * target.def (md_asm_clobbers): Replace with...
31005         (md_asm_adjust): this.
31006         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31007         (TARGET_MD_ASM_ADJUST): New.
31008         * tm.texi: Rebuild.
31009         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31010         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31011         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31013         * cfgexpand.c (check_operand_nalternatives): Accept vector of
31014         constraints instead of lists of outputs and inputs.
31015         (expand_asm_stmt): Save and restore input_location around the
31016         body of the function.  Move asm data into vectors instead of
31017         building tree lists.  Generate cleanup sequences as needed,
31018         rather than waiting til the end.  Use new md_asm_adjust hook.
31020         * config/vxworks.c: Include vec.h before target.h.
31021         * gimple.c: Likewise.
31022         * incpath.c: Likewise.
31023         * mode-switching.c: Likewise.
31025         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31026         (cris_md_asm_adjust): this.
31027         (TARGET_MD_ASM_CLOBBERS): Remove.
31028         (TARGET_MD_ASM_ADJUST): New.
31029         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31030         (ix86_md_asm_adjust): this.
31031         (TARGET_MD_ASM_CLOBBERS): Remove.
31032         (TARGET_MD_ASM_ADJUST): New.
31033         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31034         (mn10300_md_asm_adjust): this.
31035         (TARGET_MD_ASM_CLOBBERS): Remove.
31036         (TARGET_MD_ASM_ADJUST): New.
31037         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31038         (rs6000_md_asm_adjust): this.
31039         (TARGET_MD_ASM_CLOBBERS): Remove.
31040         (TARGET_MD_ASM_ADJUST): New.
31041         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31042         (visium_md_asm_adjust): this.
31043         (TARGET_MD_ASM_CLOBBERS): Remove.
31044         (TARGET_MD_ASM_ADJUST): New.
31046 2015-05-11  Richard Henderson  <rth@redhat.com>
31048         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31049         if noutputs is zero.
31050         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31052         * cfgexpand.c (expand_asm_operands): Merge into...
31053         (expand_asm_stmt): ... here.
31055         * cfgexpand.c (expand_asm_operands): Don't call
31056         resolve_asm_operand_names.
31057         * stmt.c (resolve_asm_operand_names): Clarify block comment.
31059 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
31061         * dwarf2out.c (gen_member_die): Sanity check that we access
31062         TYPE_MAIN_VARIANT for TYPE_METHODS.
31063         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31064         checking TYPE_METHODS.
31065         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31066         if non-null.
31067         (build_distinct_type_copy): Clear TYPE_METHODS.
31068         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31069         (verify_type): Allow TYPE_METHODS to be error_mark_node.
31070         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31072 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
31074         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31075         (emit_pattern_before_setloc): Likewise.
31077 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31079         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31080         for define_peephole2s.
31081         (get_peephole2_pattern): New function.
31082         (main): Use it.  Call validate_pattern.
31084 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
31086         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31087         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31088         (Last callee saved reg is different for AVR_TINY architecture)
31090 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31092         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31093         when looking for memory references.
31095 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31097         PR target/65753
31098         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31099         via function pointers.
31101 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31103         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31104         indirect call by forcing address into a pseudo with -fno-plt.
31105         * common.opt (flag_plt): New option.
31106         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31107         ([-fno-plt]): Document.
31109 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
31111         PR bootstrap/66105
31112         * config/rs6000/option-defaults.h: Add space between string literal
31113         and macro name.
31115 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31117         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31118         accross ARM targets.
31120 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31122         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31123         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31125 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31127         PR rtl-optimization/66076
31128         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31129         Don't grow the heap array if it is already big enough from a
31130         previous iteration.
31132 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31134         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31135         (is_called_in_ARM_mode): Remove.
31136         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31137         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31138         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31139          arm_declare_function_name.
31141 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31143         * config/arm/arm.c (arm_option_override): Reoganized and split into :
31144         (arm_option_params_internal); New function.
31145         (arm_option_check_internal): New function.
31146         (arm_option_override_internal): New function.
31147         (thumb_code, thumb1_code): Remove.
31148         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31149         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31150         (thumb_code, thumb1_code): Remove.
31151         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31153 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31155         * config/alpha/alpha.c (alpha_emit_set_const_1)
31156         (alpha_emit_set_long_const, alpha_extract_integer)
31157         (alpha_legitimate_constant_p, alpha_split_const_mov)
31158         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31159         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31160         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31161         HOST_WIDE_INT_1U.
31162         * config/alpha/predicates.md (mode_mask_operand): Do not match
31163         const_double RTX.
31164         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31165         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31166         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31167         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31168         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31170 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
31172         PR target/65780
31173         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31174         default_binds_local_p_2.
31175         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31176         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31178 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31180         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31182 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31184         Patch by Richard Biener
31185         * coverage.c (coverage_obj_init): Delay building of type variant
31186         until the type is finished.
31188 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31190         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31191         mismatch between C and C++ type; compoare correctly ARG_TYPES
31192         for non-prototypes and output correctly parameter index for METHOD_TYPE.
31193         (odr_types_equivalent_p): Fix wording of warning about attributes;
31194         it is OK to match prototype and non-prototype.
31196 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31198         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31199         TYPE_ARG_TYPES list.
31200         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31201         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31203 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31205         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31206         * tree.h (is_lang_specific): Constify.
31208 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
31210         PR tree-optimization/64454
31211         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31212         Rewrite.
31214 2015-05-08  Jason Merrill  <jason@redhat.com>
31216         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31217         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31218         config/darwin.h, config/darwin9.h, config/elfos.h,
31219         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31220         config/microblaze/microblaze.h, config/mips/mips.h,
31221         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31222         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31223         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31224         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31225         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31226         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31227         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31228         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31229         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31230         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31231         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31232         between string literal and macro name.
31234 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31236         * jump.c: Change argument types to rtx_insn *.
31237         * rtl.h: Adjust.
31239 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31241         * lra-constraints.c: Change argument type to rtx_insn *.
31243 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31245         * df-problems.c: Change argument type to rtx_insn *.
31247 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31249         * combine.c: Change argument type to rtx_insn *.
31251 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31253         * rtl.h: Adjust.
31254         * rtlanal.c: Change argument type to rtx_insn *.
31256 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31258         * sched-deps.c: Change argument types to rtx_insn *.
31259         * sched-int.h: Adjust.
31261 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31263         * dwarf2cfi.c: Change argument type to rtx_insn *.
31265 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31267         * ira.c (decrease_live_ranges_number): Changetype of local
31268         variable to rtx_insn *.
31269         * recog.c: Change argument types to rtx_insn *.
31270         * recog.h: Adjust.
31272 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31274         * reorg.c: Change argument types to rtx_insn *.
31276 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31278         * ira-color.c: Change argument types to rtx_insn *.
31279         * lra-eliminations.c: Likewise.
31280         * ira.h: Adjust.
31282 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31284         * gcse.c: Change argument types to rtx_insn *.
31286 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31288         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31290 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31292         * emit-rtl.c (emit_debug_insn_before): Change argument type to
31293         rtx_insn *.
31294         * rtl.h: Adjust.
31296 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31298         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31299         * rtl.h: Adjust.
31301 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31303         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31304         * rtl.h: Adjust.
31306 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31308         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31309         * rtl.h: Adjust.
31311 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31313         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31314         * rtl.h: Adjust.
31316 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31318         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31319         to rtx_insn *.
31320         * rtl.h: Adjust.
31322 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31324         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31325         to rtx_insn *.
31326         * rtl.h: Likewise.
31328 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31330         * except.c (can_nonlocal_goto): Change type of argument to
31331         rtx_insn *.
31332         * rtl.h: Adjust.
31334 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31336         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31337         * rtl.h: Adjust.
31339 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31341         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31342         * cfgrtl.c (can_delete_label_p): Adjust.
31343         * rtl.h: likewise.
31345 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31347         * reorg.c (stop_search_p): Change argument to rtx_insn *.
31349 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31351         * except.c (make_reg_eh_region_note): Change argument to
31352         rtx_insn *.
31353         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31354         * except.h: Adjust.
31356 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31358         * mode-switching.c (commit_mode_sets): Change type of local
31359         variable from rtx to rtx_insn *.
31361 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
31363         * doc/install.texi (--enable-languages): Add missing jit and lto info.
31364         Add ^ to grep command.
31365         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31366         arg to last gimple_simplify declaration.  Add missing gimple_build
31367         declaration for built-in function case with four tree args.
31369 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31370             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31372         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31373         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31374         (GNU_USER_DYNAMIC_LINKERN32): Update.
31376 2015-05-08  Richard Biener  <rguenther@suse.de>
31378         PR tree-optimization/66036
31379         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31380         Handle strided group loads.
31381         (vect_verify_datarefs_alignment): Likewise.
31382         (vect_enhance_data_refs_alignment): Likewise.
31383         (vect_analyze_group_access): Likewise.
31384         (vect_analyze_data_ref_access): Likewise.
31385         (vect_analyze_data_ref_accesses): Likewise.
31386         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31387         (vectorizable_load): Likewise.
31389 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
31391         * config/rs6000/rs6000.md: Require operand inequality in one
31392         of the peepholes.
31394 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
31395             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
31397         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31398         from (set ...).
31399         * config/rx/rx.md (movdi, movdf): Likewise.
31400         Likewise for define_peephole2s.
31402 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31404         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31405         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31406         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31407         vtst_u64): Rewrite using gcc vector extensions.
31409 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31411         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31412         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31414 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31416         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31418 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31420         * config/glibc-stdint.h (OPTION_MUSL): Define.
31421         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31422         Change the definition based on OPTION_MUSL for 64 bit targets.
31423         * config/linux.h (OPTION_MUSL): Redefine.
31424         * config/alpha/linux.h (OPTION_MUSL): Redefine.
31425         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31426         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31428 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31429             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31431         * config.gcc (LIBC_MUSL): New tm_defines macro.
31432         * config/linux.h (OPTION_MUSL): Define.
31433         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31434         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31435         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31436         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31437         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31438         * config/linux.opt (mmusl): New option.
31439         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31440         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31441         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31442         * configure: Regenerate.
31444 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31445             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31447         PR target/48904
31448         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31449         * config/i386/knetbsd-gnu64.h: New file.
31451 2015-05-08  Marek Polacek  <polacek@redhat.com>
31453         PR c/64918
31454         * doc/invoke.texi: Document -Woverride-init-side-effects.
31456 2015-05-07  Marek Polacek  <polacek@redhat.com>
31458         PR c/65179
31459         * doc/invoke.texi: Document -Wshift-negative-value.
31461 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
31463         * gcov-tool.c (do_merge): Refactore to remove int ret.
31464         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31465         !type == FUNC to type != FUNC.
31466         * reload.h (struct target_reload): Changee to type of
31467         x_spill_indirect_levels from bool to unsigned char.
31469 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
31471         * rtl.h (always_void_p): New function.
31472         * gengenrtl.c (always_void_p): Likewise.
31473         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31474         with code foo are always VOIDmode.
31475         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31476         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31477         compare-elim.c, config/aarch64/aarch64.c,
31478         config/aarch64/aarch64.md, config/alpha/alpha.c,
31479         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31480         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31481         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31482         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31483         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31484         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31485         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31486         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31487         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31488         config/ia64/vect.md, config/iq2000/iq2000.c,
31489         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31490         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31491         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31492         config/mep/mep.c, config/microblaze/microblaze.c,
31493         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31494         config/mn10300/mn10300.c, config/msp430/msp430.c,
31495         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31496         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31497         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31498         config/rs6000/altivec.md, config/rs6000/rs6000.c,
31499         config/rs6000/rs6000.md, config/rs6000/vector.md,
31500         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31501         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31502         config/sh/sh.md, config/sh/sh_treg_combine.cc,
31503         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31504         config/spu/spu.md, config/stormy16/stormy16.c,
31505         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31506         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31507         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31508         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31509         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31510         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31511         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31512         var-tracking.c: Update calls accordingly.
31514 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
31516         PR middle-end/192
31517         PR middle-end/54303
31518         * varasm.c (function_mergeable_rodata_prefix): New function.
31519         (mergeable_string_section): Use it.
31520         (mergeable_constant_section): Use it.
31522 2015-05-07  Jeff Law  <law@redhat.com>
31524         PR target/39726
31525         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31526         simplifier to narrow arithmetic.
31527         * generic-match-head.c: (types_match, single_use): New functions.
31528         * gimple-match-head.c: (types_match, single_use): New functions.
31530 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
31532         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31533         rtx type.
31535 2015-05-07  Richard Biener  <rguenther@suse.de>
31537         PR tree-optimization/66002
31538         * passes.def: Schedule another pass_merge_phi after ifcombine, right
31539         before phiopt.
31541 2015-05-07  Marek Polacek  <polacek@redhat.com>
31542             Martin Uecker  <uecker@eecs.berkeley.edu>
31544         * doc/invoke.texi: Document -fsanitize=bounds-strict.
31545         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31546         into SANITIZE_NONDEFAULT.
31547         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31549 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
31551         PR target/66015
31552         * config/alpha/alpha.c (alpha_override_options_after_change): New.
31553         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31554         (alpha_override_options): Move align_loops, align_jumps and
31555         align_functions handling into alpha_override_options_after_change.
31557 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
31558             Chris Jones  <chrisj@nvidia.com>
31559             Joshua Conner  <jconner@nvidia.com>
31561         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31562         linking of crtfastmath.o.
31563         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31565 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
31567         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31568         (cstore<mode>4_unsigned_imm): New expander.
31569         (cstore<mode>4): Remove empty constraint strings.  Use the new
31570         expanders.
31572 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
31574         PR target/64208
31575         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31576         alternatives.
31578 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31580         * config/aarch64/geniterators.sh: Use standard BRE in sed.
31582 2015-05-06  Alan Modra  <amodra@gmail.com>
31584         PR target/66033
31585         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31586         (UNSPEC_NOP): Define.
31587         (reload_vsx_from_gpr<mode>): Add missing DONE.
31588         (reload_gpr_from_vsx<mode>): Likewise.
31589         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31590         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31592 2015-05-06  Christian Bruel  <christian.bruel@st.com>
31594         PR target/66015
31595         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31596         align_jumps, align_functions into aarch64_override_options_after_change.
31598 2015-05-06  Richard Biener  <rguenther@suse.de>
31600         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31601         vect_transform_slp_perm_load to check if we support a permutation
31602         for basic-block vectorization.
31604 2015-05-06  Nick Clifton  <nickc@redhat.com>
31606         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31607         used, even if it is not being used as a frame pointer.
31609 2015-05-05  Jason Merrill  <jason@redhat.com>
31611         * dwarf2out.c (gen_member_die): Don't emit anything for an
31612         anonymous class constructor.
31614 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
31616         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31617         that it reflects the block structure.
31618         (afdo_propagate_edge): Likewise.
31619         (afdo_calculate_branch_prob): Likewise.
31620         (afdo_annotate_cfg): Likewise.
31621         * cfgcleanup.c (equal_different_set_p): Likewise.
31622         (try_crossjump_to_edge): Likewise.
31623         * cgraph.c (cgraph_node::verify_node): Likewise.
31624         * cgraphunit.c (expand_all_functions): Likewise.
31625         * config/i386/i386.c (ix86_expand_copysign): Likewise.
31626         (exact_dependency_1): Likewise.
31627         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31628         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31629         * gensupport.c (process_define_subst): Likewise.
31630         * lto-wrapper.c (merge_and_complain): Likewise.
31631         * tree-if-conv.c (if_convertible_bb_p): Likewise.
31632         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31633         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31634         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31635         * tree-vect-loop.c (vectorizable_reduction): Likewise.
31636         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31637         * tree-vect-stmts.c (vectorizable_shift): Likewise.
31638         * tree-vrp.c (vrp_finalize): Likewise.
31639         * tree.c (variably_modified_type_p): Likewise.
31641 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
31643         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31644         on darwin12 and later.
31645         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31646         file to pass -rdynamic on darwin12 and later.
31647         * config/darwin.opt (rdynamic): Add.
31649 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31651         * doc/extend.texi (C Extensions): Update menu for moved Variable
31652         Attributes and Type Attributes sections.
31654 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31656         PR target/65990
31657         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31658         if rep_8byte stringop strategy was specified for 32-bit target.
31660 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
31662         PR target/65915
31663         * config/i386/i386.md (vector convert to float spltiter): Check for
31664         xmm16+, when splitting scalar float conversion.
31665         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31667 2015-05-05  Nick Clifton  <nickc@redhat.com>
31669         * config/msp430/msp430-opts.h (enum msp430_regions): New.
31670         * config/msp430/msp430.c (msp430_override_options): Complain if
31671         -mcode-region or -mdata-region is used on a non MSP430X.
31672         (msp430_section_attr): New function.  Checks lower, upper and
31673         either attributes.
31674         (msp430_attribute_table): Add lower, upper and either.
31675         (gen_prefix): New function.  Generates a prefix for a section
31676         name.
31677         (msp430_select_section): New function - handles the choice of
31678         section for an object.  Takes into account memory region
31679         attributes and options.
31680         (msp430_function_section): Use gen_prefix.
31681         (TARGET_SECTION_TYPE_FLAGS): Define.
31682         (msp430_section_type_flags): New function.
31683         (TARGET_ASM_UNIQUE_SECTION): Define.
31684         (msp430_unique_section): New function.
31685         (msp430_output_aligned_decl_common): New function.
31686         (msp430_do_not_relax_short_jumps): New function.
31687         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31688         Define.
31689         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31690         * config/msp430/msp430-protos.h
31691         (msp430_do_not_relax_short_jumps): New prototype.
31692         (msp430_output_aligned_decl_common): New prototype.
31693         * config/msp430/msp430.md (length): New attribute.
31694         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31695         then use a long code sequence for short jumps.
31696         * config/msp430/msp430.opt (mcode-region): New.
31697         (mdata-region): New.
31698         * doc/invoke.texi: Document new options.
31699         * doc/extend.texi: Document new attributes.
31701 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31703         * config/aarch64-protos.h (struct cpu_branch_cost): New.
31704         (tune_params): Add field branch_costs.
31705         (aarch64_branch_cost): Declare.
31706         * config/aarch64.c (generic_branch_cost): New.
31707         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31708         (cortexa53_tunings): Likewise.
31709         (cortexa57_tunings): Likewise.
31710         (thunderx_tunings): Likewise.
31711         (xgene1_tunings): Likewise.
31712         (aarch64_branch_cost): Define.
31713         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31715 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31717         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31718         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31719         * config/i386/i386.md: Ditto.
31720         * config/i386/winnt.c: Ditto.
31722 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31724         * doc/extend.texi (__atomic Builtins): Move implementation details
31725         to the end of the description, rewrite opening paragraphs, state
31726         difference with __sync builtins, state C11/C++11 assumptions,
31727         weaken itemized descriptions, add explanation of memory model
31728         behaviour, expand description of compare-exchange, simplify text.
31730 2015-05-05  Renlin Li  <renlin.li@arm.com>
31732         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31734 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
31736         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31737         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31738         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31739         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31740         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31741         * configure: Regenerate.
31742         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31743         * doc/install.texi (aarch64*-*-*): Document new
31744         --enable-fix-cortex-a53-843419 option.
31745         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31746         and -mno-fix-cortex-a53-843419 options.
31748 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31750         PR target/65871
31751         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31753 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
31755         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31756         fix overactive TYPE_MIN_VALUE check and add FIXME for type
31757         compatibility problems.
31759 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31761         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31762         constraints.
31763         (cbranchsi4_reg): New.
31764         * config/microblaze/microblaze.c
31765         (microblaze_expand_conditional_branch_reg): New.
31766         * config/microblaze/microblaze-protos.h
31767         (microblaze_expand_conditional_branch_reg): New prototype.
31769 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31771         * config/microblaze/microblaze.md (peephole2): New.
31773 2015-05-04  Jeff Law  <law@redhat.com>
31775         Revert:
31776         2015-05-04  Jeff Law  <law@redhat.com>
31778         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31779         simplifier to narrow arithmetic.
31780         * generic-match-head.c: (types_match, single_use): New functions.
31781         * gimple-match-head.c: (types_match, single_use): New functions.
31783 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
31785         PR target/65987
31786         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31787         (split_branches): Likewise.
31789 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
31791         * common.opt (fdelete-null-pointer-checks): Init to -1.
31792         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31793         override flag_delete_null_pointer_checks default.
31794         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31795         behavior re address zero.  Better document target-specific behavior.
31796         (-fisolate-errneous-paths-dereference): Mention relationship to
31797         -fdelete-null-pointer-checks.
31799 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31801         PR tree-optimization/65984
31802         * ubsan.c: Include tree-cfg.h.
31803         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31804         stmt_could_throw_p test, rename can_throw variable to ends_bb.
31806 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31808         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31809         to CONST_DOUBLE_P predicate.
31810         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31811         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31812         allow only operands that satisfy standard_sse_constant_p predicate.
31813         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31814         to CONST_DOUBLE_P predicate.
31816 2015-05-04  Jeff Law  <law@redhat.com>
31818         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31819         simplifier to narrow arithmetic.
31820         * generic-match-head.c: (types_match, single_use): New functions.
31821         * gimple-match-head.c: (types_match, single_use): New functions.
31823 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
31825         * config/arm/arm.c: Restore bootstrap.
31827 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31829         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31830         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31831         as CONST_WIDE_INT, not CONST_DOUBLE.
31832         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31833         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31834         (ix86_find_base_term): Do not check for CONST_DOUBLE.
31835         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31836         (ix86_build_signbit_mask): Rewrite using wide ints.
31837         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31838         (ix86_rtx_costs): Handle CONST_WIDE_INT.
31839         (find_constant): Ditto.
31840         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31841         using gen_int_mode.
31842         * config/i386/predicates.md (x86_64_immediate_operand)
31843         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31844         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31845         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31846         (const0_operand): Also match const_wide_int.
31847         (constm1_operand): Ditto.
31848         (const1_operand): Ditto.
31850 2015-05-04  Richard Biener  <rguenther@suse.de>
31852         PR tree-optimization/65965
31853         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31854         store groups at gaps.
31856 2015-05-04  Richard Biener  <rguenther@suse.de>
31858         PR tree-optimization/65935
31859         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31860         then make sure to apply that swapping to the IL.
31862 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31864         * Makefile.in (PATCHLEVEL_c): New variable.
31865         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31866         expand the same way as if DEVPHASE_c was non-empty.
31868 2015-05-04  Kai Tietz  <ktietz@redhat.com>
31870         PR target/65559
31871         * lto-wrapper.c (run_gcc): Open filename
31872         in binary-mode.
31874 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
31876         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
31877         sections up in file, to immediately after the Function Attributes
31878         section.
31880 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
31882         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31884 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31886         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31887         (insert_partition_copy_on_edge): Adjust.
31888         (insert_rtx_to_part_on_edge): Likewise.
31889         (insert_part_to_rtx_on_edge): Likewise.
31891 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31893         * function.c (set_return_jump_label): Change type of argument to
31894         rtx_insn *.
31895         * function.h (set_return_jump_label): Adjust.
31897 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31899         * reload.h (struct reg_equivs_t): Change type of init to
31900         rtx_insn *.
31901         * ira.c (fix_reg_equiv_init): Adjust.
31902         * reload1.c (eliminate_regs_1): Likewise.
31903         (init_eliminable_invariants): Likewise.
31905 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31907         * cselib.c (fp_setter_insn): Take a rtx_insn *.
31908         * cselib.h (fp_setter_insn): Adjust.
31910 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31912         * recog.c (struct validate_replace_src_data): Change type of
31913         insn field to rtx_insn *.
31914         (validate_replace_src_group): Change type of argument to rtx_insn *.
31915         * recog.h (validate_replace_src_group): Adjust.
31917 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31919         * haifa-sched.c: Change the type of some variables to rtx_insn *.
31920         * sched-deps.c: Likewise.
31921         * sched-int.h: Likewise.
31922         * sched-rgn.c: Likewise.
31923         * sel-sched.c: Likewise.
31925 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31927         to rtx_insn *.
31928         * config/i386/i386.c: Change the type of some arguments to
31929         rtx_insn *.
31930         * config/arm/arm.c: Likewise.
31932 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31934         * lra-constraints.c: Change type of some arguments to rtx_insn *.
31936 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31938         * regcprop.c (kill_autoinc_value): Change type of argument to
31939         rtx_insn *.
31941 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31943         * genrecog.c (print_subroutine): Adjust.
31944         * recog.c (get_bool_attr_mask_uncached): Likewise.
31945         * recog.h (struct recog_data_d): Change the type of insn to
31946         rtx_insn *.
31948 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31950         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31952 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31954         * df-problems.c (df_set_note): Change type of argument to
31955         rtx_insn *.
31957 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31959         * builtins.c (expand_builtin_trap): Change type of local
31960         variable to rtx_insn *.
31961         (add_sched_insns_for_speculation): Likewise.
31962         (ix86_emit_save_regs): Likewise.
31963         (get_scratch_register_on_entry): Likewise.
31964         (ix86_emit_restore_reg_using_pop): Likewise.
31965         (ix86_emit_leave): Likewise.
31966         (ix86_emit_restore_regs_using_mov): Likewise.
31967         (ix86_expand_epilogue): Likewise.
31968         Likewise.
31969         (rl78_alloc_physical_registers_umul): Likewise.
31970         * cselib.c (discard_useless_locs): Likewise.
31971         (cselib_invalidate_regno): Likewise.
31972         (cselib_invalidate_mem): Likewise.
31973         * function.c (expand_function_start): Likewise.
31974         (emit_use_return_register_into_block): Likewise.
31975         * gcse.c: Likewise.
31976         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31977         * ifcvt.c (noce_get_alt_condition): Likewise.
31978         * loop-doloop.c (doloop_condition_get): Likewise.
31979         * lra-constraints.c (inherit_in_ebb): Likewise.
31980         * modulo-sched.c (sms_schedule_by_order): Likewise.
31981         * recog.c (next_insn_tests_no_inequality): Likewise.
31982         * reorg.c (emit_delay_sequence): Likewise.
31983         (update_reg_dead_notes): Likewise.
31984         (fix_reg_dead_note): Likewise.
31985         (fill_slots_from_thread): Likewise.
31986         (delete_computation): Likewise.
31988 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
31990         * doc/extend.texi (Variable Attributes): Add menu and proper
31991         @nodes to subsections.  Move Microsoft Windows attributes to
31992         their own subsection.
31993         (Type Attributes): Reorganize introduction to remove duplicate
31994         list of attributes.  Add menu and proper @nodes to subsections.
31995         Alphabetize the main table of common attributes.
31997 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31999         * match.pd: New simplification patterns.
32000         (x + (x & 1))  -> ((x + 1) & ~1)
32001         (x & ~(x & y)) -> ((x & ~y))
32002         (x | ~(x | y)) -> ((x | ~y))
32004 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32006         * target.def (attribute_table): Mention that struct attribute_spec
32007         is defined in tree-core.h rather than tree.h
32008         * doc/tm.texi: Regenerate.
32010 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
32012         * genrecog.c (test): Rename to rtx_test.  Update rest of file
32013         accordingly.
32015 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32017         PR translation/65959
32018         * params.h (DEFPARAM): Rename msgid to nocmsgid.
32020 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32022         * config/aarch64/aarch64-protos.h (tune_params):
32023         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32024         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32025         Return value depending on target.
32026         (generic_tunings): Initialize new target settings.
32027         (cortexa53_tunings): Likewise.
32028         (cortexa57_tunings): Likewise.
32029         (thunderx_tunings): Likewise.
32030         (xgene1_tunings): Likewise.
32032 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32034         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32035         Make Cortex-A53 shift costs more accurate.
32037 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32039         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32040         UNSIGNED_FLOAT.
32042 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32044         * config/aarch64/aarch64.c (aarch64_rtx_costs):
32045         Calculate cost of op0 and op1 in PLUS and MINUS cases.
32047 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32049         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32050         Add cost of op0 in the compare-with-fpzero case.
32052 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
32054         * builtins.c (fold_builtin_1): Remove spurious second
32055         semicolon.
32056         * cgraph.h (symtab_node::get_availability): Likewise.
32057         * opts.c (common_handle_option): Remove spurious second semicolon.
32058         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32059         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32061 2015-04-30  Caroline Tice  <cmtice@google.com>
32063         PR gcov-profile/65929
32064         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32065         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32066         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32067         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32068         * doc/tm.texi: Regenerate.
32069         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
32070         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32071         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
32072         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32074 2015-04-30  Marek Polacek  <polacek@redhat.com>
32076         * varasm.c (handle_cache_entry): Fix logic.
32078 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32080         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32081         (*extrsi5_insn_uxtw_alt): Likewise.
32082         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32083         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32084         operations.
32086 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32088         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32089         fabd in ABS case.
32091 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32093         * config/aarch64/aarch64.md
32094         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32095         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32096         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32097         appropriately.  Handle alternative EON form.
32099 2015-04-30  Renlin Li  <renlin.li@arm.com>
32101         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32102         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32104 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32106         PR ipa/65873
32107         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32108         -fstrict-aliasing boundaries.
32110 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32112         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32113         and [SU]MNEGL patterns.
32115 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32117         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32118         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32119         combined arithmetic-shift ops.  Properly handle all shift and extend
32120         operations that can occur in combination with PLUS/MINUS.
32121         Rename maybe_fma to compound_p.
32122         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32123         arithmetic and shift operations.
32125 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32127         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32128         rather than arith_shift cost when costing ADD/MINUS of an
32129         extended value.
32131 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32133         PR lto/65948
32134         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32135         to itself.
32137 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
32139         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32140         are for the same position.
32142 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
32144         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
32145         vectorize_loops.
32146         (vectorize_loops): Use it.
32148 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32150         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32151         for aggregate types.
32152         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32153         type to be non_ODR.
32154         * tree.c (need_assembler_name_p): Compute mangled name for
32155         non-fundamental types and integer types.
32157 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
32159         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32160         manual swaps.
32161         * expr.c (expand_expr_real_2): Likewise.
32163 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32165         * tree.c (build_common_builtin_nodes): Do not build
32166         __builtin_alloca_with_align as equivalent of library alloca.
32168 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32170         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32171         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32172         bugus variants.
32173         * tree.c: Include print-tree.h and ipa-utils.h
32174         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32175         (free_lang_data_in_cgraph): Call verify_type.
32176         (verify_type_variant): New function.
32177         (verify_type): New function.
32178         * tree.h (verify_type): Declare.
32180 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
32182         * config/mips/mips-cpus.def: (mips4): Change default processor
32183         from PROCESSOR_R8000 to PROCESSOR_R10000.
32185 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
32187         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32188         la/jalr instead of jal.
32190 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
32192         PR target/65871
32193         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32194         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32195         (setcc+movzbl peephole2): Check also clobbered reg.
32196         (setcc+andl peephole2): Ditto.
32198 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32200         PR libgomp/65099
32201         * config/nvptx/mkoffload.c (target_ilp32): New variable.
32202         (main): Set it depending on "-foffload-abi=[...]".
32203         (compile_native, main): Use it to pass "-m32" or "-m64" to the
32204         compiler.
32206 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32208         PR target/65770
32209         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32210         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32211         Flip lane index back at assembly time for bigendian.
32213 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32215         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32216         * gimplify.c (gimplify_omp_workshare): Use it.
32218 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32220         * Makefile.in (build/genrecog.o): Depend on inchash.h.
32221         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32222         build/inchash.o
32223         * genrecog.c: Rewrite most of the code except for the third page.
32225 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32227         * inchash.h, inchash.c: Include bconfig.h for build objects.
32228         * Makefile.in (build/inchash.o): New rule.
32230 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
32232         PR target/65924
32233         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32234         number in type attribute expression.
32236 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32238         * loop-iv.c (canon_condition): Generalize to all types of integer
32239         constant.
32241 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
32243         * gimple-walk.c: Prune duplicate or unneeded includes.
32244         (walk_gimple_asm): Only call parse_input_constraint or
32245         parse_output_constraint if their findings are used.
32246         Honour parse_input_constraint and parse_output_constraint
32247         result.
32249 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32251         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32253 2015-04-29  Tom de Vries  <tom@codesourcery.com>
32255         PR tree-optimization/65893
32256         * passes.def (pass_all_optimizations): Move pass_stdarg to after
32257         pass_dce.
32259 2015-04-29  Richard Biener  <rguenther@suse.de>
32261         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32262         compute GROUP_SIZE for basic-block SLP.
32263         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32264         take into account gaps.
32265         (vect_get_mask_element): Properly reject references to previous
32266         vectors.
32267         (vect_transform_slp_perm_load): Likewise.
32269 2015-04-29  Christian Bruel  <christian.bruel@st.com>
32271         PR target/64835
32272         * config/i386/i386.c (ix86_default_align): New function.
32273         (ix86_override_options_after_change): Call ix86_default_align.
32274         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32275         (ix86_override_options_after_change): New function.
32277 2015-04-28  Jeff Law  <law@redhat.com>
32279         * tree-ssa-dom.c (record_equality); Fix comment typos.
32281 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32283         PR tree-optimization/65887
32284         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32286 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
32288         * doc/extend.texi (Declaring Attributes of Functions): Split into
32289         subsections by target.  Alphabetize the table of common attributes.
32290         Rewrite some of the introductory text to reflect the new structure.
32291         Update some cross-references to point to the new subsections.
32292         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
32293         duplicate copies in the discussion of function, label, and type
32294         attributes.
32296 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
32298         PR bootstrap/65910
32299         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32301 2015-04-28  Jason Merrill  <jason@redhat.com>
32303         PR c++/65734
32304         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32305         (finalize_type_size): Respect TYPE_USER_ALIGN.
32306         (layout_type) [ARRAY_TYPE]: Likewise.
32308 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
32310         * config/arm/arm.md (*arm_movt): Fix type attribute.
32311         (*cmpsi_shiftsi): Likewise.
32312         (*cmpsi_shiftsi_swp): Likewise.
32313         (*movsicc_insn): Likewise.
32314         (*cond_move): Likewise.
32315         (*if_plus_move): Likewise.
32316         (*if_move_plus): Likewise.
32317         (*if_arith_move): Likewise.
32318         (*if_move_arith): Likewise.
32319         (*if_shift_move): Likewise.
32320         (*if_move_shift): Likewise.
32321         (*arm_movtas_ze): Likewise.
32322         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32323         redundancy and type attribute.
32324         (*thumb2_movsi_insn): Fix type attribute.
32325         (*thumb2_addsi_short): Likewise.
32326         (thumb2_addsi3_compare0): Likewise.
32327         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32328         attributes accordingly.
32330 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
32332         PR other/65911
32333         * function.c (pad_to_arg_alignment): Add parentheses.
32335 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
32337         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32338         libgcc/config/frv/elf-lib.h.
32340 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32342         * tree-call-cdce.c: Fix example in header comment.
32344 2015-04-28  Richard Biener  <rguenther@suse.de>
32346         PR tree-optimization/62283
32347         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32348         fails fatally and we are vectorizing a basic-block simply
32349         cause the child to be constructed piecewise.
32350         (vect_analyze_slp_cost_1): Adjust.
32351         (vect_detect_hybrid_slp_stmts): Likewise.
32352         (vect_bb_slp_scalar_cost): Likewise.
32353         (vect_get_constant_vectors): For piecewise constructed
32354         constants place them after the last def.
32355         (vect_get_slp_defs): Adjust.
32356         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32357         externals for basic-block vectorization.
32359 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32361         PR target/63503
32362         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32363         aarch64-*-*.
32364         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32365         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32366         (AARCH64_TUNE_FMA_STEERING): Likewise.
32367         * config/aarch64/aarch64-cores.def: Set
32368         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32369         FMUL/FMADD instructions.
32370         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32371         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
32372         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32373         * config/aarch64/cortex-a57-fma-steering.h: New file.
32374         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32376 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
32378         * gensupport.c (std_preds): Add missing codes to address_operand entry.
32380 2015-04-28  Richard Biener  <rguenther@suse.de>
32382         PR tree-optimization/65851
32383         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32384         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
32385         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
32386         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32387         (ccp_visit_phi_node): Adjust.
32388         (evaluate_stmt): For simplifications to SSA names return its
32389         lattice value if that isn't VARYING.  Return immediately when
32390         simplified to a constant.
32391         (visit_assignment): Adjust.
32392         (ccp_visit_stmt): Likewise.
32394 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32396         PR tree-optimization/65818
32397         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32398         evaluated.
32400 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32402         * calls.c (save_fixed_argument_area): Don't check
32403         ARGS_GROW_DOWNWARD with the preprocessor.
32404         (restore_fixed_argument_area): Likewise.
32405         (mem_overlaps_already_clobbered_arg_p): Likewise.
32406         (check_sibcall_argument_overlap): Likewise.
32407         (expand_call): Likewise.
32408         (emit_library_call_value_1): Likewise.
32409         (store_one_arg): Likewise.
32410         * function.c (assign_parms): Likewise.
32411         (locate_and_pad_parm): Likewise.
32412         (pad_to_arg_alignment): Likewise.
32413         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32415 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32417         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32418         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32419         * calls.c (save_fixed_argument_area): Don't chekc if
32420         ARGS_GROW_DOWNWARD is defined.
32421         (restore_fixed_argument_area): Likewise.
32422         (mem_overlaps_already_clobbered_arg_p): Likewise.
32423         (check_sibcall_argument_overlap): Likewise.
32424         (expand_call): Likewise.
32425         (emit_library_call_value_1): Likewise.
32426         (store_one_arg): Likewise.
32427         * function.c (assign_parms): Likewise.
32428         (locate_and_pad_parm): Likewise.
32429         (pad_to_arg_alignment): Likewise.
32430         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32432 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32434         * defaults.h (gen_epilogue): New function.
32435         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32436         defined.
32437         * cfgrtl.c (cfg_layout_finalize): Likewise.
32438         * df-scan.c: Likewise.
32439         * function.c (thread_prologue_and_epilogue_insns): Likewise.
32440         (reposition_prologue_and_epilogue_notes): Likewise.
32441         * reorg.c (find_end_label): Likewise.
32442         * toplev.c: Likewise.
32444 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32446         * bb-reorder.c (HAVE_return): Don't check if its undefined.
32447         * defaults.h (gen_simple_return): New function.
32448         (gen_simple_return): Likewise.
32449         (HAVE_return): Add default definition to false.
32450         (HAVE_simple_return): Likewise.
32451         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32452         HAVE_return and HAVE_simple_return are defined.
32453         * function.c (gen_return_pattern): Likewise.
32454         (convert_jumps_to_returns): Likewise.
32455         (thread_prologue_and_epilogue_insns): Likewise.
32456         * reorg.c (find_end_label): Likewise.
32457         (dbr_schedule): Likewise.
32458         * shrink-wrap.c: Likewise.
32459         * shrink-wrap.h: Likewise.
32461 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32463         * defaults.h (EPILOGUE_USES): Add default definition of false.
32464         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32465         * resource.c (init_resource_info): Likewise.
32467 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32469         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32470         to false.
32471         * dwarf2out.c (field_byte_offset): REmove check if
32472         PCC_BITFIELD_TYPE_MATTERS is defined.
32473         * stor-layout.c (layout_decl): Likewise.
32474         (update_alignment_for_field): Likewise.
32475         (place_field): Likewise.
32477 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32479         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32480         true.
32481         * regrename.c (check_new_reg_p): Remove check if
32482         HARD_REGNO_RENAME_OK is defined.
32483         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32485 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32487         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32488         * cse.c (fold_rtx): Likewise.
32489         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32490         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32491         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32492         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32493         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32494         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32495         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32496         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32497         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32498         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32499         * Likewise.
32500         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32501         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32502         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32503         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32504         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32505         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32506         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32507         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32508         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32509         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32510         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32511         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32512         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32513         * doc/tm.texi: Regenerate.
32514         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32515         either true or false.
32517 2015-04-27  Jeff Law  <law@redhat.com>
32519         PR tree-optimization/65217
32520         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32521         of them has a single use, make sure it is the LHS of the implied
32522         copy.
32524 2015-04-28  Alan Modra  <amodra@gmail.com>
32526         PR target/65810
32527         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32528         (offsettable_ok_by_alignment): Use minimum of decl and toc
32529         pointer alignment.  Replace dead code with assertion.
32530         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
32531         case if size exceeds toc pointer alignment.
32532         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32533         (rs6000_emit_move): Likewise.
32534         * configure.ac: Add linker toc pointer alignment check.
32535         * configure: Regenerate.
32536         * config.in: Regenerate.
32538 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
32540         * config.gcc: Add h8300-*-linux.
32541         * config/h8300/linux.h: New.
32542         * config/h8300/t-linux: New.
32543         * config/h8300/h8300.c (h8300_option_override): Normal mode
32544         is not supported for h8300-*-linux.
32545         (h8300_file_start): Target priority change.
32546         (get_shift_alg): Likewise.
32547         (h8300_shift_need_scratch_p): Likewise.
32548         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32549         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32551 2015-04-27  Caroline Tice  <cmtice@google.com>
32553         * final.c (final_scan_insn):  Output cold_function_name as function
32554         type.
32555         * varasm.c (cold_function_name):  Make global.
32556         (assemble_start_function):  Re-set cold_function_name.
32557         (assemble_end_function): Output cold partition size.
32558         * varasm.h (cold_function_name):  Declare global.
32560 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
32562         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32563         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32564         constraint.
32565         (*movxi_internal_avx512f): Ditto.
32566         (define_split): Check for xmm16+, when splitting scalar float_extend.
32567         (*extendsfdf2_mixed): Use "v" constraint.
32568         (define_split): Check for xmm16+, when splitting scalar float_truncate.
32569         (*truncdfsf_fast_sse): Use "v" constraint.
32570         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32571         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32572         (define_peephole2): Check for xmm16+, when converting scalar
32573         float_truncate.
32574         (define_peephole2): Check for xmm16+, when converting scalar
32575         float_extend.
32576         (*fop_<mode>_comm_mixed): Use "v" constraint.
32577         (*fop_<mode>_comm_sse): Ditto.
32578         (*fop_<mode>_1_mixed): Ditto.
32579         (*sqrt<mode>2_sse): Ditto.
32580         (*ieee_s<ieee_maxmin><mode>3): Ditto.
32582 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32584         * combine.c (simplify_if_then_else): Use std::swap instead
32585         of manually swapping.
32586         (known_cond): Likewise.
32587         (simplify_comparison): Likewise.
32589 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
32591         PR target/64579
32592         * config/rs6000/htm.md: Remove all define_expands.
32593         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32594         UNSPECV_HTM_TABORTWCI): Remove.
32595         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32596         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32597         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32598         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32599         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32600         tabortwci_internal): Remove define_insns.
32601         (tabort<wd>c, tabort<wd>ci): New define_insns.
32602         (tabort): Use gpc_reg_operand.
32603         (tcheck): Remove operand.
32604         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32605         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32606         expected value.
32607         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32608         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
32609         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32610         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32611         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32612         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32613         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32614         (tcheck): Remove builtin argument.
32615         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32616         not TARGET_64BIT.
32617         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
32618         tabortdc and tabortdci builtins when not in 64-bit mode.
32619         Modify code to handle the loss of the HTM define_expands.
32620         Emit code to copy the CR register to TARGET.
32621         (htm_init_builtins): Modify code to handle the loss of the HTM
32622         define_expands.
32623         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32624         (RS6000_BTC_64BIT): Likewise.
32625         (RS6000_BTC_CR): New macro.
32626         * doc/extend.texi: Update documentation for htm builtins.
32628 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32630         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32631         of manually swapping.
32632         (simplify_associative_operation): Likewise.
32633         (simplify_binary_operation): Likewise.
32634         (simplify_plus_minus): Likewise.
32635         (simplify_relational_operation): Likewise.
32636         (simplify_ternary_operation): Likewise.
32638 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32640         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32641         (xs_hi_nonmemory_operand): Remove error.
32642         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32643         general_operand rather than xs_hi_general_operand.
32645 2015-04-27  Richard Biener  <rguenther@suse.de>
32647         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32648         (record_equivalences_from_stmt): Valueize rhs.
32649         (record_equality): Canonicalize x and y order via
32650         tree_swap_operands_p.  Do not swap operands for same loop depth.
32652 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
32654         PR target/65296
32655         PR target/65895
32656         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32657         Add hint how to use own spec file.
32659 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
32661         PR tree-optimization/65875
32662         * tree-vrp.c (update_value_range): If in is_new case setting
32663         old_vr to VR_VARYING, also set new_vr to it.  Remove
32664         old_vr->type == VR_VARYING test.
32665         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32666         SSA_PROP_INTERESTING if update_value_range returned true,
32667         but new range is VR_VARYING.
32669 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32671         * combine.c (sign_extend_short_imm): New.
32672         (set_nonzero_bits_and_sign_copies): Use above new function for sign
32673         extension of src short immediate.
32674         (reg_nonzero_bits_for_combine): Likewise for tem.
32676 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32678         * stor-layout.c (self_referential_component_ref_p): New predicate.
32679         (copy_self_referential_tree_r): Use it.
32680         (self_referential_size): Punt for simple operations directly involving
32681         self-referential component references.
32682         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32684 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32686         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32688 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32690         * vec.h (vec): Make splice arguments const.  Update definitions
32691         accordingly.
32693 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
32695         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32696         alternatives.
32698 2015-04-26  Tom de Vries  <tom@codesourcery.com>
32700         PR tree-optimization/65826
32701         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32703 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
32705         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32706         (*madd3<mode>): Ditto.
32707         (*msub4<mode>): Ditto.
32708         (*msub3<mode>): Ditto.
32709         (*nmadd4<mode>): Ditto.
32710         (*nmadd3<mode>): Ditto.
32711         (*nmadd4<mode>_fastmath): Ditto.
32712         (*nmadd3<mode>_fastmath): Ditto.
32713         (*nmsub4<mode>): Ditto.
32714         (*nmsub3<mode>): Ditto.
32715         (*nmsub4<mode>_fastmath): Ditto.
32716         (*nmsub3<mode>_fastmath): Ditto.
32718 2015-04-24  Jason Merrill  <jason@redhat.com>
32720         PR c++/50800
32721         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32722         down when building TYPE_CANONICAL.
32723         (build_pointer_type_for_mode): Likewise.
32725 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
32727         * genrecog.c (validate_pattern): Check matching constraint refers
32728         to a lower numbered operand.
32730 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
32732         PR target/65849
32733         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32734         save to independent variables use the Save attribute.  This will
32735         allow these options to be modified with the #pragma/attribute
32736         target support.
32737         (-mallow-movmisalign): Likewise.
32738         (-mallow-df-permute): Likewise.
32739         (-msched-groups): Likewise.
32740         (-malways-hint): Likewise.
32741         (-malign-branch-targets): Likewise.
32742         (-mvectorize-builtins): Likewise.
32743         (-msave-toc-indirect): Likewise.
32745         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32746         can be set via the #pragma/attribute target support.
32747         (rs6000_opt_vars): Likewise.
32748         (rs6000_inner_target_options): If VSX was set, also set
32749         -mno-avoid-indexed-addresses.
32751 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32753         * config/arm/iterators.md (shiftable_ops): Rename to...
32754         (SHIFTABLE_OPS): ... This.  Update use in comments.
32755         (ior_xor): Rename to...
32756         (IOR_XOR): ... This.
32757         (vqh_ops): Rename to...
32758         (VQH_OPS): ... This.
32759         (vqhs_ops): Rename to...
32760         (VQHS_OPS): ... This.
32761         (rshifts): Rename to...
32762         (RSHIFTS): ... This.
32763         (returns): Rename to...
32764         (RETURNS): ... This.
32765         * config/arm/arm.md: Update uses of the above.
32766         * config/arm/neon.md: Likewise.
32768 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32770         * config.host (case ${host}): Add aarch64*-*-linux case.
32771         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32772         fields to all the cores.
32773         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32774         Add MCPU_MTUNE_NATIVE_SPECS.
32775         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32776         field to all extensions.
32777         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32778         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32779         Adjust definition of AARCH64_OPT_EXTENSION.
32780         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32781         (MCPU_MTUNE_NATIVE_SPECS): Define.
32782         * config/aarch64/driver-aarch64.c: New file.
32783         * config/aarch64/x-arch64: New file.
32784         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32785         -mtune and -march.
32787 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32788             Wei Mi  <wmi@google.com>
32790         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32791         * config/i386/i386.c (extract_base_offset_in_addr): New function.
32792         (ix86_operands_ok_for_move_multiple): Ditto.
32793         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32794         (movlpd/movhpd to movupd peephole2): Ditto.
32796 2015-04-24  Marek Polacek  <polacek@redhat.com>
32798         PR c/61534
32799         * input.h (from_macro_expansion_at): Define.
32801         PR c/63357
32802         * doc/invoke.texi: Update description of -Wlogical-op.
32804 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32806         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32807         ternary operator in fprintf and harmonize spacing.
32809 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32811         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32812         Mark operand1 commutative.
32814 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32816         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32817         input operands in memory.
32818         (*vec_concatv2si_sse4_1): Ditto.
32819         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32820         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32821         register_operand.
32822         (vec_extract_hi_v32hi): Ditto.
32823         (vec_extract_hi_v64hi): Ditto.
32824         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32826 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32827             Steven Bosscher <steven@gcc.gnu.org>
32829         PR rtl-optimization/34503
32830         * cprop.c (cprop_reg_p): New.
32831         (hash_scan_set): Use above function to check if register can be
32832         propagated.
32833         (find_avail_set): Return up to two sets, one whose source is a
32834         register and one whose source is a constant.  Sets are returned in an
32835         array passed as parameter rather than as a return value.
32836         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
32837         sets returned by find_avail_set, starting with the one whose source is
32838         a constant. Use cprop_reg_p to check if register can be propagated.
32839         (do_local_cprop): Use cprop_reg_p to check if register can be
32840         propagated.
32841         (implicit_set_cond_p): Likewise.
32843 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32845         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32846         (sem_function::equals): IGNORED_NODES parameter is now unused;
32847         update call of equals_private.
32848         (sem_function::equals_private): Do not call equals_wpa; skip
32849         gimple body matching if there is no body.
32850         (sem_function::init): Add logic to hash tthunk info.
32851         (sem_function::parse): Also parse thunks.
32852         * ipa-icf.h (equals_private): Update declaration.
32854 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32856         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32857         asterisk from name so this can be generated directly.
32858         (*altivec_stvx_<mode>_internal): Likewise.
32859         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32860         that this is never called during or after reload/lra.
32861         (rs6000_frame_related): Remove split_reg
32862         argument and logic that references it.
32863         (emit_frame_save): Remove last parameter from call to
32864         rs6000_frame_related.
32865         (rs6000_emit_prologue): Remove last parameter from eight calls to
32866         rs6000_frame_related.  Force generation of stvx instruction for
32867         Altivec register saves.  Remove split_reg handling, which is no
32868         longer needed.
32869         (rs6000_emit_epilogue):  Force generation of lvx instruction for
32870         Altivec register restores.
32872 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32874         * config/rs6000/rs6000.opt (mcrypto): Change option description to
32875         match category changes in ISA 2.07B.
32877 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32879         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32880         iterators.
32881         (cmp_op, cmp_type): New code attributes.
32882         (NEON_VCMP, NEON_VACMP): New int iterators.
32883         (cmp_op_unsp): New int attribute.
32884         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32885         (neon_vceq<mode>): Delete.
32886         (neon_vc<cmp_op><mode>_insn): New pattern.
32887         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32888         (neon_vcgeu<mode>): Delete.
32889         (neon_vcle<mode>): Likewise.
32890         (neon_vclt<mode>: Likewise.
32891         (neon_vcage<mode>): Likewise.
32892         (neon_vcagt<mode>): Likewise.
32893         (neon_vca<cmp_op><mode>): New define_expand.
32894         (neon_vca<cmp_op><mode>_insn): New pattern.
32895         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32897 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32899         * tree.h (attribute_value_equal): Declare.
32900         * tree.c (attribute_value_equal): Export.
32902 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32904         * ipa-icf.c (sem_item::compare_attributes): New function.
32905         (sem_item::compare_referenced_symbol_properties): Compare variable
32906         attributes.
32907         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32908         (sem_function::param_used_p): New function.
32909         (sem_function::equals_wpa): Fix attribute comparsion; match
32910         parameter type codes; do not compare paremter flags when
32911         they are not used; compare edge flags; compare indirect calls.
32912         (sem_item::update_hash_by_addr_refs): Hash reference type.
32913         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32914         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32915         reference use type.
32916         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32917         * ipa-icf.h (compare_attributes, param_used_p): Declare.
32919 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32921         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32922         cleanup.
32923         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32924         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32925         (sem_item::compare_referenced_symbol_properties): New.
32926         (sem_item::hash_referenced_symbol_properties): New.
32927         (sem_item::compare_cgraph_references): Rename to ...
32928         (sem_item::compare_symbol_references): ... this one; use
32929         compare_referenced_symbol_properties.
32930         (sem_function::equals_wpa): Do not compare
32931         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32932         DECL_IS_OPERATOR_NEW; compare pointer sizes.
32933         (sem_item::update_hash_by_addr_refs): Call
32934         hash_referenced_symbol_properties.
32935         (sem_item::update_hash_by_local_refs): Cleanup.
32936         (sem_function::merge): Do not mix up symbol properties.
32937         (sem_variable::equals_wpa): Use compare_symbol_references.
32938         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32939         (sem_item::hash_referenced_symbol_properties): New.
32940         (sem_item::compare_symbol_references): New.
32941         (sem_item::compare_cgraph_references): Remove.
32943 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
32945         PR target/26702
32946         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32947         Emit size of local.
32949 2015-04-23  Nick Clifton  <nickc@redhat.com>
32951         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32952         ATTRIBUTE_UNUSED to x parameter.
32953         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32955 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32957         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32958         TARGET_CRYPTO to TARGET_P8_VECTOR>
32959         (crypto_vpermxor_<mode>): Likewise.
32960         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32961         (BU_CRYPTO_3A): Likewise.
32962         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32963         (BU_CRYPTO_OVERLOAD_3A): New #define.
32964         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32965         (VPMSUMH): Likewise.
32966         (VPMSUMW): Likewise.
32967         (VPMSUMD): Likewise.
32968         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32969         (VPERMXOR_V4SI): Likewise.
32970         (VPERMXOR_V8HI): Likewise.
32971         (VPERMXOR_V16QI): Likewise.
32972         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32973         BU_CRYPTO_OVERLOAD_2A.
32974         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32975         BU_CRYPTO_OVERLOAD_3A.
32976         * config/rs6000/rs6000.opt (mcrypto): Change description of
32977         option.
32979 2015-04-23  Richard Biener  <rguenther@suse.de>
32981         * passes.def: Remove copy propagation passes run directly after CCP.
32982         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32983         SSA names.
32984         (ccp_visit_phi_node): Rework to handle first executable edge
32985         specially.
32987 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
32989         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32990         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32991         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32992         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32993         (thumb_legimitimize_reload_address): Remove.
32994         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32995         Remove.
32996         (thumb_legimitimize_reload_address): Remove.
32998 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33000         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33002 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33004         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33005         MAX_LDM_STM_OPS.
33006         (store_multiple): Likewise.
33008 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33010         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33011         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33012         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33013         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33014         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33015         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33016         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33017         Specify issue_rate value.
33018         (arm_issue_rate): Look up issue rate from tuning structs. Remove
33019         large switch statement.
33020         (arm_marvell_pj4_tune): New struct.
33021         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33022         struct.
33024 2015-04-23  Richard Biener  <rguenther@suse.de>
33026         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33027         (vect_find_last_store_in_slp_instance): Rename to ...
33028         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33029         (vect_analyze_slp_cost_1): Use vector_load for constant defs
33030         and vec_construct for external defs when estimating prologue cost.
33031         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33032         Compute costs here only when vectorizing loops.
33033         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33034         have been determined.
33035         (vect_schedule_slp_instance): Simplify vectorized code placement
33036         and prepare for in-BB external defs.
33037         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33038         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33039         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33040         guard.
33041         (vect_model_load_cost): Likewise.
33042         (vectorizable_store): Instead add it here.
33043         (vectorizable_load): Likewise.
33044         (vect_is_simple_use): Dump def type textually.
33046 2015-04-23  Richard Biener  <rguenther@suse.de>
33048         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33049         * cfgloop.c (verify_loop_structure): Verify the root loop node.
33050         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33051         instead of get_eh_region_from_lp_number.
33052         * loop-init.c (fix_loop_structure): If we removed a loop, reset
33053         the SCEV cache.
33055 2015-04-23  Anton Blanchard  <anton@samba.org>
33057         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33058         need for -mprofile-kernel to save LR to stack.
33060 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33062         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33063         adjustments.
33064         (insn_is_swappable_p): Return 1 for a convert from double to
33065         single precision when all of its uses are splats of BE element
33066         zero.
33068 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
33070         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33072 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33074         PR target/65456
33075         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
33076         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33077         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33078         option.
33079         (rs6000_builtin_mask_for_load): Return 0 for targets with
33080         efficient unaligned VSX accesses so that the vectorizer will use
33081         direct unaligned loads.
33082         (rs6000_builtin_support_vector_misalignment): Always return true
33083         for targets with efficient unaligned VSX accesses.
33084         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33085         stores on targets with efficient unaligned VSX accesses is almost
33086         always the same as the cost of an aligned load or store, so model
33087         it that way.
33088         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33089         unaligned vectors if we have efficient unaligned VSX accesses.
33090         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33091         undocumented option.
33093 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33095         Revert:
33096         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33098         * config.gcc (LIBC_MUSL): New tm_defines macro.
33099         * config/linux.h (OPTION_MUSL): Define.
33100         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33101         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33102         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33104         * config/linux.opt (mmusl): New option.
33105         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33106         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33108         * configure: Regenerate.
33110 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33112         * config.gcc (LIBC_MUSL): New tm_defines macro.
33113         * config/linux.h (OPTION_MUSL): Define.
33114         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33115         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33116         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33118         * config/linux.opt (mmusl): New option.
33119         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33120         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33122         * configure: Regenerate.
33124 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
33126         * doc/invoke.texi (-fsanitize-sections): Update description.
33127         * asan.c (set_sanitized_sections): Parse incoming arg.
33128         (section_sanitized_p): Support wildcards.
33130 2015-04-22  Tom de Vries  <tom@codesourcery.com>
33132         PR tree-optimization/65823
33133         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33134         equality between ap_copy and ap.
33136 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33138         PR target/47098
33139         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33141 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33143         PR target/47122
33144         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33146 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33148         PR target/55144
33149         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33150         remove already contained t-files.
33152 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33154         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33155         Remove unneeded forward declarations.
33156         (suitable_for_tail_call_opt_p): Commentary typo fix.
33158 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33160         * varasm.c (emit_bss): Remove redundant guard.
33162 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33164         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33166 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33168         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33170 2015-04-22  Hale Wang  <hale.wang@arm.com>
33171             Terry Guo  <terry.guo@arm.com>
33173         PR rtl-optimization/64818
33174         * combine.c (can_combine_p): Don't combine user-specified
33175         register if it is in an asm input.
33177 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
33179         PR ipa/65076
33180         * passes.def (early_optimizations): Add pass_dse.
33182 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33184         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33185         * reorg.c (redundant_insn): Remove ifdef
33186         INSN_REFERENCES_ARE_DELAYED.
33187         * resource.c (mark_referenced_resources): Likewise.
33189 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33191         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33192         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33193         * resource.c (mark_set_resources): Likewise.
33195 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33197         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33198         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33199         (flow_find_head_matching_sequence): Likewise.
33200         (try_head_merge_bb): Likewise.
33201         * combine.c (can_combine_p): Likewise.
33202         (try_combine): Likewise.
33203         (distribute_notes): Likewise.
33204         * df-problems.c (can_move_insns_across): Likewise.
33205         * final.c (final): Likewise.
33206         * gcse.c (insert_insn_end_basic_block): Likewise.
33207         * ira.c (find_moveable_pseudos): Likewise.
33208         * reorg.c (try_merge_delay_insns): Likewise.
33209         (fill_simple_delay_slots): Likewise.
33210         (fill_slots_from_thread): Likewise.
33211         * sched-deps.c (sched_analyze_2): Likewise.
33213 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33215         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33216         PIC_OFFSET_TABLE_REGNUM.
33218 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33220         * alias.c (init_alias_target): Remove ifdef
33221         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33222         * df-scan.c (df_insn_refs_collect): Likewise.
33223         (df_get_regular_block_artificial_uses): Likewise.
33224         (df_get_eh_block_artificial_uses): Likewise.
33225         (df_get_entry_block_def_set): Likewise.
33226         (df_get_exit_block_use_set): Likewise.
33227         * emit-rtl.c (gen_rtx_REG): Likewise.
33228         * ira.c (ira_setup_eliminable_regset): Likewise.
33229         * reginfo.c (init_reg_sets_1): Likewise.
33230         * regrename.c (rename_chains): Likewise.
33231         * reload1.c (reload): Likewise.
33232         (eliminate_regs_in_insn): Likewise.
33233         * resource.c (mark_referenced_resources): Likewise.
33234         (init_resource_info): Likewise.
33236 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33238         * defaults.h (MASK_RETURN_ADDR): New definition.
33239         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33240         MASK_RETURN_ADDR.
33242 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33244         * defaults.h (RETURN_ADDR_OFFSET): New definition.
33245         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33246         RETURN_ADDR_OFFSET.
33247         (expand_builtin_frob_return_addr): Likewise.
33249 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33251         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33252         (try_redirect_by_replacing_jump): Likewise.
33253         (rtl_tidy_fallthru_edge): Likewise.
33254         * combine.c (insn_a_feeds_b): Likewise.
33255         (find_split_point): Likewise.
33256         (simplify_set): Likewise.
33257         * cprop.c (cprop_jump): Likewise.
33258         * cse.c (cse_extended_basic_block): Likewise.
33259         * df-problems.c (can_move_insns_across): Likewise.
33260         * function.c (emit_use_return_register_into_block): Likewise.
33261         * haifa-sched.c (sched_init): Likewise.
33262         * ira.c (find_moveable_pseudos): Likewise.
33263         * loop-invariant.c (find_invariant_insn): Likewise.
33264         * lra-constraints.c (curr_insn_transform): Likewise.
33265         * postreload.c (reload_combine_recognize_const_pattern):
33266         * Likewise.
33267         * reload.c (find_reloads): Likewise.
33268         * reorg.c (delete_scheduled_jump): Likewise.
33269         (steal_delay_list_from_target): Likewise.
33270         (steal_delay_list_from_fallthrough): Likewise.
33271         (redundant_insn): Likewise.
33272         (fill_simple_delay_slots): Likewise.
33273         (fill_slots_from_thread): Likewise.
33274         (delete_computation): Likewise.
33275         * sched-rgn.c (add_branch_dependences): Likewise.
33277 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33279         * genconfig.c (main): Always define HAVE_cc0.
33280         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33281         HAVE_cc0.
33282         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33283         (flow_find_head_matching_sequence): Likewise.
33284         (try_head_merge_bb): Likewise.
33285         * cfgrtl.c (rtl_merge_blocks): Likewise.
33286         (try_redirect_by_replacing_jump): Likewise.
33287         (rtl_tidy_fallthru_edge): Likewise.
33288         * combine.c (do_SUBST_MODE): Likewise.
33289         (insn_a_feeds_b): Likewise.
33290         (combine_instructions): Likewise.
33291         (can_combine_p): Likewise.
33292         (try_combine): Likewise.
33293         (find_split_point): Likewise.
33294         (subst): Likewise.
33295         (simplify_set): Likewise.
33296         (distribute_notes): Likewise.
33297         * cprop.c (cprop_jump): Likewise.
33298         * cse.c (cse_extended_basic_block): Likewise.
33299         * df-problems.c (can_move_insns_across): Likewise.
33300         * final.c (final): Likewise.
33301         (final_scan_insn): Likewise.
33302         * function.c (emit_use_return_register_into_block): Likewise.
33303         * gcse.c (insert_insn_end_basic_block): Likewise.
33304         * haifa-sched.c (sched_init): Likewise.
33305         * ira.c (find_moveable_pseudos): Likewise.
33306         * loop-invariant.c (find_invariant_insn): Likewise.
33307         * lra-constraints.c (curr_insn_transform): Likewise.
33308         * optabs.c (prepare_cmp_insn): Likewise.
33309         * postreload.c (reload_combine_recognize_const_pattern):
33310         * Likewise.
33311         * reload.c (find_reloads): Likewise.
33312         (find_reloads_address_1): Likewise.
33313         * reorg.c (delete_scheduled_jump): Likewise.
33314         (steal_delay_list_from_target): Likewise.
33315         (steal_delay_list_from_fallthrough): Likewise.
33316         (try_merge_delay_insns): Likewise.
33317         (redundant_insn): Likewise.
33318         (fill_simple_delay_slots): Likewise.
33319         (fill_slots_from_thread): Likewise.
33320         (delete_computation): Likewise.
33321         (relax_delay_slots): Likewise.
33322         * sched-deps.c (sched_analyze_2): Likewise.
33323         * sched-rgn.c (add_branch_dependences): Likewise.
33325 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33327         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33328         that is trivially ded on non cc0 targets.
33329         (simplify_set): Likewise.
33330         (mark_used_regs_combine): Likewise.
33331         * cse.c (new_basic_block): Likewise.
33332         (fold_rtx): Likewise.
33333         (cse_insn): Likewise.
33334         (cse_extended_basic_block): Likewise.
33335         (set_live_p): Likewise.
33336         * rtlanal.c (canonicalize_condition): Likewise.
33337         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33339 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33341         * conditions.h: Define macros even if HAVE_cc0 is undefined.
33342         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33343         * final.c: Likewise.
33344         * jump.c: Likewise.
33345         * recog.c: Likewise.
33346         * recog.h: Declare functions even when HAVE_cc0 is undefined.
33347         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33349 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33351         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33352         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33353         * builtins.c (expand_builtin): Remove check if
33354         EH_RETURN_DATA_REGNO is defined.
33355         * df-scan.c (df_bb_refs_collect): Likewise.
33356         (df_get_exit_block_use_set): Likewise.
33357         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33358         * ira-lives.c (process_bb_node_lives): Likewise.
33359         * lra-lives.c (process_bb_lives): Likewise.
33361 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33363         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33364         FIRST_PSEUDO_REG): New.
33365         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33366         (ARG_POINTER_REGNUM): Define to ARGP_REG.
33367         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33368         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33369         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33370         (FIRST_INT_REG): New.
33371         (LAST_INT_REG): New.
33372         (FIRST_*_REG): Define using *_REG.
33373         (LAST_*_REG): Ditto.
33374         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33375         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33376         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33378 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33380         * expmed.c: (synth_mult): Only assume overlapping
33381         shift with previous steps in alg_sub_t_m2 case.
33383 2015-04-21  Richard Biener  <rguenther@suse.de>
33385         PR tree-optimization/65650
33386         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33387         transitions involving copies.
33388         (set_lattice_value): Adjust for copy lattice state.
33389         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33390         if that doesn't dominate the merge point.
33391         (bit_value_unop): Adjust what we treat as varying mask.
33392         (bit_value_binop): Likewise.
33393         (bit_value_assume_aligned): Likewise.
33394         (evaluate_stmt): When we simplified to a SSA name record a copy
33395         instead of dropping to varying.
33396         (visit_assignment): Simplify.
33398         * gimple-match.h (gimple_simplify): Add another callback.
33399         * gimple-fold.c (fold_stmt_1): Adjust caller.
33400         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33401         for the 2nd callback.
33402         * gimple-match-head.c (gimple_simplify): Add a callback that is
33403         used to valueize the stmt operands and use it that way.
33405 2015-04-21  Richard Biener  <rguenther@suse.de>
33407         PR tree-optimization/65788
33408         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33410 2015-04-21  Richard Biener  <rguenther@suse.de>
33412         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33413         vec_construct cost by vec_stmt_cost.
33415 2015-04-21  Richard Biener  <rguenther@suse.de>
33417         * cfghooks.h (create_basic_block): Replace with two overloads
33418         for RTL and GIMPLE.
33419         (split_block): Likewise.
33420         * cfghooks.c (split_block): Rename to ...
33421         (split_block_1): ... this.
33422         (split_block): Add two type-safe overloads for RTL and GIMPLE.
33423         (split_block_after_labels): Call split_block_1.
33424         (create_basic_block): Rename to ...
33425         (create_basic_block_1): ... this.
33426         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33427         (create_empty_bb): Call create_basic_block_1.
33428         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33429         split_block_after_labels.
33430         * omp-low.c (expand_parallel_call): Likewise.
33431         (expand_omp_target): Likewise.
33432         (simd_clone_adjust): Likewise.
33433         * tree-chkp.c (chkp_get_entry_block): Likewise.
33434         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33435         create_basic_block overload.
33436         (cgraph_node::expand_thunk): Likewise.
33437         * tree-cfg.c (make_blocks): Likewise.
33438         (handle_abnormal_edges): Likewise.
33439         * tree-inline.c (copy_bb): Likewise.
33441 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33443         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33444         New pattern.
33445         (*xor_one_cmplsidi3_ze): Likewise.
33447 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33449         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33450         use df_remove_problem rather than manually removing problems, leaving
33451         holes in df->problems_in_order[].
33453 2015-04-21  Tom de Vries  <tom@codesourcery.com>
33455         PR tree-optimization/65802
33456         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33458 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33460         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33461         Increase to 128.
33462         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33463         at '.'.  Assert that there's enough space for everything.
33465 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33467         PR tree-optimization/64950
33468         Revert:
33469         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
33471         PR target/41089
33472         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33473         as volatile.
33475 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
33477         PR rtl-optimization/64916
33478         * cfgcleanup.c (values_equal_p): New function.
33479         (can_replace_by): Use it.
33481 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
33483         PR c++/65801
33484         * doc/invoke.texi ([-Wnarrowing]): Update.
33486 2015-04-20  Jeff Law  <law@redhat.com>
33488         PR tree-optimization/65658
33489         * tree-ssa-threadupdate.c (redirection_block_p): Remove
33490         redundant test for GIMPLE_ASSIGN in last change.
33492 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
33494         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33495         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33496         (legitimize_tls_address): Ditto.
33497         (ix86_expand_move): Ditto.
33498         (ix86_expand_binary_operator): Remove reload_in_progress checks.
33499         (ix86_expand_unary_operator): Ditto.
33500         * config/i386/predicates.md (index_register_operand): Ditto.
33502 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
33504         * reorg.c (try_merge_delay_insns): Improve correctness checking
33505         for targets with multiple delay slots.
33507 2015-04-20  Jeff Law  <law@redhat.com>
33509         PR tree-optimization/65658
33510         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33511         statements too.
33513 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33515         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33516         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33517         Delete.
33519 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
33521         PR debug/65807
33522         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33524 2015-04-20  Richard Biener  <rguenther@suse.de>
33526         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33527         * gimple-fold.c (gimple_build_valueize): New function.
33528         (gimple_build): Always use gimple_build_valueize as valueize hook.
33530 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33532         PR target/64134
33533         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33534         and overwrite variable parts if <= 1/2 the elements are variable.
33536 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
33538         PR rtl-optimization/65805
33539         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33540         Don't use difference of offset and previous offset if
33541         update_sp_offset is non-zero.
33542         (eliminate_regs_in_insn): Ditto.
33543         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33544         lra_eliminate_regs_1 call.
33545         * lra-constraints.c (get_equiv_with_elimination): Ditto.
33547 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
33549         * hash-table.h: Remove version of hash_table that stored value_type *.
33550         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33551         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33552         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33553         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33554         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33555         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33556         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33557         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33558         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33559         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33560         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33561         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33562         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33563         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33564         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33565         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33567 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33568             Jakub Jelinek  <jakub@redhat.com>
33570         PR target/65787
33571         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33572         subsequent SH_NONE operand does not overwrite an existing *special
33573         value.
33574         (adjust_extract): Handle case where a vec_extract operation is
33575         wrapped in a PARALLEL.
33577 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33579         PR target/65780
33580         * config/i386/i386.c (ix86_binds_local_p): Define only if
33581         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33583 2015-04-17  Jeff Law  <law@redhat.com>
33585         PR tree-optimization/47679
33586         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33587         * tree-ssa-scopedtables.c: New file.
33588         * tree-ssa-scopedtables.h: New file.
33589         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33590         (const_and_copies): Change name/type.
33591         (record_const_or_copy): Move into tree-ssa-scopedtables.c
33592         (record_const_or_copy_1): Similarly.
33593         (restore_vars_to_original_value): Similarly.
33594         (pass_dominator::execute): Create and destroy const_and_copies table.
33595         (thread_across_edge): Update passing of const_and_copies.
33596         (record_temporary_equivalence): Use method calls rather than
33597         manipulating const_and_copies directly.
33598         (record_equality, cprop_into_successor_phis): Similarly.
33599         (dom_opt_dom_walker::before_dom_children): Similarly.
33600         (dom_opt_dom_walker::after_dom_children): Similarly.
33601         (eliminate_redundant_computations): Similarly.
33602         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33603         (record_temporary_equivalence): Likewise.
33604         (invalidate_equivalences): Likewise.
33605         (record_temporary_equivalences_from_phis): Update due to type
33606         change of const_and_copies.  Use method calls rather than
33607         manipulating the stack directly.
33608         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33609         (thread_through_normal_block, thread_across_edge): Likewise.
33610         (thread_across_edge): Likewise.
33611         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33612         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
33613         of equiv_stack.
33614         (identify_jump_threads): Update due to type change of equiv_stack.
33615         (finalize_jump_threads): Delete the equiv_stack when complete.
33617 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
33619         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33620         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33621         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33623 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
33625         PR target/65535
33626         * config.gcc: Exit with a comment when we do not have a major version
33627         number for the FreeBSD target.
33629 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33631         PR target/65689
33632         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33633         maybe_allows_mem bitfields.
33634         (maybe_allows_none_start, maybe_allows_none_end,
33635         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33636         maybe_allows_mem_end): New variables.
33637         (compute_maybe_allows): New function.
33638         (add_constraint): Use it to initialize maybe_allows_reg and
33639         maybe_allows_mem fields.
33640         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33641         is_address constraints such that those that allow neither mem nor
33642         reg come first, then those that only allow reg but not mem, then
33643         those that only allow mem but not reg, then the rest.
33644         (write_allows_reg_mem_function): New function.
33645         (write_tm_preds_h): Call it.
33646         * stmt.c (parse_output_constraint, parse_input_constraint): Use
33647         the generated insn_extra_constraint_allows_reg_mem function
33648         instead of always setting *allows_reg = true; *allows_mem = true;
33649         for unknown extra constraints.
33651 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33653         PR target/65780
33654         * output.h (default_binds_local_p_3): New.
33655         * varasm.c (default_binds_local_p_3): Make it public.  Take an
33656         argument to indicate if common symbol may be local.  If common
33657         symbol may be local, treat non-external variable as defined
33658         locally.
33659         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33660         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33661         * config/i386/i386.c (ix86_binds_local_p): New.
33662         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33663         ix86_binds_local_p.
33665 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33667         PR debug/65771
33668         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33669         trying mem_loc_descriptor on XEXP (rtl, 0).
33671 2015-04-17  Martin Liska  <mliska@suse.cz>
33673         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33674         Release symbol_compare_collection.
33675         * ipa-reference.c: Add TODO that a vector should be released.
33677 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33679         PR target/65296
33680         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33681         to new AVR-LibC file layout (bug #44574).
33682         (*avrlibc_devicelib): Same.
33683         * config/avr/avr-mcus.def: Adjust comments.
33684         * config/avr/avr.opt (nodevicelib): Adjust help.
33686 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
33688         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33690 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
33692         PR c++/64527
33693         * gimplify.c (gimplify_init_constructor): Always emit a
33694         side-effecting constructor.
33696 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33698         PR tree-optimization/64950
33699         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33700         in cfun->curr_properties.
33701         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33702         if we generate an IFN_VA_ARG.
33703         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33704         function if PROP_gimple_lva is not set in src function.
33706 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33707             Michael Matz  <matz@suse.de>
33709         PR tree-optimization/64950
33710         * gimple-iterator.c (update_modified_stmts): Remove static.
33711         * gimple-iterator.h (update_modified_stmts): Declare.
33712         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33713         (gimplify_va_arg_internal): New function.
33714         (gimplify_va_arg_expr): Use IFN_VA_ARG.
33715         * gimplify.h (gimplify_va_arg_internal): Declare.
33716         * internal-fn.c (expand_VA_ARG): New unreachable function.
33717         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33718         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33719         (expand_ifn_va_arg): New function.
33720         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33721         (pass_stdarg::execute): Call expand_ifn_va_arg.
33722         (pass_data_lower_vaarg): New pass_data.
33723         (pass_lower_vaarg): New gimple_opt_pass.
33724         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33725         (make_pass_lower_vaarg): New function.
33726         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33727         properties_required field.
33728         * passes.def (all_passes): Add pass_lower_vaarg.
33729         * tree-pass.h (PROP_gimple_lva): Add define.
33730         (make_pass_lower_vaarg): Declare.
33732 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33734         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33735         * calls.c (call_expr_flags): Same.
33737 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33739         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33740         (pass_stdarg::execute): ... here.
33742 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33743             Michael Matz  <matz@suse.de>
33745         * tree-cfg.c (make_blocks_1): Factor out of ...
33746         (make_blocks): ... here.
33747         (make_edges_bb): Factor out of ...
33748         (make_edges): ... here.
33749         (gimple_find_sub_bbs): New function.
33750         * tree-cfg.h (gimple_find_sub_bbs): Declare.
33752 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33754         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33756 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
33758         * asan.c (set_sanitized_sections): New function.
33759         (section_sanitized_p): Ditto.
33760         (asan_protect_global): Optionally sanitize user-defined
33761         sections.
33762         * asan.h (set_sanitized_sections): Declare new function.
33763         * common.opt (fsanitize-sections): New option.
33764         * doc/invoke.texi (-fsanitize-sections): Document new option.
33765         * opts-global.c (handle_common_deferred_options): Handle new
33766         option.
33768 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33770         PR debug/65771
33771         * dwarf2out.c (loc_list_from_tree): Return NULL
33772         for DEBUG_EXPR_DECL.
33774 2015-04-17  Christian Bruel  <christian.bruel@st.com>
33776         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33777         same attributes.
33779 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33781         * ira-color.c (setup_left_conflict_sizes_p): Do not process
33782         node itself when computing left conflict subnode size.
33784 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33786         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33787         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33788         *fop_<mode>_1_sse using enabled attribute.  Use
33789         register_mixssei387nonimm_operand operand 1 predicate. Change
33790         alternative 3 constraints from "x" to "v".
33792 2015-04-16  Richard Biener  <rguenther@suse.de>
33794         PR tree-optimization/65774
33795         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33796         bit-value tracking on.
33798 2015-04-16  Richard Biener  <rguenther@suse.de>
33800         PR tree-optimization/64277
33801         * tree-vrp.c (check_array_ref): Fix anti-range handling,
33802         simplify upper bound handling.
33803         (search_for_addr_array): Simplify.
33804         (check_array_bounds): Handle ADDR_EXPRs here.
33805         (check_all_array_refs): Simplify.
33807 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33809         * config/i386/i386.c (print_reg): Rewrite function.
33811 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33813         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33814         Invert the condition.
33816 2015-04-16  Renlin Li  <renlin.li@arm.com>
33818         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33819         simplifications for UNSIGNED_FLOAT.
33821 2015-04-16  Nick Clifton  <nickc@redhat.com>
33823         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33824         MUL_UNINIT.
33825         (enum rl78_cpu_type): New.
33826         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33827         (umulhi3_shift_virt): Remove m constraint from operand 1.
33828         (umulqihi3_virt): Likewise.
33829         * config/rl78/rl78.c (rl78_option_override): Add code to process
33830         -mcpu and -mmul options.
33831         (rl78_alloc_physical_registers): Add code to handle divhi and
33832         divsi valloc attributes.
33833         (set_origin): Likewise.
33834         * config/rl78/rl78.h (RL78_MUL_G14): Define.
33835         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33836         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33837         __RL78_Gxx__.
33838         (ASM_SPEC): Pass -mcpu on to assembler.
33839         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33840         (mulqi3_rl78): Likewise.
33841         (mulhi3_g13): Likewise.
33842         (mulhi3): Generate the G13 or G14 versions of the insn directly.
33843         (mulsi3): Likewise.
33844         (mulhi3_g14): Add clobbers of AX and BC.
33845         (mulsi3_g14): Likewise.
33846         (mulsi3_g13): Likewise.
33847         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33848         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33849         * config/rl78/rl78.opt (mmul): Initialise value to
33850         RL78_MUL_UNINIT.
33851         (mcpu): New option.
33852         (m13, m14, mrl78): New option aliases.
33853         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33854         (MULTILIB_DIRNAMES): Add g13 and g14.
33855         * doc/invoke.texi: Document -mcpu and -mmul options.
33857 2015-04-16  Richard Biener  <rguenther@suse.de>
33859         * tree-ssa-ccp.c (likely_value): See if we have operands that
33860         are marked as never simulate again and return CONSTANT in this
33861         case.
33862         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33863         not have any operands that will be simulated again as
33864         not being simulated again.
33866 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
33868         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33869         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33870         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33871         attribute.
33872         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33873         enabled attribute.
33874         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33875         *float<SWI48:mode><MODEF:mode>2_sse.
33876         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33877         enabled attribute.
33878         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33879         enabled attribute.
33881 2015-04-15  Tom de Vries  <tom@codesourcery.com>
33883         PR other/65487
33884         * function.c (push_dummy_function): New function.
33885         (init_dummy_function_start): Use push_dummy_function.
33886         (pop_dummy_function): New function.  Factored out of ...
33887         (expand_dummy_function_end): ... here.
33888         * function.h (push_dummy_function, pop_dummy_function): Declare.
33889         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33890         pop_dummy_function.
33891         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33893 2015-04-15  Jeff Law  <law@redhat.com>
33895         PR tree-optimization/47679
33896         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33897         need for forward declaration in upcoming changes.
33898         (record_conditions, record_edge_info): Likewise.
33900         PR rtl-optimization/42522
33901         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33902         SIGN_EXTRACT as a whole object rather than simplifying
33903         its operand.
33905 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
33907         PR ipa/65765
33908         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33909         and GIMPLE_PREDICT use break instead of return true. For
33910         GIMPLE_EH_DISPATCH, compare dispatch region.
33912 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
33914         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
33915         details about the implementation.  Make clear preference for
33916         __atomic builtins.  Reduce possibility of future change.
33918 2015-04-15  Nick Clifton  <nickc@redhat.com>
33920         * config/rx/rx.opt (mallow-string-insns): New option.
33921         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33922         builtin if string instructions are denied.
33923         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33924         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33925         appropriate.
33926         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33927         * config/rx/rx.md (movstr): Enable pattern only if string
33928         instructions are allowed.
33929         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33930         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33931         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33932         (MULTILIB_DIRNAMES): Add no-strings.
33933         * doc/invoke.texi: Document -mno-allow-string-insns.
33935 2015-04-15  Alan Modra  <amodra@gmail.com>
33937         PR target/65408
33938         PR target/58744
33939         PR middle-end/36043
33940         * calls.c (load_register_parameters): Don't load past end of
33941         mem unless suitably aligned.
33943 2015-04-15  Nick Clifton  <nickc@redhat.com>
33945         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33946         decrement instruction as being frame related.
33947         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33948         based addresses.
33949         If zero extending a function address enclose the operation in
33950         %code(...).
33951         (rl78_preferred_reload_class): New function.
33952         (TARGET_PREFERRED_RELOAD_CLASS): Define.
33953         * config/rl78/rl78.md: Remove useless constraints in expanders.
33954         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33955         (mulhi3_rl78): Likewise.
33956         (mulhi3_g13): Likewise.
33957         (mulsi3_rl78): Likewise.
33958         (es_addr): Move to before the multiply patterns.
33960 2015-04-15  Alan Modra  <amodra@gmail.com>
33962         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33963         and sequence_stack.  Add seq.
33964         (seq_stack): Delete.
33965         * function.c (prepare_function_start): Don't access x_last_insn.
33966         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33967         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33968         * emit_rtl.c (start_sequence, push_topmost_sequence,
33969         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33970         sequence accessors.
33971         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33972         remove_insn): Likewise.  Simplify.
33973         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33974         and pop_topmost_sequence.
33975         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
33976         debug insns.
33977         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33979 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
33981         PR target/65729
33982         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33983         the assertiion.
33985 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33987         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33988         (LEGACY_INT_REGNO_P): Ditto.
33989         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33990         (ANY_MASK_REG_P): Remove.
33991         (BND_REG_P): Rename from ANY_BND_REG_P.
33992         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33993         legacy integer registers.  Do not handle MMX_REG_P in a special way.
33994         Merge 64byte and 32byte SSE handling.
33996 2015-04-14  Nick Clifton  <nickc@redhat.com>
33998         * expr.c (expand_assignment): Force an address offset computation
33999         into a register before changing its mode.
34000         (expand_expr_real_1): Likewise.
34002 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
34004         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34005         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34006         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34007         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34008         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34009         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34010         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34011         and __aarch64_vget_lane_any.
34013 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
34015         PR rtl-optimization/65761
34016         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34017         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34019 2015-04-14  Richard Biener  <rguenther@suse.de>
34021         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34022         (graphite_can_represent_scev): Use POINTER_TYPE_P.
34024 2015-04-14  Richard Biener  <rguenther@suse.de>
34026         PR tree-optimization/65758
34027         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34028         against -1.
34029         (ccp_lattice_meet): Likewise.
34030         (bit_value_unop): Likewise.
34031         (bit_value_binop): Likewise.
34032         (bit_value_assume_aligned): Likewise.
34034 2015-04-14  Christian Bruel  <christian.bruel@st.com>
34036         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34037         function.
34039 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
34041         PR tree-optimization/63387
34042         * match.pd ((x unord x) | (y unord y) -> (x unord y),
34043         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34045 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34047         * config/i386/predicates.md (any_QIreg_operand): Rename from
34048         q_regs_operand.  Do not process subregs.
34049         (QIreg_operand): Use QI_REGNO_P predicate.
34050         (ext_QIreg_operand): Ditto.
34051         (ext_register_operand): Ditto.
34052         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34053         (AND splitters): Ditto.
34054         (AND with -65536 splitter): Add SWI48 mode for operand 0.
34055         (AND with -256 splitter): Use any_QIreg_operand predicate and
34056         SWI248 mode for operand 0.
34057         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34058         mode for operand 0.
34059         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34061 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
34063         * doc/plugins.texi: Rewrite first introductory paragraph.
34065 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34067         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34068         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34070 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34072         * ipa-profie.c (ipa_profile): Check number of parameters
34073         and possible polymorphic call targets before
34074         devirtualizing.
34076 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
34078         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34079         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34081 2015-04-13  Richard Biener  <rguenther@suse.de>
34083         PR tree-optimization/65204
34084         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34085         takens for bit-CCP.
34087 2015-04-13  Richard Biener  <rguenther@suse.de>
34089         PR target/65660
34090         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34091         and cond_not_taken_branch_cost to 4 and 2.
34092         (bdver2_cost): Likewise.
34093         (bdver3_cost): Likewise.
34094         (bdver4_cost): Likewise.
34096 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34098         * hash-table.h (hash_table constructor): Add mem stats.
34099         (alloc_entries): Likewise.
34101 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34103         * ipa-cp.c (ipcp_driver): Relase prev_edge.
34104         * passes.c (execute_one_pass): Only add transform if pass has one.
34106 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
34108         * config/i386/i386.c (ix86_option_override_internal): Don't set
34109         -fprefetch-loop-arrays if optimizing for size.
34111 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34112             Gerald Pfeifer  <gerald@pfeifer.com>
34114         * doc/contrib.texi (Contributors): Add Martin Jambor and
34115         Michael Matz.
34117 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
34119         * BASE-VER: Set to 6.0.0.
34121         PR tree-optimization/65747
34122         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34123         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34125 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34127         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34128         sentence.  Improve grammar.
34130 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34132         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34134 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34136         PR ipa/65743
34137         * ipa-inline-transform.c (speculation_removed): Remove static var.
34138         (check_speculations): New function.
34139         (clone_inlined_nodes): Do not check spculations.
34140         (inline_call): Call check_speculations.
34141         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34142         consider non-invariants.
34144 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34145             Martin Liska  <mliska@suse.cz>
34147         PR ipa/65722
34148         * ipa-icf.c (sem_item::compare_cgraph_references): function and
34149         variable can not match.
34150         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34151         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34153 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
34155         PR tree-optimization/65735
34156         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34157         Remove visited_phis argument, add visited_bbs, avoid recursing into the
34158         same bb rather than just into the same phi node.
34159         (thread_through_normal_block): Adjust caller.
34161 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34163         * doc/contrib.texi (Contributors): Add Ira Rosen.
34165 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
34167         * gcov.c (find_source): Fix miswording in error message.
34168         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34169         (ix86_expand_sse_comi_round): Fix typo in error message.
34171 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34173         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34175 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
34177         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34179 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34181         PR target/65710
34182         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34183         Print bad_spills_num and insn_pseudos_num.
34185 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34187         PR target/65694
34188         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34189         when creating +1 values for SImode.
34191 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34193         PR target/65729
34194         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34195         assert.
34197 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
34198             Iain Sandoe  <iain@codesourcery.com>
34200         PR target/65351
34201         * configure: Regenerate.
34203 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34205         PR target/65671
34206         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34208 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
34210         * doc/contrib.texi (Contributors): Add John Marino.
34212 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34214         PR tree-optimization/65709
34215         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34216         TREE_TYPE (TREE_TYPE (t)).
34218 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
34220         PR target/65710
34221         * lra-int.h (lra_bad_spill_regno_start): New.
34222         * lra.c (lra_bad_spill_regno_start): New.
34223         (lra): Set up lra_bad_spill_regno_start.  Set up
34224         lra_constraint_new_regno_start unconditionally.
34225         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34226         spill preferences.
34228 2015-04-09  Marek Polacek  <polacek@redhat.com>
34229             Jakub Jelinek  <jakub@redhat.com>
34231         PR middle-end/65554
34232         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34233         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34234         of STRIP_NOPS.
34236 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
34238         PR rtl-optimization/65693
34239         * combine.c (is_parallel_of_n_reg_sets): Move outside of
34240         #ifndef HAVE_cc0.
34242 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
34244         PR target/65296
34245         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34246         device specs file if "device-specs%s" didn't resolve to a path.
34248 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34250         PR target/65676
34251         * config/i386/i386.c (fixup_modeless_constant): New.
34252         (ix86_expand_args_builtin): Fixup modeless constant operand.
34253         (ix86_expand_round_builtin): Ditto.
34254         (ix86_expand_special_args_builtin): Ditto.
34255         (ix86_expand_builtin): Ditto.
34257 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34259         PR target/65693
34260         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34261         any pow2 integer in between 2 and 0x80000000U inclusive.
34263 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
34265         PR rtl-optimization/65693
34266         * combine.c (is_parallel_of_n_reg_sets): Change first argument
34267         from an rtx_insn * to an rtx.
34268         (try_combine): Adjust both callers.  Use it once more.
34270 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34272         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34273         (chkp_make_static_const_bounds): Search existing
34274         symbol by assembler name.  Use make_decl_one_only.
34275         (chkp_get_zero_bounds_var): Remove node search which
34276         is now performed in chkp_make_static_const_bounds.
34277         (chkp_get_none_bounds_var): Likewise.
34279 2015-04-08  Michael Witten  <mfwitten@gmail.com>
34281         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34282         to an example.
34284 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34286         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34288 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34290         * doc/extend.texi (__sync Builtins): Fix grammar.
34292 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34294         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34296 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34298         * varasm.c (emit_local): Move definition of align.
34300 2015-04-08  Julian Brown  <julian@codesourcery.com>
34302         * config/nvptx/mkoffload.c (process): Support variable mapping.
34304 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
34306         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34307         alpha_links **.
34308         (alpha_write_one_linkage): Correct typo.
34310 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34312         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34314 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34316         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34318 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34320         * tree-chkp.h (chkp_insert_retbnd_call): New.
34321         * tree-chkp.c (chkp_insert_retbnd_call): New.
34322         * ipa-split.c (insert_bndret_call_after): Remove.
34323         (split_function): Use chkp_insert_retbnd_call.
34324         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34325         bounds for instrumented functions.
34327 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
34329         PR ipa/65540
34330         * calls.c (initialize_argument_information): When producing tail
34331         call also turn SSA_NAMES passed by references to original PARM_DECLs
34333 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
34335         PR target/65648
34336         * lra-remat.c (do_remat): Process input and non-input insn
34337         registers separately.
34339 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34341         PR debug/65678
34342         * valtrack.c (debug_lowpart_subreg): New function.
34343         (dead_debug_insert_temp): Use it.
34345         PR middle-end/65680
34346         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34347         into signed HOST_WIDE_INT the same as negative bit_offset.
34349 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
34351         * ipa-comdats.c (ipa_comdats): Visit all thunks
34352         to set proper comdat group.
34354 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34356         PR target/65489
34357         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34358         on constants for NEON VSTRUCT modes.
34360 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34361             Iain Sandoe  <iain@codesourcery.com>
34363         PR target/65351
34364         * configure: Regenerate.
34366 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34368         PR target/65614
34369         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34370         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34371         that LFD is used to load double constants instead of LFS.  Add
34372         defaults for all costs structures.  Add comments for missing
34373         initialization fields.
34374         (size32_cost): Likewise.
34375         (size64_cost): Likewise.
34376         (rs64a_cost): Likewise.
34377         (mpccore_cost): Likewise.
34378         (ppc403_cost): Likewise.
34379         (ppc405_cost): Likewise.
34380         (ppc440_cost): Likewise.
34381         (ppc476_cost): Likewise.
34382         (ppc601_cost): Likewise.
34383         (ppc603_cost): Likewise.
34384         (ppc604_cost): Likewise.
34385         (ppc604e_cost): Likewise.
34386         (ppc620_cost): Likewise.
34387         (ppc630_cost): Likewise.
34388         (ppccell_cost): Likewise.
34389         (ppc750_cost): Likewise.
34390         (ppc7450_cost): Likewise.
34391         (ppc8540_cost): Likewise.
34392         (ppce300c2c3_cost): Likewise.
34393         (ppce500mc_cost): Likewise.
34394         (ppce500mc64_cost): Likewise.
34395         (ppce5500_cost): Likewise.
34396         (ppce6500_cost): Likewise.
34397         (titan_cost): Likewise.
34398         (power4_cost): Likewise.
34399         (power6_cost): Likewise.
34400         (power7_cost): Likewise.
34401         (power8_cost): Likewise.
34402         (ppca2_cost): Likewise.
34403         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34405         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34406         instead of XXLOR to copy SFmode to clear out dirty bits created
34407         when SFmode denormals are generated.
34408         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34409         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34411 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34413         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34414         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34415         * config/aarch64/aarch64-tune.md: Regenerate.
34417 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34419         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34420         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34421         * config/arm/arm-cores.def (exynos-m1): New core.
34422         * config/arm/arm-tune.md: Regenerate.
34423         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34424         * config/arm/bpabi.h: Likewise.
34426 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34428         * ipa-cp (set_single_call_flag): Remove too
34429         restrictive assert.
34431 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
34433         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34434         GOMP_offload_unregister from the destructor.
34436 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34438         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34439         flags for instrumentation thunk.
34440         (chkp_produce_thunks): Likewise.
34442 2015-04-05  Martin Liska  <mliska@suse.cz>
34444         PR ipa/65665
34445         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34446         has computed data structure.
34447         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34449 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
34451         * invoke.texi (inline-unit-growth): Increase growth to 20%
34452         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34454 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
34456         PR target/65647
34457         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
34458         value checking.
34459         (lra_rematerialization_iter): New.
34460         * lra.c (lra): Initialize lra_rematerialization_iter.
34461         Stop updating lra_constraint_new_regno_start after switching of
34462         inheritance and rematerialization.
34463         * lra-remat.c (lra_rematerialization_iter): New.
34464         (lra_remat): Add printing pass iteration.  Do rematerialization
34465         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34467 2015-04-04  Richard Biener  <rguenther@suse.de>
34469         PR tree-optimization/64909
34470         PR tree-optimization/65660
34471         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34472         to take a cost vector for scalar iteration cost.
34473         (vect_get_single_scalar_iteration_cost): Likewise.
34474         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34475         Compute the scalar iteration cost into a cost vector.
34476         (vect_get_known_peeling_cost): Use the scalar cost vector to
34477         account for the cost of the peeled iterations.
34478         (vect_estimate_min_profitable_iters): Likewise.
34479         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34480         Likewise.
34482 2015-04-04  Alan Modra  <amodra@gmail.com>
34484         PR target/65576
34485         PR target/65240
34486         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34487         0.0 constant unless TARGET_VSX.
34488         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34489         alternative.
34491 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34493         PR ipa/65654
34494         * ipa-inline-transform.c (inline_call): Skip sanity check to work
34495         around the ICE
34497 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34499         PR ipa/65655
34500         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34501         speculative indirect edges to avoid ordering issue.
34503 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34505         PR ipa/65076
34506         * ipa-inline.c (edge_badness): Add combined size to the denominator.
34508 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
34510         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34511         TYPE_ARTIFICIAL on the .omp_data* types.
34513 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34515         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34516         instrumentation thunks.
34518 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34520         * config/i386/i386.c (ix86_expand_call): Avoid nested
34521         PARALLEL in returned call value.
34523 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34525         * lto-cgraph.c (input_cgraph_1): Always link instrumented
34526         assembler name with original one.
34528 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34530         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34532 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34534         Revert parts of r216820.
34535         * config/i386/i386.md (movqi_internal): Correct type calculation
34536         for alternatives 3 and 5.
34538 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
34540         PR preprocessor/61977
34541         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34542         predefine __vector/__bool/__pixel macros nor context sensitive
34543         macros for CLK_ASM.
34544         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34546 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
34548         * config/pa/pa.c (pa_output_move_double): Directly handle register
34549         indexed memory operand.  Simplify handling of scaled register indexed
34550         memory operands.
34552 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34554         PR driver/65444
34555         * config/i386/linux-common.h (MPX_SPEC): New.
34556         (CHKP_SPEC): Add MPX_SPEC.
34557         * doc/invoke.texi (-fcheck-pointer-boudns): Document
34558         possible issues with '-z bndplt' support in linker.
34560 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34562         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34563         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34564         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34565         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34566         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34568 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
34570         * config/i386/sync.md (UNSPEC_MOVA): Remove.
34571         (atomic_load<mode>): Change operand 0 predicate to
34572         nonimmediate_operand and fix up the destination when needed.
34573         Use UNSPEC_LDA.
34574         (atomic_loaddi_fpu): Use UNSPEC_LDA.
34575         (atomic_store<mode>): Change operand 1 predicate to
34576         nonimmendate_operand and move the source to register when needed.
34577         Use UNSPEC_STA.
34578         (atomic_store<mode>_1): Use UNSPEC_STA.
34579         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34580         Fix moves from memory operand.  Use UNSPEC_STA.
34582 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34584         * expmed.c (strict_volatile_bitfield_p): Check that the access will
34585         not cross a MODESIZE boundary.
34586         (store_bit_field, extract_bit_field): Added assertions in the
34587         strict volatile bitfields code path.
34589 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34591         PR target/65624
34592         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34593         Increase args array size by one to avoid buffer overflow.
34595 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34597         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34598         split_part.
34599         * ipa-inline.c (edge_badness): Add wrapper penalty.
34600         (sum_callers): Move up.
34601         (inline_small_functions): Set single_caller.
34602         * ipa-inline.h (inline_summary): Add single_caller.
34603         * ipa-split.c (split_function): Set split_part.
34604         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34605         * cgraph.h (cgraph_node): Add split_part.
34607 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
34609         PR target/58945
34610         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34611         Do not split operands 0 and operands 2 to halfmode.
34612         (atomic_compare_and_swap<mode>): Update for
34613         atomic_compare_and_swap<dwi>_doubleword changes.
34615 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34617         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34618         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34619         no caching is done.
34621 2015-03-31  Martin Liska  <mliska@suse.cz>
34623         PR ipa/65557
34624         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34625         has already filled up function summary.
34626         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34628 2015-03-31  Richard Biener  <rguenther@suse.de>
34630         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34631         of types.
34633 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34635         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34636         nested functions.
34637         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34638         (s390_asm_output_function_label): Adapt to new signature of
34639         s390_function_num_hotpatch_hw
34640         Optimise the code generating assembler output.
34641         Add comments to assembler file.
34643 2015-03-31  Richard Biener  <rguenther@suse.de>
34645         PR middle-end/65626
34646         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34647         of the noreturn call so it is last and cleanup_control_flow_bb
34648         can do the CFG part.
34650 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
34652         PR target/65531
34653         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34654         same_comdat_group for external symbols.
34655         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34656         infinite same_comdat_group traversal loop.
34658 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
34660         PR plugins/61176
34661         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34662         automatically to $headers.
34664 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
34666         PR ipa/65610
34667         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34668         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34669         function.
34670         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34671         Use it.
34672         * ipa-prop.c (param_type_may_change_p): Likewise.
34673         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34674         (remove_unused_scope_block_p): Add in_ctor_dtor_block
34675         argument.  Before inlining, preserve
34676         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34677         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
34678         recursive calls.
34679         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34681 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34683         PR ipa/65076
34684         * ipa-inline.c (edge_badness): Base denominator on callee's
34685         grwoth squared.
34687 2015-03-27  Martin Jambor  <mjambor@suse.cz>
34689         PR ipa/65478
34690         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34691         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34692         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34693         node_calling_single_call.
34694         * ipa-cp.c (count_callers): New function.
34695         (set_single_call_flag): Likewise.
34696         (initialize_node_lattices): Count callers and set single_flag_call if
34697         necessary.
34698         (incorporate_penalties): New function.
34699         (good_cloning_opportunity_p): Use it, dump new flags.
34700         (propagate_constants_topo): Set node_within_scc flag if appropriate.
34701         * doc/invoke.texi (ipa-cp-recursion-penalty,
34702         ipa-cp-single-call-pentalty): Document.
34704 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34706         PR ipa/65588
34707         * symtab.c (symtab_node::get_partitioning_class): Register vars
34708         are duplicated.
34709         * varpool.c (symbol_table::output_variables) Do not assemble unefined
34710         decls for non-symbols.
34712 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
34714         PR target/65248
34715         * output.h (default_binds_local_p_2): New.
34716         * varasm.c (default_binds_local_p_2): Renamed to ...
34717         (default_binds_local_p_3): This.  Don't return true on protected
34718         data symbol if protected data may be external.
34719         (default_binds_local_p): Use default_binds_local_p_3.
34720         (default_binds_local_p_1): Likewise.
34721         (default_binds_local_p_2): New.
34722         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34723         default_binds_local_p_2 if TARGET_MACHO is undefined.
34725 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
34727         PR target/65593
34728         * config/i386/i386.c (legitimize_pic_address): If base
34729         is SYMBOL_REF or LABEL_REF using %rip addressing, force
34730         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34732 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34734         PR target/65531
34735         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34736         comdat groups.
34738 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34740         PR ipa/65600
34741         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34742         of optimized out indirect call.
34743         (redirect_to_unreachable): Always build symbol table node for
34744         BUILT_IN_UNREACHABLE
34746 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
34748         PR target/65407
34749         * ira-costs.c (record_reg_classes): Process all constraint string
34750         containing 0-9.
34752 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
34754         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34755         memory_operand.
34757         PR target/65052
34758         * config/c6x/constraints.md (S3): New constraint.
34759         * config/c6x/c6x.md (real_jump): Use it.
34761 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34763         PR middle-end/65595
34764         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34765         do redirection if the call is not optimized out.
34767 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34769         PR target/65495
34770         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34771         (fchkp-check-incomplete-type): Add LTO.
34772         (fchkp-zero-input-bounds-for-main): Likewise.
34773         (fchkp-first-field-has-own-bounds): Likewise.
34774         (fchkp-narrow-bounds): Likewise.
34775         (fchkp-narrow-to-innermost-array): Likewise.
34776         (fchkp-use-static-bounds): Likewise.
34777         (fchkp-use-static-const-bounds): Likewise.
34778         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34780 2015-03-27  Marek Polacek  <polacek@redhat.com>
34782         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34784 2015-03-27  Marek Polacek  <polacek@redhat.com>
34786         PR sanitizer/65583
34787         * ubsan.c (ubsan_create_edge): New function.
34788         (instrument_bool_enum_load): Call it.
34789         (instrument_nonnull_arg): Likewise.
34790         (instrument_nonnull_return): Likewise.
34791         (instrument_object_size): Likewise.
34793 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34795         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34796         auto_vec.
34798 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34800         PR lto/65536
34801         * lto-streamer.h (class lto_location_cache): New.
34802         (struct data_in): Add location_cache.
34803         (lto_input_location): Update prototype.
34804         (stream_input_location_now): New.
34805         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34806         pointer to location.
34807         (stream_input_location): Update.
34808         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34809         (warn_odr): Apply location cache before warning.
34810         (lto_input_location): Update prototype.
34811         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34812         Use stream_input_location_now.
34813         * lto-streamer-in.c (lto_location_cache::current_cache): New static
34814         variable.
34815         (lto_location_cache::cmp_loc): New function.
34816         (lto_location_cache::apply_location_cache): New function.
34817         (lto_location_cache::accept_location_cache): New function.
34818         (lto_location_cache::revert_location_cache): New function.
34819         (lto_location_cache::input_location): New function.
34820         (lto_input_location): Do location caching.
34821         (stream_input_location_now): New function.
34822         (input_eh_region, input_struct_function_base): Use
34823         stream_input_location_now.
34824         (lto_data_in_create): use new.
34825         (lto_data_in_delete): Use delete.
34826         * tree-streamer-in.c (unpack_ts_block_value_fields,
34827         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34828         lto_input_ts_exp_tree_pointers): Update for cached location api.
34830 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34832         PR ipa/65076
34833         * passes.def: Add pass_nothrow.
34834         * ipa-pure-const.c: (pass_data_nothrow): New.
34835         (pass_nothrow): New.
34836         (pass_nothrow::execute): New.
34837         (make_pass_nothrow): New.
34838         * tree-pass.h (make_pass_nothrow): Declare.
34840 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34842         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34843         edge to change by speculation resolution or redirection.
34844         (edge_set_predicate): Likewise.
34845         (inline_summary_t::duplicate): Likewise.
34846         (remap_edge_summaries): Likewise.
34848 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34850         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34851         New macros.
34852         (can_inline_edge_p): Relax option matching for always inline functions.
34854 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
34856         PR target/65561
34857         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34858         Check operand 4 and operand 0 for equality.
34859         (avx512f_vextract<shuffletype>32x4_1_maskm):
34860         Check operand 6 and operand 0 for equality.
34861         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34862         for equality.
34863         (vec_extract_hi_<mode>_maskm): Ditto.
34865 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34867         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34868         dead calls back to live.
34869         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34870         cross check to ...
34871         (cgraph_node::verify_node): ... here; verify only callee edges,
34872         not caller.
34873         * cif-code.def (CILK_SPAWN): New code.
34875 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34877         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34878         (edge_set_predicate): Use it to mark unreachable edges.
34879         (inline_summary_t::duplicate): Remove unnecesary code.
34880         (remap_edge_summaries): Likewise.
34881         (dump_inline_summary): Report contains_cilk_spawn.
34882         (compute_inline_parameters): Compute contains_cilk_spawn.
34883         (inline_read_section, inline_write_summary): Stream
34884         contains_cilk_spawn.
34885         * ipa-inline.c (can_inline_edge_p): Do not touch
34886         DECL_STRUCT_FUNCTION that may not be available;
34887         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34888         remove check for callee_fun->can_throw_non_call_exceptions and
34889         replace it by optimization attribute check; check for flag_exceptions.
34890         * ipa-inline-transform.c (inline_call): Maintain
34891         DECL_FUNCTION_PERSONALITY
34892         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34894 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34896         PR tree-optimization/65551
34897         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34898         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34900 2015-03-26  Richard Biener  <rguenther@suse.de>
34902         PR middle-end/65555
34903         * tree-cfg.c (verify_gimple_call): Do not require a call to
34904         have no LHS if it wasn't recognized as control altering yet.
34906 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34908         PR tree-optimization/64715
34909         * passes.def: Add another instance of pass_object_sizes before ccp1.
34910         * tree-object-size.c (pass_object_sizes::execute): In
34911         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34912         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34913         __bos result and the computed constant.  Remove redundant
34914         checks, obsoleted by gimple_call_builtin_p test.
34916         * var-tracking.c (variable_tracking_main_1): Don't track
34917         variables for targetm.no_register_allocation targets.
34919 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
34921         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34922         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34924 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
34926         PR target/65569
34927         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34928         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
34929         0.0 is correctly setup.
34930         (extenddftf2_internal): Likewise.
34932 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
34934         PR tree-optimization/65177
34935         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34936         (bb_in_bbs): New.
34937         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
34938         edges not adjacent on the path to the original code.
34940 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
34942         PR bootstrap/65537
34943         * doc/install.texi (Building a native compiler): Document new
34944         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
34945         configuration assumes that the host supports the linker plugin.
34947 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34949         PR target/65508
34950         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34951         chain for generated call.
34953 2015-03-25  Richard Biener  <rguenther@suse.de>
34955         * passes.c (pass_manager::execute_early_local_passes): Guard
34956         execution of pass_chkp_instrumentation_passes with
34957         flag_check_pointer_bounds.
34958         (pass_chkp_instrumentation_passes::gate): Likewise.
34960 2015-03-25  Martin Liska  <mliska@suse.cz>
34962         PR tree-optimization/65538
34963         * symbol-summary.h (function_summary::~function_summary):
34964         Relese memory for allocated summaries.
34965         (function_summary::release): New function.
34967 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
34969         PR lto/65515
34970         * lto-streamer-out.c (DFS::worklist): New struct.
34971         (DFS::worklist_vec): New data member.
34972         (DFS::next_dfs_num): Remove.
34973         (DFS::DFS): Rewritten using worklist instead of recursion,
34974         using most of code from DFS::DFS_write_tree.
34975         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34976         pass it to DFS_write_tree calls.
34977         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34978         quick initial checks push it into worklist_vec and return.
34980 2015-03-25  Richard Biener  <rguenther@suse.de>
34982         PR middle-end/65519
34983         * genmatch.c (expr::gen_transform): Re-write to avoid
34984         using gimple_build.
34986 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34988         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34990 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34992         * config/arm/arm.opt (print_tune_info): New option.
34993         * config/arm/arm.c (arm_print_tune_info): New function.
34994         (arm_file_start): Call arm_print_tune_info.
34995         * config/arm/arm-protos.h (struct tune_params): Add comment.
34996         * doc/invoke.texi (@item -mprint-tune-info): New item.
34997         (-mtune): mention it in ARM Option Summary.
34999 2015-03-25  DJ Delorie  <dj@redhat.com>
35001         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35002         correct clause.
35004 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
35005             Martin Liska  <mliska@suse.cz>
35007         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35008         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35009         (sem_item::add_type): New function.
35010         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35011         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35012         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35013         (sem_function::equals_wpa): Fix typo.
35014         * ipa-icf.h (sem_item::add_type): New function.
35015         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35016         order.
35018 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
35020         PR tree-optimization/65533
35021         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35022         with swapped operands, call vect_free_slp_tree on
35023         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35024         vector.
35026 2015-03-24  Richard Biener  <rguenther@suse.de>
35028         PR middle-end/65517
35029         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35030         for fixup if necessary.
35032 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
35034         * doc/extend.texi (Function Attributes): Add @cindex entries
35035         for all attributes and regularize their format.  Delete text
35036         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
35037         information about "eightbit_data", "tiny_data", and "model"
35038         variable attributes to the Variable Attributes section.  Fix
35039         some obvious typos and copy-editing issues.
35040         (Variable Attributes, Type Attributes): Likewise add/fix
35041         @cindex entries for all attributes.
35043 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35045         PR target/65523
35046         * tree-chkp.c (chkp_build_returned_bound): Ignore
35047         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35049 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
35051         PR target/65505
35052         * config/sh/predicates.md (simple_mem_operand,
35053         displacement_mem_operand): Add test for reg.
35054         (short_displacement_mem_operand): Test for displacement_mem_operand
35055         before invoking sh_disp_addr_displacement.
35056         * config/sh/constraints.md (Sdd, Sra): Simplify.
35057         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35058         Remove redundant displacement_mem_operand tests.
35060 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
35062         PR target/65296
35063         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35064         the same -mmcu=MCU more than once.
35066 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35068         PR bootstrap/65522
35069         * ipa-devirt.c: Remove duplicate demangle.h include.
35071         PR target/65504
35072         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35073         on the pseudo.
35074         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35075         REG_POINTER on *destptr after adjusting it for prologue size.
35077         PR ipa/65521
35078         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35079         ultimate_alias_target ()->order ints instead of
35080         ultimate_alias_target () pointers.
35082 2015-03-23  Richard Biener  <rguenther@suse.de>
35084         PR tree-optimization/65518
35085         * tree-vect-stmts.c (vectorizable_load): Reject single-element
35086         interleaving cases we generate absymal code for.
35088 2015-03-23  Richard Biener  <rguenther@suse.de>
35090         PR tree-optimization/65494
35091         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35092         matches here.
35093         (vect_analyze_slp_instance): But do that here, always and once.
35095 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35097         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35098         adding T or multiplying by T+1 and subracting T.
35100 2015-03-22  Jeff Law  <law@redhat.com>
35102         PR rtl-optimization/64317
35103         * Makefile.in (OBJS): Add gcse-common.c
35104         * gcse.c: Include gcse-common.h
35105         (struct modify_pair_s): Move structure definition to gcse-common.h
35106         (compute_transp): Move function to gcse-common.c.
35107         (canon_list_insert): Similarly.
35108         (record_last_mem_set_info): Break out some code and put it into
35109         gcse-common.c.  Call into the new common code.
35110         (compute_local_properties): Pass additional arguments to compute_transp.
35111         * postreload-gcse.c: Include gcse-common.h and df.h
35112         (modify_mem_list_set, blocks_with_calls): New variables.
35113         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35114         (get_bb_avail_insn): Pass in the expression index too.
35115         (alloc_mem): Allocate memory for the new bitmaps and lists.
35116         (free_mem): Free memory for the new bitmaps and lists.
35117         (insert_expr_in_table): Record a bitmap index for each entry we
35118         add to the table.
35119         (record_last_mem_set_info): Call into common code in gcse-common.c.
35120         (get_bb_avail_insn): If no available insn was found in the requested
35121         BB.  If BB has a single predecessor, see if the expression is
35122         transparent in BB and available in that single predecessor.
35123         (compute_expr_transp): New wrapper for compute_transp.
35124         (eliminate_partially_redundant_load): Pass expression's bitmap_index
35125         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
35126         (gcse_after_reload_main): If there are elements in the hash table,
35127         then compute transparency for all the elements in the hash table.
35128         * gcse-common.h: New file.
35129         * gcse-common.c: New file.
35131 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
35133         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35134         as an adjective.
35135         (System Headers): Likewise.
35136         (Ifdef): Likewise.
35137         (Traditional macros): Likewise.
35138         (Invocation): Likewise.
35139         (Option Index): Likewise.
35140         * doc/cppopts.texi (-M): Likewise.
35141         (-finput-charset): Likewise.
35142         (--help): Likewise.
35143         * doc.invoke.texi (AVR Options): Likewise.
35144         (V850 Options): Likewise.
35146 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
35148         PR ipa/65475
35149         * ipa-devirt.c: Include demangle.h
35150         (odr_type_d): Add field rtti_broken.
35151         (odr_subtypes_equivalent_p): Do not require name to match.
35152         (compare_virtual_tables): Fix typo; if type already has ODR violation,
35153         bypass the tests; be ready for function referneces in vtables that are
35154         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35155         (warn_odr): Give up for nameless types.
35156         (warn_types_mismatch): Report mismatch in mangled names;
35157         report mismatch in anonymous namespaces; look into component types to
35158         give useful error; report when mismatch is dragged in from other ODR
35159         type.
35160         (odr_types_equivalent_p): Match types for being polymorphic; avoid
35161         duplicated diagnostics.
35162         (add_type_duplicate): Reorder checks so more informative ones come
35163         first; fix typo; do not output "the extra base is defined here" when
35164         we did not warn.
35165         (BINFO_N_BASE_BINFOS): Relax sanity check.
35167 2015-03-22  Martin Liska  <mliska@suse.cz>
35168             Jakub Jelinek  <jakub@redhat.com>
35170         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35171         masks that can potentially include a builtin.
35172         (ix86_add_new_builtins): Introduce fast filter for isa values
35173         that cannot trigger builtin inclusion.
35175 2015-03-22  Martin Liska  <mliska@suse.cz>
35177         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35178         (sem_item::update_hash_by_local_refs): Likewise.
35179         (sem_variable::get_hash): Empty line is fixed.
35180         (sem_item_optimizer::execute): Include adding of hash references.
35181         (sem_item_optimizer::update_hash_by_addr_refs): New function.
35182         (sem_item_optimizer::build_hash_based_classes): Use local hash.
35183         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35184         (sem_item::update_hash_by_local_refs): Likewise.
35186 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35188         PR ipa/65502
35189         * ipa-comdats.c (enqueue_references): Walk through thunks.
35190         (ipa_comdats): Likewise.
35191         (set_comdat_group_1): New function.
35193 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35195         PR ipa/65475
35196         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35197         non-polymorphic
35199 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
35200             Gerald Pfeifer  <gerald@pfeifer.com>
35202         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35204 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
35205             Sandra Loosemore  <sandra@codesourcery.com>
35207         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35208         function parameter declaration.
35209         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35210         Update arguments to nios2_adjust_call_address().
35211         (sibcall_internal): Rename from *sibcall.
35212         (sibcall_value_internal): Rename from *sibcall_value.
35213         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35214         (nios2_large_got_address): Add target temp reg parameter.
35215         (nios2_got_address): Adjust call to nios2_large_got_address, add
35216         force_reg around it.
35217         (nios2_load_pic_address): Add target temp reg parameter, replace call
35218         to nios2_got_address with corresponding code.
35219         (nios2_legitimize_constant_address): Update call to
35220         nios2_load_pic_address.
35221         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35222         to use temp reg for PIC loading purposes.
35223         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35224         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35225         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35227 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35229         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35230         usage of "the @option{...}".
35231         (-Wopenmp-simd): Likewise.
35232         (-fsanitize-recover): Likewise.
35233         (-fsanitize-undefined-trap-on-error): Likewise.
35234         (-flto): Likewise.
35235         (tracer-dynamic-coverage-feedback): Likewise.
35236         (reorder-block-duplicate-feedback): Likewise.
35237         (loop-unroll-jam-size): Likewise.
35238         (-B): Likewise.
35239         (-I-): Likewise.
35240         (-mabs=legacy): Likewise.
35241         (-mupper-regs-df): Likewise.
35242         (-mupper-regs-sf): Likewise.
35243         (-mpointers-to-nested-functions): Likewise.
35245 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35247         * doc/extend.texi (Cilk Plus Builtins): Add markup.
35249 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35251         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35252         additional index entries and cross-references.
35253         (-fchkp-check-incomplete-type): Likewise.
35254         (-fchkp-first-field-has-own-bounds): Likewise.
35255         (-fchkp-narrow-to-innermost-array): Likewise.
35256         (-fchkp-use-fast-string-functions): Likewise.
35257         (-fchkp-use-nochk-string-functions): Likewise.
35258         (-fchkp-use-static-const-bounds): Likewise.
35259         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35260         (-fchkp-instrument-marked-only): Likewise.
35261         (-fchkp-use-wrappers): Likewise.
35262         (-static-libmpx): Likewise.
35263         (-static-libmpxwrappers): Likewise.
35264         * doc/extend.texi (bnd_legacy): Likewise.
35265         (bnd_instrument): Likewise.
35266         (bnd_variable_size): Likewise.
35267         (Pointer Bounds Checker builtins): Likewise.
35269 2015-03-21  Tom de Vries  <tom@codesourcery.com>
35271         PR tree-optimization/65458
35272         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35273         * cgraph.h (cgraph_node): Add parallelized_function field.
35274         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35275         (input_overwrite_node): Read parallelized_function field.
35276         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35277         parallelized_function on cgraph_node for child_fn.
35278         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35279         Remove include of gt-tree-parloops.h.
35280         (parallelized_functions): Remove static variable.
35281         (parallelized_function_p): Rewrite using parallelized_function field of
35282         cgraph_node.
35283         (create_loop_fn): Remove adding to parallelized_functions.
35284         * Makefile.in (GTFILES): Remove tree-parloops.c
35286 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
35288         PR rtl-optimization/64366
35289         * lra.c (lra_update_insn_regno_info): Consider regs in
35290         CALL_INSN_FUNCTION_USAGE memory.
35292 2015-03-20  Richard Biener  <rguenther@suse.de>
35294         PR middle-end/64715
35295         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35296         for type comparison and gcc_checking_assert.
35297         (chrec_fold_plus_poly_poly): Likewise.
35298         (chrec_fold_multiply_poly_poly): Likewise.
35299         (chrec_convert_1): Likewise.
35300         * gimplify.c (gimplify_expr): Remove premature folding of
35301         &X + CST to &MEM[&X, CST].
35303 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35305         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35306         already is final.
35307         (ipa_inline): Recompute inline_failed codes.
35308         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35309         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35310         CIF_FINAL_ERROR.
35312 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
35314         PR rtl-optimization/60851
35315         * recog.c (constrain_operands): Accept a pseudo register before reload
35316         for LRA enabled targets.
35318 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
35320         PR target/65240
35321         * config/rs6000/predicates.md (easy_fp_constant): Remove special
35322         -ffast-math handling that kept non-0 constants live in the RTL
35323         until reload.  Remove logic testing the number of instructions it
35324         took to create a constant in a GPR that was never used, due to a
35325         test for soft-float earlier.
35326         (memory_fp_constant): Delete, no longer used.
35328         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35329         alternatives for loading non-0 constants into GPRs for hard
35330         floating point that is no longer needed due to changes in
35331         easy_fp_constant.  Add support for loading 0.0 into GPRs.
35332         (mov<mode>_hardfloat32): Likewise.
35333         (mov<mode>_hardfloat64): Likewise.
35334         (mov<mode>_64bit_dm): Likewise.
35335         (movtd_64bit_nodm): Likewise.
35336         (pre-reload move FP constant define_split): Delete define_split,
35337         since it is no longer used.
35338         (extenddftf2_internal): Remove GHF constraints that are not valid
35339         for extenddftf2.
35341 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
35343         PR rtl-optimization/63491
35344         * lra-constraints.c (check_and_process_move): Use src instead of
35345         sreg.  Remove some dead code.
35347 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
35349         PR ipa/65380
35350         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35351         (sem_variable::merge): Likewise.
35353 2015-03-19  Martin Liska  <mliska@suse.cz>
35355         PR ipa/65465
35356         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35357         all fields of cgraph_thunk_info.
35359 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35361         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35362         clone instrumented thunks.
35364 2015-03-19  Richard Biener  <rguenther@suse.de>
35366         Revert
35367         2015-03-10  Richard Biener  <rguenther@suse.de>
35369         PR middle-end/63155
35370         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35371         * tree-ssa-coalesce.c: Include timevar.h.
35372         (attempt_coalesce): Handle graph being NULL.
35373         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35374         Split out abnormal coalescing to ...
35375         (perform_abnormal_coalescing): ... this function.
35376         (coalesce_ssa_name): Perform abnormal coalescing without computing
35377         live/conflict.
35378         (verify_ssa_coalescing_worker): New function.
35379         (verify_ssa_coalescing): Likewise.
35381 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35382             Jakub Jelinek  <jakub@redhat.com>
35384         PR sanitizer/65400
35385         * tsan.c (instrument_gimple): Clear tail call flag on
35386         calls.
35388 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
35390         PR sanitizer/65400
35391         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35392         call in the return bb.
35393         (find_split_points): Add RETURN_BB argument, don't call
35394         find_return_bb.
35395         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
35396         if true append TSAN_FUNC_EXIT internal call after the call to
35397         the split off function.
35398         (execute_split_functions): Call find_return_bb here.
35399         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35400         Adjust find_split_points and split_function calls.
35402 2015-03-18  DJ Delorie  <dj@redhat.com>
35404         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35405         (iorqi3_virt): Likewise.
35407 2015-03-18  Tom de Vries  <tom@codesourcery.com>
35409         * tree-parloops.c (parallelize_loops): Make static.
35410         * tree-parloops.h (parallelize_loops): Remove extern declaration.
35412 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
35414         PR middle-end/64491
35415         Revert:
35416         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
35418         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35419         condition would be removed due to undefined behaviour.
35421 2015-03-18  Martin Liska  <mliska@suse.cz>
35423         PR ipa/65432
35424         * cgraph.c (cgraph_node::get_create): Remove unnecessary
35425         xstrdup_for_dump wrapper.
35426         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35427         sem_item::name.
35428         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35429         with xstrdup_for_dump.
35430         (sem_variable::equals): Likewise.
35431         (sem_item_optimizer::read_section): Use symtab_node::name instead of
35432         sem_item::name.
35433         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35434         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35435         symtab_node::asm_name with xstrdup_for_dump.
35436         (congruence_class::dump): Use symtab_node::name instead of
35437         sem_item::name.
35438         * ipa-icf.h (symtab_node::name): Remove.
35439         (symtab_node::asm_name): Likewise.
35441 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35443         PR tree-optimization/65450
35444         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35445         function.
35446         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35447         it instead of duplicate_ssa_name_ptr_info.
35449         PR target/65222
35450         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35452 2015-03-18  Richard Biener  <rguenther@suse.de>
35454         * tree-data-ref.h (struct access_matrix): Remove.
35455         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35456         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35457         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35458         (am_vector_index_for_loop): Likewise.
35459         (struct data_reference): Remove access_matrix member.
35460         (DR_ACCESS_MATRIX): Remove.
35461         (lambda_vector_new): Add comment.
35462         (lambda_matrix_new): Use XOBNEWVEC.
35464 2015-03-18  Richard Biener  <rguenther@suse.de>
35466         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35467         (pass_ch::execute): Cleanup the CFG only if we did sth.
35468         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35470 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35472         * expmed.c (synth_mult): Use std::swap instead of manually
35473         swapping algorithms.
35475 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35477         PR target/65078
35478         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35480 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
35482         PR target/65296
35483         * config/avr/avr.opt (-nodevicelib): New option.
35484         * doc/invoke.texi (AVR Options): Document it.
35485         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35486         libgcc.a, libc.a, libm.a.
35487         * config/avr/specs.h: Same.
35488         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35489         which don't (directly) depend on the device.  Print more help.
35490         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35491         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35492         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35493         case of an error.
35494         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35495         for specs file name.
35496         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35497         * config/avr/avr-mcus.def: Adjust initializers and comments.
35499 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
35501         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35502         DECL_ONE_ONLY to check if decl is one only.
35503         * ipa-split.c (consider_split): Limit splitt of one only functions.
35505 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35507         PR tree-optimization/65427
35508         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35509         functions.
35510         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35512 2015-03-16  Marek Polacek  <polacek@redhat.com>
35514         * cgraph.h (add_new_static_var): Remove declaration.
35515         * varpool.c (add_new_static_var): Remove function.
35517 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35519         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35520         instead of vec<tree> * with vec_alloc and release for args.
35521         Adjust all users.
35523         PR middle-end/65431
35524         * omp-low.c (delete_omp_context): Only splay_tree_delete
35525         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35526         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
35528 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35530         PR sanitizer/64820
35531         * cfgexpand.c (align_base): New function.
35532         (alloc_stack_frame_space): Call it.
35533         (expand_stack_vars): Align prev_frame to be sure
35534         data->asan_vec elements aligned properly.
35536 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
35538         PR middle-end/65409
35539         * expr.c (store_field): Do not do a direct block copy if the source is
35540         a PARALLEL with BLKmode.
35542 2015-03-16  Tom de Vries  <tom@codesourcery.com>
35544         PR middle-end/65414
35545         Revert:
35546         2015-03-12  Tom de Vries  <tom@codesourcery.com>
35548         PR rtl-optimization/64895
35549         * lra-lives.c (check_pseudos_live_through_calls): Use
35550         actual_call_used_reg_set instead of call_used_reg_set, if available.
35552 2015-03-16  Alan Modra  <amodra@gmail.com>
35554         PR target/63150
35555         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35556         Modify Z->r bswapdi splitter to use dest in place of scratch.
35557         In r->Z and Z->r bswapdi splitter rename word_high, word_low
35558         to word1, word2 and rearrange logic to suit.
35559         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35560         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
35561         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35562         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
35563         early clobber.
35565 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
35567         PR tree-optimization/65369
35568         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35569         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35570         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35572         PR tree-optimization/65418
35573         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35574         are casts in the first PLUS_EXPR operand, ensure tbias and
35575         *totallowp are in the inner type.
35577         PR rtl-optimization/65401
35578         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35579         argument.  If true, adjust_address_nv of x with big-endian
35580         correction for the mode widening to GET_MODE (y).
35581         (make_field_assignment): Don't do MEM mode widening here.
35582         Use MEM_P instead of GET_CODE == MEM.
35584 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
35586         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35587         the external decls.
35589 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35591         PR target/64600
35592         * config/arm/arm.c (arm_gen_constant, AND case): Use
35593         ARM_SIGN_EXTEND when constructing AND mask.
35595 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35597         * graph.c (print_graph_cfg): Make function names visible and append
35598         parenthesis to it.  Also make groups of basic blocks belonging to the
35599         same function visible.
35601 2015-03-12  Richard Biener  <rguenther@suse.de>
35603         PR middle-end/44563
35604         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35605         to avoid quadratic behavior with inline expansion splitting blocks.
35606         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35607         with the successor if the predecessor will be merged with it.
35608         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35609         entry block with its successor.
35611 2015-03-13  Richard Biener  <rguenther@suse.de>
35613         PR middle-end/44563
35614         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35615         (cleanup_tree_cfg_1): Do not call it.
35616         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35617         (fixup_noreturn_call): Mark the stmt as control altering.
35618         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35619         here.
35620         (pass_data_fixup_cfg): Produce a dump file.
35621         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35622         (need_noreturn_fixup): New global.
35623         (pass_dominator::execute): Fixup queued noreturn calls.
35624         (optimize_stmt): Queue calls that became noreturn for fixup.
35625         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35626         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35627         (el_to_fixup): New global.
35628         (eliminate_dom_walker::before_dom_childre): Queue calls that
35629         became noreturn for fixup.
35630         (eliminate): Fixup queued noreturn calls.
35631         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35632         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35633         (substitute_and_fold_dom_walker::before_dom_children): Queue
35634         alls that became noreturn for fixup.
35635         (substitute_and_fold): Fixup queued noreturn calls.
35637 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
35639         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35640         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35641         are building; for methods check ODR type of class they belong to if
35642         they may lead to a polymorphic call.
35643         (sem_function::compare_polymorphic_p): Be bit smarter about testing
35644         when function may lead to a polymorphic call.
35645         (sem_function::compare_type_list): Remove.
35646         (sem_variable::equals): Update use of compatible_types_p.
35647         (sem_variable::parse_tree_refs): Remove.
35648         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35649         cdtor.
35650         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35651         matching here.
35652         (func_checker::compatible_polymorphic_types_p): Break out from ...
35653         (unc_checker::compatible_types_p): ... here.
35654         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35655         Declare.
35656         (unc_checker::compatible_types_p): Update.
35657         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35658         Remove.
35660 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35662         PR rtl-optimization/65235
35663         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35664         When first element of vec_concat is const_int, calculate its size
35665         using second element.
35667 2015-03-12  Richard Biener  <rguenther@suse.de>
35669         PR middle-end/65270
35670         * fold-const.c (operand_equal_p): Fix ordering of resetting
35671         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35673 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35675         * config/s390/s390.c (s390_reorg): Move code to output nops after label
35676         to s390_reorg ().
35677         (s390_asm_output_function_label): Likewise.
35678         * config/s390/s390.c (s390_asm_output_function_label):
35679         Fix function label alignment with -mhtopatch.
35680         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35681         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35682         ("nop_2_byte"): New define_insn.
35683         ("nop_4_byte"): Likewise.
35684         ("nop_6_byte"): Likewise.
35685         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35686         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35688 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35690         PR target/65103
35691         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35692         register.
35694 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35696         PR target/65044
35697         * toplev.c (process_options): Restrict Pointer Bounds Checker
35698         usage with Address Sanitizer.
35700 2015-03-12  Richard Biener  <rguenther@suse.de>
35702         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35703         to split on.
35704         * omp-low.c (expand_omp_taskreg): Split block before removing
35705         the stmt.
35706         (expand_omp_target): Likewise.
35707         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35708         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35709         stmt to split_block.
35711 2015-03-12  Tom de Vries  <tom@codesourcery.com>
35713         PR rtl-optimization/64895
35714         * lra-lives.c (check_pseudos_live_through_calls): Use
35715         actual_call_used_reg_set instead of call_used_reg_set, if available.
35717 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35719         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35720         (cgraph_node::remove): Likewise.
35721         (cgraph_node::get_untransformed_body): Likewise.
35722         * varpool.c (varpool_node::remove): Likewise.
35723         (varpool_node::get_constructor): Add sanity check.
35725 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
35727         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35728         old GCC versions.
35729         (-fabi-compat-version): Likewise.
35730         (-ffriend-injection): Likewise.
35731         (-Wdeclaration-after-statement): Likewise.
35732         (-fomit-frame-pointer): Likewise.
35733         (-ftree-coalesce-inlined-vars): Likewise.
35734         (-fvisibility=): Likewise.
35735         * doc/extend.texi (Typeof): Likewise.
35736         (Zero Length): Likewise.
35737         (Escaped Newlines): Likewise.
35738         (Compound Literals): Likewise.
35739         (Function Attributes): Likewise.
35740         (Label Attributes): Likewise.
35741         (Type Attributes): Likewise.
35742         (Function Names): Likewise.
35743         (Other Builtins): Likewise.
35744         (Function Specific Option Pragmas): Likewise.
35745         (C++ Interface): Likewise.
35747 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
35749         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35751 2015-03-11  Marek Polacek  <polacek@redhat.com>
35753         PR tree-optimization/65388
35754         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35756 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35758         PR target/65296
35759         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35760         * configure: Regenerate.
35761         * config.in: Regenerate.
35762         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35763         [-mn-flash]: Document it.
35764         [__AVR_ARCH__]: Document avrtiny.
35766         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35767         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35768         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35770 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35772         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35774 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35776         PR target/65242
35777         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35778         allow reloads of PLUS in floating point/VSX registers.
35780 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
35782         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35783         crypto_sha256_fast.
35784         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35786 2015-03-11  Richard Biener  <rguenther@suse.de>
35788         PR tree-optimization/65310
35789         * tree-sra.c (build_ref_for_offset): Also preserve larger
35790         alignment.
35792 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
35794         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35796 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35798         PR target/65368
35799         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35800         new define_expand.
35801         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35803 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35805         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35806         (sem_function::equals_wpa): ... here.
35808 2015-03-10  Marek Polacek  <polacek@redhat.com>
35809             Jakub Jelinek  <jakub@redhat.com>
35811         PR sanitizer/65367
35812         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35813         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
35814         separately.
35816 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35818         PR target/65286
35819         * config/rs6000/t-linux: For powerpc64* target set
35820         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35822 2015-03-10  Richard Biener  <rguenther@suse.de>
35824         PR middle-end/44563
35825         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35826         for redirect_all_calls.
35828 2015-03-10  Marek Polacek  <polacek@redhat.com>
35830         * gdbinit.in (pcfun): Define and document.
35832 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
35834         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35835         of libgomp-plugin.h.
35836         (find_target_compiler): Support a case when the path to gcc is
35837         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35838         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35839         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35840         libgomp-plugin.h.
35841         (main): Use GCC_INSTALL_NAME as target_driver_name.
35842         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35843         define.
35844         (mkoffload.o): Remove obsolete include path and defines.
35845         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35847 2015-03-10  Richard Biener  <rguenther@suse.de>
35849         PR middle-end/63155
35850         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35851         * tree-ssa-coalesce.c: Include timevar.h.
35852         (attempt_coalesce): Handle graph being NULL.
35853         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35854         Split out abnormal coalescing to ...
35855         (perform_abnormal_coalescing): ... this function.
35856         (coalesce_ssa_name): Perform abnormal coalescing without computing
35857         live/conflict.
35858         (verify_ssa_coalescing_worker): New function.
35859         (verify_ssa_coalescing): Likewise.
35861 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35863         PR target/65296
35864         * config.gcc (extra_options) [avr]: Remove.
35865         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35866         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35867         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35869         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35870         (-mmcu=): Add Var and MissingArgError properties.
35871         (-march=): Remove.
35872         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35873         * config/avr/t-multilib: Regenerate.
35874         * config/avr/specs.h: New file.
35875         * config/avr/driver-avr.c: New file.
35876         * config/avr/genopt.sh: Remove file.
35877         * config/avr/avr-tables.opt: Remove file.
35878         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35879         * config/avr/avr-c.c: Same.
35880         * avr-arch.h: Same.
35881         (avr_current_device): Remove proto.
35882         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35883         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35884         (EXTRA_SPEC_FUNCTIONS): Define.
35885         (avr_devicespecs_file): New specs function proto.
35886         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35887         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35888         (avr_current_device): Remove definition and usage.
35889         (avr_set_core_architecture): New static function.
35890         (avr_option_override): Use it.
35891         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35892         (mcu_name): New static array.
35893         (comparator, avr_archs_str, avr_mcus_str): New static functions.
35894         (avr_inform_devices, avr_inform_core_architectures): New functions.
35895         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35896         (avrlibc.h) [WITH_AVRLIBC]: Include.
35897         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35898         (print_mcu): Rewrite from scratch.
35899         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35900         Forward to avr-specific specs defined in device-specs file.
35901         * config/avr/t-avr (driver-avr.o): New rule.
35902         (avr-devices.o): Depend on avr-arch.h.
35903         (avr-mcus): No more depend on avr-tables.opt.
35904         (avr-tables.opt): Remove rule.
35905         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35907 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35909         * c-family/c.opt (fchkp-use-wrappers): New.
35910         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35911         (chkp_wrap_function): New.
35912         (chkp_build_instrumented_fndecl): Support wrapped
35913         functions.
35914         * doc/invoke.texi (-fcheck-pointer-bounds): New.
35915         (-fchkp-check-incomplete-type): New.
35916         (-fchkp-first-field-has-own-bounds): New.
35917         (-fchkp-narrow-bounds): New.
35918         (-fchkp-narrow-to-innermost-array): New.
35919         (-fchkp-optimize): New.
35920         (-fchkp-use-fast-string-functions): New.
35921         (-fchkp-use-nochk-string-functions): New.
35922         (-fchkp-use-static-bounds): New.
35923         (-fchkp-use-static-const-bounds): New.
35924         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35925         (-fchkp-check-read): New.
35926         (-fchkp-check-write): New.
35927         (-fchkp-store-bounds): New.
35928         (-fchkp-instrument-calls): New.
35929         (-fchkp-instrument-marked-only): New.
35930         (-fchkp-use-wrappers): New.
35931         (-static-libmpx): New.
35932         (-static-libmpxwrappers): New.
35934 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35936         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35937         (CHKP_SPEC): Add wrappers library.
35938         * c-family/c.opt (static-libmpxwrappers): New.
35940 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35942         * config/i386/linux-common.h (LIBMPX_LIBS): New.
35943         (LIBMPX_SPEC): New.
35944         (CHKP_SPEC): New.
35945         * gcc.c (CHKP_SPEC): New.
35946         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35947         * c-family/c.opt (static-libmpx): New.
35949 2015-03-10  Richard Biener  <rguenther@suse.de>
35951         PR middle-end/44563
35952         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35953         for compare_type.
35954         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35955         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35956         (cgraph_add_edge_to_call_site_hash): Likewise.
35957         (cgraph_node::get_edge): Likewise.
35958         (cgraph_edge::set_call_stmt): Likewise.
35959         (cgraph_edge::remove_caller): Likewise.
35961 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
35963         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35964         (callee_saved_gpr_regs_size): ... this.
35965         (callee_saved_regs_first_regno): Rename to ...
35966         (callee_saved_first_gpr_regno): ... this.
35967         (callee_saved_regs_last_regno) Rename to ...
35968         (callee_saved_last_gpr_regno): ... this.
35969         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35970         variables.
35971         (nds32_initial_elimination_offset): Likewise.
35972         (nds32_expand_prologue): Likewise.
35973         (nds32_expand_epilogue): Likewise.
35974         (nds32_expand_prologue_v3push): Likewise.
35975         (nds32_expand_epilogue_v3pop): Likewise.
35976         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35977         Adjust renamed variables.
35978         (nds32_output_stack_pop): Likewise.
35980 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35982         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35983         code in comment.
35985 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35987         PR rtl-optimization/65321
35988         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35989         than shift mode.
35990         * var-tracking.c (use_narrower_mode): Likewise.
35992 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35994         PR tree-optimization/65355
35995         * varasm.c (notice_global_symbol): Do not produce RTL.
35996         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35997         anchor.
35998         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35999         check for section anchors.
36001 2015-03-10  Alan Modra  <amodra@gmail.com>
36003         PR target/65286
36004         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36005         to be single-arch by default.  Set cpu_is_64bit for powerpc64
36006         given --with-cpu=native.
36007         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36008         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36009         and powerpc64le.
36010         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36011         rs6000_isa_flags rather than TARGET_64BIT.
36013 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
36014             Kaz Kojima  <kkojima@gcc.gnu.org>
36016         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36018 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
36020         PR lto/65361
36021         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36022         on a TREE_BINFO, instead use BINFO_TYPE.
36024 2015-03-09  Richard Biener  <rguenther@suse.de>
36026         PR middle-end/65270
36027         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36028         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36029         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
36030         of that.  When comparing dereferences compare alignment.
36031         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36033 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36035         * ipa-inline-analysis.c (check_callers): Check
36036         node->can_remove_if_no_direct_calls_and_refs_p.
36037         (growth_likely_positive): Reorganize to call
36038         can_remove_if_no_direct_calls_p later.
36039         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36040         will_be_removed_from_program_if_no_direct_calls_p): Add
36041         will_inline parameter.
36042         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36043         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36044         Handle inliner case correctly.
36046 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36048         PR tree-optimization/63743
36049         * cfgexpand.c (reorder_operands): Also reorder if only second operand
36050         had its definition forwarded by TER.
36052 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36054         PR lto/65316
36055         * ipa-utils.h (types_odr_comparable): Add strict argument.
36056         * ipa-devirt.c: Fix whitespace;
36057         (odr_hasher): Remove.
36058         (odr_name_hasher, odr_vtable_hasher): New hashers.
36059         (can_be_name_hashed_p): New predicate.
36060         (hash_type_name): remove.
36061         (hash_odr_name): New.
36062         (odr_name_hasher::hash): new.
36063         (can_be_vtable_hashed_p): New.
36064         (hash_odr_vtable): New.
36065         (odr_vtable_hasher::hash): New.
36066         (types_same_for_odr): Add strict parameter.
36067         (types_odr_comparable): Likewise.
36068         (odr_name_hasher::equal): New.
36069         (odr_vtable_hasher::equal): New.
36070         (odr_name_hasher::remove): New.
36071         (odr_hash_type): Change to hash_table<odr_name_hasher>.
36072         (odr_vtable_hash_type): New.
36073         (odr_vtable_hash): New.
36074         (odr_subtypes_equivalent_p): Do strict comparsion.
36075         (add_type_duplicate): Merge type names; cleanup; avoid type
36076         duplicates.
36077         (register_odr_type): Initialize vtable hash.
36078         (build_type_inheritance_graph): Likewise
36079         (get_odr_type): Reorg to use two hashes.
36080         (dump_possible_polymorphic_call_targets): Move sanity check after debug
36081         output.
36082         (ipa_devirt): Dump type_inheritance_graph.
36083         (types_same_for_odr): Add strict mode.
36085 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36087         PR ipa/65334
36088         * cgraph.h (symtab_node): Add definition_alignment,
36089         can_increase_alignment_p and increase_alignment.
36090         * symtab.c (symtab_node::can_increase_alignment_p,
36091         increase_alignment_1, symtab_node::increase_alignment,
36092         symtab_node::definition_alignment): New.
36093         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36094         can_increase_alignment_p.
36095         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36096         * tree-vect-stmts.c (ensure_base_align): Likewise.
36097         * varasm.c (function_section_1): Use definition_alignment.
36098         (assemble_start_function): Likewise.
36099         (emit_local): likewise.
36100         (build_constant_desc): Likewsie.
36101         (output_constant_def_contents): Likewise.
36102         (place_block_symbol): Likewise.
36103         (output_object_block): Likewise.
36105 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36107         PR ipa/65316
36108         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36109         when outputting debug.
36111 2015-03-07  Marek Polacek  <polacek@redhat.com>
36112             Martin Uecker  <uecker@eecs.berkeley.edu>
36114         PR sanitizer/65280
36115         * doc/invoke.texi: Update description of -fsanitize=bounds.
36117 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
36119         * tree-ssa-phiopt.c (neg_replacement): Remove.
36120         (tree_ssa_phiopt_worker): Remove negate optimization.
36122 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36124         PR ipa/65302
36125         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36127 2015-03-06  Richard Biener  <rguenther@suse.de>
36129         PR middle-end/64928
36130         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36131         and liveout_obstack members.
36132         (calculate_live_on_exit): Remove.
36133         (calculate_live_ranges): Change declaration.
36134         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36135         (new_tree_live_info): Adjust.
36136         (calculate_live_ranges): Delete livein when not wanted.
36137         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36138         Deal with partly deleted live info.
36139         (loe_visit_block): Remove temporary bitmap by using
36140         bitmap_ior_and_compl_into.
36141         (live_worklist): Adjust accordingly.
36142         (calculate_live_on_exit): Make static.
36143         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36144         we do not need livein.
36146 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
36148         * real.c (real_from_string): Fix typo in assertion.
36150 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
36152         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36153         the patch.
36155 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36157         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36159 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
36161         PR target/64342
36162         * lra-assigns.c (find_hard_regno_for): Rename to
36163         find_hard_regno_for_1.  Add a new parameter.
36164         (find_hard_regno_for): New function using find_hard_regno_for_1.
36166 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36168         PR rtl-optimization/65067
36169         * expmed.c (store_bit_field, extract_bit_field): Reworked the
36170         strict volatile bitfield handling.
36172 2015-03-05  Martin Liska  <mliska@suse.cz>
36174         PR ipa/65318
36175         * ipa-icf.c (sem_variable::equals): Compare variables types.
36177 2015-03-05  Richard Henderson  <rth@redhat.com>
36179         PR target/65121
36180         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36181         correctly check weak symbol binding.
36183 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
36185         PR middle-end/65315
36186         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36187         needed alignment.
36189 2015-03-05  Martin Liska  <mliska@suse.cz>
36191         * ipa-inline.c (inline_small_functions): Set default value to
36192         prevent warning during bootstrap.
36193         * tree.h: Add pragma guard that ignores false positives during
36194         bootstrap.
36196 2015-03-05  Richard Biener  <rguenther@suse.de>
36198         PR tree-optimization/65310
36199         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36200         Properly preserve alignment of the base of the access.
36202 2015-03-05  Richard Biener  <rguenther@suse.de>
36204         PR ipa/65270
36205         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36206         Compare dependence info.
36208 2015-03-05  Richard Biener  <rguenther@suse.de>
36210         PR middle-end/65233
36211         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36212         tree-into-ssa.h.
36213         (walk_ssa_copies): Revert last chage.  Instead do not walk
36214         SSA names registered for SSA update.
36216 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36218         PR ipa/65270
36219         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36220         vtable references for their containing type.
36221         (sem_function::equals_wpa): Compare TYPE_RESTRICT
36222         and type attributes.
36224 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
36226         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36227         before negating it.
36228         * stor-layout.c (finalize_record_size): Revert latest change.
36230 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
36232         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36234 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36236         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36237         for correct comdat handling.
36238         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36239         Likewise.
36240         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36241         (used_from_object_file_p_worker): Remove.
36242         (cgraph_node::only_called_directly_or_alised): Add
36243         used_from_object_file_p.
36244         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36245         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36246         can_remove_if_no_direct_calls_and_refs_p.
36248 2015-03-04  Nick Clifton  <nickc@redhat.com>
36250         * config/rl78/rl78.h (enum reg_class): Remove real registers from
36251         General register class.
36252         * config/rl78/rl78-real.md: Replace general register constraints
36253         with real+virtual register constraints.
36255 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36257         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36258         from checking for -mhtm option.
36260 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36262         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36263         (struct ipa_sra_check_caller_data): Add has_thunk field.
36264         (ipa_sra_check_caller): Check for thunk.
36265         (ipa_sra_preliminary_function_checks): Give up on function with
36266         thunks.
36267         (ipa_early_sra): Use call_for_symbol_and_aliases.
36269 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
36271         PR target/65249
36272         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36273         called for __stack_chk_guard symbol.
36275 2015-03-03  DJ Delorie  <dj@redhat.com>
36277         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36278         inc/dec.
36279         (*addhi3_real): Likewise.
36280         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36281         pattern to match incrementing memory.
36282         * config/rl78/predicates.md (rl78_1_2_operand): New.
36283         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36284         it's the same and only mem.
36285         (rl78_alloc_physical_registers_op2): If there's effectively only
36286         one MEM, transcode it into HL.
36287         (rl78_far_p): Reject addresses that aren't legitimate.
36289 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36291         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36292         negating it.
36294         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36296 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36298         Implement call0 ABI for xtensa
36299         * config/xtensa/constraints.md ("a" constraint): Include stack
36300         pointer in case of call0 ABI.
36301         ("q" constraint): Make empty in case of call0 ABI.
36302         ("D" constraint): Include stack pointer in case of call0 ABI.
36303         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36304         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36305         prototypes.
36306         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36307         variable.
36308         (xtensa_regno_to_class): Make it a local variable in the
36309         function xtensa_regno_to_class.
36310         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36311         macro, function prototype and implementation.
36312         (reg_nonleaf_alloc_order): Make it a local variable in the
36313         function order_regs_for_local_alloc.
36314         (xtensa_conditional_register_usage): New function.
36315         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36316         (xtensa_valid_move): Allow direct moves to stack pointer
36317         register in call0 ABI.
36318         (xtensa_setup_frame_addresses): Only spill register windows in
36319         windowed ABI.
36320         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36321         call0 ABI respectively.
36322         (xtensa_function_arg_1): Only mark a7 register for copying in
36323         windowed ABI.
36324         (xtensa_call_save_reg): New function.
36325         (compute_frame_size): Add space for callee saved register
36326         storage to the frame size in call0 ABI.
36327         (xtensa_expand_prologue): Generate code to set up stack frame
36328         and save callee-saved registers in call0 ABI.
36329         (xtensa_expand_epilogue): New function.
36330         (xtensa_set_return_address): New function.
36331         (xtensa_return_addr): Calculate return address in call0 ABI.
36332         (xtensa_builtin_saveregs): Only mark a7 register for copying and
36333         emit copying code in windowed ABI.
36334         (order_regs_for_local_alloc): Add preferred register allocation
36335         order for non-leaf function in call0 ABI.
36336         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36337         (xtensa_asm_trampoline_template): Add trampoline generation for
36338         call0 ABI.
36339         (xtensa_trampoline_init): Add trampoline initialization for
36340         call0 ABI.
36341         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36342         functions.
36343         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36344         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36345         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36346         ABI call-used registers.
36347         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36348         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36349         call0 ABI.
36350         (REG_CLASS_CONTENTS): Include all registers into the preferred
36351         reload registers set, adjust the set in the
36352         xtensa_conditional_register_usage.
36353         (xtensa_regno_to_class): Drop variable declaration.
36354         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36355         function.
36356         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36357         respectively.
36358         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36359         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36360         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36361         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36362         location in call0 ABI.
36363         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36364         stack adjustment size when handling exception.
36365         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36366         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36367         definitions.
36368         ("return" pattern): Generate ret.n/ret in call0 ABI.
36369         ("epilogue" pattern): Expand epilogue.
36370         ("nonlocal_goto" pattern): Use default in call0 ABI.
36371         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36372         emit eh_set_a0_* depending on ABI.
36373         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36374         ("eh_set_a0_call0", "blockage"): New patterns.
36376 2015-03-03  Martin Liska  <mliska@suse.cz>
36378         PR ipa/65287
36379         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36381 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
36383         PR 65138/target
36384         * config/rs6000/rs6000-tables.opt: Regenerate table.
36386 2015-03-03  Renlin Li  <renlin.li@arm.com>
36388         * doc/md.texi (@item ^): Change ? into ^.
36390 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
36392         * doc/tm.texi: Regenerated.
36394 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36396         * builtins.c (expand_builtin_return_addr): Add
36397         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36398         surrounding #ifdef.
36399         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36400         definition to 1.
36401         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36402         Likewise.
36403         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36404         undefined.
36405         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36406         paragraph.
36408 2015-03-03  Martin Jambor  <mjambor@suse.cz>
36409             Eric Botcazou  <ebotcazou@adacore.com>
36411         * tree-sra.c (ipa_sra_check_caller_data): New type.
36412         (has_caller_p): Removed.
36413         (ipa_sra_check_caller): New function.
36414         (ipa_sra_preliminary_function_checks): Use it.
36416 2015-03-03  Martin Liska  <mliska@suse.cz>
36418         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36419         instead of if branch.
36421 2015-03-03  Martin Liska  <mliska@suse.cz>
36423         PR ipa/65282
36424         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36426 2015-03-23  Jeff Law  <law@redhat.com>
36428         PR tree-optimization/65241
36429         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36430         hash table if INSERT is true.
36432 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36434         PR target/65296
36435         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36437 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36439         PR target/64331
36440         * config/avr/avr.c (context.h, tree-pass.h): Include them.
36441         (avr_pass_data_recompute_notes): New static variable.
36442         (avr_pass_recompute_notes): New class.
36443         (avr_register_passes): New static function.
36444         (avr_option_override): Call it.
36446 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36448         Fix various problems with specs file generation.
36450         PR target/65296
36451         * config.gcc (extra_gcc_objs) [avr]: Remove.
36452         * config/avr/driver-avr.c: Remove file.
36453         * config/avr/t-avr (driver-avr.o): Remove rule.
36454         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36455         INCLUDES to build.  Depend on TM_H.
36456         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
36457         build warnings.  Fix non-matching types and non-existing %-codes.
36458         (tm.h): Include.
36459         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36460         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36461         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36462         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36463         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36464         (LIBGCC_SPEC): Remove definitions.
36466 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36468         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36469         to create a register in testing mode.
36471 2015-03-03  Martin Liska  <mliska@suse.cz>
36472             Jan Hubicka  <hubicka@ucw.cz>
36474         PR ipa/65263
36475         * cgraph.c (cgraph_node::has_thunk_p): New function.
36476         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36477         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36478         (sem_function::merge): Assert is changed.
36480 2015-03-03  Martin Liska  <mliska@suse.cz>
36481             Martin Jambor  <mjambor@suse.cz>
36483         PR ipa/65087
36484         * ipa-icf.c (sem_item_optimizer::execute): Change function
36485         return value to boolean.
36486         (sem_item_optimizer::merge_classes): Likewise.
36487         (ipa_icf_driver): Return TODO_remove_functions in case there's
36488         a merge operation processed.
36489         * ipa-icf.h: Change function return value to boolean.
36491 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
36493         PR 65138/target
36494         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36495         processor type for 64-bit little endian PowerPC.
36497         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36498         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
36499         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
36500         printing built-in mask so it does not pass NULL pointers.
36502         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36503         -mcpu=powerpc64le.
36505 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
36507         PR target/58158
36508         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36509         !ISA_HAS_FP_CONDMOVE.
36511 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
36513         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36514         reload_completed.
36516 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
36518         * doc/invoke.texi (Options for Code Generation Conventions):
36519         Fix URL of DSO paper.
36521 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36523         PR ipa/65130
36524         * ipa-inline.c (check_callers): Looks for recursion.
36525         (inline_to_all_callers): Give up on uninlinable or recursive edges.
36526         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36527         summary of inline clones.
36528         (do_estimate_growth_1): Fix recursion check.
36530 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36532         PR ipa/64988
36533         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36534         comdat groups.
36536 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36537             Aldy Hernandez  <aldyh@redhat.com>
36539         PR lto/65276
36540         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36541         when checking TYPE_BINFO.
36543 2015-03-02  Richard Biener  <rguenther@suse.de>
36545         PR ipa/65270
36546         * ipa-icf-gimple.c: Include builtins.h.
36547         (func_checker::compare_memory_operand): Compare base alignment.
36549 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36551         PR target/65184
36552         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36553         passed by reference.
36555 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36557         PR target/65183
36558         * tree-chkp.c (chkp_check_lower): Don't check against
36559         zero bounds for already instrumented functions.
36560         (chkp_check_upper): Likewise.
36561         (chkp_fini): Clean pass local data to avoid wrong reusage.
36563 2015-02-28  Martin Liska  <mliska@suse.cz>
36564             Jan Hubicka  <hubicka@ucw.cz>
36566         * ipa-icf.c (sem_variable::equals): Improve debug output;
36567         get variable constructor.
36568         (sem_variable::parse): Do not filter out too early; give up on
36569         volatile and register vars.
36570         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36571         variables.
36572         * ipa-icf.h (sem_variable::init): Do not set ctor.
36573         (sem_variable::ctor): Remove.
36575 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
36577         PR middle-end/65233
36578         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36580 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36582         * ipa-icf.c: Include stor-layout.h
36583         (sem_function::compare_cgraph_references): Rename to ...
36584         (sem_item::compare_cgraph_references): ... this one.
36585         (sem_variable::equals_wpa): New function
36586         (sem_variable::equals): Do not check stuff already verified by
36587         equals_wpa.
36588         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36589         * ipa-icf.h (sem_item): Add compare_cgraph_references.
36590         (sem_function): Remove compare_cgraph_references.
36591         (sem_variable): Turns equals_wpa into non-inline.
36593 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36595         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36596         (sem_item::add_expr): New function.
36597         (sem_function::hash_stmt): Handle operands of most statements.
36598         (sem_variable::get_hash): Hash the actual constructor.
36599         * ipa-icf.h (sem_item): Add add_expr.
36600         (sem_function): Update prototype of hash_stmt
36602 2015-02-28  Martin Liska  <mliska@suse.cz>
36603             Jan Hubicka  <hubicka@ucw.cz>
36605         PR ipa/65245
36606         * ipa-icf-gimple.c (func_checker::compare_function_decl):
36607         Remove.
36608         (func_checker::compare_variable_decl): Skip symtab vars.
36609         (func_checker::compare_cst_or_decl): Update.
36610         * ipa-icf.c (sem_function::parse): Do not consider aliases.
36611         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36612         use correct symtab predicates.
36613         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36614         (sem_variable::parse):  Update comment.
36615         (sem_item_optimizer::build_graph): Consider ultimate aliases
36616         for references.
36618 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36620         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36621         of OBJ_TYPE_REF.
36623 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36625         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36626         (sem_variable::merge) Likewise.
36628 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36630         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36631         target; also match flag_ipa_devirt.
36633 2015-03-01  Martin Liska  <mliska@suse.cz>
36634             Jan Hubicka  <hubicka@ucw.cz>
36636         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36637         Validate variable alignment.
36638         * ipa-icf.c (sem_function::equals_private): Be more precise
36639         about non-common function attributes.
36640         (sem_variable::equals): Likewise.
36642 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36644         PR ipa/65237
36645         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36646         across COMDAT group boundary.
36648 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36650         PR ipa/65232
36651         * ipa-icf.c (clear_decl_rtl): New function.
36652         (sem_function::merge): Clear RTL before forming alias.
36653         (sem_variable::merge): Clear RTL before forming alias.
36655 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36657         PR ipa/65236
36658         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36660 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
36662         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36663         to neon_to_gp<q>.
36665 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36667         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36668         a typo in the description.
36670 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36672         PR target/64317
36673         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36674         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36675         * lra-constraints.c: Include "params.h".
36676         (EBB_PROBABILITY_CUTOFF): Use
36677         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36678         (lra_inheritance): Use '<' instead of '<=' for
36679         EBB_PROBABILITY_CUTOFF.
36680         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36681         Document change.
36683 2015-02-27  Martin Liska  <mliska@suse.cz>
36685         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36686         vector length condition.
36688 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
36690         * doc/extend.texi (x86 transactional memory intrinsics):
36691         Reorganize discussion of _xbegin.  Clarify that the return
36692         value is a bit mask.  Expand example and move to end of section.
36694 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36695             Aldy Hernandez  <aldyh@redhat.com>
36697         PR rtl-optimization/65220
36698         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36700 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36702         PR target/65032
36703         * lra-remat.c (update_scratch_ops): New.
36704         (do_remat): Call it.
36705         * lra.c (lra_register_new_scratch_op): New. Take code from ...
36706         (remove_scratches): ... here.
36707         * lra-int.h (lra_register_new_scratch_op): New prototype.
36709 2015-02-27  Marek Polacek  <polacek@redhat.com>
36711         PR c/65040
36712         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36713         -Wformat-signedness anymore.
36715 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36717         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36718         function.
36719         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36721 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36723         * config/s390/s390.c (enum s390_builtin):
36724         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36725         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36726         (s390_init_builtins): Generate new builtin functions.
36727         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36728         (s390_sfpc, s390_efpc): New pattern definitions.
36730 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36732         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36733         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36734         (s390_builtin_decls): New array.
36735         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36736         (s390_builtin_decl): New function.
36737         (TARGET_BUILTIN_DECL): Define macro.
36739 2015-02-27  Richard Biener  <rguenther@suse.de>
36741         PR middle-end/63175
36742         * builtins.c (get_object_alignment_2): Make sure to re-apply
36743         the ANDed mask after recursing to its operand gets us a new
36744         misalignment bit position.
36746 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
36747             Martin Liska  <mliska@suse.cz>
36749         PR bootstrap/65150
36750         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36751         Use address_matters_p.
36752         (redirect_all_callers, set_addressable): New functions.
36753         (sem_function::merge): Reorganize and fix merging issues.
36754         (sem_variable::merge): Likewise.
36755         (sem_variable::compare_sections): Remove.
36756         * common.opt (fmerge-all-constants, fmerge-constants): Remove
36757         Optimization flag.
36758         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36759         redirect them.
36760         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36761         decl is used.
36762         (address_matters_1): New function.
36763         (symtab_node::address_matters_p): New function.
36764         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36765         check for merged flag.
36766         * cgraph.h (address_matters_p): Declare.
36767         (symtab_node::address_taken_from_non_vtable_p): Remove.
36768         (symtab_node::address_can_be_compared_p): New method.
36769         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36770         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36771         Remove.
36772         (comdat_can_be_unshared_p_1) Use address_matters_p.
36773         (update_vtable_references): Fix formating.
36774         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36775         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36776         * cgraphclones.c: Preserve merged and icf_merged flags.
36778 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
36780         * doc/extend.texi (Function Attributes): Fix spelling and typos.
36781         (Label Attributes): Likewise.
36782         (Cilk Plus Builtins): Likewise.
36783         (ARC SIMD Built-in Functions): Likewise.
36784         (ARM C Language Extensions (ACLE)): Likewise.
36785         (PowerPC Built-in Functions): Likewise.
36786         (PowerPC Hardware Transactional Memory Built-in Functions):
36787         Likewise.
36789 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36791         PR tree-optimization/65216
36792         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36793         new stmt and new SSA_NAME for lhs whenever the arguments have
36794         changed and weren't just swapped.  Fix comment typo.
36796         PR tree-optimization/65215
36797         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36798         for PDP endian targets.
36799         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36800         Fix up formatting issues.
36801         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
36802         size is smaller than the original, adjust MEM_REF offset by the
36803         difference of sizes.  Use is_gimple_mem_ref_addr instead of
36804         is_gimple_min_invariant test to avoid adding address temporaries.
36806 2015-02-26  Martin Liska  <mliska@suse.cz>
36807             Jan Hubicka  <hubicka@ucw.cz>
36809         PR ipa/64693
36810         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36811         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36812         (sem_item_optimizer::process_cong_reduction): Include division by
36813         sensitive references.
36814         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36815         * ipa-ref.c (ipa_ref::address_matters_p): New function.
36816         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36818 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
36820         PR target/65192
36821         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36822         Remove.
36823         * config/avr/avr.c: Same.
36824         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36825         Refuse any constant address not in 0..0xbf.
36826         * config/avr/avr.md (*mov<mode>, *movsf): Remove
36827         tiny_valid_direct_memory_access_range from insn conditions.
36828         (mov<mode>): Don't special-case expansion of avrtiny addresses.
36830 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
36832         PR target/61142
36833         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36834         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36835         * config/sh/predicates.md (const_logical_operand): New predicate.
36836         * config/sh/sh.md: Add new peephole2 patterns.
36838 2015-02-26  Marek Polacek  <polacek@redhat.com>
36840         PR ipa/65008
36841         * ipa-inline.c (early_inliner): Recompute inline parameters.
36843 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36845         PR target/65171
36846         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36847         instructions with TImode operands are included in the analysis.
36849 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36851         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36852         of an EDGE_FSM_THREAD.
36854 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36856         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36858 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
36860         PR debug/46102
36861         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36863 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36865         PR tree-optimization/65048
36866         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36867         (thread_through_all_blocks): Call valid_jump_thread_path.
36868         Remove invalid FSM jump-thread paths.
36870 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36872         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36873         (ipa_write_optimization_summaries): Likewise.
36874         * tree-streamer.h: Include data-streamer.h.
36875         (streamer_mode_table): Declare extern variable.
36876         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36877         * lto-streamer-out.c (lto_output_init_mode_table,
36878         lto_write_mode_table): New functions.
36879         (produce_asm_for_decls): Call lto_write_mode_table when streaming
36880         offloading LTO.
36881         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36882         (lto_create_simple_input_block): Add mode_table argument to the
36883         lto_input_block constructors.
36884         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36885         Likewise.
36886         * data-streamer-in.c (string_for_index): Likewise.
36887         * ipa-inline-analysis.c (inline_read_section): Likewise.
36888         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36889         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36890         * lto-streamer-in.c (lto_read_body_or_constructor,
36891         lto_input_toplevel_asms): Likewise.
36892         (lto_input_mode_table): New function.
36893         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36894         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36895         Use bp_pack_machine_mode.
36896         * real.h (struct real_format): Add name field.
36897         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36898         (class lto_input_block): Add mode_table member.
36899         (lto_input_block::lto_input_block): Add mode_table_ argument,
36900         initialize mode_table.
36901         (struct lto_file_decl_data): Add mode_table field.
36902         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36903         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36904         unpack_ts_decl_common_value_fields,
36905         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36906         * tree-streamer.c (streamer_mode_table): New variable.
36907         * real.c (ieee_single_format, mips_single_format,
36908         motorola_single_format, spu_single_format, ieee_double_format,
36909         mips_double_format, motorola_double_format,
36910         ieee_extended_motorola_format, ieee_extended_intel_96_format,
36911         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36912         ibm_extended_format, mips_extended_format, ieee_quad_format,
36913         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36914         decimal_single_format, decimal_double_format, decimal_quad_format,
36915         ieee_half_format, arm_half_format, real_internal_format): Add name
36916         field.
36917         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36919 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
36921         PR target/65161
36922         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36923         reordering for selective scheduling.
36925 2015-02-26  Terry Guo  <terry.guo@arm.com>
36927         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36928         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36929         (arm_arch_no_volatile_ce): Declare new global variable.
36930         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36931         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36932         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36933         (TARGET_NO_VOLATILE_CE): New macro.
36934         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36935         volatile memory access in IT block
36937 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36939         PR tree-optimization/61917
36940         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36941         that reduc_def_stmt is null.
36943 2015-02-25  Martin Liska  <mliska@suse.cz>
36945         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36946         hard register variables.
36948 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36950         PR target/64212
36951         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36952         (symtab::noninterposable_alias): Likewise.
36954 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36956         PR target/65167
36957         * config/i386/i386.c (ix86_function_arg_regno_p): Support
36958         bounds registers.
36959         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36961 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
36963         PR target/64997
36964         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36965         as split condition; force split via '#' in output pattern.
36967 2015-02-25  Richard Biener  <rguenther@suse.de>
36968             Kai Tietz  <ktietz@redhat.com>
36970         PR tree-optimization/61917
36971         * tree-vect-loop.c (vectorizable_reduction): Allow
36972         vect_internal_def without reduction to exit graceful.
36974 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36976         PR target/65196
36977         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36978         only with NONDEBUG_INSN_P.
36980 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36982         Use variadic macros with avr-log.c.
36984         * config/avr/avr-protos.h (avr_vdump): New prototype.
36985         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36986         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36987         * config/avr/avr-log.c: Adjust comments.
36988         (avr_vdump): New function.
36989         (avr_vadump): Pass caller as 2nd argument instead of format string.
36990         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36991         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36993 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
36995         PR lto/64374
36996         * target.def (target_option_stream_in): New target hook.
36997         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36998         targetm.target_option.post_stream_in if non-NULL.
36999         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37000         * doc/tm.texi: Updated.
37001         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37002         function.
37003         (TARGET_OPTION_POST_STREAM_IN): Redefine.
37005 2015-02-24  Jeff Law  <law@redhat.com>
37007         PR target/65117
37008         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37009         of operand 0 and operand 2.
37010         (zero_cost_loop_end, loop_end): Similarly.
37012 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
37014         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37015         CXX_MEM_STAT_INFO.
37017 2015-02-24  DJ Delorie  <dj@redhat.com>
37019         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37020         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37021         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37022         instead of hardcoding SImode.
37024 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
37026         * omp-low.c (create_omp_child_function): Tag entrypoint
37027         functions with a special attribute.
37029 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37031         PR target/65058
37032         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37034 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
37036         PR rtl-optimization/65123
37037         * lra-remat.c (operand_to_remat): Check hard regs in insn
37038         definition too.
37040 2015-02-24  Nick Clifton  <nickc@redhat.com>
37042         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37043         to the assembler.
37045 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
37047         PR libgomp/64625
37048         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37049         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37050         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37051         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37052         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37053         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37054         (BUILT_IN_GOACC_PARALLEL): Specify as
37055         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37056         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37057         * builtin-types.def
37058         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37059         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37060         Remove function types.
37061         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37062         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37063         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37064         New function types.
37066 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
37068         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37070 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
37072         PR tree-optimization/65170
37073         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37074         if val[1] < 0, clear also val[2] and return 3.
37076 2015-02-24  Alan Modra  <amodra@gmail.com>
37078         PR target/65172
37079         * config/rs6000/rs6000.c (get_memref_parts): Only return true
37080         when *base is a reg.  Handle nested plus addresses.  Simplify
37081         pre_modify test.
37083 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
37085         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37086         use natural alignment when optimizing for size.
37088 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
37090         PR target/65153
37091         * config/sh/sh.md (movsicc_true+3): Remove peephole.
37092         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37093         * config/sh/sh.c (replace_n_hard_rtx): Remove.
37095 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
37097         PR fortran/63427
37098         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37099         too big for a wide_int.  Implement missing wrapping operation.
37101 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
37103         PR target/65163
37104         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37105         instead of const_int 4294901760.
37107 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
37109         * config/avr/t-avr: Fix typo in comment.
37111 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
37113         * doc/rtl.texi (fma): Clarify documentation.
37115 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
37117         PR debug/58123
37118         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37119         over input_location.
37121 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37123         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37124         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37125         restrict alignments to absolute_biggest_alignment.
37126         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37127         Define.
37128         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37129         * doc/tm.texi: Regenerate.
37130         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37132 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
37134         PR target/64172
37135         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37137 2015-02-20  Richard Biener  <rguenther@suse.de>
37139         PR tree-optimization/65136
37140         * tree-ssa-propagate.c: Include cfgloop.h.
37141         (replace_phi_args_in): Avoid replacing loop latch edge PHI
37142         arguments with constants.
37144 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
37145             Martin Liska  <mliska@suse.cz>
37147         PR target/63892
37148         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37149         don't try to create_thunk if stdarg_p.  If
37150         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37151         redirect_callers if possible.
37152         (sem_item_optimizer::execute): Call unregister_hooks here...
37153         (ipa_icf_driver): ... instead of here.
37155 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37157         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37158         Mark operand 0 as earlyclobber in 2nd alternative.
37159         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37160         Write negated shift amount into QI lowpart operand 0 and use it
37161         in the shift step.
37162         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37164 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37166         * cgraph.h (clone_function_name_1): Declare.
37167         * cgraphclones.c (clone_function_name_1): New function.
37168         (clone_function_name): Use it.
37169         * lto-partition.c: Include "stringpool.h".
37170         (must_not_rename, maybe_rewrite_identifier)
37171         (validize_symbol_for_target): New static functions.
37172         (privatize_symbol_name): Use must_not_rename.
37173         (promote_symbol): Call validize_symbol_for_target.
37174         (lto_promote_cross_file_statics): Likewise.
37175         (lto_promote_statics_nonwpa): Likewise.
37177 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
37179         PR target/64452
37180         * config/avr/avr.md (pushhi_insn): New insn.
37181         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37183 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37184             Jakub Jelinek  <jakub@redhat.com>
37186         * tree-streamer.c (preload_common_nodes): Don't preload
37187         TI_VA_LIST* for offloading.
37188         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37189         in_lto_p.
37191 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
37193         * config/pa/pa.c (pa_emit_move_sequence): Always force
37194         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
37195         note on insn.
37197         * config/pa/pa.c (pa_reloc_rw_mask): New function.
37198         (TARGET_ASM_RELOC_RW_MASK): Define.
37199         (pa_cannot_force_const_mem): Revert previous change.
37201 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
37202             Jan Hubicka  <hubicka@ucw.cz>
37204         PR ipa/65028
37205         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37206         across jump functions.
37208 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
37210         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37212 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
37214         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37216 2015-02-19  Richard Henderson  <rth@redhat.com>
37218         PR middle-end/65074
37219         * varasm.c (default_binds_local_p_2): Don't test node->definition;
37220         test DECL_EXTERNAL independent of symtab_node.
37222 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
37224         PR lto/65012
37225         * varpool.c (varpool_node::get_constructor): Return early
37226         if this->lto_file_data is NULL.
37228 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37230         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37231         (rank_for_schedule_debug): Update.
37232         (ready_sort): Make static.  Move sorting logic to ...
37233         (ready_sort_debug, ready_sort_real): New static functions.
37234         (schedule_block): Sort both debug insns and real insns in preparation
37235         for ready list trimming.  Improve debug output.
37236         * sched-int.h (ready_sort): Remove global declaration.
37238 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
37240         * ipa-icf.c (sem_function::equals_private): Adjust.
37241         (sem_function::bb_dict_test): Take a vec<int> * instead of
37242         auto_vec<int>.
37243         * ipa-icf.h (bb_dict_test): Likewise.
37245 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37247         PR gcov-profile/64634
37248         * tree-eh.c (frob_into_branch_around): Fix up typos
37249         in function comment.
37250         (lower_catch): Put eh_seq resulting from EH lowering of
37251         the cleanup sequence after the cleanup rather than before it.
37253 2015-02-18  Tom de Vries  <tom@codesourcery.com>
37255         * common.opt (fstdarg-opt): New option.
37256         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37257         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37258         (@item -fstdarg-opt): New item.
37260 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
37262         PR target/65064
37263         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37264         for common symbols.
37266 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37268         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37269         insn-modes.h.
37270         (ALL_HOST_OBJS): Add mkoffload.o.
37271         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37273 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
37275         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37276         (compare_virtual_tables): Be smarter about skipping typeinfos;
37277         do sane output on virtual table table mismatch.
37278         (warn_odr): Be ready for forward declarations of enums;
37279         output sane info on base mismatch and virtual table mismatch.
37280         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37281         when only one type is polymorphic.
37282         (get_odr_type): Fix hashtable corruption.
37283         (dump_odr_type): Dump mangled names.
37285 2015-02-18  Richard Biener  <rguenther@suse.de>
37287         PR tree-optimization/65063
37288         * tree-predcom.c (determine_unroll_factor): Return 1 if we
37289         have replaced looparound PHIs.
37291 2015-02-18  Martin Liska  <mliska@suse.cz>
37293         * lto-streamer.c (lto_streamer_init): Encapsulate
37294         streamer_check_handled_ts_structures with checking macro.
37296 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37298         PR ipa/65087
37299         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37300         section if !implicit_section.
37301         (cgraph_node::create_version_clone_with_body): Likewise.
37302         * trans-mem.c (ipa_tm_create_version): Likewise.
37304 2015-02-18  Richard Biener  <rguenther@suse.de>
37306         PR tree-optimization/62217
37307         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37308         into BIVs.
37310 2015-02-18  Marek Polacek  <polacek@redhat.com>
37312         PR sanitizer/65081
37313         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37314         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37315         is in range [-16K, -1].  Don't issue run-time error if
37316         (ptr > ptr + offset).
37318 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
37320         * doc/install.texi (nvptx-*-none): New section.
37321         * doc/invoke.texi (Nvidia PTX Options): Likewise.
37322         * config/nvptx/nvptx.opt: Update.
37324         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37325         (access_check): New functions, copied from
37326         config/i386/intelmic-mkoffload.c.
37327         (main): For non-installed testing, look in all COMPILER_PATHs for
37328         GCC_INSTALL_NAME.
37330         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37332 2015-02-18  Andrew Pinski  <apinski@cavium.com>
37333             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37335         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37336         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37338 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37340         * ipa-visibility.c (function_and_variable_visibility): Only
37341         check locality if node is not already local.
37342         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37343         call_for_symbol_and_aliases instead of
37344         call_for_symbol_thunks_and_aliases.
37345         (ipa_inline): Likewise.
37346         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37347         first walk aliases.
37348         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37349         call_for_symbol_and_aliases.
37350         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37351         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37352         (ipa_propagate_frequency): Update.
37353         (ipa_profile): Add opt_for_fn gueards.
37355 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37357         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37358         * doc/invoke.texi (SH options): Document it.
37359         * config/sh/sh.c (sh_insn_length_adjustment): Check
37360         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37362 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
37364         * common.opt (fipa-cp-alignment): New.
37365         * ipa-cp.c (ipcp_store_alignment_results): Check
37366         flag_ipa_cp_alignment.
37367         * opts.c (default_options_table): Enable -fipa-cp-alignment for
37368         -O2.
37369         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37370         * doc/invoke.texi: Document -fipa-cp-alignment.
37372 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37374         PR target/64793
37375         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37376         to nil.  Adjust comments.
37378 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37380         * ipa-visibility.c (function_and_variable_visibility): Only
37381         check locality if node is not already local.
37382         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37383         call_for_symbol_and_aliases instead of
37384         call_for_symbol_thunks_and_aliases.
37385         (ipa_inline): Likewise.
37386         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37387         first walk aliases.
37388         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37389         call_for_symbol_and_aliases.
37390         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37391         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37392         (ipa_propagate_frequency): Update.
37393         (ipa_profile): Add opt_for_fn guards.
37395 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
37397         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37398         skipping of "strange" tokens.
37400 2015-02-17  Jeff Law  <law@redhat.com>
37402         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
37403         obsolete comment.
37405 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
37407         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37408         as forcing a HARD_DEP between instructions, thereby
37409         disallowing rewriting to break dependencies.
37411 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37413         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37414         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37415         variables in boundary that have no inlitalizer encoded and are
37416         not aliases.
37417         * varasm.c (default_binds_local_p_2): External definitions do not
37418         count as definitions here.
37420 2015-02-16  Jeff Law  <law@redhat.com>
37422         PR tree-optimization/64823
37423         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37424         statements.
37425         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37426         threading through blocks with PHIs, but no statements.
37427         (thread_through_normal_block): Distinguish between blocks where
37428         we did not process all the statements and blocks with no statements.
37430 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
37431             James Greenhalgh  <james.greenhalgh@arm.com>
37433         PR ipa/64963
37434         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37435         section if not linkonce.  Fix up formatting.
37436         (cgraph_node::create_version_clone_with_body): Copy section.
37437         * trans-mem.c (ipa_tm_create_version): Likewise.
37439 2015-02-16  Richard Biener  <rguenther@suse.de>
37441         PR tree-optimization/65077
37442         * tree-ssa-structalias.c (get_constraint_for_1): Handle
37443         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37444         (find_func_aliases): Allow float values to carry pointers again.
37446 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
37448         * doc/install.texi (Specific): Reorder targets list to put
37449         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
37450         from the top menu.
37452 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
37453             David Edelsohn  <dje.gcc@gmail.com>
37455         PR target/65058
37456         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37457         mapping class to external variable or function reference.
37458         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37459         mapping class.
37461 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
37463         PR target/53348
37464         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37465         ASM_WEAKEN_DECL if defined.
37467 2015-02-16  Richard Biener  <rguenther@suse.de>
37469         PR lto/65015
37470         * varasm.c (default_file_start): For LTO produced units
37471         emit <artificial> as file directive.
37473 2015-02-16  Richard Biener  <rguenther@suse.de>
37475         PR tree-optimization/63593
37476         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37477         stmts and releasing SSA names until...
37478         (execute_pred_commoning): ... after processing all chains.
37480 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37482         PR ipa/65059
37483         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37484         external functions.
37486 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
37488         * doc/bugreport.texi: Adjust section titles throughout the file
37489         to use "Title Case".
37490         * doc/extend.texi: Likewise.
37491         * doc/gcov.texi: Likewise.
37492         * doc/implement-c.texi: Likewise.
37493         * doc/implement-cxx.texi: Likewise.
37494         * doc/invoke.texi: Likewise.
37495         * doc/objc.texi: Likewise.
37496         * doc/standards.texi: Likewise.
37497         * doc/trouble.texi: Likewise.
37499 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
37501         * cgraph.h (symtab_node::has_aliases_p): Simplify.
37502         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37503         * tree.c (lookup_binfo_at_offset): Make static.
37504         (get_binfo_at_offset): Do not shadow offset; add explanatory
37505         comment.
37507 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
37509         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37510         for all floading point loads and stores except those using a register
37511         index address.
37512         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37513         to a register.
37515 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37517         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37518         (do_estimate_growth_1): Record if any uninlinable edge was seen.
37519         (estimate_growth): Handle uninlinable edges correctly.
37520         (check_callers): New.
37521         (growth_likely_positive): Handle aliases correctly.
37523 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37525         * ipa-chkp.c: Use iterate_direct_aliases.
37526         * symtab.c (resolution_used_from_other_file_p): Move inline.
37527         (symtab_node::create_reference): Fix formating.
37528         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37529         (symtab_node::iterate_reference): Move inline.
37530         (symtab_node::iterate_referring): Move inline.
37531         (symtab_node::iterate_direct_aliases): Move inline.
37532         (symtab_node::used_from_object_file_p_worker): Inline into ...
37533         (symtab_node::used_from_object_file_p): ... this one; move inline.
37534         (symtab_node::call_for_symbol_and_aliases): Move inline;
37535         use iterate_direct_aliases.
37536         (symtab_node::call_for_symbol_and_aliases_1): New method.
37537         (cgraph_node::call_for_symbol_and_aliases): Move inline;
37538         use iterate_direct_aliases.
37539         (cgraph_node::call_for_symbol_and_aliases_1): New method.
37540         (varpool_node::call_for_node_and_aliases): Rename to ...
37541         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37542         use iterate_direct_aliases.
37543         (varpool_node::call_for_symbol_and_aliases_1): New method.
37544         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37545         (ipa_discover_readonly_nonaddressable_var): Update.
37546         * ipa-devirt.c: Fix formating.
37547         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37548         Move inline.
37549         (cgraph_node::call_for_symbol_and_aliases): Move inline.
37550         (cgraph_node::call_for_symbol_and_aliases_1): New function..
37551         * cgraph.h (used_from_object_file_p_worker): Remove.
37552         (resolution_used_from_other_file_p): Move inline.
37553         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37554         (symtab_node::iterate_reference): Move inline.
37555         (symtab_node::iterate_referring): Move inline.
37556         (symtab_node::iterate_direct_aliases): Move inline.
37557         (symtab_node::used_from_object_file_p_worker): Inline into ...
37558         (symtab_node::used_from_object_file_p): Move inline.
37559         * tree-emutls.c (ipa_lower_emutls): Update.
37560         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37561         (varpool_node::call_for_node_and_aliases): Remove.
37563 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
37565         PR tree-optimization/62209
37566         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37567         op == range->exp, insert seq and gimplified code after labels
37568         instead of after the phi.
37570 2015-02-13  Jeff Law  <law@redhat.com>
37572         PR bootstrap/65060
37573         Revert my change for tree-optimization/64823.
37575 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37577         PR tree-optimization/65053
37578         * tree-ssa-phiopt.c (value_replacement): When moving assign before
37579         cond, either reset VR on lhs or set it to phi result VR.
37581 2015-02-13  Jeff Law  <law@redhat.com>
37583         PR tree-optimization/64823
37584         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37585         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37586         threading through blocks with PHIs, but no statements.
37587         (thread_through_normal_block): Distinguish between blocks where
37588         we did not process all the statements and blocks with no statements.
37590         PR rtl-optimization/47477
37591         * match.pd (convert (plus/minus (convert @0) (convert @1): New
37592         simplifier to narrow arithmetic.
37594 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
37596         PR ipa/65028
37597         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37598         polymorphic call info when type is not known to be preserved.
37600 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
37602         PR ipa/65028
37603         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37604         (inline_call): Use it.
37606 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
37608         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37609         GOMP_DEVICE_NVIDIA_PTX.
37611 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37613         PR ipa/65034
37614         * stmt.c (emit_case_nodes): Use void_type_node instead of
37615         NULL_TREE as LABEL_DECL type.
37617 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
37619         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37620         constraints.
37621         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37622         symbolic references to data to be forced to constant memory on the
37623         SOM target.
37625 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
37627         PR tree-optimization/65002
37628         * tree-cfg.c (pass_data_fixup_cfg): Don't update
37629         SSA on start.
37630         * tree-sra.c (some_callers_have_no_vuse_p): New.
37631         (ipa_early_sra): Reject functions whose callers
37632         assume function is read only.
37634 2015-02-13  Richard Biener  <rguenther@suse.de>
37636         PR lto/65015
37637         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37638         for LTO produced CUs.
37640 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
37642         PR tree-optimization/64705
37643         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37644         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37645         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37646         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37647         expand_simple_operations.
37649 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
37650             Richard Henderson  <rth@redhat.com>
37652         PR rtl/32219
37653         * cgraphunit.c (cgraph_node::finalize_function): Set definition
37654         before notice_global_symbol.
37655         (varpool_node::finalize_decl): Likewise.
37656         * varasm.c (default_binds_local_p_2): Rename from
37657         default_binds_local_p_1, add weak_dominate argument.  Use direct
37658         returns instead of assigning to local variable.  Unify varpool and
37659         cgraph paths via symtab_node.  Reject undef weak variables before
37660         testing visibility.  Reorder tests for simplicity.
37661         (default_binds_local_p): Use default_binds_local_p_2.
37662         (default_binds_local_p_1): Likewise.
37663         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37664         via symtab_node.
37665         (default_elf_asm_output_external): Emit visibility when specified.
37667 2015-02-13  Alan Modra  <amodra@gmail.com>
37669         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37670         code setting up r11 for out-of-line fp restore.
37672 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
37674         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37675         (muser-mode): Likewise.
37677 2015-02-13  Alan Modra  <amodra@gmail.com>
37679         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37680         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37682 2015-02-12  David Howells  <dhowells@redhat.com>
37684         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37685         warning.
37686         * tree-ssa-uninit.c (dump_predicates): Likewise.
37687         * opts.c (print_filtered_help): Likewise.
37689 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37691         * dwarf2out.c (output_die): Use "%s", name instead of name to
37692         avoid -Wformat-security warning.
37694         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37695         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37696         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37697         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37699 2015-02-12  Jason Merrill  <jason@redhat.com>
37701         * common.opt (-flifetime-dse): New.
37703 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37705         PR sanitizer/65019
37706         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37708         PR tree-optimization/65014
37709         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37710         use original second operand of arg0 or arg1 instead of
37711         that adjusted by STRIP_NOPS.
37713 2015-02-11  Jeff Law  <law@redhat.com>
37715         PR target/63347
37716         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37717         that needs to be queued, just queue it for a single cycle.
37719 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
37721         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37722         bodies of thunks; comment on why.
37723         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37724         symbols are extern.
37726 2015-02-11  Richard Henderson  <rth@redhat.com>
37728         PR sanitize/65000
37729         * tree-eh.c (mark_reachable_handlers): Mark source and destination
37730         regions of __builtin_eh_copy_values.
37732 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37734         PR middle-end/65003
37735         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37736         ultimate alias is MEM with SYMBOL_REF satisfying
37737         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
37738         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37740 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
37742         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37743         "diagnostic-core.h".
37744         (main): Initialize progname, and call diagnostic_initialize.
37746         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37747         instead of __OPENMP_TARGET__.
37749         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37750         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37751         hard-coding PTX_ID.
37753 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
37755         * doc/sourcebuild.texi (pie_enabled): Document.
37757 2015-02-11  Martin Liska  <mliska@suse.cz>
37759         PR ipa/64813
37760         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37761         a return value for call to a function that is noreturn.
37763 2015-02-11  Richard Biener  <rguenther@suse.de>
37765         PR lto/65015
37766         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37767         and -fresolution.
37769 2015-02-11  Andrew Pinski  <apinski@cavium.com>
37771         PR target/64893
37772         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37773         Change the first argument type to size_type_node and add another
37774         size_type_node.
37775         (aarch64_simd_expand_builtin): Handle the new argument to
37776         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37777         print an out when the first two arguments are not
37778         nonzero integer constants.
37779         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37780         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37782 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37784         PR target/61925
37785         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37786         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37787         (ix86_set_current_function): Rewritten.
37788         (ix86_add_new_builtins): Temporarily clear current_target_pragma
37789         when creating builtin fndecls.
37791 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37793         PR ipa/65005
37794         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37795         function.
37796         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37797         have no comdat group.
37798         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37799         (lto_output_varpool_node): Always output alias info.
37800         (output_refs): Output refs of boundary aliases, too.
37801         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37802         (output_symtab): Output call eges in thunks in boundary.
37803         (get_alias_symbol): Remove.
37804         (input_node, input_varpool_node): Do not special case weakrefs.
37805         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37806         alias and thunks targets in the boundary; do not take removed symbols
37807         from their comdat groups.
37808         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37809         (cgraph_node::global_info): Remove.
37810         (cgraph_node::rtl_info): Look through aliases and thunks.
37811         * cgrpah.h (global_info): Remove.
37812         (non_local_p): Remove.
37814 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37815             Sandra Loosemore  <sandra@codesourcery.com>
37817         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37818         to inline asm.  List dialects in proper order.
37820 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37821             Sandra Loosemore  <sandra@codesourcery.com>
37823         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37825 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37827         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37828         modified) reference to Solaris.
37830 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
37832         * doc/extend.texi (Extended Asm): Fix typos.
37834 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
37836         PR sanitizer/65004
37837         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37839 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
37841         PR target/64661
37842         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37843         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37844         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37845         * config/sh/constraints.md (Ara, Add): New constraints.
37846         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37847         predicates.
37848         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37849         atomic_mem_operand_0.  Don't use force_reg on the memory address.
37850         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37851         Sra constraint.  Convert to insn_and_split.  Add workaround for
37852         PR 64974.
37853         (atomic_compare_and_swap<mode>_hard): Copy to
37854         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
37855         Use atomic_mem_operand_0 predicate.
37856         (atomic_compare_and_swap<mode>_soft_gusa,
37857         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37858         AraAdd constraints.
37859         (atomic_compare_and_swap<mode>_soft_tcb,
37860         atomic_compare_and_swap<mode>_soft_imask,
37861         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37862         atomic_mem_operand_0 predicate and SraSdd constraints.
37863         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37864         constraint.
37865         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37866         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
37867         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37868         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
37869         force_reg on the memory address.
37870         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37871         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37872         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37873         atomic_mem_operand_1 predicate and Sra constraint.
37874         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37875         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37876         Use atomic_mem_operand_1 predicate.
37877         (atomic_<fetchop_name><mode>_hard): Copy to
37878         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37879         Use atomic_mem_operand_1 predicate.
37880         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37881         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37882         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
37883         insn_and_split.  Use atomic_mem_operand_1 predicate.
37884         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37885         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
37886         Use atomic_mem_operand_1 predicate.
37887         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37888         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37889         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37890         in generated insn with original mem operand before emitting the insn.
37891         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37892         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37893         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37894         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37895         Use atomic_mem_operand_1 predicate and AraAdd constraints.
37896         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37897         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37898         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37899         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37900         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37901         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37902         atomic_not_fetch<mode>_soft_tcb,
37903         atomic_<fetchop_name>_fetch<mode>_soft_imask,
37904         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37905         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37906         Use atomic_mem_operand_1 predicate and SraSdd constraints.
37908 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
37910         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37911         and 3 earlyclobber operands.
37913 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37915         * common.opt (fstack-reuse): Mark as optimization.
37917 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37919         PR ipa/64982
37920         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37922 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
37924         PR tree-optimization/64326
37925         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37927 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
37929         PR gcov-profile/61889
37930         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37932 2015-02-10  Richard Biener  <rguenther@suse.de>
37934         PR tree-optimization/64995
37935         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37936         value we use is final.
37937         (visit_reference_op_store): Always valueize op.
37938         (visit_use): Properly valueize vuses.
37940 2015-02-10  Richard Biener  <rguenther@suse.de>
37942         PR tree-optimization/64909
37943         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37944         pass a scalar-stmt count estimate to the cost model.
37945         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37947 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
37949         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37950         enabled by default together with var-tracking.
37952 2015-02-10  Nick Clifton  <nickc@redhat.com>
37954         * config/rl78/rl78.c: Remove DIV attribute code accidentally
37955         included in previous rl78 commit.
37957 2015-02-10  Richard Biener  <rguenther@suse.de>
37959         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37960         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37961         return the bitpack.
37963 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37965         PR gcov-profile/61889
37966         * config.in: regenerate.
37967         * configure.in: Likewise.
37968         * configure.ac: Check for ftw.h.
37969         * gcov-tool.c: Check for ftw.h before using nftw.
37971 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37973         PR lto/64076
37974         * ipa-visibility.c (update_visibility_by_resolution_info): Only
37975         assert when not in lto mode.
37977 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
37979         * ira-color.c (setup_left_conflict_sizes_p): Simplify
37980         initialization/assignment of conflict_size.
37982 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
37984         PR ipa/64978
37985         * ipa-cp.c (gather_caller_stats): Skip thunks.
37986         (propagate_constants_topo): Skip aliases.
37988 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
37990         PR target/64761
37991         * config/sh/sh.c (sh_option_override): Don't change
37992         -freorder-blocks-and-partition to -freorder-blocks even when
37993         unwinding is enabled.
37994         (sh_can_follow_jump): Return false if the followee jump is
37995         a crossing jump when -freorder-blocks-and-partition is specified.
37996         * config/sh/sh.md (*jump_compact_crossing): New insn.
37998 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
37999             Kaz Kojima  <kkojima@gcc.gnu.org>
38001         PR target/64761
38002         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38003         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38004         (sh_can_redirect_branch): Rename to ...
38005         (sh_can_follow_jump): ... this.  Constify argument types.
38006         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38007         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38008         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38009         * doc/tm.texi: Regenerate.
38011 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38013         PR sanitizer/64981
38014         * builtins.c (expand_builtin): Call targetm.expand_builtin
38015         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38017 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38019         PR ipa/61548
38020         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38022 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38024         PR ipa/63566
38025         * ipa-icf.c (set_local): New function.
38026         (sem_function::merge): Use it.
38028 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38030         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38031         (add_type_duplicate): Fix comparison of BINFOs.
38033 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38035         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38036         on getting VOID pointer.
38038 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38040         PR target/64979
38041         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38042         va_list escapes.
38044 2015-02-09  Richard Biener  <rguenther@suse.de>
38046         * genmatch.c (replace_id): Copy expr_type.
38048 2015-02-09  Richard Biener  <rguenther@suse.de>
38050         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38051         (streamer_write_tree_bitfields): Declare.
38052         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38053         properly unpack padding.
38054         (unpack_value_fields): Inline ...
38055         (streamer_read_tree_bitfields): ... here.
38056         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38057         and properly add padding bits.
38058         (streamer_pack_tree_bitfields): Fold into ...
38059         (streamer_write_tree_bitfields): ... this new function,
38060         exposing the bitpack object.
38061         * lto-streamer-out.c (lto_write_tree_1): Call
38062         streamer_write_tree_bitfields.
38064 2015-02-09  Richard Biener  <rguenther@suse.de>
38066         PR tree-optimization/54000
38067         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38068         (struct ivopts_data): Add loop_loc member.
38069         (tree_ssa_iv_optimize_loop): Dump loop location.
38070         (create_new_ivs): Likewise, also dump number of IVs generated.
38072 2015-02-09  Martin Liska  <mliska@suse.cz>
38074         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38075         just if not yet registered.
38076         (ipa_icf_generate_summary): Register callgraph hooks.
38078 2015-02-08  Andrew Pinski  <apinski@cavium.com>
38080         * config/aarch64/aarch64.c (gty_dummy): Delete.
38082 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38084         PR ipa/63566
38085         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38086         (cgraph_node::local_p): Remove thunk related FIXME.
38088 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38090         PR ipa/63566
38091         * i386.c (ix86_function_regparm): Look through aliases to see if callee
38092         is local and optimized.
38093         (ix86_function_sseregparm): Likewise; also use target's SSE math
38094         settings; error out instead of silently generating wrong code
38095         on mismatches.
38096         (init_cumulative_args): Look through aliases.
38098 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38100         PR ipa/63566
38101         * ipa-split.c (execute_split_functions): Split if function has aliases.
38103 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38105         PR ipa/63566
38106         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38107         aliases before trying to expand it.
38108         (cgraph_node::expand_thunk): Fix formating.
38110 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
38112         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38113         (Using Assembly Language with C): Expand introduction.
38114         (Basic Asm): Copy-edit.  Add more information about uses of
38115         basic asm.
38116         (Extended Asm): Copy-edit.  Document new escape syntax and
38117         %l[label] syntax.
38118         (Global Reg Vars): Copy-edit.
38119         (Local Reg Vars): Likewise.
38121 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
38123         PR debug/2714
38124         PR bootstrap/64256
38125         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38126         (DBX_CONTIN_CHAR): Define.
38128 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
38129             Brian Rzycki  <b.rzycki@samsung.com>
38131         PR tree-optimization/64878
38132         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38133         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38134         Stop recursion at loop phi nodes after having visited a loop phi node.
38136 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38138         * toplev.c (process_options): Change flag_ipa_ra before creating
38139         optimization_{default,current}_node.
38141         PR ipa/64896
38142         * cgraphunit.c (cgraph_node::expand_thunk): If
38143         restype is not is_gimple_reg_type nor the thunk_fndecl
38144         returns aggregate_value_p, set restmp to a temporary variable
38145         instead of resdecl.
38147 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
38149         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38151 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38153         PR target/64205
38154         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38155         add a general secondary reload handler for SDmode, unless we have
38156         both read/write support for SDmode.
38158 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38160         PR middle-end/64937
38161         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38162         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38163         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38164         1 before, push it to abstract_vec.
38165         (dwarf2out_abstract_function): Adjust caller.  Don't call
38166         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38167         DECL_ABSTRACT_P flags for all abstract_vec elts.
38169 2015-02-06  Renlin Li  <renlin.li@arm.com>
38171         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38172         complex gimple.
38173         * tree-ssa.c (execute_update_addresses_taken): Likewise.
38175 2015-02-06  Jeff Law  <law@redhat.com>
38177         PR target/64889
38178         * config/h8300/h8300.c (push): New argument "in_prologue".
38179         Pass "in_prologue" along to "F".
38180         (h8300_push_pop): Corresponding changes.
38181         (h8300_expand_prologue): Likewise.
38182         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
38184 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38186         PR rtl-optimization/64957
38187         PR debug/64817
38188         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38189         IOR rather than for AND.
38191 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
38193         PR target/62631
38194         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38195         of shift-add and (add + shift) operations.  Rename local variable.
38197 2015-02-05  Jeff Law  <law@redhat.com>
38199         PR target/17306
38200         * config/h8300/constraints.md (U): Correctly dectect
38201         "eightbit_data" memory addresses.
38202         * config/h8300/h8300.c (eightbit_constant_address_p): Also
38203         handle (const (plus (symbol_ref (x)))) where x is declared
38204         as an 8-bit data memory address.
38205         * config/h8300/h8300.md (call, call_value): Correctly detect
38206         "funcvec" functions.
38208         PR target/43264
38209         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38210         24 to 28 bits for the H8/300.
38212 2015-02-06  Alan Modra  <amodra@gmail.com>
38214         PR target/64876
38215         * config/rs6000/rs6000.c (chain_already_loaded): New function.
38216         (rs6000_call_aix): Use it.
38218 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
38220         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38221         check.
38223 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
38225         * config/h8300/constraints.md ("U" constraint): Use strict
38226         variant of REG_OK_FOR_BASE_P after reload has started.
38228 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
38230         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38231         define to zero if !TARGET_NEON.
38232         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38234 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38235             Trevor Saunders  <tsaunders@mozilla.com>
38237         PR ipa/61548
38238         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38240 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38242         PR ipa/61548
38243         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38244         when removing varpool nodes.
38246 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38248         PR ipa/61548
38249         * varpool.c (varpool_node::remove): Fix order of variables.
38251 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38253         PR ipa/64686
38254         * ipa-inline.c (inline_small_functions): Fix ordering issue between
38255         speculation resolution and key updates.
38257 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38259         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38260         about not letting any speculative edges unupdated.
38262 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38264         PR gcov/64123
38265         * gcov-io.c (gcov_var): Export.
38267 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38269         PR middle-end/64922
38270         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38271         edges that become speculative.
38273 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38275         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38276         or DW_LANG_Fortran08.
38277         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38278         DW_LANG_Fortran08.
38279         (gen_compile_unit_die): Handle "GNU Fortran2003" and
38280         "GNU Fortran2008" language strings.
38281         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38282         * langhooks.h (lang_GNU_Fortran): New prototype.
38283         * langhooks.c (lang_GNU_Fortran): New function.
38284         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38285         lang_GNU_Fortran.
38287 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38289         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38290         (RTX_OK_FOR_OLO10_P): Likewise.
38292 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38294         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38296 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38298         PR middle-end/64922
38299         * gimple.c: Include gimple-ssa.h.
38300         (maybe_remove_unused_call_args): New function.
38301         * gimple.h (maybe_remove_unused_call_args): Declare.
38302         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38303         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38304         * gimple-fold.c (gimple_fold_call): Likewise.
38306 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
38308         PR rtl-optimization/64905
38309         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38310         pointer alignment if it isn't needed.
38312 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38314         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38315         cortex-a72.cortex-a53.
38316         * config/aarch64/aarch64-tune.md: Regenerate.
38317         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38319 2015-02-04  Nick Clifton  <nickc@redhat.com>
38321         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38322         inside a MEM.
38324 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38326         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38327         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38328         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38329         of DEF_BUILTIN.
38330         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38331         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38332         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38333         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38334         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38335         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38336         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38337         * tree-core.h (enum built_in_function): In between
38338         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38339         for builtins that use DEF_BUILTIN_CHKP macro.
38341 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
38343         PR debug/64817
38344         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38345         operands for tcc_comparison exprs.  Fix typos.
38347         PR debug/64817
38348         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38349         of two XORs that have an intervening AND or IOR.
38351         PR debug/64817
38352         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38353         simplification of XOR of AND to not allocate new rtx before
38354         committing to a simplification.
38356 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38358         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38359         manual swaps in all peepholes.
38361 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38363         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38364         of manual swapping implementation.
38365         (aarch64_expand_vec_perm_const_1): Likewise.
38367 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
38369         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38370         (generic_addrcost_table): Remove NAMED_PARAM.
38371         (cortexa57_addrcost_table): Likewise.
38372         (xgene1_addrcost_table): Likewise.
38373         (generic_regmove_table): Likewise.
38374         (cortexa53_regmove_table): Likewise.
38375         (xgene1_regmove_table): Likewise.
38376         (generic_vector_table): Likewise.
38377         (cortexa57_vector_table): Likewise.
38378         (xgene1_vector_table): Likewise.
38379         (generic_tunings): Likewise.
38380         (cortexa53_tunings): Likewise.
38381         (cortexa57_tunings): Likewise.
38382         (xgene1_tunings): Likewise.
38384 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38386         * config/arm/arm-cores.def: Add cortex-a72 and
38387         cortex-a72.cortex-a53.
38388         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38389         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38390         * config/arm/arm-tune.md: Regenerate.
38391         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38392         "cortex-a72.cortex-a53".
38393         * doc/invoke.texi (ARM Options/-mtune): Likewise.
38395 2015-02-04  Nick Clifton  <nickc@redhat.com>
38397         PR target/64408
38398         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38399         of accepted codes.
38400         (nonimmediate_di_operand): Likewise.
38402         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38403         prefixes of known F5 using MSP430 MCUs.
38405 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38407         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38408         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38409         instead of __builtin_sqrt.
38411 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
38413         * varasm.c (do_assemble_alias): Follow transparent alias
38414         chain for target.
38415         (default_assemble_visibility): Follow transparent alias
38416         chain for decl name.
38418 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38420         PR middle-end/62103
38421         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38422         to compute size of referenced value in the constant case.
38424 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38426         PR rtl-optimization/64756
38427         * cse.c (invalidate_dest): New function.
38428         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
38429         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38430         invalidate and do not record it.
38432 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
38434         PR target/64660
38435         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38436         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38437         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38438         atomic_nand<mode>_soft_tcb): New insns.
38439         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38440         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38441         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38442         Split into atomic_not_fetchsi_hard if operands[0] is unused.
38443         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38444         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38445         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
38446         atomic_not<mode>_hard if operands[0] is unused.
38447         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38448         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38449         if operands[0] is unused.
38450         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
38451         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38452         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38453         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38454         unused.
38455         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
38456         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38457         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38458         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38459         if operands[0] is unused.
38460         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
38461         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38462         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
38463         atomic_nand_fetchsi_hard if operands[0] is unused.
38464         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
38465         atomic_nand<mode>_hard if operands[0] is unused.
38466         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
38467         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38468         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
38469         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38470         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
38471         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38472         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38473         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38474         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
38475         atomic_not<mode>_hard if operands[0] is unused.
38476         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38477         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38478         unused.
38479         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38480         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38481         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
38482         atomic_nand<mode>_hard if operands[0] is unused.
38483         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38484         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38486 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
38488         PR jit/64810
38489         * Makefile.in (GCC_OBJS): Add gcc-main.o.
38490         * gcc-main.c: New file, containing "main" taken from gcc.c.
38491         * gcc.c (do_self_spec): Free decoded_options.
38492         (class driver): Move declaration to gcc.h.
38493         (main): Move declaration and implementation to new file
38494         gcc-main.c.
38495         (driver_get_configure_time_options): New function.
38496         * gcc.h (class driver): Move this declaration here, from
38497         gcc.c.
38498         (driver_get_configure_time_options): New declaration.
38500 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
38502         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38503         cross-module inlining.
38504         * cgraph.h (cgraph_node): Add flag merged.
38505         * ipa-icf.c (sem_function::merge): Maintain it.
38507 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
38509         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38510         instead of OBJECT_P.
38512 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
38514         PR target/62631
38515         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38516         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38517         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38518         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38520 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38522         PR other/63504
38523         * combine.c (reg_n_sets_max): New variable.
38524         (can_change_dest_mode, reg_nonzero_bits_for_combine,
38525         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38526         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38527         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38528         (rest_of_handle_combine): Initialize reg_n_sets_max.
38530 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
38532         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38533         if some always_inline was inlined, apply changes before inlining
38534         heuristically.
38536 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
38538         PR jit/64810
38539         * config/arm/arm.c (arm_option_override): Set
38540         arm_selected_arch/cpu/tune to NULL on entry.
38542 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
38543             Andrew Pinski  <pinskia@gcc.gnu.org>
38544             Jakub Jelinek  <jakub@gcc.gnu.org>
38546         PR target/64231
38547         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38548         integer typing for small model. Use IN_RANGE.
38550 2015-02-02  Richard Biener  <rguenther@suse.de>
38552         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38553         * tree-vrp.c (vrp_valueize_1): Likewise.
38555 2015-02-02  Alan Modra  <amodra@gmail.com>
38557         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38558         than mem for toc_restore.
38559         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38560         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38561         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38563 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
38565         PR target/64047
38566         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38567         explicit default options.
38569 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
38571         PR ipa/64872
38572         * ipa-utils.c (ipa_merge_profiles): Add release argument.
38573         * ipa-icf.c (sem_function::merge): Do not release body when merging.
38574         * ipa-utils.h (ipa_merge_profiles): Update prototype.
38576 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
38578         PR debug/64817
38579         * cfgexpand.c (deep_ter_debug_map): New variable.
38580         (avoid_deep_ter_for_debug): New function.
38581         (expand_debug_expr): If TERed SSA_NAME is in
38582         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38583         instead of trying to expand SSA_NAME's def stmt.
38584         (expand_debug_locations): When expanding debug bind
38585         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38586         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38587         value.
38588         (pass_expand::execute): Call avoid_deep_ter_for_debug on
38589         all debug bind stmts.  Delete deep_ter_debug_map after
38590         expand_debug_location if non-NULL and clear it.
38592 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
38594         PR target/64851
38595         * config/sh/sync.md (atomic_fetch_notsi_hard,
38596         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38597         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38598         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38599         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38600         atomic_not_fetch<mode>_soft_imask): New insns.
38602 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38604         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38605         (rank_for_schedule_debug): Split from ...
38606         (rank_for_schedule): ... this.
38607         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38608         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38610 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38612         * doc/md.texi (Machine Constraints): Alphabetize table by target.
38613         * doc/extend.texi (x86 Variable Attributes): Move section to
38614         correct alphabetization after renaming.
38615         (x86 Type Attributes): Likewise.
38616         (Target Builtins): Re-alphabetize menu.
38617         (x86 Built-in Functions): Move section to correct alphabetization
38618         after renaming.
38619         (x86 transactional memory intrinsics): Likewise.
38620         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38621         and x86 Windows Options in table and menu.
38622         (x86 Options): Move section to correct alphabetization after
38623         renaming.
38624         (x86 Windows Options): Likewise.
38626 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38628         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38629         preferred names of the architecture and its 32- and 64-bit
38630         variants.
38631         * doc/invoke.texi: Likewise.
38632         * doc/md.texi: Likewise.
38634 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38636         PR target/64882
38637         * config/i386/predicates.md (address_no_seg_operand): Reject
38638         non-CONST_INT_P operands in invalid mode.
38640 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38642         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38643         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
38644         * config/i386/predicates.md (address_no_seg_operand): Call
38645         address_operand with VOIDmode.
38646         (vsib_address_operand): Ditto.
38647         (address_mpx_no_base_operand): Ditto.
38648         (address_mpx_no_index_operand): Ditto.
38650 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38652         PR target/64688
38653         * lra-constraints.c (original_subreg_reg_mode): New.
38654         (simplify_operand_subreg): Try to simplify subreg of const.  Use
38655         original_subreg_reg_mode for it.
38656         (swap_operands): Update original_subreg_reg_mode.
38657         (curr_insn_transform): Set up original_subreg_reg_mode.
38659 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38661         PR target/64617
38662         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38663         function.
38664         (process_alt_operands): Use it.
38665         (curr_insn_transform): Check the optional reload pseudo class is
38666         ok for the mode.
38668 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
38670         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38671         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38672         prototype.
38673         * toplev.h (init_asm_output): Update comment on use of
38674         UNKNOWN_LOCATION with fatal_error.
38675         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38676         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38677         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38678         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38679         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38680         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38681         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38682         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38683         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38684         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38685         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38686         fatal_error changed to pass input_location as first argument.
38688 2015-01-30  Martin Liska  <mliska@suse.cz>
38690         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38691         in #pragma GCC diagnostic guards.
38693 2015-01-30  Richard Biener  <rguenther@suse.de>
38695         PR tree-optimization/64829
38696         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38697         not add a widening conversion pattern but hand off extra
38698         widenings to callers.
38699         (vect_recog_widen_mult_pattern): Handle extra widening produced
38700         by vect_handle_widen_op_by_const.
38701         (vect_recog_widen_shift_pattern): Likewise.
38702         (vect_pattern_recog_1): Remove excess vertical space in dumping.
38703         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38704         (vect_init_vector_1): Likewise.
38705         (vect_get_vec_def_for_operand): Likewise.
38706         (vect_finish_stmt_generation): Likewise.
38707         (vectorizable_load): Likewise.
38708         (vect_analyze_stmt): Likewise.
38709         (vect_is_simple_use): Likewise.
38711 2015-01-29  Jeff Law  <law@redhat.com>
38713         * combine.c (try_combine): Fix typo in comment.
38715 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
38717         PR target/64580
38718         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38719         (rs6000_stack_info): Add assert.
38720         (rs6000_output_savres_externs): New function, split off from...
38721         (rs6000_output_function_prologue): ... here.  Do not call it for
38722         thunks.
38724 2015-01-29  Jeff Law  <law@redhat.com>
38726         PR target/15184
38727         * combine.c (try_combine): If I0 is a memory load and I3 a store
38728         to a related address, increase the "goodness" of doing a 4-insn
38729         combination with I0-I3.
38730         (make_field_assignment): Handle SUBREGs in the ior+and case.
38732 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
38734         PR tree-optimization/64746
38735         * tree-if-conv.c (mask_exists): New function.
38736         (predicate_mem_writes): Save created mask with given size for further
38737         use.
38738         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38739         (ifcvt_repair_bool_pattern): Collect all statements that are root
38740         of bool pattern and use iterative algorithm to remove multiple uses
38741         of predicates, display number of required iterations.
38743 2015-01-29  Richard Biener  <rguenther@suse.de>
38745         PR tree-optimization/64853
38746         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38747         stmt will get simulated again.
38748         * tree-ssa-ccp.c (valueize_op_1): Likewise.
38750 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38752         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38753         return_in_pc.  Remove redundant assignments.
38754         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38755         (arm_expand_epilogue): Don't compare boolean with true in if condition.
38757 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
38759         * config/i386/i386.c (ix86_mode_after): Make static.
38761 2015-01-29  Richard Biener  <rguenther@suse.de>
38763         PR tree-optimization/64844
38764         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38765         dump cost model analysis.
38766         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38767         Do not register adjusted load/store costs here.
38769 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38770             Uros Bizjak  <ubizjak@gmail.com>
38772         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38773         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38774         using x86_use_pseudo_pic_reg.
38775         * config/i386/i386.c (ix86_conditional_register_usage): Remove
38776         support for fixed PIC register.
38777         (ix86_use_pseudo_pic_reg): Not static any more.
38779 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38781         PR middle-end/64805
38782         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38783         to avoid error in cgraph node verification.
38785 2015-01-29  Marek Polacek  <polacek@redhat.com>
38787         * doc/standards.texi: Reflect that the default for C is gnu11.
38789 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
38791         PR target/64761
38792         * reorg.c (switch_text_sections_between_p): New function.
38793         (relax_delay_slots): Call it when testing if the jump insn
38794         is removable.  Use targetm.can_follow_jump when testing if
38795         the conditional branch can follow an unconditional jump.
38797 2015-01-27  Caroline Tice  <cmtice@google.com>
38799         Committing VTV Cywin/Ming patch for Patrick Wollgast
38800         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38801         if -fvtable-verify=preinit/std is used.
38802         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38803         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38804         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38805         if -fvtable-verify=preinit/std is used.
38806         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38807         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38808         if -fvtable-verify=preinit/std is used.
38809         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38810         * config/i386/mingw32.h (LIB_SPEC): Likewise.
38811         * varasm.c (assemble_variable): Add code to properly set the comdat
38812         section and name for the .vtable_map_vars section in case the
38813         target is PE or COFF.
38815 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38817         PR ipa/64801
38818         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38819         make sane BB profile.
38820         (cgraph_node::expand_thunk): Make sane BB profile.
38821         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38822         * cgraph.h (init_lowered_empty_function): Update prototype.
38823         * config/i386/i386.c (make_resolver_func): Update call.
38824         * predict.c (gate): Disable branch prediction pass if
38825         profile is already there.
38827 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38829         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38830         * opth-gen.awk: Likewise.
38831         * common.opt: Mark flag_fp_contract_mode as Optimization.
38833 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38835         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38836         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38838 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
38840         PR target/64659
38841         * config/sh/predicates.md (atomic_arith_operand,
38842         atomic_logical_operand): Remove.
38843         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38844         (atomic_arith_operand_0): New predicate.
38845         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38846         Use atomic_arith_operand_0 for input values.
38847         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38848         atomic_compare_and_swap<mode>_soft_gusa,
38849         atomic_compare_and_swap<mode>_soft_tcb,
38850         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38851         arith_reg_operand instead of register_operand.
38852         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
38853         atomic_arith_operand_0 for newval input.
38854         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38855         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38856         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38857         arith_reg_operand instead of register_operand.
38858         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38859         fetchop_predicate_1, fetchop_constraint_1_llcs,
38860         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38861         fetchop_constraint_1_imask): New code iterator attributes.
38862         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38863         register_operand.  Use fetchop_predicate_1.
38864         (atomic_fetch_<fetchop_name>si_hard,
38865         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38866         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38867         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38868         and arith_reg_operand instead of register_operand.  Use
38869         fetchop_predicate_1, fetchop_constraint_1_gusa.
38870         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38871         and arith_reg_operand instead of register_operand.  Use
38872         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
38873         to allow R0 usage.
38874         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38875         and arith_reg_operand instead of register_operand.  Use
38876         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
38877         to allow R0 usage.
38878         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38879         register_operand.  Use atomic_logical_operand_1.
38880         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38881         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38882         arith_reg_operand instead of register_operand.
38883         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38884         Use arith_reg_dest and arith_reg_operand instead of register_operand.
38885         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
38886         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38887         register_operand.  Use fetchop_predicate_1.
38888         (atomic_<fetchop_name>_fetchsi_hard,
38889         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38890         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38891         fetchop_constraint_1_llcs.
38892         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38893         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38894         fetchop_constraint_1_gusa.
38895         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38896         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38897         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
38898         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38899         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38900         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
38901         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38902         register_operand.  Use atomic_logical_operand_1.
38903         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38904         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38905         arith_reg_operand instead of register_operand.
38906         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38907         arith_reg_operand instead of register_operand.  Use logical_operand
38908         and K08.  Adjust asm sequence to allow R0 usage.
38909         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38910         arith_reg_operand instead of register_operand.  Use logical_operand
38911         and K08.
38913 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38915         PR other/63504
38916         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38917         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38918         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38919         only get_full_len HOST_WIDE_INTs from get_val () array rather than
38920         all bits in *val_wide.
38922 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
38924         * varpool.c (tls_model_names): Fix names.
38925         (varpool_node::dump): Dump tls- prefix for tls models.
38927 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
38928             Bernd Schmidt  <bernds@codesourcery.com>
38929             Nathan Sidwell  <nathan@codesourcery.com>
38931         * config/nvptx/mkoffload.c: New file.
38932         * config/nvptx/t-nvptx: Add build rules for it.
38933         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38934         (extra_programs): Add mkoffload.
38935         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38936         function.
38937         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38939 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
38941         PR middle-end/64809
38942         * cfgexpand.c (reorder_operands): Skip debug gimples.
38944 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
38946         PR tree-optimization/64277
38947         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38948         range info when possible to refine estimation.
38950 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38952         PR tree-optimization/64718
38953         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38954         be a 16bit unsigned integer when n->range is 16.
38955         (bswap_replace): Convert src to that type if necessary for all bswap
38956         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
38957         set in pass_optimize_bswap::execute ().
38959 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
38961         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38962         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38963         integer and floating point variants.
38964         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38966 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
38968         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38969         for all vector modes.
38971 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38973         PR bootstrap/64612
38974         * doc/sourcebuild.texi (comdat_group): Document.
38976 2015-01-28  Terry Guo  <terry.guo@arm.com>
38978         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38980 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
38982         * toplev.c (print_version): Add param "show_global_state", and
38983         only print GGC and plugin information if it is true.
38984         (init_asm_output): Pass in "true" for the new param when calling
38985         print_version.
38986         (process_options): Likewise.
38987         (toplev::main): Likewise.
38988         * toplev.h (print_version): Add new param to decl.
38990 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38992         PR ipa/60871
38993         PR ipa/64139
38994         * tree.c (lookup_binfo_at_offset): New function.
38995         (get_binfo_at_offset): Use it.
38997 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38999         PR ipa/64282
39000         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39001         on vtable being vtable.
39003 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39005         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39006         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39007         -mhotpatch= option.
39008         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39009         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
39010         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39011         Renamed.
39012         (s390_hotpatch_trampoline_halfwords_max): Renamed.
39013         (s390_hotpatch_hw_max): New name.
39014         (s390_hotpatch_trampoline_halfwords): Renamed.
39015         (s390_hotpatch_hw_before_label): New name.
39016         (get_hotpatch_attribute): Removed.
39017         (s390_hotpatch_hw_after_label): New name.
39018         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39019         attribute.
39020         (s390_attribute_table): Ditto.
39021         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39022         (s390_function_num_hotpatch_hw): New name.
39023         Remove special handling of inline functions and hotpatching.
39024         Return number of nops before and after the function label.
39025         (s390_can_inline_p): Removed.
39026         (s390_asm_output_function_label): Emit a configurable number of nops
39027         after the function label.
39028         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39029         (TARGET_CAN_INLINE_P) Removed.
39030         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39032 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39033             Jiong Wang  <jiong.wang@arm.com>
39035         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39036         of scratch reg.
39037         (cb<optab><mode>1): Likewise.
39038         * config/aarch64/iterators.md (bcond): New define_code_attr.
39040 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39042         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39043         memory accesses.
39045 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39047         * config/s390/s390.c (s390_register_move_cost): Increase costs for
39048         FPR->GPR moves.
39050 2015-01-27  Richard Biener  <rguenther@suse.de>
39052         * tree-vrp.c (update_value_range): Intersect the range with
39053         old recorded SSA name range information.
39055 2015-01-27  Nick Clifton  <nickc@redhat.com>
39057         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39058         BC, DE and HL registers directly, not via AX.
39059         When decrementing the stack pointer by a large amount, transfer SP
39060         into AX and perform the subtraction there.
39061         (rl78_expand_epilogue): Perform the inverse of the above
39062         enhancements.
39064 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39066         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39068 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39069             Yury Gribov  <y.gribov@samsung.com>
39071         PR ubsan/64741
39072         * ubsan.c (ubsan_source_location): Refactor code.
39073         (ubsan_type_descriptor): Update type size. Refactor code.
39075 2015-01-27  Richard Biener  <rguenther@suse.de>
39077         PR tree-optimization/56273
39078         PR tree-optimization/59124
39079         PR tree-optimization/64277
39080         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39081         from the first VRP pass.
39083 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39085         PR ipa/64776
39086         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39087         handle the first argument in the same loop as all the other arguments.
39089         PR rtl-optimization/61058
39090         * jump.c (cleanup_barriers): Update basic block boundaries
39091         if BLOCK_FOR_INSN is non-NULL on PREV.
39093 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
39095         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39096         bounds narrowing, already instrumented calls and calls to
39097         not instrumentable functions.
39099 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39101         PR tree-optimization/64807
39102         * wide-int.cc (wi::divmod_internal): Clear
39103         b_dividend[dividend_blocks_needed].
39105 2015-01-26  DJ Delorie  <dj@redhat.com>
39107         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39108         volatile memory references.
39110 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
39112         PR target/49263
39113         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39114         remove_insn.
39115         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39116         shifts if it already fits into K08.
39118 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39120         PR ipa/64730
39121         * ipa-inline.c (inline_small_functions): Print "unknown" even
39122         if edge->call_stmt is non-NULL, but has builtins or unknown
39123         location.
39125         PR middle-end/64421
39126         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39127         with asterisk, skip the first character.
39129 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39131         PR target/64806
39132         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39133         order change.
39135 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
39137         PR target/64795
39138         * config/i386/i386.md (*movdi_internal): Also check operand 0
39139         to determine TYPE_LEA operand.
39140         (*movsi_internal): Ditto.
39142 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39144         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39145         OPTION_MASK_QUAD_MEMORY_ATOMIC.
39147 2015-01-26  Renlin Li  <renlin.li@arm.com>
39149         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39150         the comment.
39151         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39152         for higher part.
39154 2015-01-26  Richard Biener  <rguenther@suse.de>
39156         PR middle-end/64764
39157         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39158         combining two BIT_AND_EXPR predicates.
39160 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39162         PR bootstrap/64754
39163         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39165 2015-01-26  Terry Guo  <terry.guo@arm.com>
39167         * config/arm/arm.c (arm_file_start): Update the assignment of
39168         Tag_ABI_HardFP_use.
39170 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
39172         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39173         pipeline model.
39174         config/arm/arm.md: Include the new Cortex-A57 model.
39175         (generic_sched): Don't use generic_sched when tuning for
39176         Cortex-A57.
39178 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
39179             Uros Bizjak  <ubizjak@gmail.com>
39181         * config/i386/i386.c (get_builtin_code_for_version): Add
39182         support for BMI and BMI2 multiversion functions.
39184 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39186         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39187         (extract_bit_field): Likewise.
39188         (extract_low_bits): Likewise.
39189         (expand_mult): Likewise.
39190         (expand_mult_highpart_adjust): Likewise.
39192 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
39194         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39195         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39196         * config/i386/i386.c (processor_model): Add
39197         M_INTEL_COREI7_BROADWELL.
39198         (arch_names_table): Add "broadwell".
39200 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
39202         PR target/49263
39203         PR target/53987
39204         PR target/64345
39205         PR target/59533
39206         PR target/52933
39207         PR target/54236
39208         PR target/51244
39209         * config/sh/sh-protos.h
39210         (sh_extending_set_of_reg::can_use_as_unextended_reg,
39211         sh_extending_set_of_reg::use_as_unextended_reg,
39212         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39213         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39214         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39215         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39216         (sh_treg_insns): New class.
39217         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39218         (scope_counter): New class.
39219         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39220         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39221         sh_extending_set_of_reg::can_use_as_unextended_reg,
39222         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39223         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39224         sh_split_treg_set_expr): New functions.
39225         (addsubcosts): Handle treg_set_expr.
39226         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39227         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39228         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39229         (sh_insn_operands_modified_between_p): Make non-static.
39230         * config/sh/predicates.md (zero_extend_movu_operand): Allow
39231         simple_mem_operand in addition to displacement_mem_operand.
39232         (zero_extend_operand): Don't allow zero_extend_movu_operand.
39233         (treg_set_expr, treg_set_expr_not_const01,
39234         arith_reg_or_treg_set_expr): New predicates.
39235         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39236         arith_or_int_operand instead of logical_operand.  Convert to
39237         insn_and_split.  Try to optimize constant operand in splitter.
39238         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
39239         (*tstqi_t_zero): Delete.
39240         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39241         (tstsi_t_and_not): Delete.
39242         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39243         Convert to insn_and_split.
39244         (unnamed split, tstsi_t_zero_extract_xor,
39245         tstsi_t_zero_extract_subreg_xor_little,
39246         tstsi_t_zero_extract_subreg_xor_big): Delete.
39247         (*tstsi_t_shift_mask): New insn_and_split.
39248         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39249         to recombine with surrounding insns when splitting.
39250         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39251         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39252         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39253         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39254         (*cbranch_div0s: Delete.
39255         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39256         Try to recombine with surrounding insns when splitting.  Add operand
39257         order variants.
39258         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39259         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39260         *addc_r_r_msb, *addc_2r_msb): Delete.
39261         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
39262         order variant.
39263         (*addc_negreg_t): New insn_and_split.
39264         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39265         Try to recombine with surrounding insns when splitting.
39266         Add operand order variants.
39267         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39268         insn_and_split patterns.
39269         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
39270         surrounding insns when splitting.
39271         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39272         (*rotcl): Likewise.  Add zero_extract variant.
39273         (*ashrsi2_31): New insn_and_split.
39274         (*negc): Convert to insn_and_split.  Use treg_set_expr.
39275         (*zero_extend<mode>si2_disp_mem): Update comment.
39276         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39277         condition.
39278         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
39279         with surrounding insns when splitting.
39280         (any_treg_expr_to_reg): New insn_and_split.
39281         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39282         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39283         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39284         *zero_extract_2): New single bit zero extract patterns.
39285         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39286         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39287         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39288         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39289         set destination.
39290         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39291         register_operand for set source.
39293 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
39295         * i386.opt (prefetch_sse): New targetsave.
39296         * i386.c (ix86_function_specific_save): Save prefetch_sse.
39297         (ix86_function_specific_restore): Restore prefetch_sse and initialize
39298         ix86_cost/ix86_tune_cost.
39300 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39302         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39303         Support the JIT by using 0 as the language type.
39305 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
39307         PR target/64317
39308         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
39309         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39310         (mark_regno_live, process_bb_lives): Pass new parameter value to
39311         make_hard_regno_born.
39313 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39315         PR rtl-optimization/63637
39316         PR rtl-optimization/60663
39317         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39318         if elt->cost is MAX_COST for ASM_OPERANDS.
39319         (find_sets_in_insn): Fix up comment typo.
39320         (cse_insn): Don't set src_volatile for all non-volatile
39321         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39322         or with "memory" clobber.  Set elt->cost to MAX_COST
39323         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
39324         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39326 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39328         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39329         alternative 1.
39331 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39333         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39334         libgcc/config/i386/elf-lib.h.
39336 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39338         PR driver/64737
39339         * gcc.c (print_configuration): Don't print a blank line at the end
39340         here...
39341         (run_attempt): ... but here unstead.
39343         PR middle-end/64734
39344         * omp-low.c (scan_sharing_clauses): Don't ignore
39345         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39346         on target data/update constructs.
39348 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39350         PR target/50928
39351         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39352         (DEBUG_RELOAD): Removed define.
39353         (m32c_limit_reload_class): Enable traces with if DEBUG0.
39354         (m32c_function_arg): Added a type cast.
39355         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39356         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39357         * config/m32c/bitops.md (andqi3_16): Likewise.
39358         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39359         (push_a01_l): Likewise.
39361 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39363         PR jit/64721
39364         * main.c (main): Construct toplev instances with init_signals=true.
39365         * toplev.c (general_init): Add param "init_signals", and use it to
39366         conditionalize the calls to signal and host_hooks.extra_signals.
39367         (toplev::toplev): Add param "init_signals".
39368         (toplev::main): When invoking general_init, pass m_init_signals
39369         to control whether signal-handlers are installed.
39370         * toplev.h (toplev::toplev): Add param "init_signals".
39371         (toplev::m_init_signals): New field.
39373 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39375         PR jit/64722
39376         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39377         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39378         latter may be affected by the former (e.g. on i686).
39380 2015-01-23  Martin Liska  <mliska@suse.cz>
39382         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39383         false positive during profiledbootstrap.
39385 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39387         PR libgomp/64672
39388         * lto-opts.c (lto_write_options): Output non-explicit conservative
39389         -fno-openacc.
39390         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39391         (append_compiler_options): Pass -fopenacc through.
39393 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39395         PR libgomp/64707
39396         * lto-opts.c (lto_write_options): Output non-explicit conservative
39397         -fno-openmp.
39398         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39399         (append_compiler_options): Pass -fopenmp through.
39401 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39403         PR debug/64511
39404         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39405         GTY markup.
39407         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39408         * diagnostic.def (DK_ICE_NOBT): New kind.
39409         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39410         like DK_ICE, but never print backtrace.
39411         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39412         (internal_error_no_backtrace): New function.
39413         * gcc.c (execute): Use internal_error_no_backtrace instead of
39414         internal_error.
39416 2015-01-22  Jeff Law  <law@redhat.com>
39418         PR target/52076
39419         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39420         improve code density for small immediate to memory case.
39421         (insv): Better handle bitfield assignments when the field is
39422         being set to all ones.
39423         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39424         operand predicate.
39426 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39427             Jakub Jelinek  <jakub@redhat.com>
39429         PR middle-end/64729
39430         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39431         for !TARGET_LIBC_PROVIDES_SSP version and
39432         -fstack-protector-{all,strong,explicit} otherwise.
39433         * config/freebsd.h (LINK_SSP_SPEC): Handle
39434         -fstack-protector-{strong,explicit}.
39436 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
39437             H.J. Lu  <hongjiu.lu@intel.com>
39439         PR ipa/64694
39440         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39441         heap.
39443 2015-01-22  Wei Mi  <wmi@google.com>
39445         PR rtl-optimization/64557
39446         * dse.c (record_store): Call get_addr for mem_addr.
39447         (check_mem_read_rtx): Likewise.
39449 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
39451         * fold-const.c (const_binop): Add early return for non-tcc_binary.
39453 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
39455         * toplev.c (init_local_tick): Process the failure when read
39456         fails for random_seed.
39458         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39459         'pretty_name' to avoid memory overflow.
39461 2015-01-22  Richard Biener  <rguenther@suse.de>
39463         PR middle-end/64728
39464         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39465         abnormal coalescing on undefined SSA names.
39467 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
39469         PR target/64688
39470         PR target/64477
39471         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39472         for alternative 3.
39473         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39475 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
39477         PR middle-end/63325
39478         * fold-const.c (fold_checksum_tree): Don't include value of
39479         expr->decl_with_vis.symtab_node in the checksum.
39481 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39483         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39485 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
39487         PR driver/64690
39488         * gcc.c (insert_comments): New function.
39489         (try_generate_repro): Call it.
39490         (append_text): Removed.
39492 2015-01-22  Richard Biener  <rguenther@suse.de>
39494         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39495         with IL incompatible options.  Properly honor user optimize
39496         attributes.
39498 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
39500         PR rtl-optimization/64682
39501         * combine.c (distribute_notes): When moving a death note for
39502         a register that is set in the new I2, make sure to put it
39503         before that new I2.
39505 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
39507         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39508         not TARGET_DEFAULT.
39510 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
39512         PR debug/64511
39513         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39514         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39515         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39517         PR sanitizer/64706
39518         * doc/invoke.texi (-fsanitize=vptr): Document.
39520         PR rtl-optimization/62078
39521         * dse.c: Include cfgcleanup.h.
39522         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39523         anything call purge_all_dead_edges and cleanup_cfg at the end
39524         of the pass.
39526 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
39528         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39529         edges.
39531 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39533         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39534         decl attribute.
39536 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39537             Tejas Belagod <Tejas.Belagod@arm.com>
39539         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39540         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39541         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39542         Removed.
39544 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39545             Tejas Belagod <Tejas.Belagod@arm.com>
39547         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39548         (aarch64_reverse_mask): New decls.
39549         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39550         (insn_count): New mode_attr.
39551         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39552         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39553         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39554         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39555         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39556         (aarch64_simd_st4): New patterns.
39557         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39558         (aarch64_reverse_mask): New functions.
39560 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39562         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39563         Declare.
39564         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39565         addressing modes for BE.
39566         (aarch64_print_operand): Add 'R' specifier.
39567         (aarch64_simd_disambiguate_copy): Delete.
39568         (aarch64_simd_emit_reg_reg_move): New function.
39569         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39570         in define_splits for structural moves.
39571         (mov<mode>): Use less restrictive predicates.
39572         (*aarch64_mov<mode>): Simplify and only allow for LE.
39573         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39575 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39577         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39579 2015-01-21  Richard Henderson  <rth@redhat.com>
39581         PR target/64669
39582         * ccmp.c (used_in_cond_stmt_p): Remove.
39583         (expand_ccmp_expr): Don't use it.
39585 2015-01-21  Nick Clifton  <nickc@redhat.com>
39587         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39588         PARALLELs.
39590 2015-01-21  Richard Biener  <rguenther@suse.de>
39592         PR middle-end/64313
39593         * tree-core.h (builtin_info, builtin_info_type): Turn from
39594         an object with two arrays into an array of an object with
39595         decl and two flags, implicit_p and declared_p.
39596         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39597         set_builtin_decl, set_builtin_decl_implicit_p,
39598         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39599         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39600         * builtins.c (builtin_info): Adjust.
39601         * gimplify.c (gimplify_addr_expr): References to builtins
39602         that have been declared by the user makes them eligible for
39603         use by the compiler.  Call set_builtin_decl_implicit_p on them.
39605 2015-01-20  Jeff Law  <law@redhat.com>
39607         PR target/59946
39608         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39609         allow pc-relative addresses in operand predicates or constraints.
39611 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
39613         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39614         neon on aarch32 processors for stringops.
39616 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39618         PR ipa/63576
39619         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39621 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39623         PR lto/45375
39624         * ipa-inline.c: Include lto-streamer.h
39625         (report_inline_failed_reason): Output source file differences and
39626         flags on optimization/target node mismatch.
39627         (can_inline_edge_p): Consider caller to be the outer inline function;
39628         be less restrictive about matching opimize and optimize_size attributes.
39629         (inline_account_function_p): Break out from ...
39630         (inline_small_functions): ... here.
39631         * ipa-inline-transform.c (clone_inlined_nodes): Use
39632         inline_account_function_p.
39633         (inline_call): Use optimize attribution; use inline_account_function_p.
39634         (inline_transform): Use opt_for_fn.
39635         * ipa-inline.h (inline_account_function_p): Declare.
39637 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
39639         PR debug/64663
39640         * dwarf2out.c (decl_piece_node): Don't put bitsize into
39641         mode if bitsize <= 0.
39642         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39643         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39644         sizes and positions.
39646 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
39648         * config/nios2/nios2.c (nios2_asm_file_end): Implement
39649         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39650         needed.
39651         (TARGET_ASM_FILE_END): Define.
39653 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39655         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39656         (struct tune_params): Use the enum.
39657         * arm.c (arm_*_tune): Update.
39658         (arm_option_override): Update.
39660 2015-01-20  Richard Biener  <rguenther@suse.de>
39662         PR ipa/64684
39663         * ipa-reference.c (add_static_var): Inline ...
39664         (analyze_function): ... here after splitting out from ...
39665         (is_proper_for_analysis): ... this.
39667 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
39669         PR target/64149
39670         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39671         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39672         replace the conditional with it's true branch.
39673         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39674         (arm_lra_p): Remove.
39676 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
39678         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39680 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39682         * config/tilegx/mul-tables.c: Move symtab.h include after
39683         coretypes.h include.
39684         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39685         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39686         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39687         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39688         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39690 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
39692         PR bootstrap/64676
39693         Revert:
39694         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39696         PR rtl-optimization/64081
39697         * loop-iv.c (def_pred_latch_p): New function.
39698         (latch_dominating_def): Allow specific cases with non-single
39699         definitions.
39700         (iv_get_reaching_def): Likewise.
39701         (check_complex_exit_p): New function.
39702         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39703         with exits not executing on any iteration.
39705 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39707         PR lto/45375
39708         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39709         to set branch cost.
39711 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39713         PR lto/45375
39714         * i386.c (gate): Check flag_expensive_optimizations and
39715         optimize_size.
39716         (ix86_option_override_internal): Drop optimize_size condition
39717         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39718         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39719         MASK_PREFER_AVX128.
39720         (ix86_avx256_split_vector_move_misalign,
39721         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39722         * sse.md (all uses of TARGET_PREFER_AVX128): Add
39723         optimize_insn_for_speed_p check.
39725 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
39727         * config/mips/mips.h (FP_ASM_SPEC): New define.
39728         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39729         instead.
39731 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
39733         PR target/53988
39734         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39735         nullptr for insn when reaching the first insn.
39736         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39737         (sh_insn_operands_modified_between_p): Add nullptr check.
39738         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
39739         sign extending mem load if the insn contains any UNSPEC or
39740         UNSPEC_VOLATILE.
39742 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39744         * params.def (inline-unit-growth): Drop to 15%.
39745         * invoke.texi (inline-unit-growth): Document change.
39747 2015-01-19  Martin Liska  <mliska@suse.cz>
39749         PR ipa/64668
39750         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39751         function for second argument of OBJ_TYPE_REF.
39753 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39755         PR ipa/64218
39756         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39757         whether function is an alias.
39759 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39761         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39762         cases.
39764 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
39766         PR rtl-optimization/64671
39767         * lra-remat.c (operand_to_remat): Don't consider jump and call
39768         insns.
39770 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
39772         PR target/59828
39773         * config/rs6000/default64.h: Include rs6000-cpus.def.
39774         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39775         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39776         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39777         and POWER8.
39778         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39779         POWER8.
39780         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39781         pseudo-op to specify assembler dialect.
39783 2015-01-19  Martin Liska  <mliska@suse.cz>
39785         PR ipa/64664
39786         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39787         Handle safe potentially removed nodes during filtering.
39789 2015-01-19  Martin Liska  <mliska@suse.cz>
39791         * doc/extend.texi (no_icf): Add new attribute description.
39792         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39793         where the pass attempts to merge a function with no_icf attribute.
39795 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39797         PR target/64532
39798         * doc/md.texi (ARM Options): Document register constraints.
39800 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
39801             Andrew Pinski  <apinski@cavium.com>
39803         PR target/64304
39804         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39805         (ashl<mode>3): Don't expand if operands[2] is not constant.
39807 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39809         PR target/64448
39810         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39811         Match xor-and-xor RTL pattern.
39813 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39815         PR rtl-optimization/64081
39816         * loop-iv.c (def_pred_latch_p): New function.
39817         (latch_dominating_def): Allow specific cases with non-single
39818         definitions.
39819         (iv_get_reaching_def): Likewise.
39820         (check_complex_exit_p): New function.
39821         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39822         with exits not executing on any iteration.
39824 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
39826         * common.opt (fgraphite): Fix a typo.
39828 2015-01-19  Felix Yang  <felix.yang@huawei.com>
39830         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39831         pattern.
39832         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39833         uminp, smax_nanp, smin_nanp): New builtins.
39834         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39835         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39836         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39837         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39838         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39839         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39840         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39841         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39842         vpminnms_f32): Rewrite using builtin functions.
39844 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
39846         PR libgomp/64625
39847         * omp-low.c (offload_symbol_decl): Remove variable.
39848         (get_offload_symbol_decl): Remove function.
39849         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39850         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39851         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39852         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39853         BUILT_IN_GOACC_UPDATE don't pass it at all.
39855 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39857         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39858         callers.
39860 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39862         * ipa-chkp.c (chkp_produce_thunks): Add early param
39863         to split thunks production into two passes.  Keep
39864         'always_inline' function bodies after the first pass.
39865         (pass_data_ipa_chkp_early_produce_thunks): New.
39866         (pass_ipa_chkp_early_produce_thunks): New.
39867         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39868         chkp_produce_thunks signature.
39869         (make_pass_ipa_chkp_early_produce_thunks): New.
39870         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39871         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39872         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39874 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39876         * cgraph.c (cgraph_node::dump): Dump profile flags.
39878 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
39880         PR target/64652
39881         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39882         reg appear first in the parallel.
39884 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39886         * ipa-reference.c (set_reference_optimization_summary,
39887         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39888         disabled.
39889         (ignore_module_statics): New static var.
39890         (propagate_bits): If ipa-reference is disabled, do not look into local
39891         properties.
39892         (analyze_function): Disable analysis when ipa_reference is disabled.
39893         (generate_summary): Do not dump when reference is disabled;
39894         collect vars accessed from functions with ipa-reference disabled.
39895         (get_read_write_all_from_node): When ipa-reference is disabled, use the
39896         node flags.
39897         (gate): Enable for LTO.
39898         (ignore_edge_p): New function.
39899         (propagate): Skip functions w/o ipa-reference analysis.
39900         * optc-save-gen.awk: Handle optimize_debug correctly.
39901         * opth-gen.awk: Likewise.
39902         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39903         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39904         fira-share-save-slots, fira-share-spill-slots,
39905         fmodulo-sched-allow-regmoves, fpartial-inlining,
39906         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39907         ftracer, ftree-parallelize-loops, fassociative-math,
39908         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39909         Optimization
39910         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39911         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39912         Optimization.
39913         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39914         Fix for IPA.
39916 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39918         PR ipa/64378
39919         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39920         flag correctly.
39921         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39923 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
39925         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39926         Remove duplicate option listings.
39928 2015-01-18  Felix Yang  <felix.yang@huawei.com>
39930         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39931         (autofdo_source_profile::get_callsite_total_count,
39932         function_instance::get_function_instance_by_decl,
39933         string_table::get_index, string_table::get_index_by_decl,
39934         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39935         Fix comment typos. Reformatting and minor code rearrangement.
39937 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39939         * config/rs6000/rs6000.md (probe_stack): Delete.
39940         (probe_stack_address): New.
39942 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39944         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39945         to test for 32-bit ABIs, not !TARGET_POWERPC64.
39947 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39949         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39950         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
39951         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
39952         snafu.
39953         (rs6000_libcall_value): Use the new function.
39955 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
39957         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39959 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
39961         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39962         implement a more precise life analysis for it during backward scan.
39964 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
39966         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39968 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
39970         PR rtl-optimization/52773
39971         * calls.c (emit_library_call_value): When pushing arguments use
39972         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39973         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
39974         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39976 2015-01-17  Jeff Law  <law@redhat.com>
39978         PR rtl-optimization/32790
39979         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39980         not ZERO_EXTEND in SET_DESTs.
39982 2015-01-17  Alan Modra  <amodra@gmail.com>
39984         * cprop.c (do_local_cprop): Revert last change.
39986 2015-01-16  DJ Delorie  <dj@redhat.com>
39987             Nick Clifton  <nickc@redhat.com>
39989         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39990         (addhi3_real): Likewise.  Fix [HL+0] syntax.
39991         (subqi3_real): Likewise.
39992         (subhi3_real): Likewise.
39993         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
39994         (cbranchhi4_real): Likewise.
39995         (cbranchhi4_real_inverted): Likewise.
39996         (cbranchsi4_real_lt): Likewise.
39997         (cbranchsi4_real_ge): Likewise.
39998         (cbranchsi4_real_ge): Likewise.
39999         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40000         (sub<mode>3_virt): Likewise.
40001         (cbranchqi4_virt): Likewise.
40002         (cbranchhi4_virt): Likewise.
40003         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40004         always use '[reg+imm]' even when imm is zero.
40005         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40006         (rl78_general_operand): New.
40007         (rl78_nonimmediate_operand): New.
40008         (rl78_nonfar_operand): Use them.
40009         (rl78_nonfar_nonimm_operand): Likewise.
40010         (rl78_stack_based_mem): Fix.
40011         * config/rl78/constraints.md (Ibqi): New.
40012         (IBqi): New.
40013         (Wsa): New.
40014         (Wsf): New.
40015         (Cs1): Fix.
40016         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40017         (iorqi3): Likewise.
40018         (xorqi3): Likewise.
40019         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40021         * config/rl78/constrains (Qs8): New constraint.
40022         * config/rl78/rl78.c (rl78_flags_already_set): New function.
40023         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40024         * config/rl78/rl78-real.md (update_Z): New attribute.
40025         Update patterns to set it.
40026         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40027         shorter compare and branch sequence can be used.
40028         (cbranchhi4_real): Likewise.
40029         (cbranchhi4_real_inverted): Likewise.
40031         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40032         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40033         address space.
40034         * config/rl78/rl78.c (rl78_get_name_encoding): New.
40035         (rl78_option_override): Allow -mes0 only if C.
40036         (characterize_address): Support subregs of symbol_refs.
40037         (rl78_addr_space_address_mode): Move.  Add __near.
40038         (rl78_far_p): Likewise.
40039         (rl78_addr_space_pointer_mode): Likewise.
40040         (rl78_as_legitimate_address): Likewise.
40041         (rl78_addr_space_subset_p): Likewise.
40042         (rl78_addr_space_convert): Likewise.
40043         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40044         symbols with -mes0.
40045         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
40046         addressing.
40047         (rl78_alloc_physical_registers_op1): Change logic to prefer
40048         symbol[BC] addressing.
40049         (frodata_section): New.
40050         (rl78_asm_init_sections): Initialize it.
40051         (rl78_select_section): Put __far readonly symbols in .frodata.
40052         (rl78_make_type_far): New.
40053         (rl78_insert_attributes): Force all readonly symbols to be
40054         __far when -mes0.
40055         (rl78_asm_out_integer): New.
40056         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40057         * config/rl78/rl78.opt (-mes0): New.
40059         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40060         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40061         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40062         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40063         (rl78_saddr_p): New.
40064         (rl78_output_aligned_common): New.
40065         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40066         (rl78_handle_saddr_attribute): New.
40067         (rl78_handle_naked_attribute): New.
40068         (rl78_attribute_table): Add saddr.
40069         (rl78_print_operand_1): Don't print '!' on saddr operands.
40070         (rl78_print_operand_1): Strip encodings.
40071         (rl78_sfr_p): New.
40072         (rl78_strip_name_encoding): New.
40073         (rl78_attrlist_to_encoding): New.
40074         (rl78_encode_section_info): New.
40075         (rl78_asm_init_sections): New.
40076         (rl78_select_section): New.
40077         (rl78_output_labelref): New.
40078         (rl78_output_aligned_common): New.
40079         (rl78_asm_out_integer): New.
40080         (rl78_asm_ctor_dtor): New.
40081         (rl78_asm_constructor): New.
40082         (rl78_asm_destructor): New.
40084         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40085         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40086         (transcode_memory_rtx): Update.
40087         (rl78_expand_epilogue): Use A_REG instead of 0.
40089 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40091         * config/arm/arm-protos.h (struct tune_params): New field
40092         sched_autopref_queue_depth.
40093         * config/arm/arm.c (sched-int.h): Include header.
40094         (arm_first_cycle_multipass_dfa_lookahead_guard,)
40095         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40096         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40097         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40098         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40099         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40100         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40101         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40102         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
40103         * config/arm/t-arm (arm.o): Update.
40104         * haifa-sched.c (update_insn_after_change): Update.
40105         (rank_for_schedule): Use auto-prefetcher model, if requested.
40106         (autopref_multipass_init): New static function.
40107         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40108         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40109         variable for debug dumps.
40110         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40111         (autopref_multipass_dfa_lookahead_guard): New global function that
40112         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40113         (init_h_i_d): Update.
40114         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40115         * sched-int.h (enum autopref_multipass_data_status): New const enum.
40116         (autopref_multipass_data_): Structure for auto-prefetcher data.
40117         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40118         (struct _haifa_insn_data:autopref_multipass_data): New field.
40119         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40120         (autopref_multipass_dfa_lookahead_guard): Declare.
40122 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40124         * rtlanal.c (get_base_term): Handle SCRATCH.
40126 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40128         * config/aarch64/aarch64.c
40129         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40130         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40131         * config/arm/arm.c
40132         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40133         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40135 2015-01-17  Alan Modra  <amodra@gmail.com>
40137         * cprop.c (do_local_cprop): Disallow replacement of fixed
40138         hard registers.
40140 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40142         PR target/62066
40143         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40144         early return 0.
40146 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40148         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40149         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40151 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40153         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40154         * config/arm/thumb1.md: ... Here.
40156 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40158         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40159         TImode for TARGET_32BIT.
40161 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40163         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40164         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40165         as ...
40166         (rs6000_abi_word_mode): New function.
40168 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40170         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40171         instead of UNITS_PER_WORD to describe the size of stack slots.
40173 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40175         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40176         as rs6000_promote_function_mode.  Move comment to there.
40177         (rs6000_promote_function_mode): New function.
40179 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40181         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40182         -mpowerpc64 is active.
40184 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40186         PR middle-end/64353
40187         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40188         virtuals on start.
40190 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40192         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40193         introduced in revision 219724.
40195 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40196             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40198         PR target/64263
40199         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40200         destination is not a GP reg.
40201         (*movdi_aarch64): Likewise.
40203 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
40205         PR target/64623
40206         * config/rs6000/default64.h: Revert ISA change.
40208 2015-01-16  Richard Biener  <rguenther@suse.de>
40210         PR middle-end/64614
40211         * tree-ssa-uninit.c: Include tree-cfg.h.
40212         (MAX_SWITCH_CASES): New define.
40213         (convert_control_dep_chain_into_preds): Handle switch statements.
40214         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40215         (normalize_one_pred_1): Do not split bit-manipulations.
40216         Record (x & CST).
40218 2015-01-16  Richard Biener  <rguenther@suse.de>
40220         PR tree-optimization/64568
40221         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40222         complex load rewriting for TARGET_MEM_REFs.
40224 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
40226         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40228 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
40230         PR target/64149
40231         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40232         variable.
40233         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40234         (aarch64_lra_p): Remove.
40236 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40238         PR target/64363
40239         * ipa-chkp.h (chkp_instrumentable_p): New.
40240         * ipa-chkp.c: Include tree-inline.h.
40241         (chkp_instrumentable_p): New.
40242         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40243         Fix processing of not instrumentable functions.
40244         (chkp_versioning): Use chkp_instrumentable_p. Warn about
40245         not instrumentable functions.
40246         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40247         chkp_instrumentable_p.
40248         * tree-inline.h (copy_forbidden): New.
40249         * tree-inline.c (copy_forbidden): Not static anymore.
40251 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40253         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40254         ptr1, ptr2 unused.
40256 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40258         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40259         type OP_OUT to OP_INOUT.
40261 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40263         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40264         (high x) y) to y if x and y have the same base.
40266 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40268         * config/arm/cortex-a57.md: New.
40269         * config/aarch64/aarch64.md: Include it.
40270         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40271         * config/aarch64/aarch64-tune.md: Regenerate.
40273 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
40275         PR target/64015
40276         * ccmp.c (expand_ccmp_next): New function.
40277         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40278         and compare insn sequence.
40279         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40280         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40281         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40282         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40283         (*ccmp_ior): Changed to ccmp_ior<mode>.
40284         (cmp<mode>): New pattern.
40285         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40286         parameters.
40287         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40289 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
40291         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40292         _mm256_bsrli_epi128): New.
40293         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40295 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40297         * expmed.c (store_bit_field_using_insv): Improve warning message.
40298         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40300 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40302         PR rtl-optimization/64011
40303         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40304         there is partial overflow.
40306 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40308         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40309         prototype.
40310         (nds32_expand_epilogue_v3pop): Likewise.
40311         * config/nds32/nds32.md (sibcall): Define this for sibling call
40312         optimization.
40313         (sibcall_register): Likewise.
40314         (sibcall_immediate): Likewise.
40315         (sibcall_value): Likewise.
40316         (sibcall_value_register): Likewise.
40317         (sibcall_value_immediate): Likewise.
40318         (sibcall_epilogue): Likewise.
40319         (epilogue): Pass false to indicate this is not a sibcall epilogue.
40320         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40321         (nds32_expand_epilogue_v3pop): Likewise.
40323 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40325         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40326         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40327         (return_internal): New.
40328         (return): Define this named pattern.
40329         (simple_return): Define this named pattern.
40330         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40331         pattern instead of unspec_volatile_func_return.
40332         (nds32_expand_epilogue_v3pop): Likewise.
40333         (nds32_can_use_return_insn): New function.
40335 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40337         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40338         * config/nds32/nds32.md (pop25return): New.
40339         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40340         pop25return pattern.
40342 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40344         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40345         -mforbid-fp-as-gp, and -mex9 options.
40347 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40349         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40350         remove -mgp-direct option.
40352 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40354         * doc/invoke.texi (--param early-inlining-insns): Update default value.
40355         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40357 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40359         * ipa-inline.c (inline_small_functions): Work around hints
40360         cache issue.
40362 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
40364         PR target/59710
40365         * doc/invoke.texi (Option Summary): Document new Nios II
40366         -mgpopt= syntax.
40367         (Nios II Options): Likewise.
40368         * config/nios2/nios2.opt: Add -mgpopt= option support.
40369         Modify existing -mgpopt and -mno-gpopt options to be aliases.
40370         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40371         * config/nios2/nios2.c (nios2_option_override): Adjust
40372         -mgpopt defaulting.
40373         (nios2_in_small_data_p): Return true for explicit small data
40374         sections even with -G0.
40375         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40376         option choices.
40378 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40380         PR ipa/64612
40381         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40382         of comdat locals.
40383         (inline_call): Fix removal of aliases.
40385 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40387         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40388         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40389         * opts.c (common_handle_option): Add -fsanitize=vptr.
40390         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40391         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40392         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40393         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40394         (ubsan_expand_vptr_ifn): New prototype.
40395         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40396         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40397         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40398         expand_LOOP_VECTORIZED): Make argument nameless, remove
40399         ATTRIBUTE_UNUSED.
40400         (expand_UBSAN_VPTR): New function.
40401         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40402         in fn spec.
40403         (UBSAN_VPTR): New internal function.
40404         * sanopt.c (tree_map_traits): Renamed to ...
40405         (sanopt_tree_map_traits): ... this.
40406         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40407         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40408         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
40409         (maybe_optimize_ubsan_vptr_ifn): New function.
40410         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40411         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
40412         -fsanitize=vptr.
40413         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40414         internal calls like pure functions for aliasing, even when they
40415         have other side-effects that prevent making them ECF_PURE.
40416         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40417         (ubsan_expand_vptr_ifn): New function.
40419 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
40421         PR rtl-optimization/64110
40422         * stmt.c (parse_output_constraint): Process '^' and '$'.
40423         (parse_input_constraint): Ditto.
40424         * lra-constraints.c (process_alt_operands): Process the new
40425         constraints.
40426         * ira-costs.c (record_reg_classes): Process the new constraint
40427         '^'.
40428         * genoutput.c (indep_constraints): Add '^' and '$'.
40429         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40430         * doc/md.texi: Add description of the new constraints.
40432 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
40433             Bernd Schmidt  <bernds@codesourcery.com>
40434             Cesar Philippidis  <cesar@codesourcery.com>
40435             James Norris  <jnorris@codesourcery.com>
40436             Tom de Vries  <tom@codesourcery.com>
40437             Ilmir Usmanov  <i.usmanov@samsung.com>
40438             Dmitry Bocharnikov  <dmitry.b@samsung.com>
40439             Evgeny Gavrin  <e.gavrin@samsung.com>
40440             Jakub Jelinek  <jakub@redhat.com>
40442         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40443         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40444         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40445         New function types.
40446         * builtins.c: Include "gomp-constants.h".
40447         (expand_builtin_acc_on_device): New function.
40448         (expand_builtin, is_inexpensive_builtin): Handle
40449         BUILT_IN_ACC_ON_DEVICE.
40450         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40451         New macros.
40452         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40453         flag_openmp.
40454         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40455         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40456         i386/intelmic-offload.h.
40457         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40458         to libgomp and its dependencies.
40459         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40460         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40461         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40462         * config/ia64/hpux.h (LIB_SPEC): Likewise.
40463         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40464         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40465         * doc/generic.texi: Update for OpenACC changes.
40466         * doc/gimple.texi: Likewise.
40467         * doc/invoke.texi: Likewise.
40468         * doc/sourcebuild.texi: Likewise.
40469         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40470         GF_OMP_FOR_KIND_OACC_LOOP.
40471         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40472         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40473         GF_OMP_TARGET_KIND_OACC_UPDATE,
40474         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40475         Dump more data.
40476         * gimple.c: Update comments for OpenACC changes.
40477         * gimple.def: Likewise.
40478         * gimple.h: Likewise.
40479         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40480         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40481         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40482         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40483         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40484         appropriate place.
40485         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40486         * gimplify.c: Include "gomp-constants.h".
40487         Update comments for OpenACC changes.
40488         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40489         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40490         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40491         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40492         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40493         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40494         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40495         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40496         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40497         OMP_CLAUSE_SEQ.
40498         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40499         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40500         OMP_CLAUSE_SET_MAP_KIND.
40501         (gimplify_oacc_cache): New function.
40502         (gimplify_omp_for): Handle OACC_LOOP.
40503         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40504         OACC_DATA.
40505         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40506         OACC_EXIT_DATA, OACC_UPDATE.
40507         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40508         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40509         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40510         (gimplify_body): Consider flag_openacc next to flag_openmp.
40511         * lto-streamer-out.c: Include "gomp-constants.h".
40512         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40513         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40514         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40515         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40516         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40517         (BUILT_IN_ACC_ON_DEVICE): New builtins.
40518         * omp-low.c: Include "gomp-constants.h".
40519         Update comments for OpenACC changes.
40520         (struct omp_context): Add reduction_map, gwv_below, gwv_this
40521         members.
40522         (extract_omp_for_data, use_pointer_for_field, install_var_field)
40523         (new_omp_context, delete_omp_context, scan_sharing_clauses)
40524         (create_omp_child_function, scan_omp_for, scan_omp_target)
40525         (check_omp_nesting_restrictions, lower_reduction_clauses)
40526         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40527         Update for OpenACC changes.
40528         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40529         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40530         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40531         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40532         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40533         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
40534         OMP_CLAUSE_MAP_*.
40535         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40536         Handle GF_OMP_FOR_KIND_OACC_LOOP.
40537         (expand_omp_target, lower_omp_target): Handle
40538         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40539         GF_OMP_TARGET_KIND_OACC_UPDATE,
40540         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40541         GF_OMP_TARGET_KIND_OACC_DATA.
40542         (pass_expand_omp::execute, execute_lower_omp)
40543         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40544         flag_openmp.
40545         (offload_symbol_decl): New variable.
40546         (oacc_get_reduction_array_id, oacc_max_threads)
40547         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40548         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40549         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40550         (oacc_gimple_assign, oacc_initialize_reduction_data)
40551         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40552         functions.
40553         (is_targetreg_ctx): Remove function.
40554         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40555         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40556         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40557         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40558         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40559         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40560         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40561         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40562         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40563         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40564         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40565         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40566         * tree-core.h: Update comments for OpenACC changes.
40567         (enum omp_clause_map_kind): Remove.
40568         (struct tree_omp_clause): Change type of map_kind member from enum
40569         omp_clause_map_kind to unsigned char.
40570         * tree-inline.c: Update comments for OpenACC changes.
40571         * tree-nested.c: Likewise.  Include "gomp-constants.h".
40572         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40573         (convert_tramp_reference_stmt, convert_gimple_call): Update for
40574         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40575         OMP_CLAUSE_SET_MAP_KIND.
40576         * tree-pretty-print.c: Include "gomp-constants.h".
40577         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40578         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40579         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40580         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40581         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40582         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
40583         instead of OMP_CLAUSE_MAP_*.
40584         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40585         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40586         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40587         * tree-streamer-in.c: Include "gomp-constants.h".
40588         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40589         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
40590         * tree-streamer-out.c: Include "gomp-constants.h".
40591         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40592         OMP_CLAUSE_MAP_*.
40593         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40594         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40595         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40596         * tree.c (omp_clause_num_ops): Update accordingly.
40597         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40598         Likewise.
40599         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40600         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40601         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40602         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40603         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40604         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40605         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40606         (OMP_CLAUSE_SET_MAP_KIND): New macro.
40607         * varpool.c (varpool_node::get_create): Consider flag_openacc next
40608         to flag_openmp.
40609         * config/i386/intelmic-offload.h: New file.
40610         * config/nvptx/offload.h: Likewise.
40612 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40614         * explow.h: Remove duplicate contents.
40615         * dojump.h: Likewise.
40617 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
40619         * arm.c (arm_xgene_tune): Add default initializer for instruction
40620         fusion.
40622 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40624         PR ipa/64068
40625         PR ipa/64559
40626         * ipa.c (symbol_table::remove_unreachable_nodes):
40627         Do not put abstract origins into boundary.
40629 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
40631         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40632         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40634 2015-01-15  Steve Ellcey  <sellcey@mips.com>
40636         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40637         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40638         builtins.def, and chkp-builtins.def.
40640 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
40642         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40643         ISA 2.7 (POWER8).
40645 2015-01-15  Richard Biener  <rguenther@suse.de>
40647         PR tree-optimization/61743
40648         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40649         information on PHIs for some simple cases.
40651 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40653         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40654         Include xgene1.md.
40655         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40656         * config/arm/arm-cores.def (xgene1): New entry.
40657         * config/arm/arm-tables.opt: Regenerate.
40658         * config/arm/arm-tune.md: Regenerate.
40659         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40661 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40663         * tree-if-conv.c: Include hash-map.h.
40664         (aggressive_if_conv): New variable.
40665         (fold_build_cond_expr): Add simplification of non-zero condition.
40666         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40667         destination block is not always executed.
40668         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40669         than two predecessors if AGGRESSIVE_IF_CONV is true.
40670         (if_convertible_stmt_p): Fix commentary.
40671         (all_preds_critical_p): New function.
40672         (has_pred_critical_p): New function.
40673         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40674         BB can have more than two predecessors and all incoming edges can be
40675         critical.
40676         (predicate_bbs): Skip predication for loop exit block, use build2_loc
40677         to compute predicate for true edge.
40678         (find_phi_replacement_condition): Delete this function.
40679         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40680         Allow interchange PHI arguments if EXTENDED is false.
40681         Change check that block containing reduction statement candidate
40682         is predecessor of phi-block since phi may have more than two arguments.
40683         (phi_args_hash_traits): New helper structure.
40684         (struct phi_args_hash_traits): New type.
40685         (phi_args_hash_traits::hash): New function.
40686         (phi_args_hash_traits::equal_keys): New function.
40687         (gen_phi_arg_condition): New function.
40688         (predicate_scalar_phi): Add handling of phi nodes with more than two
40689         arguments, delete COND and TRUE_BB arguments, insert body of
40690         find_phi_replacement_condition to predicate ordinary phi nodes.
40691         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40692         delete call of find_phi_replacement_condition and invoke
40693         predicate_scalar_phi with two arguments.
40694         (insert_gimplified_predicates): Add assert that non-predicated block
40695         don't have statements to insert.
40696         (ifcvt_split_critical_edges): New function.
40697         (ifcvt_split_def_stmt): Likewise.
40698         (ifcvt_walk_pattern_tree): Likewise.
40699         (stmt_is_root_of_bool_pattern): Likewise.
40700         (ifcvt_repair_bool_pattern): Likewise.
40701         (ifcvt_local_dce): Likewise.
40702         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40703         is copy of inner or outer loop force_vectorize field, invoke
40704         ifcvt_split_critical_edges, ifcvt_local_dce and
40705         ifcvt_repair_bool_pattern for aggressive if-conversion.
40707 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
40709         * config/aarch64/aarch64.md: Include xgene1.md.
40710         * config/aarch64/xgene1.md: New file.
40712 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40714         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40715         xgene1 (APM XGene-1) core definition.
40716         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40717         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40718         * doc/invoke.texi: Document -mcpu=xgene1.
40720 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40722         * dojump.h: New header file.
40723         * explow.h: Likewise.
40724         * expr.h: Remove includes.
40725         Move expmed.c prototypes to expmed.h.
40726         Move dojump.c prototypes to dojump.h.
40727         Move alias.c prototypes to alias.h.
40728         Move explow.c prototypes to explow.h.
40729         Move calls.c prototypes to calls.h.
40730         Move emit-rtl.c prototypes to emit-rtl.h.
40731         Move varasm.c prototypes to varasm.h.
40732         Move stmt.c prototypes to stmt.h.
40733         (saved_pending_stack_adjust): Move to dojump.h.
40734         (adjust_address): Move to explow.h.
40735         (adjust_address_nv): Move to emit-rtl.h.
40736         (adjust_bitfield_address): Likewise.
40737         (adjust_bitfield_address_size): Likewise.
40738         (adjust_bitfield_address_nv): Likewise.
40739         (adjust_automodify_address_nv): Likewise.
40740         * explow.c (expr_size): Move to expr.c.
40741         (int_expr_size): Likewise.
40742         (tree_expr_size): Likewise.
40743         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40744         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40745         * genemit.c (main): Generate includes statistics.h, real.h,
40746         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40747         stmt.h.
40748         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40749         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40750         explow.h, emit-rtl.h, stmt.h.
40751         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40752         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40753         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40754         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40755         emit-rtl.h, varasm.h, stmt.h.
40756         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40757         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40758         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40759         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40760         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40761         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40762         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40763         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40764         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40765         tm.h tree.h varasm.h vec.h wide-int.h.
40766         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40767         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40768         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40769         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40770         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40771         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40772         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40773         * loop-iv.c: Likewise.
40774         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40775         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40776         statistics.h stmt.h tree.h varasm.h wide-int.h.
40777         * lra-constraints.c: Likewise.
40778         * lra-eliminations.c: Likewise.
40779         * lra-lives.c: Likewise.
40780         * lra-remat.c: Likewise.
40781         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40782         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40783         statistics.h stmt.h tree.h varasm.h wide-int.h.
40784         * hw-doloop.c: Likewise.
40785         * ira-color.c: Likewise.
40786         * ira-emit.c: Likewise.
40787         * loop-doloop.c: Likewise.
40788         * loop-invariant.c: Likewise.
40789         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40790         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40791         statistics.h stmt.h tree.h varasm.h wide-int.h.
40792         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40793         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40794         statistics.h stmt.h tree.h varasm.h wide-int.h.
40795         * combine-stack-adj.c: Likewise.
40796         * cse.c: Likewise.
40797         * ddg.c: Likewise.
40798         * ifcvt.c: Likewise.
40799         * ira-costs.c: Likewise.
40800         * jump.c: Likewise.
40801         * lra-coalesce.c: Likewise.
40802         * lra-spills.c: Likewise.
40803         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40804         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40805         stmt.h varasm.h wide-int.h.
40806         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40807         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40808         varasm.h.
40809         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40810         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40811         statistics.h stmt.h varasm.h wide-int.h.
40812         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40813         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40814         varasm.h wide-int.h.
40815         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40816         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40817         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40818         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40819         statistics.h stmt.h.
40820         * config/tilepro/tilepro.c: Likewise.
40821         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40822         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40823         * config/pdp11/pdp11.c: Likewise.
40824         * config/xtensa/xtensa.c: Likewise.
40825         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40826         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40827         varasm.h.
40828         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40829         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40830         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40831         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40832         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40833         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40834         * rtl-chkp.c: Likewise.
40835         * tree-chkp-opt.c: Likewise.
40836         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40837         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40838         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40839         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40840         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40841         statistics.h stmt.h.
40842         * tree-vect-data-refs.c: Likewise.
40843         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40844         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40845         rtl.h statistics.h stmt.h varasm.h.
40846         * internal-fn.c: Likewise.
40847         * ipa-icf-gimple.c: Likewise.
40848         * lto-section-out.c: Likewise.
40849         * tree-data-ref.c: Likewise.
40850         * tree-nested.c: Likewise.
40851         * tree-outof-ssa.c: Likewise.
40852         * tree-predcom.c: Likewise.
40853         * tree-pretty-print.c: Likewise.
40854         * tree-scalar-evolution.c: Likewise.
40855         * tree-ssa-strlen.c: Likewise.
40856         * tree-vect-loop.c: Likewise.
40857         * tree-vect-patterns.c: Likewise.
40858         * tree-vect-slp.c: Likewise.
40859         * tree-vect-stmts.c: Likewise.
40860         * tsan.c: Likewise.
40861         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40862         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40863         stmt.h.
40864         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40865         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40866         statistics.h stmt.h varasm.h.
40867         * loop-unroll.c: Likewise.
40868         * ubsan.c: Likewise.
40869         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40870         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40871         stmt.h varasm.h.
40872         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40873         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40874         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40875         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40876         statistics.h stmt.h.
40877         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40878         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40879         statistics.h stmt.h varasm.h.
40880         * gimple-match-head.c: Likewise.
40881         * lto-cgraph.c: Likewise.
40882         * lto-section-in.c: Likewise.
40883         * lto-streamer-in.c: Likewise.
40884         * lto-streamer-out.c: Likewise.
40885         * tree-affine.c: Likewise.
40886         * tree-cfg.c: Likewise.
40887         * tree-cfgcleanup.c: Likewise.
40888         * tree-if-conv.c: Likewise.
40889         * tree-into-ssa.c: Likewise.
40890         * tree-ssa-alias.c: Likewise.
40891         * tree-ssa-copyrename.c: Likewise.
40892         * tree-ssa-dse.c: Likewise.
40893         * tree-ssa-forwprop.c: Likewise.
40894         * tree-ssa-live.c: Likewise.
40895         * tree-ssa-math-opts.c: Likewise.
40896         * tree-ssa-pre.c: Likewise.
40897         * tree-ssa-sccvn.c: Likewise.
40898         * tree-tailcall.c: Likewise.
40899         * tree-vect-generic.c: Likewise.
40900         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40901         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40902         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40903         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40904         * varasm.c: Likewise.
40905         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40906         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40907         varasm.h.
40908         * init-regs.c: Likewise.
40909         * ira.c: Likewise.
40910         * omp-low.c: Likewise.
40911         * stack-ptr-mod.c: Likewise.
40912         * tree-ssa-reassoc.c: Likewise.
40913         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40914         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40915         varasm.h.
40916         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40917         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40918         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40919         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40920         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40921         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40922         * tree-ssa-phiopt.c: Likewise.
40923         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40924         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40925         * config/fr30/fr30.c: Likewise.
40926         * config/frv/frv.c: Likewise.
40927         * expr.c: Likewise.
40928         * final.c: Likewise.
40929         * optabs.c: Likewise.
40930         * passes.c: Likewise.
40931         * simplify-rtx.c: Likewise.
40932         * stmt.c: Likewise.
40933         * toplev.c: Likewise.
40934         * var-tracking.c: Likewise.
40935         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40936         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40937         * lower-subreg.c: Likewise.
40938         * postreload-gcse.c: Likewise.
40939         * ree.c: Likewise.
40940         * reginfo.c: Likewise.
40941         * store-motion.c: Likewise.
40942         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40943         fixed-value.h hashtab.h real.h stmt.h varasm.h.
40944         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40945         fixed-value.h hashtab.h statistics.h stmt.h.
40946         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40947         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40948         * except.c: Likewise.
40949         * explow.c: Likewise.
40950         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40951         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40952         varasm.h.
40953         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40954         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40955         * tree-ssa-structalias.c: Likewise.
40956         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40957         fixed-value.h insn-config.h real.h statistics.h.
40958         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40959         fixed-value.h insn-config.h real.h statistics.h stmt.h.
40960         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40961         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40962         * cfgbuild.c: Likewise.
40963         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40964         fixed-value.h real.h rtl.h statistics.h stmt.h.
40965         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40966         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40967         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40968         fixed-value.h real.h statistics.h stmt.h.
40969         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40970         fixed-value.h real.h statistics.h stmt.h varasm.h.
40971         * cprop.c: Likewise.
40972         * modulo-sched.c: Likewise.
40973         * postreload.c: Likewise.
40974         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40975         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40976         statistics.h stmt.h varasm.h.
40977         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40978         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40979         rtl.h statistics.h stmt.h varasm.h.
40980         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40981         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40982         varasm.h.
40983         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40984         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40985         varasm.h.
40986         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40987         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40988         varasm.h.
40989         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40990         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40991         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40992         function.h real.h statistics.h stmt.h varasm.h.
40993         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40994         insn-config.h real.h statistics.h stmt.h.
40995         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40996         statistics.h stmt.h.
40997         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40998         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40999         statistics.h stmt.h varasm.h.
41000         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41001         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41002         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41003         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41004         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41005         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41006         statistics.h stmt.h varasm.h.
41007         * ipa-polymorphic-call.c: Likewise.
41008         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41009         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41010         statistics.h stmt.h.
41011         * config/c6x/c6x.c: Likewise.
41012         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41013         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41014         statistics.h stmt.h varasm.h.
41015         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41016         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41017         stmt.h varasm.h.
41018         * ipa-split.c: Likewise.
41019         * tree-eh.c: Likewise.
41020         * tree-ssa-dce.c: Likewise.
41021         * tree-ssa-loop-niter.c: Likewise.
41022         * tree-vrp.c: Likewise.
41023         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41024         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41025         stmt.h.
41026         * config/nds32/nds32-fp-as-gp.c: Likewise.
41027         * config/nds32/nds32-intrinsic.c: Likewise.
41028         * config/nds32/nds32-isr.c: Likewise.
41029         * config/nds32/nds32-md-auxiliary.c: Likewise.
41030         * config/nds32/nds32-memory-manipulation.c: Likewise.
41031         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41032         * config/nds32/nds32-predicates.c: Likewise.
41033         * config/nds32/nds32.c: Likewise.
41034         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41035         fixed-value.h hashtab.h real.h statistics.h.
41036         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41037         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41038         * config/arm/arm.c: Likewise.
41039         * config/avr/avr.c: Likewise.
41040         * config/bfin/bfin.c: Likewise.
41041         * config/h8300/h8300.c: Likewise.
41042         * config/i386/i386.c: Likewise.
41043         * config/ia64/ia64.c: Likewise.
41044         * config/iq2000/iq2000.c: Likewise.
41045         * config/m32c/m32c.c: Likewise.
41046         * config/m32r/m32r.c: Likewise.
41047         * config/m68k/m68k.c: Likewise.
41048         * config/mcore/mcore.c: Likewise.
41049         * config/mep/mep.c: Likewise.
41050         * config/mips/mips.c: Likewise.
41051         * config/mn10300/mn10300.c: Likewise.
41052         * config/moxie/moxie.c: Likewise.
41053         * config/pa/pa.c: Likewise.
41054         * config/rl78/rl78.c: Likewise.
41055         * config/rx/rx.c: Likewise.
41056         * config/s390/s390.c: Likewise.
41057         * config/sh/sh.c: Likewise.
41058         * config/sparc/sparc.c: Likewise.
41059         * config/spu/spu.c: Likewise.
41060         * config/stormy16/stormy16.c: Likewise.
41061         * config/v850/v850.c: Likewise.
41062         * config/vax/vax.c: Likewise.
41063         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41064         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41065         * config/msp430/msp430.c: Likewise.
41066         * predict.c: Likewise.
41067         * value-prof.c: Likewise.
41068         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41069         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41070         * config/microblaze/microblaze.c: Likewise.
41071         * config/nios2/nios2.c: Likewise.
41072         * config/rs6000/rs6000.c: Likewise.
41073         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41074         insn-config.h real.h rtl.h statistics.h stmt.h.
41075         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41076         insn-config.h real.h statistics.h stmt.h.
41077         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41078         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41079         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41080         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41081         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41082         fixed-value.h real.h statistics.h stmt.h.
41083         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41084         fixed-value.h statistics.h stmt.h.
41085         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41086         stmt.h.
41088 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41090         * gengtype.c (create_user_defined_type): Workaround
41091         -Wmaybe-uninitialized false positives.
41092         * cse.c (fold_rtx): Likewise.
41093         * loop-invariant.c (gain_for_invariant): Likewise.
41095 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
41097         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41098         set the memory attributes in all cases but clear MEM_EXPR if need be.
41100 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41102         PR tree-optimization/64434
41103         * cfgexpand.c (reorder_operands): New function.
41104         (expand_gimple_basic_block): Insert call of reorder_operands if
41105         optimized is true.
41107 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
41109         * config/mips/micromips.md (*swp): Remove explicit parallel.
41110         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41111         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41112         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41113         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41114         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41115         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41116         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41117         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41118         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41119         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41120         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41121         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41122         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41123         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41124         (mips_wrdsp): Likewise.
41125         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41126         parallel.
41127         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41128         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41129         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41130         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41131         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41132         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41133         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41134         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41135         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41137 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41139         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41140         (mips_print_operand): Support 'y' to print exact log2 in decimal
41141         of a const_int.
41142         * config/mips/mips.h (ISA_HAS_LSA): New define.
41143         (ISA_HAS_DLSA): Likewise.
41144         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41145         * config/mips/predicates.md (const_immlsa_operand): New predicate.
41147 2015-01-15  Martin Liska  <mliska@suse.cz>
41149         PR target/64377
41150         * optc-save-gen.awk: Add support for array types.
41152 2015-01-15  Richard Biener  <rguenther@suse.de>
41154         PR middle-end/64365
41155         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41156         for MEM_REF access functions with the same base can never partially
41157         overlap.
41159 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
41161         * common.opt: New option -fstack-protector-explicit.
41162         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41163         (stack_protect_decl_phase): Handle stack_protect attribute for
41164         explicit stack protection requests.
41165         (expand_used_vars): Similarly.
41166         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41167         * doc/extend.texi: Add documentation for "stack_protect" attribute.
41168         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41170 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
41172         PR target/53988
41173         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41174         reg-reg copies.
41175         (sh_extending_set_of_reg): New struct.
41176         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41177         sh_remove_reg_dead_or_unused_notes): New Declarations.
41178         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41179         sh_find_extending_set_of_reg, sh_split_tst_subregs,
41180         sh_extending_set_of_reg::use_as_extended_reg): New functions.
41181         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41182         convert to insn_and_split and use new function sh_split_tst_subregs.
41184 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
41186         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41187         option.
41188         (Optimization Options): Move -fuse-ld documentation to...
41189         (Link Options): ...here.
41191 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41193         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41194         offsets.
41195         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41196         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41197         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41198         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41199         instead of ZR for the memory operand of LL/SC.
41200         (compare_and_swap_12, sync_add<mode>): Likewise.
41201         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41202         (sync_new_<optab>_12, sync_nand_12): Likewise.
41203         (sync_old_nand_12, sync_new_nand_12): Likewise.
41204         (sync_sub<mode>, sync_old_add<mode>): Likewise.
41205         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41206         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41207         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41208         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41209         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41210         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41211         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41212         * doc/md.texi (ZC): Update description.
41214 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41216         * builtins.c (expand_builtin_atomic_exchange): Remove error when
41217         memory model is CONSUME.
41218         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41219         expand_builtin_atomic_store): Change invalid memory model errors to
41220         warnings.
41221         (expand_builtin_atomic_clear): Change invalid model errors to warnings
41222         and issue warning for CONSUME.
41224 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
41226         * lto-cgraph: Update function comments for
41227         lto_symtab_encoder_encode_*.
41229 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41231         * Makefile.in (site.exp): Do not set ENABLE_LTO.
41233 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41235         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41236         * lto-cgraph.c (select_what_to_stream): Remove argument, use
41237         lto_stream_offload_p instead.
41238         * lto-streamer.h (select_what_to_stream): Remove argument.
41239         * passes.c (ipa_write_summaries): Likewise.
41240         * tree-pass.h (ipa_write_summaries): Likewise.
41242 2015-01-14  Richard Biener  <rguenther@suse.de>
41244         PR tree-optimization/59354
41245         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41246         groups larger than the slp group size as having gaps.
41248 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41250         PR middle-end/59448
41251         * builtins.c (get_memmodel): Promote consume to acquire always.
41253 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41255         PR target/64386
41256         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41257         V32HImode.
41259 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41261         PR target/64393
41262         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41263         Enable AVX512BW.
41264         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41265         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41266         AVX512VBMI, as it implies AVX512BW.
41268 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41270         PR target/64387
41271         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41272         (vec_unpacks_hi_v16sf): Ditto.
41274 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41276         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41277         is not available.
41279 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41281         * doc/invoke.texi (mapcs): Mention deprecation.
41282         (mapcs-frame): Likewise.
41284 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41286         PR target/64453
41287         * config/arm/arm.c (callee_saved_reg_p): Define.
41288         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41289         register is callee saved instead of !call_used_regs[reg].
41290         (thumb1_compute_save_reg_mask): Likewise.
41292 2015-01-14  Hale Wang  <hale.wang@arm.com>
41294         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41295         Cortex-M7.
41297 2015-01-14  Richard Biener  <rguenther@suse.de>
41299         PR lto/64415
41300         * tree-inline.c (insert_debug_decl_map): Check destination
41301         function MAY_HAVE_DEBUG_STMTS.
41302         (insert_init_debug_bind): Likewise.
41303         (insert_init_stmt): Remove redundant check.
41304         (remap_gimple_stmt): Drop debug stmts if the destination
41305         function has var-tracking assignments disabled.
41307 2015-01-14  Martin Liska  <mliska@suse.cz>
41309         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41310         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41312 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41314         PR target/64460
41315         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41316         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41318 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41320         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41321         level from an ARCH; do not inject the default.
41322         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41323         MIPS_ISA_LEVEL_SPEC.
41324         (MIPS_ISA_NAN2008_SPEC): Update comment.
41325         (BASE_DRIVER_SELF_SPECS): Likewise.
41326         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41327         MIPS_DEFAULT_ISA_LEVEL_SPEC.
41328         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41329         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41330         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41332 2015-01-14  Richard Biener  <rguenther@suse.de>
41334         PR tree-optimization/64493
41335         PR tree-optimization/64495
41336         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41337         assign the proper vectorized PHI to the inner loop exit PHIs.
41339 2015-01-14  Joey Ye  <joey.ye@arm.com>
41341         * config/arm/arm.c (arm_compute_save_reg_mask):
41342         Do not save lr in case of tail call.
41343         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41345 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
41347         * tree-vrp.c (check_array_ref): Emit more warnings
41348         for warn_array_bounds >= 2.
41349         * common.opt: New option -Warray-bounds=.
41350         * doc/invoke.texi: Document -Warray-bounds=.
41352 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
41354         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41355         (mforbid-fp-as-gp): Remove.
41356         (mex9): Remove.
41357         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41358         (nds32_symbol_load_store_p): Remove.
41359         (nds32_fp_as_gp_check_available): Clean up implementation.
41360         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41361         cases.
41362         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41363         fp-as-gp and ex9 cases.
41365 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41367         * tree-profile.c (init_ic_make_global_vars): Drop workaround
41368         for bintuils bug 14342.
41369         (init_ic_make_global_vars): Likewise.
41370         (gimple_init_edge_profiler): Likewise.
41371         (gimple_gen_ic_func_profiler): Likewise.
41373 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
41375         * ipa-inline.c (inline_small_functions): Swap the operands in
41376         enum.
41378 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41380         PR ipa/64481
41381         * ipa-inline-analysis.c (node_growth_cache): Remove.
41382         (initialize_growth_caches): Do not initialize it.
41383         (free_growth_caches): Do not free it.
41384         (do_estimate_growth): Rename to ...
41385         (estimate_growth): ... this one; drop growth cache code.
41386         (growth_likely_positive): Always go the heuristics way.
41387         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41388         (reset_edge_caches): Do not reset node growth.
41389         (heap_edge_removal_hook): Do not maintain cache.
41390         (inline_small_functions): Likewise; strenghten sanity check.
41391         (ipa_inline): Do not maintain caches.
41392         * ipa-inline.h (node_growth_cache): Remove.
41393         (do_estimate_growth): Remove to ...
41394         (estimate_growth): this one; remove inline version.
41395         (reset_node_growth_cache): Remove.
41397 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41399         PR ipa/64565
41400         * ipa-inline.c (inline_small_functions): Update callee keys after
41401         resolving speculation
41402         (inline_small_functions): Always check monotonicity of the queue.
41404 2015-01-13  Marek Polacek  <polacek@redhat.com>
41406         PR middle-end/64391
41407         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41409 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41411         PR rtl-optimization/64286
41412         * ree.c (combine_reaching_defs): Move part of comment earlier,
41413         remove !SCALAR_INT_MODE_P check.
41414         (add_removable_extension): Don't add vector mode
41415         extensions if all uses of the source register aren't the same
41416         vector extensions.
41418 2015-01-13  Renlin Li  <renlin.li@arm.com>
41420         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41421         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41423 2015-01-13  Martin Liska  <mliska@suse.cz>
41425         * ipa-icf.c (sem_function::equals_private): Call new functions
41426         cl_target_option_print_diff and cl_optimization_print_diff.
41427         * optc-save-gen.awk (cl_target_option_print_diff): New function.
41428         (cl_optimization_print_diff): Likewise.
41429         * opth-gen.awk: Likewise.
41431 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
41433         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41434         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41435         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41436         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41437         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41438         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41440 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41442         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41443         instead of src mode.
41445 2015-01-13  Richard Biener  <rguenther@suse.de>
41447         PR lto/64373
41448         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41449         DECL_CONTEXT.
41451 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41453         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41454         volatile mems.
41455         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41457 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41459         PR middle-end/63974
41460         * cfgexpand.c (expand_computed_goto): Don't call
41461         convert_memory_address here.
41463 2015-01-13  Richard Biener  <rguenther@suse.de>
41465         PR tree-optimization/64406
41466         * tree-loop-distibution.c (pass_loop_distribution::execute):
41467         Reset the SCEV hashtable if we distributed anything.
41469 2015-01-13  Richard Biener  <rguenther@suse.de>
41471         PR tree-optimization/64404
41472         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41473         SLP types for CSEd loads.
41475 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41477         PR tree-optimization/64436
41478         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41479         merge of two symbolic numbers for a bitwise OR to ...
41480         (perform_symbolic_merge): This. Also fix computation of the range and
41481         end of the symbolic number corresponding to the result of a bitwise OR.
41483 2015-01-13  Richard Biener  <rguenther@suse.de>
41485         PR tree-optimization/64568
41486         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41487         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41489 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41491         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41492         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41494 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41496         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41497         target-specific symbol_ref flag.
41498         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41499         resides in rodata section.
41500         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41501         (nds32_encode_section_info): New function.
41503 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41505         * config/nds32/nds32.md (call): Use pseudo instruction bal which
41506         clobbers TA_REGNUM if large code model is specified.
41507         (call_register): Likewise.
41508         (call_immediate): Likewise.
41509         (call_value): Likewise.
41510         (call_value_register): Likewise.
41511         (call_value_immediate): Likewise.
41513 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41515         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41516         (TARGET_CMODEL_MEDIUM): New macro.
41517         (TARGET_CMODEL_LARGE): New macro.
41518         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41519         code model setting in assembly code.
41521 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41523         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41524         Remove MASK_GP_DIRECT flag.
41525         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41526         one of the multilib default options.
41527         * config/nds32/nds32.opt (mgp-direct): Remove.
41528         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41529         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
41531 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41533         * config/nds32/nds32.opt (mcmodel): Add new option.
41534         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41535         to describe code model.
41537 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
41539         PR target/64479
41540         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41542 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
41544         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41545         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41546         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41547         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41548         __builtin_sh_set_fpscr.
41550 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41552         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41553         after a funtion name just to indicate it is a function.
41554         ([-fsanitize-undefined-trap-on-error]): Likewise.
41555         ([-fdbg-cnt=]): Likewise.
41556         ([-mmemcpy]): Likewise.
41557         ([-mflush-func]): Likewise.
41558         ([-msynci]): Likewise.
41560 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41562         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41563         example.
41565 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
41567         PR tree-optimization/64563
41568         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41569         instead of != VR_VARYING.
41571         PR target/64513
41572         * config/i386/i386.c (ix86_expand_prologue): Add
41573         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41575         PR tree-optimization/64454
41576         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41577         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41578         for signed or [0, op1 - 1] for unsigned modulo.
41579         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41580         even if op1 does not satisfy integer_pow2p.
41582         PR other/64370
41583         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41585 2015-01-12  Jeff Law  <law@redhat.com>
41587         PR target/64461
41588         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41589         (trunchiqi2, truncsihi2): Similarly.
41591         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41592         rather than calling F.
41594 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41596         * tsan.c (instrument_expr): Use force_gimple_operand.
41597         Use may_be_nonaddressable_p instead of is_gimple_addressable.
41599 2015-01-12  Richard Biener  <rguenther@suse.de>
41601         PR tree-optimization/64530
41602         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41603         back dr1.
41605 2015-01-12  Richard Biener  <rguenther@suse.de>
41607         PR middle-end/64357
41608         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41609         latches properly.
41611 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41613         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41614         Cortex-A17 tuning parameters.
41615         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41617 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41619         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41620         * config/arm/arm.c (arm_macro_fusion_p): New function.
41621         (arm_macro_fusion_pair_p): Likewise.
41622         (TARGET_SCHED_MACRO_FUSION_P): Define.
41623         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41624         (ARM_FUSE_NOTHING): Likewise.
41625         (ARM_FUSE_MOVW_MOVT): Likewise.
41626         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41627         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41628         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41629         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41630         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41631         arm_cortex_a5_tune): Specify fuseable_ops value.
41633 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
41635         PR bootstrap/64561
41636         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41637         test for PIE with copy reloc.
41638         * configure: Regenerated.
41640 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41642         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41643         in gen_rtx_REG.
41644         (arm_tls_descseq_addr): Likewise.
41645         (arm_gen_movmemqi): Likewise.
41646         (arm_expand_epilogue_apcs_frame): Likewise.
41647         (arm_expand_epilogue): Likewise.
41648         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
41649         in gen_rtx_REG.
41651 2015-01-12  Martin Liska  <mliska@suse.cz>
41653         PR ipa/64550
41654         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41655         volatility for correct operands.
41657 2015-01-12  Martin Liska  <mliska@suse.cz>
41659         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41660         indication that a function is not leaf.
41661         (sem_function::compare_polymorphic_p): Likewise.
41663 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41665         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41666         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41667         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41668         fold-const.h, tree-check.h.
41670 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41672         PR ipa/63967
41673         PR ipa/64425
41674         * ipa-inline.c (compute_uninlined_call_time,
41675         compute_inlined_call_time): Use counts for extra precision when
41676         needed possible.
41677         (big_speedup_p): Fix formating.
41678         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41679         (relative_time_benefit): Remove.
41680         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41681         merge guessed and read profile paths.
41682         (inline_small_functions): Count only !optimize_size functions into
41683         initial size; be more lax about sanity check when profile is used;
41684         be sure to update inlined function profile when profile is read.
41686 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41688         PR ipa/63470
41689         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41690         cost when edge becomes direct.
41691         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41692         is resolved or when introducing new speculation.
41694 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
41696         PR ipa/64551
41697         PR ipa/64552
41698         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41699         '||' to fix typo issue.
41701         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41702         accept and return NULL.
41704 2015-01-12  Martin Liska  <mliska@suse.cz>
41706         * cgraph.c (cgraph_edge::remove_callee): Move function to header
41707         file for being inlined.
41708         (cgraph_set_edge_callee): Delete.
41709         (cgraph_edge::redirect_callee): Move function to header file
41710         for being inlined.
41711         (cgraph_edge::make_direct): Use new function.
41712         (cgraph_edge::dump_edge_flags): New function created from
41713         static dump_edge_flags function.
41714         (cgraph_node::dump): Use new function.
41715         (cgraph_edge::verify_count_and_frequency): New function created
41716         from verify_edge_count_and_frequency.
41717         (cgraph_edge::verify_corresponds_to_fndecl): New function created
41718         from verify_edge_corresponds_to_fndecl.
41719         (verify_edge_corresponds_to_fndecl): Delete.
41720         (cgraph_node::verify_node): Use new function.
41721         * cgraph.h (cgraph_edge::set_callee): New function.
41722         (cgraph_edge::dump_edge_flags): Likewise.
41723         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41725 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
41727         * ipa-utils.c (estimate_function_body_sizes): Do not
41728         free node params when called late with early=true.
41730 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
41732         * doc/md.texi (Instruction Patterns): Rewrite text for
41733         clarity.
41734         (Example): Likewise.
41736 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
41738         * doc/invoke.texi (Option Summary): Break long lines.
41739         [(-fdiagnostics-color)]: Put long literal in @smallexample
41740         instead of inline.
41741         [(-fsanitize-recover)]: Likewise.
41742         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41743         [(-ffast-math)]: Likewise.
41744         [(--param max-inline-insns-recursive)]: Likewise.
41745         [(--param max-inline-recursive-depth)]: Likewise.
41746         [(-mno-text-section-literals)]: Likewise.
41748 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
41750         * doc/install.texi: Update for libgomp being renamed from "GNU
41751         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41752         Runtime Library".
41753         * doc/sourcebuild.texi: Likewise.
41755 2015-01-10  Anthony Green  <green@moxielogic.com>
41757         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41758         mul.x availability for moxiebox configuration.
41760 2015-01-09  Anthony Green  <green@moxielogic.com>
41762         * config/moxie/moxie.md: Tabify assembly output.
41764 2015-01-09  Anthony Green  <green@moxielogic.com>
41766         * config/moxie/moxie.md (CC_REG): Correct register definition.
41768 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
41770         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41771         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
41772         of log files.
41774 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41776         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41778 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
41779             Jakub Jelinek  <jakub@redhat.com>
41781         PR middle-end/64412
41782         * lto-streamer.h (lto_stream_offload_p): New declaration.
41783         * lto-streamer.c (lto_stream_offload_p): New variable.
41784         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41785         at the same time as section_name_prefix.
41786         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41787         if lto_stream_offload_p.
41788         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41789         stream TREE_TARGET_OPTION if lto_stream_offload_p.
41790         (write_ts_function_decl_tree_pointers): Don't
41791         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41792         * tree-streamer-in.c (unpack_value_fields): Don't stream
41793         TREE_TARGET_OPTION in if ACCEL_COMPILER.
41794         (lto_input_ts_function_decl_tree_pointers): Don't stream
41795         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41796         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41797         instead of section_name_prefix string comparisons.
41799 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
41801         PR rtl-optimization/64536
41802         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41803         tablejumps.
41805 2015-01-09  Michael Collison  <michael.collison@linaro.org>
41807         PR tree-optimization/64322
41808         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41809         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41811 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41813         PR rtl-optimization/64539
41814         * regcprop.c (kill_clobbered_values): Factor out of ...
41815         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
41816         instead of note_stores with kill_clobbered_value.
41818 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41820          * ginclude/unwind-arm-common.h: Revert previous commit.
41822 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41824         * config.gcc (arm*-*-freebsd*): New configuration.
41825         * config/arm/freebsd.h: New file.
41826         * config.host: Add extra components for arm*-*-freebsd*.
41827         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41828         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41830 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41832         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41833         for -mcpu=e6500.
41834         * config/rs6000/t-rtems: Add e6500 multilibs.
41836 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41838         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41839         MPC8540.
41841 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41843         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41844         MULTILIB_EXCEPTIONS.
41846 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41848         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41849         MULTILIB_EXCEPTIONS.
41851 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41853         * config/arm/t-rtems-eabi: Rename to...
41854         * config/arm/t-rtems: ...this.
41855         * config/arm/rtems-eabi.h: Rename to...
41856         * config/arm/rtems.h: ...this.
41857         * config.gcc (arm*-*-rtems*): Reflect changes above.
41859 2015-01-09  Richard Biener  <rguenther@suse.de>
41861         PR tree-optimization/64410
41862         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41863         on the LHS.
41864         (execute_update_addresses_taken): Deal with that.
41865         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41866         loads/stores for complex variables.
41868 2015-01-09  Martin Liska  <mliska@suse.cz>
41870         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41871         name comparison.
41872         (func_checker::compare_memory_operand): New function.
41873         (func_checker::compare_operand): Split case to newly
41874         added functions.
41875         (func_checker::compare_cst_or_decl): New function.
41876         (func_checker::compare_gimple_call): Identify
41877         memory operands.
41878         (func_checker::compare_gimple_assign): Likewise.
41879         * ipa-icf-gimple.h: New function.
41881 2015-01-09  Martin Liska  <mliska@suse.cz>
41883         PR ipa/64503
41884         * sreal.c (sreal::dump): Change unsigned format to signed for
41885         m_exp value.
41886         (sreal::to_double): Replace exp2 with scalbln.
41888 2015-01-09  Martin Liska  <mliska@suse.cz>
41890         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41891         * ipa-icf.c (sem_function::equals_private): Add support for target and
41892         (sem_item_optimizer::merge_classes): Remove redundant function
41893         optimization flags comparison.
41894         * tree.h (target_opts_for_fn): New function.
41896 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41898         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41900 2015-01-09  Kito Cheng  <kito@0xlab.org>
41902         PR rtl-optimization/64348
41903         * lra-constraints.c (split_reg): Fix caller-save store/restore
41904         instruction generation.
41906 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
41908         PR gcov-profile/61790
41909         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41910         long long.  Fallback to int64_t if host doesn't have long long and
41911         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
41913 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41915         PR tree-optimization/63989
41916         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41917         from 1000 to 10000.
41918         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41919         (get_stridx): If we don't have a record for certain SSA_NAME,
41920         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41921         constant offset, call get_stridx_plus_constant.
41922         (get_stridx_plus_constant): New function.
41923         (zero_length_string): Don't use get_stridx here.
41925         PR target/55023
41926         PR middle-end/64388
41927         * dse.c (struct insn_info): Mention frame_read set also
41928         before reload for tail calls on some targets.
41929         (scan_insn): Revert 2014-12-22 change.  Set frame_read
41930         also before reload for tail calls if
41931         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
41932         instead of add_non_frame_wild_read for non-const/memset
41933         tail calls after reload.
41935 2015-01-08  Jason Merrill  <jason@redhat.com>
41937         * ubsan.c (do_ubsan_in_current_function): New.
41938         (pass_ubsan::gate): Use it.
41939         * ubsan.h: Declare it.
41940         * convert.c (convert_to_integer): Use it.
41942 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41944         PR target/64338
41945         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41946         compare_code when it is unconditionally overwritten afterwards.
41947         Use ix86_reverse_condition instead of reverse_condition.  Don't
41948         change code if *reverse_condition* returned UNKNOWN and don't
41949         swap ct/cf and negate diff in that case.
41951 2015-01-08  Mike Stump  <mikestump@comcast.net>
41953         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41954         (pass_tsan_O0::gate): Likewise.
41955         * extend.texi (Function Attributes): Add no_sanitize_thread
41956         documentation.
41958 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
41960         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41961         for registering builtins.
41962         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41963         add -fopenmp to the argv_obstack used when invoking
41964         compile_for_target.
41966         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41967         add "-m32" or "-m64" to argv_obstack.
41968         (generate_host_descr_file): Likewise, when invoking host_compiler.
41969         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41970         ld.
41972 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41974         * config/sh/sh-mem.cc: Use constant as second operand when emitting
41975         tstsi_t insns.
41977 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41979         PR target/55212
41980         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41981         constant load if constant operand fits into I08.
41983 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41985         PR sanitizer/64336
41986         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41987         and TREE_THIS_VOLATILE for MEM_REFs.
41988         (build5_stat): Fix up initialization of TREE_READONLY and
41989         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41991 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
41993         PR target/64533
41994         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41995         of r for the second alternative of the destination operand.
41997 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
41999         PR target/36557
42000         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42002 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42004         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42005         keywords.
42006         ([-fivar-visibility], [-fvisibility]): Likewise.
42008 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42010         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42011         the file where @code, @command, etc is more appropriate.
42013 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
42015         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42016         of -mrecip= documentation.
42018 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
42020         PR target/64505
42021         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42022         correct reload handler if -m32 -mpowerpc64 is used.
42024 2015-01-06  Tom de Vries  <tom@codesourcery.com>
42026         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42028 2015-01-08  Christian Bruel  <christian.bruel@st.com>
42030         PR target/64507
42031         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42033 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42035         PR tree-optimization/63259
42036         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42037         if optab exists for 16bit byteswap.
42039 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
42041         * opts.c (common_handle_option): Add support for
42042         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42043         * doc/invoke.texi: Document -fno-sanitize=all,
42044         -f{,no-}sanitize-recover=all.  Document that
42045         -fsanitize=float-cast-overflow is not enabled
42046         by -fsanitize=undefined.  Fix up documentation
42047         of -f{,no-}sanitize-recover.
42049 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
42051         * config.gcc: Add Visium support.
42052         * configure.ac: Likewise.
42053         * configure: Regenerate.
42054         * doc/extend.texi (interrupt attribute): Add Visium.
42055         * doc/invoke.texi: Document Visium options.
42056         * doc/install.texi: Document Visium target.
42057         * doc/md.texi: Document Visium constraints.
42058         * common/config/visium: New directory.
42059         * config/visium: Likewise.
42061 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42063         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42064         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42066 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42068         * combine.c (combine_validate_cost): Do not count the cost of a
42069         split I2 twice.  Do not display it twice in the dump, either.
42071 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42073         Revert parts of r219199.
42074         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42075         <inttypes.h>.
42076         ([-Wtraditional]): Restore markup on <limits.h>.
42078 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
42080         PR c++/31397
42081         * doc/invoke.texi: Document -Wsuggest-override.
42083 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
42085         PR rtl-optimization/64287
42086         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42087         (process_options): Disable flag_ipa_ra if profiling.
42089 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
42091         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42093 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
42095         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42096         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42097         put under #if TARGET_LOOPS guard.
42099 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
42101         * config/i386/i386.c (output_387_binary_op): Use std::swap.
42103 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
42105         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42106         * rtl.h (refers_to_regno_p): Add overload.
42107         * cse.c: Use it.
42108         * bt-load.c: Likewise.
42109         * combine.c: Likewise.
42110         * df-scan.c: Likewise.
42111         * sched-deps.c: Likewise.
42112         * config/s390/s390.c: Likewise.
42113         * config/m32r/m32r.c: Likewise.
42114         * config/rs6000/spe.md: Likewise.
42115         * config/rs6000/rs6000.c: Likewise.
42116         * config/pa/pa.c: Likewise.
42117         * config/stormy16/stormy16.c: Likewise.
42118         * config/cris/cris.c: Likewise.
42119         * config/arc/arc.md: Likewise.
42120         * config/arc/arc.c: Likewise.
42121         * config/sh/sh.md: Likewise.
42122         * config/sh/sh.c: Likewise.
42123         * config/frv/frv.c: Likewise.
42125 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42127         PR sanitizer/64265
42128         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42129         call as cleanup of the whole body.
42130         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42131         * tsan.c (replace_func_exit): New function.
42132         (instrument_func_exit): Moved earlier.
42133         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42134         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42135         been found.
42136         (tsan_pass): Don't call instrument_func_exit.
42137         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42138         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42139         inlining.
42141         PR sanitizer/64344
42142         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42143         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42144         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
42145         if the result is integer_zerop, return NULL_TREE.
42146         * convert.c (convert_to_integer): Pass expr as ARG.
42148         PR tree-optimization/64465
42149         * tree-inline.c (redirect_all_calls): During inlining
42150         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42151         changed the stmt to a non-throwing call.
42153 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42155         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42156         etc markup throughout the file.
42158 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42160         Enable experimental TSAN support for Ada.
42161         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42163 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42165         PR tree-optimization/64494
42166         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42167         clear SSA_NAME_ANTI_RANGE_P flag.
42169 2015-01-05  Marek Polacek  <polacek@redhat.com>
42171         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42173 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42175         Update copyright years.
42177         * gcc.c (process_command): Update copyright notice dates.
42178         * gcov-dump.c: Ditto.
42179         * gcov.c: Ditto.
42180         * doc/cpp.texi: Bump @copying's copyright year.
42181         * doc/cppinternals.texi: Ditto.
42182         * doc/gcc.texi: Ditto.
42183         * doc/gccint.texi: Ditto.
42184         * doc/gcov.texi: Ditto.
42185         * doc/install.texi: Ditto.
42186         * doc/invoke.texi: Ditto.
42188         * auto-profile.c, auto-profile.h: Fix up Copyright line.
42190 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
42192         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42193         verb tense, etc.
42194         ([-fvtable-verify], [-fvtv-debug]): Likewise.
42195         ([-Wabi]): Likewise.
42196         ([-fmessage-length]): Likewise.
42197         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42198         ([-Wno-discarded-qualifiers]): Likewise.
42199         ([-Wnodiscarded-array-qualifiers]): Likewise.
42200         ([-Wno-virtual-move-assign]): Likewise.
42201         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42202         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42203         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42204         ([-fsanitize-undefined-trap-on-error]): Likewise.
42205         ([-floop-interchange]): Likewise.
42206         ([-ftree-coalesce-inlined-vars]): Likewise.
42207         ([-fvect-cost-model]): Likewise.
42208         ([-flto]): Likewise.
42209         ([--param]): Likewise.
42210         (Spec Files): Likewise.
42211         ([-mstrict-align]): Likewise.
42212         ([-mfix-cortex-a53-835769]): Likewise.
42213         ([-march], [-mtune]): Likewise.
42214         ([-mpic-register]): Likewise.
42215         ([-munaligned-access]): Likewise.
42216         ([-msp8]): Likewise.
42217         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42218         (AVR Built-in Macros): Likewise.
42219         ([-mpreferred-stack-boundary]): Likewise.
42220         ([-mtune-crtl]): Likewise.
42221         ([-mashf]): Likewise.
42222         ([-mmcu=]): Likewise.
42223         ([-minrt]): Likewise.
42224         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42225         ([-mupper-regs]): Likewise.
42226         ([-matomic-model]): Likewise.
42227         ([-mdiv]): Likewise.
42228         ([-mzdcbranch]): Likewise.
42229         ([-mdisable-callt]): Likewise.
42230         ([-msoft-float]): Likewise.
42231         ([-m8byte-align]): Likewise.
42232         ([-fstack-reuse]): Likewise.
42234 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42236         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42237         Fix markup, light copy-editing.
42238         ([-fauto-profile]): Rewrite to fix formatting and content
42239         problems.
42241 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42243         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42244         Copy-edit description.
42245         ([-fisolate-erroneous-paths-attribute]): Likewise.
42246         * common.opt (fisolate-erroneous-paths-dereference):
42247         Copy-edit description.
42248         (fisolate-erroneous-paths-attribute): Likewise.
42250 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42252         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42253         tidy grammar.
42255 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42257         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42258         ([-fvtv-debug]): Likewise.
42259         ([-Wc++-compat]): Likewise.
42260         ([-Wc++11-compat]): Likewise.
42261         ([-Wc++14-compat]): Likewise.
42262         ([-Wno-sized-deallocation]): Likewise.
42263         ([-femit-class-debug-always]): Likewise.
42264         ([-femit-struct-debug-detailed]): Likewise.
42265         ([-fno-keep-inline-dllexport]): Likewise.
42266         ([-fira-algorithm]): Likewise.
42267         ([-fira-region]): Likewise.
42268         ([-flra-remat]): Likewise.
42269         ([-fipa-ra]): Likewise.
42270         ([-fhoist-adjacent-loads]): Likewise.
42271         ([-fisolate-erroneous-paths-dereference]): Likewise.
42272         ([-fisolate-erroneous-paths-attribute]): Likewise.
42273         ([-ftree-switch-conversion]): Likewise.
42274         ([-ftree-tail-merge]): Likewise.
42275         ([-ftree-loop-if-convert]): Likewise.
42276         ([-ftree-loop-if-convert-stores]): Likewise.
42277         ([-ftree-loop-distribution]): Likewise.
42278         ([-ftree-loop-distribute-patterns]): Likewise.
42279         ([-flto-compression-level]): Likewise.
42280         ([-flto-report]): Likewise.
42281         ([-flto-report-wpa]): Likewise.
42282         ([-fuse-linker-plugin]): Likewise.
42283         ([-mfix-cortex-a53-835769]): Likewise.
42284         ([-mno-fix-cortex-a53-835769]): Likewise.
42285         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42286         explicit listing; add a note to the discussion indicating they
42287         exist.  Reorder table to group similar options.  Add missing
42288         @opindex entries.  Add @need commands throughout the table to
42289         allow it to be split across multiple pages.
42290         ([-m8bit-idiv]): Fix @opindex.
42291         ([-mavx256-split-unaligned-load]): Likewise.
42292         ([-mavx256-split-unaligned-store]): Likewise.
42293         ([-mstack-protector-guard]): Likewise.
42294         ([-mcpu=]): Likewise.
42295         ([-mcpu]): Likewise.
42296         ([-mpointer-size=]): Likewise.
42298 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
42300         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42301         instead of `m' constraint.  Likewise for unnamed movb comparison
42302         patterns using reg_before_reload_operand predicate.
42303         * config/pa/predicates.md (reg_before_reload_operand): Tighten
42304         predicate to reject register index and LO_SUM DLT memory forms
42305         after reload.
42307 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42309         * doc/invoke.texi (Option Summary): Fix spelling of
42310         -fdevirtualize-at-ltrans.
42311         ([-fdevirtualize]): Fix markup.
42312         ([-fdevirtualize-speculatively]): Fix typo.
42313         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
42314         implementor-speaky.
42315         * common.opt (fdevirtualize-at-ltrans): Likewise.
42316         * ipa-devirt.c: Fix typos in comments throughout the file.
42317         (ipa_devirt): Fix typos in format strings for dump output.
42319 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42321         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42322         discussion of defaults, light copy-editing.
42324 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42326         * tsan.c (instrument_expr): corrected previous checkin.
42328 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42330         Instrument bit field and unaligned accesses for TSAN.
42331         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42332         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42333         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42334         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42335         unaligned memory regions.
42337 2015-01-01  Anthony Green  <green@moxielogic.com>
42339         * config/moxie/predicates.md (moxie_general_movsrc_operand):
42340         Restrict move source register offsets to 16 bits.
42342 Copyright (C) 2015 Free Software Foundation, Inc.
42344 Copying and distribution of this file, with or without modification,
42345 are permitted in any medium without royalty provided the copyright
42346 notice and this notice are preserved.