* config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
[official-gcc.git] / gcc / ChangeLog
blob04c4d5e5fc11528fc77852334e482ad932264efe
1 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4         (output_probe_stack_range): Rotate the loop and simplify.
6 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
8         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
9         an lea instruction when possible.
10         (output_adjust_stack_and_probe): Rotate the loop and simplify.
11         (ix86_emit_probe_stack_range): Adjust.
12         (output_probe_stack_range): Rotate the loop and simplify.
14 2015-11-16  Christian Bruel  <christian.bruel@st.com>
16         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
17         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
18         with appropriate pragma GCC target.
20 2015-11-16  Christian Bruel  <christian.bruel@st.com>
22         PR target/65837
23         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
24         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
26 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
28         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
29         (cortexa57_tunings): Use it.
31 2015-11-16  Christian Bruel  <christian.bruel@st.com>
33         PR target/65837
34         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
35         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
36         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
37         undefine __ARM_FP.
38         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
39         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
40         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
41         * doc/extend.texi (-mfpu=): Describe attribute.
43 2015-11-16  Christian Bruel  <christian.bruel@st.com>
45         PR target/65837
46         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
47         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
48         arm_init_neon_builtins.
49         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
50         (arm_init_neon_builtins_internal)
51         (arm_init_crypto_builtins_internal):
52         Test and set neon_set_p, neon_crypto_set_p.
53         (neon_set_p, neon_crypto_set_p): New static booleans.
55 2015-11-16  Christian Bruel  <christian.bruel@st.com>
57         PR target/65837
58         * config/arm/arm.c (arm_fpu_desc): Remove.
59         (all_fpus): Make global.
60         (arm_option_override): Use FPU TARGET accessors.
61         (arm_declare_function_name): Likewise.
62         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
63         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
64         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
65         (TARGET_NEON): Likewise.
66         (all_fpus): Declare extern.
67         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
68         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
70 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
72         PR middle-end/68366
73         * sdbout.c: Include emit-rtl.h and function.h.
75 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
77         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
78         Remove support for FreeBSD 5 and earlier.
80 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
82         * configure: Regenerate.
83         * configure.ac: Always define ENABLE_OFFLOADING.
84         * cgraph.c (cgraph_node::create): Adjust.
85         * gcc.c (process_command): Likewise.
86         * omp-low.c (create_omp_child_function): Likewise.
87         (expand_omp_target): Likewise.
88         * varpool.c (varpool_node::get_create): Likewise.
90 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
92         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
93         * df-scan.c (df_get_exit_block_use_set): Adjust.
94         * except.c (expand_eh_return): Likewise.
96 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
98         * config/i386/i386.h (TARGET_PECOFF): Remove define.
99         * defaults.h (TARGET_PECOFF): New default definition.
100         * varasm.c (handle_vtv_comdat_section): Adjust.
102 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
104         * defaults.h: New definition of SDB_DEBUGGING_INFO.
105         * doc/tm.texi: Regenerate.
106         * doc/tm.texi.in: Adjust.
107         * final.c (rest_of_clean_state): Remove check if
108         SDB_DEBUGGING_INFO is defined.
109         * function.c (number_blocks): Likewise.
110         * output.h: Likewise.
111         * sdbout.c: Likewise.
112         * toplev.c (process_options): Likewise.
114 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
116         * gsyms.h (enum sdb_type): Remove code for
117         EXTENDED_SDB_BASIC_TYPES.
118         (enum sdb_masks): Likewise.
119         * sdbout.c (plain_type_1): Likewise.
120         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
122 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
124         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
125         internal calls - 0 if ordered simd and 1 for ordered threads simd.
126         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
127         argument is 1, replace it with GOMP_ordered_* call instead of removing
128         it.
130 2015-11-13  Rich Felker <dalias@libc.org>
132         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
133         address loading hack for FDPIC targets.
135 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
136             Jeff Law  <law@redhat.com>
138         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
139         * common.opt (-fsplit-paths): New flag controlling path splitting.
140         * doc/invoke.texi (fsplit-paths): Document.
141         * opts.c (default_options_table): Add -fsplit-paths to -O2.
142         * passes.def: Add split_paths pass.
143         * timevar.def (TV_SPLIT_PATHS): New timevar.
144         * tracer.c: Include "tracer.h"
145         (ignore_bb_p): No longer static.
146         (transform_duplicate): New function, broken out of tail_duplicate.
147         (tail_duplicate): Use transform_duplicate.
148         * tracer.h (ignore_bb_p): Declare
149         (transform_duplicate): Likewise.
150         * tree-pass.h (make_pass_split_paths): Declare.
151         * gimple-ssa-split-paths.c: New file.
153 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
154             Marek Polacek  <polacek@redhat.com>
155             Jason Merrill  <jason@redhat.com>
157         * convert.c (maybe_fold_build1_loc): New.
158         (maybe_fold_build2_loc): New.
159         (convert_to_pointer_1): Split out from convert_to_pointer.
160         (convert_to_pointer_nofold): New.
161         (convert_to_real_1): Split out from convert_to_real.
162         (convert_to_real_nofold): New.
163         (convert_to_integer_1): Split out from convert_to_integer.
164         (convert_to_integer_nofold): New.
165         (convert_to_complex_1): Split out from convert_to_complex.
166         (convert_to_complex_nofold): New.
167         * convert.h: Declare new functions.
168         * tree-complex.c (create_one_component_var): Break up line to
169         avoid sequence point issues.
171 2015-11-13  Jason Merrill  <jason@redhat.com>
173         * fold-const.c (fold_convert_const): Fold changing cv-quals on
174         VECTOR_CST.
176         * hash-map.h (hash_map::empty): New.
178 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
180         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
181         (oacc_loop_fixed_partitions): Correct return type to bool.
182         (oacc_loop_auto_partitions): New.
183         (oacc_loop_partition): Take mask argument, call
184         oacc_loop_auto_partitions.
185         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
187 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
189         * config/rs6000/constraints.md (we constraint): New constraint for
190         64-bit power9 vector support.
191         (wL constraint): New constraint for the element in a vector that
192         can be addressed by the MFVSRLD instruction.
194         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
195         declaration.
196         (convert_int_to_float128): Likewise.
197         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
198         hardware support for IEEE 128-bit floating point.
199         (rs6000_expand_float128_convert): Likewise.
200         (convert_float128_to_int): Likewise.
201         (convert_int_to_float128): Likewise.
203         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
204         ISA 3.0 hardware IEEE 128-bit floating point.
205         (UNSPEC_IEEE128_MOVE): Likewise.
206         (UNSPEC_IEEE128_CONVERT): Likewise.
207         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
208         (Ff): Add support for DImode.
209         (Fv): Likewise.
210         (any_fix code iterator): New and updated iterators for IEEE
211         128-bit floating point hardware support.
212         (any_float code iterator): Likewise.
213         (s code attribute): Likewise.
214         (su code attribute): Likewise.
215         (az code attribute): Likewise.
216         (uns code attribute): Likewise.
217         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
218         floating point hardware support.
219         (abs<mode>2, FLOAT128 iterator): Likewise.
220         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
221         floating point hardware.
222         (sub<mode>3, IEEE128 iterator): Likewise.
223         (mul<mode>3, IEEE128 iterator): Likewise.
224         (div<mode>3, IEEE128 iterator): Likewise.
225         (copysign<mode>3, IEEE128 iterator): Likewise.
226         (sqrt<mode>2, IEEE128 iterator): Likewise.
227         (neg<mode>2, IEEE128 iterator): Likewise.
228         (abs<mode>2, IEEE128 iterator): Likewise.
229         (nabs<mode>2, IEEE128 iterator): Likewise.
230         (fma<mode>4_hw, IEEE128 iterator): Likewise.
231         (fms<mode>4_hw, IEEE128 iterator): Likewise.
232         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
233         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
234         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
235         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
236         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
237         (fix_fixuns code attribute): Likewise.
238         (float_floatuns code attribute): Likewise.
239         (fix<uns>_<mode>si2_hw): Likewise.
240         (fix<uns>_<mode>di2_hw): Likewise.
241         (float<uns>_<mode>si2_hw): Likewise.
242         (float<uns>_<mode>di2_hw): Likewise.
243         (xscvqp<su>wz_<mode>): Likewise.
244         (xscvqp<su>dz_<mode>): Likewise.
245         (xscv<su>dqp_<mode): Likewise.
246         (ieee128_mfvsrd): Likewise.
247         (ieee128_mfvsrwz): Likewise.
248         (ieee128_mtvsrw): Likewise.
249         (ieee128_mtvsrd): Likewise.
250         (trunc<mode>df2_odd): Likewise.
251         (cmp<mode>_h): Likewise.
252         (128-bit GPR splitters): Don't split a 128-bit move that is a
253         direct move between GPR and vector registers using ISA 3.0 direct
254         move instructions.
255         (maddld4): Add support for the ISA 3.0 integer multiply-add
256         instruction.
258         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
259         debugging.
260         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
261         constraint.  Disable the VSX<->GPR direct move helpers if we have
262         the MFVSRLD and MTVSRDD instructions.
263         (rs6000_secondary_reload_simple_move): Add support for doing
264         vector direct moves directly without additional scratch registers
265         if we have ISA 3.0 instructions.
266         (rs6000_secondary_reload_direct_move): Update comments.
267         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
268         instructions.
270         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
271         direct move instructions.
272         (vsx_movti_64bit): Likewise.
273         (vsx_extract_<mode>): Likewise.
275         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
276         macros for ISA 3.0 direct move instructions.
277         (TARGET_DIRECT_MOVE_128): Likewise.
278         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
279         instruction.
281         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
282         constraints.  Update wa documentation to say not to use %x<n> on
283         instructions that only take Altivec registers.
285 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
287         * Makefile.in (OBJS): Add gcc-rich-location.o.
288         * diagnostic.c (diagnostic_append_note): Pass line_table to
289         rich_location ctor.
290         (emit_diagnostic): Likewise.
291         (inform): Likewise.
292         (inform_n): Likewise.
293         (warning): Likewise.
294         (warning_at): Likewise.
295         (warning_n): Likewise.
296         (pedwarn): Likewise.
297         (permerror): Likewise.
298         (error): Likewise.
299         (error_n): Likewise.
300         (error_at): Likewise.
301         (sorry): Likewise.
302         (fatal_error): Likewise.
303         (internal_error): Likewise.
304         (internal_error_no_backtrace): Likewise.
305         (source_range::debug): Likewise.
306         * gcc-rich-location.c: New file.
307         * gcc-rich-location.h: New file.
308         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
309         (warning_at): Likewise.
310         * gimple.h (gimple_set_block): Use set_block function.
311         * input.c (dump_line_table_statistics): Dump stats on how many
312         ranges were optimized vs how many needed ad-hoc table.
313         (write_digit_row): Add "map" param; use its range_bits
314         to calculate the per-character offset.
315         (dump_location_info): Print the range and column bits for each
316         ordinary map.  Use the range bits to calculate the per-character
317         offset.  Pass the map as a new param to the various calls to
318         write_digit_row.  Eliminate uses of
319         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
320         * print-tree.c (print_node): Print any source range information.
321         * rtl-error.c (diagnostic_for_asm): Likewise.
322         * toplev.c (general_init): Initialize line_table's
323         default_range_bits.
324         * tree-cfg.c (move_block_to_fn): Likewise.
325         (move_block_to_fn): Likewise.
326         * tree-inline.c (copy_phis_for_bb): Likewise.
327         * tree.c (tree_set_block): Likewise.
328         (get_pure_location): New function.
329         (set_source_range): New functions.
330         (set_block): New function.
331         (set_source_range): New functions.
332         * tree.h (CAN_HAVE_RANGE_P): New.
333         (EXPR_LOCATION_RANGE): New.
334         (EXPR_HAS_RANGE): New.
335         (get_expr_source_range): New inline function.
336         (DECL_LOCATION_RANGE): New.
337         (set_source_range): New decls.
338         (get_decl_source_range): New inline function.
340 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
342         PR tree-optimization/67682
343         * tree-vect-slp.c (vect_split_slp_store_group): New.
344         (vect_analyze_slp_instance): During basic block SLP, recurse on
345         subgroups if vect_build_slp_tree fails after 1st vector.
347 2015-11-13  Christian Bruel  <christian.bruel@st.com>
349         PR target/65837
350         * config/arm/arm.c (arm_option_override): Move NEON check...
351         (arm_option_check_internal): here
352         (arm_file_start): Move .fpu print...
353         (arm_declare_function_name): here
354         (arm_option_print): Dump current fpu name.
355         * config/arm/arm.opt (arm_fpu_index): Mark Save.
357 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
358             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
360         * combine.c (subst): Don't substitute or simplify when
361         handling register-wise widening multiply.
362         (force_to_mode): Likewise.
364 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
366         PR tree-optimization/68264
367         * tree-call-cdce.c (gen_one_condition): Update commentary.
368         (gen_conditions_for_pow_int_base): Invert the sense of the tests
369         passed to gen_one_condition.
370         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
371         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
372         using EDGE_FALSE_VALUE for edges to the call block and
373         EDGE_TRUE_VALUE for the others.
375 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
377         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
378         complex types.
380 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
382         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
384 2015-11-13  Tom de Vries  <tom@codesourcery.com>
386         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
387         len_of_prefix.
389 2015-11-13  Tom de Vries  <tom@codesourcery.com>
391         * gen-pass-instances.awk (handle_line): Add args_str variable.
393 2015-11-13  Martin Liska  <mliska@suse.cz>
395         * graphite-poly.c (free_scop): Release scop->drs vector.
396         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
397         Release dom vector.
398         (try_generate_gimple_bb): Use vNULL as a default initialization
399         for vectors.
401 2015-11-13  Martin Liska  <mliska@suse.cz>
403         PR ipa/68311
404         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
405         Replace array initialization (using a variable post-increment)
406         that possible triggers multiple unsequenced modifications
407         with a pair of pushes to a vector.
409 2015-11-13  Richard Biener  <rguenther@suse.de>
411         PR tree-optimization/68306
412         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
413         loop related checks ...
414         (vect_verify_datarefs_alignment): ... here.
415         (vect_slp_analyze_and_verify_node_alignment): Compute and
416         verify alignment of the single DR that it matters.
417         * tree-vect-stmts.c (vectorizable_store): Add an assert.
418         (vectorizable_load): Add a comment.
419         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
420         for determining load cost.
422 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
424         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
425         mix of boolean and integer vectors in a single statement.
426         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
427         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
428         determine constant type.
429         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
430         for loop invariants.
432 2015-11-13  Alan Hayward <alan.hayward@arm.com>
434         PR tree-optimization/66558
435         * tree-vect-loop.c (is_integer_induction):Add.
436         (vectorizable_reduction): Add integer induction checks.
438 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
440         Revert [ARM] Remove neon-testgen.ml and generated tests.
442         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
444         [ARM] Remove neon-testgen.ml and generated tests.
446         * config/arm/neon-testgen.ml: Remove.
448 2015-11-13  Richard Biener  <rguenther@suse.de>
450         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
451         Signal fatal failure if early checks fail.
452         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
453         do not bother testing further vector sizes.
455 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
457         * config/i386/predicates.md (misaligned_operand): Return true if
458         operand is aligned to less than its natural alignmnet.
460 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
462         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
463         (vec_cmpu@var{m}@var{n}): New item.
464         (vcond@var{m}@var{n}): Specify comparison is signed.
465         (vcondu@var{m}@var{n}): New item.
466         (vcond_mask_@var{m}@var{n}): New item.
467         (maskload@var{m}@var{n}): New item.
468         (maskstore@var{m}@var{n}): New item.
470 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
472         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
473         types of stored value and storage are compatible.
475 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
477         * gcc.c (POST_LINK_SPEC): Define if not already defined.
478         (LINK_COMMAND_SPEC): Use post_link.
479         (post_link_spec): New, initialize to POST_LINK_SPEC.
480         (post_link): Initialize new static spec.
481         * doc/tm.texi.in (POST_LINK_SPEC): Document.
482         * doc/tm.texi: Regenerated.
484 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
486         PR driver/67613
487         * Makefile.in (GCC_OBJS): Add spellcheck.o.
488         (OBJS): Add spellcheck-tree.o.
489         * gcc.c: Include "spellcheck.h".
490         (suggest_option): New function.
491         (driver::handle_unrecognized_options): Call suggest_option to
492         provide a hint about misspelled options.
493         * spellcheck.c: Update file comment.
494         (levenshtein_distance): Convert 4-param implementation from static
495         to extern scope.  Remove note about unit tests from leading
496         comment for const char * implementation.  Move tree
497         implementation to...
498         * spellcheck-tree.c: New file.
499         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
501 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
503         * Makefile.in (OBJS): Add spellcheck.o.
504         * spellcheck.c: New file.
505         * spellcheck.h: New file.
507 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
509         * config/ft32/ft32.md (*sne): New insn pattern.
511 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
513         * gcc/cprop.c (is_too_expensive): Remove.
514         (gcse.h): Include.
515         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
516         is_too_expensive.
517         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
518         * gcc/gcse.c (is_too_expensive): Rename to ...
519         (gcse_or_cprop_is_too_expensive): ... this.
520         Expand warning to add required size of max-gcse-memory.
521         (one_pre_gcse_pass): Use it.
522         (one_code_hoisting_pass): Use it.
523         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
525 2015-11-12  James Norris  <jnorris@codesourcery.com>
526             Joseph Myers  <joseph@codesourcery.com>
528         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
529         GF_OMP_TARGET_KIND_OACC_DECLARE.
530         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
531         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
532         * gimplify.c (oacc_declare_returns): New.
533         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
534         (device_resident_p): New function.
535         (oacc_default_clause): Handle device_resident clause.
536         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
537         (gimplify_expr): Handle OACC_DECLARE.
538         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
539         * omp-low.c (expand_omp_target): Handle
540         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
541         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
542         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
543         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
544         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
545         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
546         GOMP_MAP_DEVICE_RESIDENT.
548 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
550         [ARM] Remove neon-testgen.ml and generated tests.
552         * config/arm/neon-testgen.ml: Remove.
554 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
556         * config/aarch64/aarch64-cores.def (qdf24xx): New.
557         * config/aarch64/aarch64-tune.md: Regenerated.
558         * config/arm/arm-cores.def (qdf24xx): New.
559         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
560         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
561         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
562         (ARM Options/-mtune): Likewise.
564 2015-11-12  Martin Liska  <mliska@suse.cz>
566         * config/i386/i386.c (ix86_valid_target_attribute_p):
567         Finalize options at the of the function.
568         * gcc.c (driver_get_configure_time_options): Call newly
569         introduced init_opts_obstack.
570         * lto-wrapper.c (main): Likewise.
571         * opts.c (init_opts_obstack): New function.
572         (init_options_struct): Call newly introduced init_opts_obstack.
573         * opts.h (init_options_struct): Declare.
575 2015-11-12  Martin Liska  <mliska@suse.cz>
577         PR ipa/68035
578         * ipa-icf.c (void sem_item::set_hash): New function.
579         (sem_function::get_hash): Use renamed m_hash member variable.
580         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
581         (sem_item::update_hash_by_local_refs): Likewise.
582         (sem_variable::get_hash): Use renamed m_hash member variable.
583         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
584         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
585         (sem_item_optimizer::build_graph): As the hash value of an item
586         is lazy initialized, force the calculation.
587         * ipa-icf.h (set_hash): Declare new function and rename hash member
588         variable to m_hash.
590 2015-11-12  Richard Biener  <rguenther@suse.de>
592         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
593         Rename to vect_slp_analyze_instance_dependence.
594         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
595         Remove WAR special-case.
596         (vect_slp_analyze_node_dependences): Instead add more specific
597         code here, not relying on other instances being vectorized.
598         (vect_slp_analyze_instance_dependence): Adjust accordingly.
599         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
600         vertical space in dump files.
601         (vect_print_slp_tree): Likewise.
602         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
603         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
604         not vectorized stmts until after dependence analysis removed
605         instances.  Merge alignment and dependence checks.
606         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
607         flag on all stmts.
609 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
611         * config/aarch64/aarch64-protos.h (tune_params): Add new members
612         "max_case_values" and "cache_line_size".
613         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
614         function.
615         (aarch64_override_options_internal): Tune heuristics based on new
616         members in "tune_params".
617         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
619 2015-11-12  Richard Biener  <rguenther@suse.de>
621         PR tree-optimization/68306
622         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
623         relevant and vectorizable checks here.
624         (vect_verify_datarefs_alignment): Add relevant check here.
626 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
628         * gimplify.c (oacc_default_clause): New.
629         (omp_notice_variable): Call it.
631 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
633         PR tree-optimization/68305
634         * tree-vect-slp.c (vect_get_constant_vectors): Support
635         COND_EXPR with SSA_NAME as a condition.
637 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
639         * config/visium/visium-protos.h (notice_update_cc): Delete.
640         (print_operand): Likewise.
641         (print_operand_address): Likewise.
643 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
645         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
646         FUNCTION_VALUE_REGNO_P): Remove.
647         * config/alpha/alpha-protos.h (function_value): Remove.
648         * config/alpha/alpha.c (function_value): Rename to...
649         (alpha_function_value_1): ... this.  Make static.
650         (alpha_function_value, alpha_libcall_value,
651         alpha_function_value_regno_p): New functions.
652         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
653         TARGET_FUNCTION_VALUE_REGNO_P): Define.
655 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
657         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
658         * config/alpha/alpha.c (alpha_memory_latency): Make static.
659         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
660         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
662 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
664         PR target/67265
665         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
666         assertion on the CFA register.
668 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
670         * expr.c (do_store_flag): Expand vector comparison as
671         VEC_COND_EXPR if vector comparison is not supported by target.
673 2015-11-12  Renlin Li  <renlin.li@arm.com>
675         * config/arm/arm.md (addsi3_compare_op2): Make the order of
676         assembly pattern consistent with constraint order.
678 2015-11-12  Tom de Vries  <tom@codesourcery.com>
680         * gen-pass-instances.awk (handle_line): Simplify match regexp.
682 2015-11-12  Tom de Vries  <tom@codesourcery.com>
684         * gen-pass-instances.awk (handle_line): Simplify init of
685         postfix_starts_at.
687 2015-11-12  Tom de Vries  <tom@codesourcery.com>
689         * gen-pass-instances.awk (handle_line): Rename var where to
690         call_starts_at.
692 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
694         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
695         do not expand to rtl.
697 2015-11-12  Richard Biener  <rguenther@suse.de>
699         PR tree-optimization/58497
700         * tree-vect-generic.c: Include gimplify.h.
701         (tree_vec_extract): Lookup constant/constructor DEFs.
702         (do_cond): Unshare cond.
704 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
706         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
707         combined insn if the alignment of vector mode memory operand
708         is less than ssememalign.
710 2015-11-12  Tom de Vries  <tom@codesourcery.com>
712         * gen-pass-instances.awk (handle_line): Print parentheses and
713         pass_name explicitly.
715 2015-11-12  Tom de Vries  <tom@codesourcery.com>
717         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
718         and postfix vars.
720 2015-11-12  Tom de Vries  <tom@codesourcery.com>
722         * gen-pass-instances.awk (handle_line): Add comments.
724 2015-11-12  Tom de Vries  <tom@codesourcery.com>
726         * gen-pass-instances.awk (handle_line): Rename len_of_end to
727         len_of_close.
729 2015-11-12  Tom de Vries  <tom@codesourcery.com>
731         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
733 2015-11-12  Tom de Vries  <tom@codesourcery.com>
735         * gen-pass-instances.awk (handle_line): Restructure using early-out.
737 2015-11-12  Tom de Vries  <tom@codesourcery.com>
739         * gen-pass-instances.awk (handle_line): Unify semicolon use.
741 2015-11-12  Tom de Vries  <tom@codesourcery.com>
743         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
745 2015-11-12  Tom de Vries  <tom@codesourcery.com>
747         * gen-pass-instances.awk: Add emacs indent setting.
749 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
751         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
752         to match.pd.
753         Move Convert A/(B/C) to (A/B)*C to match.pd.
754         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
755         Move Optimize (X & (-A)) / A where A is a power of 2, to
756         X >> log2(A) to match.pd.
758         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
759         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
760         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
761         New simplifier.
762         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
764 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
766         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
767         variable.
768         (neon_vst2_lane<mode>): Likewise.
769         (neon_vld3_lane<mode>): Likewise.
770         (neon_vst3_lane<mode>): Likewise.
771         (neon_vld4_lane<mode>): Likewise.
772         (neon_vst4_lane<mode>): Likewise.
774 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
775             Sebastian Pop  <s.pop@samsung.com>
777         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
778         New member codegen_error
779         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
780         early return.
781         (translate_isl_ast_node_user): Early return in case of error.
782         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
783         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
784         (add_parameters_to_ivs_params): Remove macro.
785         (graphite_regenerate_ast_isl): Add if_region pointer to region.
786         * graphite-poly.c (new_poly_dr): Remove macro.
787         (print_pdr): Same.
788         (new_gimple_poly_bb): Same.
789         (free_gimple_poly_bb): Same.
790         (print_scop_params): Same.
791         * graphite-poly.h (struct poly_dr): Same.
792         (struct poly_bb): Add new_bb.
793         (gbb_from_bb): Remove dead code.
794         (pbb_from_bb): Same.
795         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
796         (parameter_index_in_region): Same.
797         (find_scop_parameters): Same.
798         (build_cross_bb_scalars_def): New.
799         (build_cross_bb_scalars_use): New.
800         (graphite_find_cross_bb_scalar_vars): New
801         (try_generate_gimple_bb): Reads and Writes.
802         (build_alias_set): Move.
803         (gather_bbs::before_dom_children): Gather bbs visited.
804         (build_scops): call build_alias_set.
805         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
806         (remove_simple_copy_phi): Delete.
807         (remove_invariant_phi): Delete.
808         (simple_copy_phi_p): Delete.
809         (reduction_phi_p): Delete.
810         (isl_id_for_dr): Remove unused param.
811         (parameter_index_in_region_1): Remove macro usage.
812         (set_scop_parameter_dim): Same.
813         (add_param_constraints): Same.
814         (add_conditions_to_constraints): Same
815         (build_scop_iteration_domain): Same.
816         (pdr_add_alias_set): Comment.
817         (add_scalar_version_numbers): New.
818         (build_poly_dr): ISL id.
819         (build_scop_drs): Move.
820         (build_poly_sr_1): Same.
821         (insert_stmts): Remove.
822         (build_poly_sr): New.
823         (new_pbb_from_pbb): Delete.
824         (insert_out_of_ssa_copy_on_edge): Delete.
825         (create_zero_dim_array): Delete.
826         (scalar_close_phi_node_p): Delete.
827         (propagate_expr_outside_region): Delete.
828         (rewrite_close_phi_out_of_ssa): Delete.
829         (rewrite_phi_out_of_ssa): Delete.
830         (rewrite_degenerate_phi): Delete.
831         (rewrite_reductions_out_of_ssa): Delete.
832         (rewrite_cross_bb_scalar_dependence): Delete.
833         (handle_scalar_deps_crossing_scop_limits):
834         (rewrite_cross_bb_scalar_deps): Delete.
835         (build_poly_scop): Remove calls to out-of-ssa functions.
836         * graphite.c (graphite_transform_loops): Early return in case of
837         codegen error.
838         * sese.c (debug_rename_map_1): Delete.
839         (debug_rename_map): Delete.
840         (sese_record_loop): Remove macro.
841         (build_sese_loop_nests): Same.
842         (new_sese_info): Same.
843         (free_sese_info): Same.
844         (sese_insert_phis_for_liveouts):
845         (is_loop_closed_ssa_use): New.
846         (number_of_phi_nodes): New.
847         (bb_contains_loop_close_phi_nodes): New.
848         (bb_contains_loop_phi_nodes): New.
849         (phi_uses_name): New.
850         (is_valid_rename):
851         (get_rename): Add old_bb and loop_phi for more precise matching of
852         exprs.
853         (set_rename): Pass region.
854         (later_of_the_two): New.
855         (gsi_insert_earliest): New.
856         (collect_all_ssa_names): New.
857         (substitute_ssa_name): New.
858         (rename_all_uses): New.
859         (get_rename_from_scev): New.
860         (rename_uses): Pass old_bb for more precise matching of exprs.
861         (get_def_bb_for_const): New.
862         (get_new_name): New.
863         (get_loc): New.
864         (get_edges): New.
865         (copy_loop_phi_args): New.
866         (copy_loop_phi_nodes): New.
867         (get_loop_init_value): New.
868         (find_init_value): New.
869         (find_init_value_close_phi): New.
870         (copy_loop_close_phi_args): New.
871         (copy_loop_close_phi_nodes): New.
872         (add_phi_arg_for_new_expr): New.
873         (copy_cond_phi_args): New.
874         (copy_cond_phi_nodes): New.
875         (copy_phi_nodes): New.
876         (should_copy_to_new_region): New.
877         (set_rename_for_each_def): New.
878         (graphite_copy_stmts_from_block): Early return in case of error.
879         (copy_bb_and_scalar_dependences): Same.
880         * sese.h (vec_find): New.
881         (SESE_PARAMS): Delete.
882         (SESE_LOOPS): Delete.
883         (SESE_LOOP_NEST): Delete.
884         (sese_contains_loop): Remove macro usage.
885         (sese_nb_params): Same.
886         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
888 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
890         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
891         isl_union_map_add_map on every pbb->schedule.
893 2015-11-11  Tom de Vries  <tom@codesourcery.com>
895         * tree-parloops.c (create_parallel_loop): Return void.
897 2015-11-11  Tom de Vries  <tom@codesourcery.com>
899         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
900         block only when needed.
902 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
904         * config/alpha/alpha-protos.h (print_operand): Remove.
905         (print_operand_address): Remove.
906         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
907         (PRINT_OPERAND_ADDRESS): Remove.
908         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
909         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
910         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
911         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
912         (print_operand_address): Rename to...
913         (alpha_print_operand_address): ...this and make static.
914         (print_operand): Rename to...
915         (alpha_print_operand): ...this and make static.
916         (alpha_print_operand_punct_valid_p): New static function.
918 2015-11-11  Richard Biener  <rguenther@suse.de>
920         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
921         Declare.
922         (vect_analyze_data_refs_alignment): Make loop vect specific.
923         (vect_verify_datarefs_alignment): Likewise.
924         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
925         Add missing continue.
926         (vect_compute_data_ref_alignment): Export.
927         (vect_compute_data_refs_alignment): Merge into...
928         (vect_analyze_data_refs_alignment): ... this.
929         (verify_data_ref_alignment): Split out from ...
930         (vect_verify_datarefs_alignment): ... here.
931         (vect_slp_analyze_and_verify_node_alignment): New function.
932         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
933         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
934         misplaced checks on alignment.
935         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
936         alignment analysis after SLP discovery and do it per instance.
937         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
938         bother to re-try using different vector sizes.
940 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
941             Cesar Philippidis  <cesar@codesourcery.com>
943         * gimplify.c (enum omp_region_type): Add ORT_ACC,
944         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
945         (gimple_add_tmp_var): Add ORT_ACC checks.
946         (gimplify_var_or_parm_decl): Likewise.
947         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
948         (omp_add_variable): Look in outer contexts for openacc and allow
949         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
950         (omp_notice_variable, omp_is_private, omp_check_private): Add
951         ORT_ACC checks.
952         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
953         Permit private openacc reductions.
954         (gimplify_oacc_cache): Specify ORT_ACC.
955         (gimplify_omp_workshare): Adjust OpenACC region types.
956         (gimplify_omp_target_update): Likewise.
957         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
958         (lower-rec_input_clauses): Don't handle openacc firstprivate
959         references here.
960         (lower_omp_target): Emit initializers for openacc firstprivate vars.
962 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
964         PR target/67265
965         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
966         frame pointer for stack checking if non-call exceptions aren't used.
967         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
969 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
971         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
972         [LA]SHIFTRT.
974 2015-11-11  Martin Liska  <mliska@suse.cz>
975             Richard Biener  <rguenther@suse.de>
977         PR rtl-optimization/68287
978         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
979         number of elements.
981 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
983         * config/mips/mips.c (mips_breakable_sequence_p): New function.
984         (mips_break_sequence): New function.
985         (mips_reorg_process_insns): Use them. Use compact branches in selected
986         situations.
988 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
990         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
992 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
993             Jim Wilson  <wilson@gcc.gnu.org>
995         PR target/67305
996         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
997         be true and eliminable registers mentioned.
999 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
1001         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
1002         options.
1003         * config/arc/arc-opts.h: Add ARCv2 CPUs.
1004         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
1005         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
1006         situation, and store instructions with large offsets.
1007         (arc_secondary_reload_conv): New function.
1008         (arc_init): Add ARCv2 options.
1009         (arc_conditional_register_usage): Select the proper register usage
1010         for ARCv2 processors.
1011         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
1012         architecture.
1013         (arc_compute_function_type): Likewise.
1014         (arc_print_operand): Handle new ARCv2 punctuation characters.
1015         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
1016         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
1017         function.
1018         (arc_reorg, arc_hazard): Use it.
1019         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
1020         (ASM_SPEC): Add ARCv2 options.
1021         (TARGET_NORM): ARC HS has norm instructions by default.
1022         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
1023         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
1024         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
1025         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
1026         Likewise.
1027         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
1028         (TARGET_LP_WR_INTERLOCK): Likewise.
1029         * config/arc/arc.md
1030         (commutative_binary_mult_comparison_result_used, movsicc_insn)
1031         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
1032         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
1033         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
1034         Use it for ARCv2.
1035         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
1036         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
1037         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
1038         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
1039         (extzvsi): New pattern.
1040         * config/arc/arc.opt: New ARCv2 options.
1041         * config/arc/arcEM.md: New file.
1042         * config/arc/arcHS.md: Likewise.
1043         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
1044         values.
1045         (Cm2): A signed 9-bit integer constant constraint.
1046         (C62): An unsigned 6-bit integer constant constraint.
1047         (C16): A signed 16-bit integer constant constraint.
1048         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
1049         (short_const_int_operand): New predicate.
1050         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
1051         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
1052         -mcode-density and -mdiv-rem.
1054 2015-11-11  Julia Koval  <julia.koval@intel.com>
1056         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
1058 2015-11-11  Julia Koval  <julia.koval@intel.com>
1060         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
1062 2015-11-11  Martin Liska  <mliska@suse.cz>
1064         * gimple-ssa-strength-reduction.c (create_phi_basis):
1065         Use auto_vec.
1066         * passes.c (release_dump_file_name): New function.
1067         (pass_init_dump_file): Used from this function.
1068         (pass_fini_dump_file): Likewise.
1069         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
1070         * var-tracking.c (vt_initialize): Use pool_allocator.
1072 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
1073             Jiong Wang      <jiong.wang@arm.com>
1075         PR tree-optimization/68234
1076         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
1077         node which estimiated to be VR_VARYING initially.
1079 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
1081         * regname.c (scan_rtx_reg): Check the matching number of consecutive
1082         registers when tying chains.
1083         (build_def_use): Move terminated_this_insn earlier in the function.
1085 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
1087         * configure.ac: Use = with test and not ==.
1088         * configure: Regenerated.
1090 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
1092         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
1093         machine asserts.  Update defines for 64 bit.
1095 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1097         PR target/63870
1098         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
1099         lane number.
1100         (neon_vst1_lane<mode>): Likewise.
1101         (neon_vld2_lane<mode>): Likewise.
1102         (neon_vst2_lane<mode>): Likewise.
1103         (neon_vld3_lane<mode>): Likewise.
1104         (neon_vst3_lane<mode>): Likewise.
1105         (neon_vld4_lane<mode>): Likewise.
1106         (neon_vst4_lane<mode>): Likewise.
1108 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1110         PR target/63870
1111         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
1112         qualifier_struct_load_store_lane_index.
1113         (arm_storestruct_lane_qualifiers) Likewise.
1114         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
1115         big-endian.
1116         (neon_vst1_lane<mode>) Likewise.
1117         (neon_vld2_lane<mode>) Likewise.
1118         (neon_vst2_lane<mode>) Likewise.
1119         (neon_vld3_lane<mode>) Likewise.
1120         (neon_vst3_lane<mode>) Likewise.
1121         (neon_vld4_lane<mode>) Likewise.
1122         (neon_vst4_lane<mode>) Likewise.
1124 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
1126         PR target/63870
1127         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
1128         qualifier_struct_load_store_lane_index.
1129         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1130         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
1131         argument qualifiers.
1132         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
1133         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
1135 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
1137         * config/nvptx/nvptx.opt (moptimize): New flag.
1138         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
1139         default.
1140         (nvptx_optimize_inner): New.
1141         (nvptx_process_pars): Call it when optimizing.
1142         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
1144 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1146         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1147         Remove redundant code.
1149 2015-11-10  Jeff Law  <law@redhat.com>
1151         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
1152         call to output_address.
1153         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
1154         Add unnamed machine_mode argument.
1156 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1158         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
1159         default to 64-bit.
1161 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1163         * config/i386/i386.md (*movabs<mode>_1): Add explicit
1164         size directives for -masm=intel.
1165         (*movabs<mode>_2): Ditto.
1167 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1169         * config/i386/i386.c (ix86_print_operand): Remove dead code that
1170         tried to avoid (%rip) for call operands.
1172 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
1174         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
1175         argument.  Do not use RIP relative addressing when no_rip is set.
1176         (ix86_print_operand): Update call to ix86_print_operand_address_as.
1177         (ix86_print_operand_address): Ditto.
1178         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
1179         absolute movabs operand 0.  Add square braces for -masm=intel.
1180         (*movabs<mode>_2): Ditto for operand 1.
1182 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1184         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
1185         combine_vcvtf2i pattern.
1187 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1189         * config/arm/arm.c (neon_valid_immediate): Remove integer
1190         CONST_DOUBLE handling.  It should never occur.
1192 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
1194         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
1195         (ATOMIC_LDOP): Likewise.
1196         (atomic_ldop): Likewise.
1197         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
1198         (ATOMIC_LDOP): Likewise.
1199         (atomic_ldop): Likewise.
1201 2015-11-10  Martin Liska  <mliska@suse.cz>
1203         * alloc-pool.h (allocate_raw): New function.
1204         (operator new (size_t, object_allocator<T> &a)): Use the
1205         function instead of object_allocator::allocate).
1207 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1209         * config/i386/sse.md (HALFMASKMODE): New attribute.
1210         (DOUBLEMASKMODE): New attribute.
1211         (vec_pack_trunc_qi): New.
1212         (vec_pack_trunc_<mode>): New.
1213         (vec_unpacks_lo_hi): New.
1214         (vec_unpacks_lo_si): New.
1215         (vec_unpacks_lo_di): New.
1216         (vec_unpacks_hi_hi): New.
1217         (vec_unpacks_hi_<mode>): New.
1219 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1221         * optabs.c (expand_binop_directly): Allow scalar mode for
1222         vec_pack_trunc_optab.
1223         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1224         boolean vector producers from pattern sequence when computing VF.
1225         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
1226         vect_recog_mask_conversion_pattern.
1227         (search_type_for_mask): Choose the smallest
1228         type if different size types are mixed.
1229         (build_mask_conversion): New.
1230         (vect_recog_mask_conversion_pattern): New.
1231         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
1232         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
1233         load with pattern.
1234         (vectorizable_conversion): Support boolean vectors.
1235         (free_stmt_vec_info): Allow patterns for statements with no lhs.
1236         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
1238 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1240         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
1241         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
1242         Cast mask to FP mode if required.
1243         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
1244         (vcond_mask_<mode><avx512fmaskmodelower>): New.
1245         (vcond_mask_<mode><sseintvecmodelower>): New.
1246         (vcond_mask_<mode><sseintvecmodelower>): New.
1247         (vcond_mask_v2div2di): New.
1248         (vcond_mask_<mode><sseintvecmodelower>): New.
1249         (vcond_mask_<mode><sseintvecmodelower>): New.
1251 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1253         * optabs-query.h (get_vcond_mask_icode): New.
1254         * optabs-tree.c (expand_vec_cond_expr_p): Use
1255         get_vcond_mask_icode for VEC_COND_EXPR with mask.
1256         * optabs.c (expand_vec_cond_mask_expr): New.
1257         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
1258         * optabs.def (vcond_mask_optab): New.
1259         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
1260         generate redundant comparison for COND_EXPR.
1261         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
1262         as a condition.
1263         (vectorizable_condition): Likewise.
1264         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
1265         cond_exp with no embedded comparison.
1266         (vect_build_slp_tree_1): Likewise.
1268 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1270         * config/i386/sse.md (maskload<mode>): Rename to ...
1271         (maskload<mode><sseintvecmodelower>): ... this.
1272         (maskstore<mode>): Rename to ...
1273         (maskstore<mode><sseintvecmodelower>): ... this.
1274         (maskload<mode><avx512fmaskmodelower>): New.
1275         (maskstore<mode><avx512fmaskmodelower>): New.
1277 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1279         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
1280         (expand_MASK_STORE): Adjust to maskstore optab changes.
1281         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
1282          Adjust to maskload, maskstore optab changes.
1283         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
1284         * optabs.def (maskload_optab): Transform into convert optab.
1285         (maskstore_optab): Likewise.
1286         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
1287         can_vec_mask_load_store_p signature change.
1288         (predicate_mem_writes): Use boolean mask.
1289         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
1290         can_vec_mask_load_store_p signature change.  Allow invariant masks.
1291         (vectorizable_operation): Ignore type precision for boolean vectors.
1293 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1295         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
1296         (const_vector_mask_from_tree): New.
1297         (const_vector_from_tree): Use const_vector_mask_from_tree
1298         for boolean vectors.
1299         * optabs-query.h (get_vec_cmp_icode): New.
1300         * optabs-tree.c (expand_vec_cmp_expr_p): New.
1301         * optabs-tree.h (expand_vec_cmp_expr_p): New.
1302         * optabs.c (vector_compare_rtx): Add OPNO arg.
1303         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
1304         (expand_vec_cmp_expr): New.
1305         * optabs.def (vec_cmp_optab): New.
1306         (vec_cmpu_optab): New.
1307         * optabs.h (expand_vec_cmp_expr): New.
1308         * tree-vect-generic.c (expand_vector_comparison): Add vector
1309         comparison optabs check.
1310         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
1311         operations for VF.  Add mask type computation.
1312         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
1313         (vectorizable_comparison): New.
1314         (vect_analyze_stmt): Add vectorizable_comparison.
1315         (vect_transform_stmt): Likewise.
1316         (vect_init_vector): Support boolean vector invariants.
1317         (vect_get_vec_def_for_operand): Add VECTYPE arg.
1318         (vectorizable_condition): Directly provide vectype for invariants
1319         used in comparison.
1320         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
1321         (enum vect_var_kind): Add vect_mask_var.
1322         (enum stmt_vec_info_type): Add comparison_vec_info_type.
1323         (vectorizable_comparison): New.
1324         (vect_get_vec_def_for_operand): Add VECTYPE arg.
1325         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
1326         (vect_create_destination_var): Likewise.
1327         * tree-vect-patterns.c (check_bool_pattern): Check fails
1328         if we can vectorize comparison directly.
1329         (search_type_for_mask): New.
1330         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
1331         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
1332         comparison statements.
1333         (vect_get_constant_vectors): Support boolean vector constants.
1334         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
1335         (ix86_expand_int_vec_cmp): New.
1336         (ix86_expand_fp_vec_cmp): New.
1337         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
1338         op_true and op_false.
1339         (ix86_int_cmp_code_to_pcmp_immediate): New.
1340         (ix86_fp_cmp_code_to_pcmp_immediate): New.
1341         (ix86_cmp_code_to_pcmp_immediate): New.
1342         (ix86_expand_mask_vec_cmp): New.
1343         (ix86_expand_fp_vec_cmp): New.
1344         (ix86_expand_int_sse_cmp): New.
1345         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
1346         (ix86_expand_int_vec_cmp): New.
1347         (ix86_get_mask_mode): New.
1348         (TARGET_VECTORIZE_GET_MASK_MODE): New.
1349         * config/i386/sse.md (avx512fmaskmodelower): New.
1350         (vec_cmp<mode><avx512fmaskmodelower>): New.
1351         (vec_cmp<mode><sseintvecmodelower>): New.
1352         (vec_cmpv2div2di): New.
1353         (vec_cmpu<mode><avx512fmaskmodelower>): New.
1354         (vec_cmpu<mode><sseintvecmodelower>): New.
1355         (vec_cmpuv2div2di): New.
1357 2015-11-10  Richard Biener  <rguenther@suse.de>
1359         PR tree-optimization/68240
1360         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
1361         properly.
1362         (visit_phi): For PHIs with just a single executable edge
1363         take its value directly.
1364         (expressions_equal_p): Handle VN_TOP properly.
1366 2015-11-10  Richard Biener  <rguenther@suse.de>
1368         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
1369         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
1370         conservatively.
1372 2015-11-10  Richard Biener  <rguenther@suse.de>
1374         PR tree-optimization/56118
1375         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
1376         cost favor vectorized version.
1378 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1380         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
1381         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
1382         (neg_not_op): New code attribute.
1384 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1386         * ifcvt.c (noce_try_inverse_constants): New function.
1387         (noce_process_if_block): Call it.
1388         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
1389         * optabs.def (negcc_optab, notcc_optab): Declare.
1390         * optabs.c (emit_conditional_neg_or_complement): New function.
1391         * doc/tm.texi (Standard Names): Document negcc, notcc names.
1393 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1395         PR rtl-optimization/68236
1396         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
1397         if insn_queue doesn't exist.
1398         (haifa_sched_finish): Reset insn_queue to NULL.
1400 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
1402         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
1403         (build_def_use): Initialize terminated_this_insn.
1404         (find_best_rename_reg): Pick and check register from the tied chain.
1405         (regrename_do_replace): Mark head as renamed.
1406         (struct du_head *terminated_this_insn). New static variable.
1407         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
1408         * regrename.h (struct du_head): Add tied_chain, renamed members.
1410 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1412         PR bootstrap/68256
1413         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1414         Return false.
1416 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1418         PR target/57845
1419         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1420         not promote the mode for aggregate types.
1422 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1424         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1425         * omp-low.c (build_oacc_routine_dims): New.
1427 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1429         * config/rs6000/constraints.md (wF constraint): New constraints
1430         for power9/toc fusion.
1431         (wG constraint): Likewise.
1433         * config/rs6000/predicates.md (u6bit_cint_operand): New
1434         predicate, recognize 0..63.
1435         (upper16_cint_operand): New predicate for power9 and toc fusion.
1436         (fpr_reg_operand): Likewise.
1437         (toc_fusion_or_p9_reg_operand): Likewise.
1438         (toc_fusion_mem_raw): Likewise.
1439         (toc_fusion_mem_wrapped): Likewise.
1440         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1441         address range.
1442         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1443         instead.
1444         (fusion_addis_mem_combo_load): Add support for power9 fusion of
1445         floating point loads, floating point stores, and gpr stores.
1446         (fusion_addis_mem_combo_store): Likewise.
1447         (fusion_offsettable_mem_operand): Likewise.
1449         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
1450         (emit_fusion_load_store): Likewise.
1451         (fusion_p9_p): Likewise.
1452         (expand_fusion_p9_load): Likewise.
1453         (expand_fusion_p9_store): Likewise.
1454         (emit_fusion_p9_load): Likewise.
1455         (emit_fusion_p9_store): Likewise.
1456         (fusion_wrap_memory_address): Likewise.
1458         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1459         elements for power9 fusion.
1460         (rs6000_debug_print_mode): Rework debug information to print more
1461         information about fusion.
1462         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
1463         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1464         offsettable memory address.
1465         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1466         (emit_fusion_gpr_load): Move most of the code from
1467         emit_fusion_gpr_load into emit_fusion-addis that handles both
1468         power8 and power9 fusion.
1469         (emit_fusion_addis): Likewise.
1470         (emit_fusion_load_store): Likewise.
1471         (fusion_wrap_memory_address): Add support for TOC fusion.
1472         (fusion_split_address): Likewise.
1473         (fusion_p9_p): Add support for power9 fusion.
1474         (expand_fusion_p9_load): Likewise.
1475         (expand_fusion_p9_store): Likewise.
1476         (emit_fusion_p9_load): Likewise.
1477         (emit_fusion_p9_store): Likewise.
1479         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
1480         new instructions in ISA 3.0.
1481         (TARGET_CTZ): Likewise.
1482         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
1483         (TARGET_TOC_FUSION_FP): Likewise.
1485         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
1486         fusion unspecs.
1487         (UNSPEC_FUSION_ADDIS): Likewise.
1488         (QHSI mode iterator): New iterator for power9 fusion.
1489         (GPR_FUSION): Likewise.
1490         (FPR_FUSION): Likewise.
1491         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
1492         (umod<mode>3): Likewise.
1493         (divmod peephole): Likewise.
1494         (udivmod peephole): Likewise.
1495         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
1496         instructions.
1497         (ctz<mode>2_h): Likewise.
1498         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
1499         (ashdi3_extswsli_dot): Likewise.
1500         (ashdi3_extswsli_dot2): Likewise.
1501         (power9 fusion splitter): New power9/toc fusion support.
1502         (toc_fusionload_<mode>): Likewise.
1503         (toc_fusionload_di): Likewise.
1504         (fusion_gpr_load_<mode>): Update predicate function.
1505         (power9 fusion peephole2s): New power9/toc fusion support.
1506         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1507         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
1508         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1509         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1510         (fusion_p9_<mode>_constant): Likewise.
1512 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
1514         * optabs.c (prepare_libcall_arg): New function.
1515         (expand_fixed_convert): Add call to prepare_libcall_arg.
1517 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1519         * sched-int.h (dump_rgn_dependencies_dot): Declare
1520         * sched-rgn.c (dump_rgn_dependencies_dot): New function
1521         * print-rtl.h (print_insn): Add prototype
1523         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
1524         * common.opt (-fsched-verbose): Set default value to 1.
1525         * invoke.texi (-fsched-verbose): Update the option's description.
1527 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1529         * config/visium/visium.h (PRINT_OPERAND): Delete.
1530         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1531         (PRINT_OPERAND_ADDRESS): Likewise.
1532         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
1533         to...
1534         (visium_print_operand_punct_valid_p): ...this.  New function.
1535         (TARGET_PRINT_OPERAND): Define to...
1536         (print_operand): Rename to...
1537         (visium_print_operand): ...this.
1538         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1539         (visium_output_address): Rename to...
1540         (visium_print_operand_address): ...this.
1541         (print_operand_address): Delete.
1543 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1545         PR middle-end/68259
1546         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1547         Check that the type of the first operand is an aggregate type.
1549 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1551         * omp-low.c: Fix some OpenACC comment typos.
1552         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1553         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1554         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1556 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
1558         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1560 2015-11-09  Jeff Law  <law@redhat.com>
1562         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1563         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
1564         Fix comment typo.
1566 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1567             Peter Bergner  <bergner@vnet.ibm.com>
1569         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1570         ISA 3.0 (power9).
1571         (-mpower9-vector): Likewise.
1572         (-mpower9-dform): Likewise.
1573         (-mpower9-minmax): Likewise.
1574         (-mtoc-fusion): Likewise.
1575         (-mmodulo): Likewise.
1576         (-mfloat128-hardware): Likewise.
1578         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1579         mask for ISA 3.0 (power9).
1580         (POWERPC_MASKS): Add new ISA 3.0 switches.
1581         (power9 cpu): Add power9 cpu.
1583         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
1584         (ASM_CPU_SPEC): Likewise.
1585         (EXTRA_SPECS): Likewise.
1587         * config/rs6000/rs6000-opts.h (enum processor_type): Add
1588         PROCESSOR_POWER9.
1590         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
1591         (rs6000_debug_reg_global): Add support for power9 fusion.
1592         (rs6000_setup_reg_addr_masks): Cache mode size.
1593         (rs6000_option_override_internal): Until real power9 tuning is
1594         added, use -mtune=power8 for -mcpu=power9.
1595         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1596         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1597         of Altivec registers.
1598         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
1599         (rs6000_loop_align): Add support for power9 cpu.
1600         (rs6000_file_start): Likewise.
1601         (rs6000_adjust_cost): Likewise.
1602         (rs6000_issue_rate): Likewise.
1603         (insn_must_be_first_in_group): Likewise.
1604         (insn_must_be_last_in_group): Likewise.
1605         (force_new_group): Likewise.
1606         (rs6000_register_move_cost): Likewise.
1607         (rs6000_opt_masks): Likewise.
1609         * config/rs6000/rs6000.md (cpu attribute): Add power9.
1610         * config/rs6000/rs6000-tables.opt: Regenerate.
1612         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1613         _ARCH_PWR9 if power9 support is available.
1615         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1616         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1618         * configure.ac: Determine if the assembler supports the ISA 3.0
1619         instructions.
1620         * config.in (HAVE_AS_POWER9): Likewise.
1621         * configure: Regenerate.
1623         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1624         switches.
1626 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1628         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1629         Remove integer CONST_DOUBLE handling.  It should never occur.
1631 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1633         PR target/68129
1634         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1635         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1636         Delete VOIDmode case.  Assert that mode is not VOIDmode.
1637         * config/aarch64/predicates.md (const0_operand): Remove const_double
1638         match.
1640 2015-11-09  Martin Liska  <mliska@suse.cz>
1642         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1643         body_info release function.
1644         * ipa-prop.c (ipa_release_body_info): New function.
1645         (ipa_analyze_node): Call the function.
1646         (ipa_node_params::~ipa_node_params): Release known_csts.
1647         * ipa-prop.h (ipa_release_body_info): Declare.
1649 2015-11-09  Martin Liska  <mliska@suse.cz>
1651         * gcc.c (record_temp_file): Release name string.
1652         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
1653         * lra-lives.c (free_live_range_list): Utilize
1654         lra_live_range_pool for allocation and deallocation.
1655         (create_live_range): Likewise.
1656         (copy_live_range): Likewise.
1657         (lra_merge_live_ranges): Likewise.
1658         (remove_some_program_points_and_update_live_ranges): Likewise.
1659         (lra_create_live_ranges_1): Release point_freq_vec that can
1660         be not freed from previous iteration of the function.
1661         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
1662         * tree-sra.c (sra_deinitialize): Release all vectors in
1663         base_access_vec.
1664         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1665         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1666         Release edge_info for a removed edge.
1667         (thread_through_all_blocks): Free region vector.
1668         * tree-ssa.h (free_dom_edge_info): Declare function extern.
1670 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
1672         * optabs.c (expand_vec_cond_expr): Always get sign from type.
1673         * tree.c (wide_int_to_tree): Support negative values for boolean.
1674         (build_nonstandard_boolean_type): Use signed type for booleans.
1676 2015-11-09  Richard Biener  <rguenther@suse.de>
1678         PR tree-optimization/68248
1679         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
1681 2015-11-09  Richard Biener  <rguenther@suse.de>
1683         PR tree-optimization/56118
1684         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1685         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1686         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1687         function.
1688         (vect_slp_analyze_data_ref_dependences): Instead of computing
1689         all dependences of the region DRs just analyze the code motions
1690         SLP vectorization will perform.  Remove SLP instances that
1691         cannot have their store/load motions applied.
1692         (vect_analyze_data_refs): Allow DRs without a vectype
1693         in BB vectorization.
1695 2015-11-09  Julian Brown  <julian@codesourcery.com>
1697         * final.c (output_asm_insn): Pass VOIDmode to output_address.
1698         (output_address): Add MODE argument. Pass to print_operand_address
1699         hook.
1700         * targhooks.c (default_print_operand_address): Add MODE argument.
1701         * targhooks.h (default_print_operand_address): Update prototype.
1702         * output.h (output_address): Update prototype.
1703         * target.def (print_operand_address): Add MODE argument.
1704         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1705         output_address.
1706         (print_operand): Pass access mode to output_address.
1707         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1708         argument.
1709         (mcore_print_operand): Update calls to mcore_print_operand_address.
1710         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1711         output_address.
1712         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1713         output_address.
1714         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1715         global.
1716         (tilegx_print_operand): Don't set above global. Update calls to
1717         output_address.
1718         (tilegx_print_operand_address): Add MODE argument. Use instead of
1719         output_memory_reference_mode global.
1720         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1721         (frv_print_operand): Pass mode to frv_print_operand_address calls.
1722         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1723         output_address.
1724         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
1725         (cris_print_operand): Pass mode to output_address calls.
1726         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
1727         * config/aarch64/aarch64.h (aarch64_print_operand)
1728         (aarch64_print_operand_address): Remove prototypes.
1729         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1730         global.
1731         (aarch64_print_operand): Make static. Update calls to output_address.
1732         (aarch64_print_operand_address): Add MODE argument. Use instead of
1733         aarch64_memory_reference_mode global.
1734         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1735         hooks.
1736         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1737         Delete macro definitions.
1738         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
1739         * config/xtensa/xtensa.c (print_operand): Pass mode in
1740         output_address calls.
1741         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1742         argument.
1743         (h83000_print_operand): Update calls to h8300_print_operand_address
1744         and output_address.
1745         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
1746         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1747         global.
1748         (tilepro_print_operand): Pass mode to output_address.
1749         (tilepro_print_operand_address): Add MODE argument. Use instead of
1750         output_memory_reference_mode.
1751         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1752         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1753         to output_address calls.
1754         (nvptx_print_operand_address): Add MODE argument.
1755         * config/alpha/alpha.c (print_operand): Pass mode argument in
1756         output_address calls.
1757         * config/m68k/m68k.c (print_operand): Pass mode argument in
1758         output_address call.
1759         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1760         (avr_print_operand): Update calls to avr_print_operand_address.
1761         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1762         argument. Update calls to output_address.
1763         (sparc_print_operand): Pass mode to output_address.
1764         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1765         argument.
1766         (iq2000_print_operand): Pass mode in output_address calls.
1767         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1768         MODE argument.
1769         (xstormy16_print_operand): Pass mode to
1770         xstormy16_print_operand_address calls.
1771         * config/mips/mips.c (mips_print_operand): Update calls to
1772         output_address.
1773         (mips_print_operand_address): Add MODE argument.
1774         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1775         to output_address.
1776         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1777         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1778         output_address.
1779         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1780         (rx_print_operand): Update calls to output_address,
1781         rx_print_operand_address.
1782         * config/nds32/nds32.c (nds32_print_operand): Update calls to
1783         output_address.
1784         (nds32_print_operand_address): Add MODE argument.
1785         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1786         output_address calls.
1787         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1788         output_address call.
1789         (c6x_print_address_operand): Update calls to output_address.
1790         (c6x_print_operand_address): Pass mode to above.
1791         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
1792         (v850_print_operand): Pass mode to v850_print_operand_address,
1793         output_address.
1794         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
1795         (mmix_print_operand): Pass mode in output_address calls.
1796         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1797         (sh_print_operand): Pass mem mode to output_address,
1798         sh_print_operand_address.
1799         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
1800         (cr16_print_operand): Pass mode to output_address,
1801         cr16_print_operand_address.
1802         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1803         output_address.
1804         * config/microblaze/microblaze.c (print_operand): Pass mode to
1805         output_address.
1806         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1807         output_address.
1808         (nios2_print_operand_address): Add MODE argument. Update call to
1809         nios2_print_operand_address.
1810         * config/s390/s390.c (print_operand): Pass mode to output_address.
1811         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
1812         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1813         output_address.
1814         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1815         Use instead of output_memory_reference_mode.
1816         (output_memory_reference_mode): Delete global.
1817         (arm_print_operand): Pass mem mode to output_address.
1818         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
1819         (m32r_print_operand): Pass mode to output_address.
1820         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1821         argument.
1822         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1823         * config/i386/i386.c (ix86_print_operand): Pass mode to
1824         output_address calls.
1825         (ix86_print_operand_address): Add MODE argument.
1827 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1829         PR middle-end/68251
1830         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1831         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1832         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1833         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1835 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1837         PR rtl-optimization/67749
1838         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1839         case before emitting the two blocks.  Instead modify the register
1840         in the corresponding final insn of the basic block.
1842 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1844         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1845         assembler syntax.
1846         Support Solaris ld.
1847         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1849         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1850         HAVE_INITFINI_ARRAY_SUPPORT.
1851         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
1853         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1854         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1855         Don't check HAVE_AS_SPARC_NOBITS.
1856         Heed SECTION_NOTYPE.
1858         * configure: Regenerate.
1859         * config.in: Regenerate.
1861 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1863         PR middle-end/68253
1864         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1866 2015-11-09  Richard Henderson  <rth@redhat.com>
1868         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1869         __SEG_GS, __SEG_TLS.
1870         (ix86_register_pragmas): Register address spaces __seg_fs,
1871         __seg_gs, __seg_tls.
1872         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1873         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1874         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1875         * config/i386/i386.c (ix86_decompose_address): Likewise.
1876         (ix86_legitimate_address_p): Likewise.
1877         (memory_address_length): Likewise.  Check mem address space too.
1878         (ix86_print_operand): Use ix86_print_operand_address_as.
1879         (ix86_print_operand_address_as): Rename from
1880         ix86_print_operand_address, add new addr_space_t parameter.
1881         Validate that either the parameter or the ix86_address segment
1882         is default address space.  Handle ADDR_SPACE_SEG_TLS.
1883         (ix86_print_operand_address): New.
1884         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1885         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1886         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1887         (ix86_addr_space_zero_address_valid): New.
1888         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1889         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1890         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1891         * config/i386/predicates.md (address_no_seg_operand): Likewise.
1892         (vsib_address_operand): Likewise.
1893         (address_mpx_no_base_operand): Likewise.
1894         (address_mpx_no_index_operand): Likewise.
1895         * doc/extend.texi (x86 Named Address Spaces): New section.
1897         * config/i386/i386.c (ix86_check_no_addr_space): New.
1898         (decide_alg): Add have_as parameter.
1899         (alg_usable_p): Likewise; disable rep algorithms if set.
1900         (ix86_expand_set_or_movmem): Notice if either MEM has a
1901         non-default address space.
1902         (ix86_expand_strlen): Likewise.
1903         * config/i386/i386.md (strmov, strset): Likewise.
1904         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1905         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1906         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1907         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1908         *cmpstrnqi_1, *strlenqi_1): Likewise.
1910         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1911         (*movabs<mode>_2): Likewise.
1913         * dwarf2out.c (modified_type_die): Pass the address space number
1914         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1915         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1916         * targhooks.c (default_addr_space_debug): New.
1917         * targhooks.h (default_addr_space_debug): Declare.
1918         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1919         * doc/tm.texi: Rebuild.
1921         * gimple.c (check_loadstore): Return false when 0 is a valid address.
1922         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1923         null when 0 is valid in the source address space.
1924         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1925         * targhooks.c (default_addr_space_zero_address_valid): New.
1926         * targhooks.h (default_addr_space_zero_address_valid): Declare.
1927         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1928         * doc/tm.texi: Rebuild.
1930         * cselib.c (add_mem_for_addr): Compare address spaces when
1931         matching memories.
1932         (cselib_lookup_mem): Likewise.
1933         * fold-const.c (operand_equal_p): Check address spaces of
1934         pointer types before checking integer constants.
1936         PR tree-opt/66768
1937         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1938         the correct type for the base.
1940 2015-11-09  Jeff Law  <law@redhat.com>
1942         * tree-into-ssa.c (names_to_release): No longer static.
1943         * tree-into-ssa.h (names_to_release): Declare.
1944         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1945         (release_free_names_and_compact_live_names): New function extracted
1946         from pass_release_ssa_names::execute.
1947         (pass_release_ssa_names::execute): Use it.
1949 2015-11-09  Alan Modra  <amodra@gmail.com>
1951         * gensupport.c (add_mnemonic_string): Make len param a size_t.
1952         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
1953         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
1954         return value.
1956 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
1958         PR rtl-optimization/68182
1959         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1960         branch with only one successor just like unconditional branches.
1962 2015-11-08  Jeff Law  <law@redhat.com>
1964         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1965         non-FSM path has no edges marked with EDGE_DFS_BACK.
1966         (ssa_redirect_edges): No longer call mark_loop_for_removal.
1967         (thread_single_edge, def_split_header_continue_p): Remove.
1968         (bb_ends_with_multiway_branch): Likewise.
1969         (thread_through_loop_header): Remove cases of threading from
1970         latch through the header.  Simplify knowing we won't thread
1971         the latch.
1972         (thread_through_all_blocks): Simplify knowing that only the FSM
1973         threader needs to handle backedges.
1975 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1977         * doc/extend.texi (type attributes): Document scalar_storage_order.
1978         (Structure-Packing Pragmas): Rename into...
1979         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
1980         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1981         (Warnings): Document -Wno-scalar-storage-order.
1982         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1983         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1984         extract_bit_field and store_bit_field.
1985         (initialize_argument_information): Adjust call to store_expr.
1986         (load_register_parameters): Adjust call to extract_bit_field.
1987         * expmed.c (check_reverse_storage_order_support): New function.
1988         (check_reverse_float_storage_order_support): Likewise.
1989         (flip_storage_order): Likewise.
1990         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
1991         of the value if it is true.  Pass REVERSE to recursive call after
1992         adjusting the target offset.
1993         Do not use extraction or movstrict instruction if REVERSE is true.
1994         Pass REVERSE to store_fixed_bit_field.
1995         (store_bit_field): Add REVERSE parameter and pass to it to above.
1996         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1997         store_split_bit_field and store_fixed_bit_field_1.
1998         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
1999         order of the value if it is true and adjust the target offset.
2000         (store_split_bit_field): Add REVERSE parameter and pass it to
2001         store_fixed_bit_field.  Adjust the target offset if it is true.
2002         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
2003         of the value if it is true.  Pass REVERSE to recursive call after
2004         adjusting the target offset.
2005         Do not use extraction or subreg instruction if REVERSE is true.
2006         Pass REVERSE to extract_fixed_bit_field.
2007         (extract_bit_field): Add REVERSE parameter and pass to it to above.
2008         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
2009         extract_split_bit_field and extract_fixed_bit_field_1.
2010         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
2011         order of the value if it is true and adjust the target offset.
2012         (extract_split_bit_field): Add REVERSE parameter and pass it to
2013         extract_fixed_bit_field.  Adjust the target offset if it is true.
2014         * expmed.h (flip_storage_order): Declare.
2015         (store_bit_field): Adjust prototype.
2016         (extract_bit_field): Likewise.
2017         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
2018         (emit_group_store): Adjust call to store_bit_field.
2019         (copy_blkmode_from_reg): Likewise.
2020         (copy_blkmode_to_reg): Likewise.
2021         (write_complex_part): Likewise.
2022         (read_complex_part): Likewise.
2023         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
2024         that it isn't true if the target is a register.
2025         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
2026         and flip the storage order of the value.
2027         <BIT_IOR_EXPR>: Flip the storage order of the value.
2028         (get_bit_range): Adjust call to get_inner_reference.
2029         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
2030         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
2031         with reverse storage order.
2032         (store_expr_with_bounds): Add REVERSE parameter and pass it to
2033         recursive calls and call to store_bit_field.  Force the value into a
2034         register if it is true and then flip the storage order of the value.
2035         (store_expr): Add REVERSE parameter and pass it to above.
2036         (categorize_ctor_elements_1): Adjust call to
2037         initializer_constant_valid_p.
2038         (store_constructor_field): Add REVERSE parameter and pass it to
2039         recursive calls and call to store_field.
2040         (store_constructor): Add REVERSE parameter and pass it to calls to
2041         store_constructor_field and store_expr.  Set it to true for an
2042         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
2043         (store_field): Add REVERSE parameter and pass it to recursive calls
2044         and calls to store_expr and store_bit_field.  Temporarily flip the
2045         storage order of the value with record type and integral mode and
2046         adjust the shift if it is true.
2047         (get_inner_reference): Add PREVERSEP parameter and set it to true
2048         upon encoutering a reference with reverse storage order.
2049         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
2050         (expand_constructor): Adjust call to store_constructor.
2051         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
2052         of the union type to store_expr in the MEM case and assert that it
2053         isn't set in the REG case.  Adjust call to store_field.
2054         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
2055         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
2056         get_inner_reference and extract_bit_field. Temporarily flip the
2057         storage order of the value with record type and integral mode and
2058         adjust the shift if it is true.  Flip the storage order of the value
2059         at the end if it is true.
2060         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
2061         get_inner_reference.  Do not fetch an inner reference if it is true.
2062         * expr.h (store_expr_with_bounds): Ajust prototype.
2063         (store_expr): Likewise.
2064         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
2065         REF_REVERSE_STORAGE_ORDER on the reference according to it.
2066         (optimize_bit_field_compare): Deal with reverse storage order.
2067         Adjust calls to get_inner_reference and make_bit_field_ref.
2068         (decode_field_reference): Add PREVERSEP parameter and adjust call to
2069         get_inner_reference.
2070         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
2071         to decode_field_reference and make_bit_field_ref.
2072         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
2073         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
2074         (fold_comparison): Adjust call to get_inner_reference.
2075         (split_address_to_core_and_offset): Adjust call to
2076         get_inner_reference.
2077         * gimple-expr.c (useless_type_conversion_p): Return false for array
2078         types with different TYPE_REVERSE_STORAGE_ORDER flag.
2079         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
2080         REF_REVERSE_STORAGE_ORDER flag.
2081         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
2082         * output.h (assemble_real): Adjust prototype.
2083         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
2084         * stor-layout.c (finish_record_layout): Propagate the
2085         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
2086         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
2087         (TYPE_SATURATING): Adjust.
2088         (REF_REVERSE_STORAGE_ORDER): Document.
2089         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
2090         set it to true upon encoutering a reference with reverse storage order.
2091         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
2092         * tree-inline.c (remap_gimple_op_r): Propagate the
2093         REF_REVERSE_STORAGE_ORDER flag.
2094         (copy_tree_body_r): Likewise.
2095         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
2096         store_expr.
2097         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
2098         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
2099         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
2100         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
2101         REF_REVERSE_STORAGE_ORDER flag.
2102         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
2103         (gimple_canonical_types_compatible_p): Likewise.
2104         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
2105         (TYPE_SATURATING): Adjust.
2106         (REF_REVERSE_STORAGE_ORDER): New flag.
2107         (reverse_storage_order_for_component_p): New inline predicate.
2108         (storage_order_barrier_p): Likewise.
2109         (get_inner_reference): Adjust prototype.
2110         * varasm.c: Include expmed.h.
2111         (assemble_variable_contents): Adjust call to output_constant.
2112         (assemble_real): Add REVERSE parameter.  Flip the storage
2113         order of the value if REVERSE is true.
2114         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
2115         (assemble_constant_contents): Adjust call to output_constant.
2116         (output_constant_pool_2): Adjust call to assemble_real.
2117         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
2118         TYPE_REVERSE_STORAGE_ORDER.
2119         (initializer_constant_valid_p): Add REVERSE parameter.
2120         (output_constant): Add REVERSE parameter.
2121         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
2122         <REAL_TYPE>: Adjust call to assemble_real.
2123         <COMPLEX_TYPE>: Pass it to recursive calls.
2124         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
2125         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
2126         (struct oc_local_state): Add REVERSE field.
2127         (output_constructor_array_range): Adjust calls to output_constant.
2128         (output_constructor_regular_field): Likewise.
2129         (output_constructor_bitfield): Adjust call to output_constructor.
2130         Flip the storage order of the value if REVERSE is true.
2131         (output_constructor): Add REVERSE parameter.  Set it to true for an
2132         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
2133         output_constructor_bitfield.
2134         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
2135         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
2136         * builtins.c (get_object_alignment_2): Likewise.
2137         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
2138         and get_ref_base_and_extent.
2139         * dbxout.c (dbxout_expand_expr): Likewise.
2140         * dwarf2out.c (add_var_loc_to_decl): Likewise.
2141         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
2142         (loc_list_from_tree): Likewise.
2143         (fortran_common): Likewise.
2144         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
2145         get_ref_base_and_extent.
2146         (get_base_constructor): Likewise.
2147         (fold_const_aggregate_ref_1): Likewise.
2148         * gimple-laddress.c (pass_laddress::execute): Adjust call to
2149         get_inner_reference.
2150         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
2151         get_inner_reference and bail out on reverse storage order.
2152         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
2153         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
2154         build_ref_for_offset.
2155         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
2156         get_ref_base_and_extent.
2157         (ipa_polymorphic_call_context): Likewise.
2158         (extr_type_from_vtbl_ptr_store): Likewise.
2159         (check_stmt_for_type_change): Likewise.
2160         (get_dynamic_type): Likewise.
2161         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
2162         get_ref_base_and_extent.
2163         (compute_complex_assign_jump_func): Likewise.
2164         (get_ancestor_addr_info): Likewise.
2165         (compute_known_type_jump_func): Likewise.
2166         (determine_known_aggregate_parts): Likewise.
2167         (ipa_get_adjustment_candidate): Likewise.
2168         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
2169         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
2170         (build_ref_for_offset): Adjust prototype.
2171         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
2172         get_inner_reference.
2173         * tree-affine.c (tree_to_aff_combination): Adjust call to
2174         get_inner_reference.
2175         (get_inner_reference_aff): Likewise.
2176         * tree-data-ref.c (split_constant_offset_1): Likewise.
2177         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
2178         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
2179         get_inner_reference.
2180         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
2181         (dump_access): Print new fields.
2182         (create_access): Adjust call to get_ref_base_and_extent and set the
2183         REVERSE flag according to the result.
2184         (completely_scalarize_record): Set the REVERSE flag.
2185         (scalarize_elem): Add REVERSE parameter.
2186         (build_access_from_expr_1): Preserve storage order barriers.
2187         (build_accesses_from_assign): Likewise.
2188         (build_ref_for_offset): Add REVERSE parameter and set the
2189         REF_REVERSE_STORAGE_ORDER flag accordingly.
2190         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
2191         the REF_REVERSE_STORAGE_ORDER flag if there are components.
2192         (analyze_access_subtree): Likewise.
2193         (create_artificial_child_access): Set the REVERSE flag.
2194         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
2195         (turn_representatives_into_adjustments): Propagate REVERSE flag.
2196         (ipa_sra_check_caller): Adjust call to get_inner_reference.
2197         * tree-ssa-alias.c (ao_ref_base): Adjust call to
2198         get_ref_base_and_extent.
2199         (aliasing_component_refs_p): Likewise.
2200         (stmt_kills_ref_p_1): Likewise.
2201         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2202         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
2203         Return true if reverse storage order.
2204         <BIT_FIELD_REF>: Likewise.
2205         <COMPONENT_REF>: Likewise.
2206         <ARRAY_REF>: Likewise.
2207         <ARRAY_RANGE_REF>: Likewise.
2208         (split_address_cost): Likewise.  Bail out if reverse storage order.
2209         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
2210         get_inner_reference.  Bail out if reverse storage order.
2211         (bswap_replace): Adjust call to get_inner_reference.
2212         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
2213         the REF_REVERSE_STORAGE_ORDER flag.
2214         <BIT_FIELD_REF>: Likewise.
2215         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
2216         barriers.
2217         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
2218         to the REF_REVERSE_STORAGE_ORDER flag.
2219         <BIT_FIELD_REF>: Likewise.
2220         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
2221         (contains_storage_order_barrier_p): New predicate.
2222         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
2223         Punt on storage order barriers if necessary.
2224         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
2225         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
2226         call to get_ref_base_and_extent.
2227         (do_structure_copy): Likewise.
2228         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
2229         get_inner_reference.
2230         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
2231         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
2232         * ubsan.c (instrument_bool_enum_load): Likewise.
2233         (instrument_object_size): Likewise.
2234         * var-tracking.c (track_expr_p): Adjust call to
2235         get_ref_base_and_extent.
2236         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
2237         get_inner_reference.
2238         * config/s390/s390.c (s390_expand_atomic): Adjust call to
2239         store_bit_field.
2240         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
2241         extract_bit_field.
2242         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2244 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
2246         * config/sparc/sparc.opt (mfix-at697f): Add final period.
2248 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
2250         PR rtl-optimization/67864
2251         * common/config/i386/i386-common.c (ix86_option_optimization_table)
2252         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
2253         at -Os and up.
2255 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2257         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
2258         internal functions.
2260 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2262         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
2263         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
2265 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2267         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
2268         * internal-fn.c: Don't undef it here.
2269         * tree-core.h: Likewise.
2271 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2273         * builtins.c (fold_builtin_nan): Delete.
2274         (fold_builtin_memcmp): Remove case where both arguments are constant.
2275         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2276         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
2277         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
2278         * fold-const-call.c: Include fold-const.h.
2279         (host_size_t_cst_p): New function.
2280         (build_cmp_result, fold_const_builtin_nan): Likewise.
2281         (fold_const_call_1): New function, split out from...
2282         (fold_const_call): ...here (for all three interfaces).  Handle
2283         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
2285 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2287         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
2288         (fold_builtin_1): Don't call them.
2289         * fold-const-call.c: Include tm.h.
2290         (fold_const_call_ss): New variant for integer-to-integer folds.
2291         (fold_const_call): Call it.
2293 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2295         * builtins.c (fold_builtin_classify): Move constant cases to...
2296         * fold-const-call.c (fold_const_call_ss): ...here.
2298 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2300         * builtins.h (c_getstr): Move to...
2301         * fold-const.h (c_getstr): ...here.
2302         * builtins.c (c_getstr): Move to...
2303         * fold-const.c (c_getstr): ...here.
2305 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2307         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
2308         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
2310 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
2312         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
2313         the dominance info; free it if we can't.
2314         (pass_call_cdce::execute): Don't free the dominance info here.
2316 2015-11-06  Jeff Law <law@redhat.com>
2318         * tree-ssa-threadedge.c (dummy_simplify): Remove.
2319         (thread_around_empty_blocks): Remove backedge_seen_p argument.
2320         If we thread to a backedge, then return false.  Update recursive
2321         call to eliminate backedge_seen_p argument.
2322         (thread_through_normal_block): Remove backedge_seen_p argument.
2323         Remove backedge_seen_p argument from calls to
2324         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
2325         If we thread to a backedge, then return 0.
2326         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
2327         pass it to thread_through_normal_block or thread_through_empty_blocks.
2328         For joiner handling, if we see a backedge, do not try normal
2329         threading.
2331 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2333         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
2334         * graphite-poly.c (new_scop): Initialize original_schedule.
2335         (free_scop): Free original_schedule.
2336         * graphite-poly.h (struct scop): Add field original_schedule.
2337         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
2338         (build_poly_scop): Call build_scop_original_schedule.
2340 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2342         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2343         (build_pbb_minimal_scattering_polyhedrons): New.
2344         (build_scop_scattering): Remove.
2345         (build_scop_minimal_scattering): New.
2346         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
2347         (build_poly_scop): Call build_scop_minimal_scattering.
2349 2015-11-06  Jeff Law <law@redhat.com>
2351         * cfg-flags.def (IGNORE): New edge flag.
2352         * tree-vrp.c (identify_jump_threads): Mark and clear edges
2353         scheduled for removal with EDGE_IGNORE around call into
2354         jump threader.  Do no thread across edges with EDGE_IGNORE,
2355         but do allow threading across those with EDGE_DFS_BACK.
2357 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
2359         * doc/md.texi (multi-alternative constraints): Don't document
2360         alternatives inherently tied to reload for the user documentation.
2362 2015-11-06  Michael Collison  <michael.collison@linaro.org>
2363             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2365         Revert:
2366         2015-08-01  Michael Collison  <michael.collison@linaro.org
2367                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2369         * config/arm/arm.md (*arm_smin_cmp): New pattern.
2370         (*arm_umin_cmp): Likewise.
2372 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
2374         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
2375         * omp-low.c (check_omp_nesting_restrictions): Update for the
2376         various new OpenMP 4.5 nesting restrictions, clarified
2377         nesting glossary, closely nested region relationship clarified
2378         to mean explicit or implicit parallel regions (target/teams),
2379         use %</%> or %qs where appropriate.
2381 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2382             Sebastian Pop  <s.pop@samsung.com>
2384         * graphite-scop-detection.c (loop_is_valid_scop): Call
2385         optimize_loop_nest_for_speed_p.
2387 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2388             Sebastian Pop  <s.pop@samsung.com>
2390         * graphite-optimize-isl.c (optimize_isl): Call
2391         isl_options_set_schedule_maximize_band_depth.
2393 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
2394             Sebastian Pop  <s.pop@samsung.com>
2396         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2397         and exit edges should not be a part of irreducible loop.
2398         (scop_detection::can_represent_loop_1): Loops should not be
2399         irreducible.
2400         (scop_detection::harmful_stmt_in_region): All the basic block
2401         should belong to reducible loops.
2403 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
2405         * config/aarch64/aarch64-simd-builtins.def: Update builtins
2406         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2407         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2408         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2409         (aarch64_tbx4v8qi): Rename to...
2410         aarch64_tbx4<mode>): ... this.
2411         (aarch64_qtbl3<mode>): New pattern.
2412         (aarch64_qtbx3<mode>): New pattern.
2413         (aarch64_qtbl4<mode>): New pattern.
2414         (aarch64_qtbx4<mode>): New pattern.
2415         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2416         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2417         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2418         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2419         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2420         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2421         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2422         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2423         functions.
2425 2015-11-06  Mike Stump  <mikestump@comcast.net>
2427         PR debug/66728
2428         * dwarf2out.c (get_full_len): Return a value based upon the actual
2429         precision needed for the value.
2430         (add_const_value_attribute): Use a maximal wide-int for
2431         CONST_WIDE_INTs, not VOIDmode.
2432         (output_die): Don't ever output NULL with printf.
2434         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2435         BLKmode nor VOIDmode values.
2437 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2439         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2440         and "range2".
2441         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2442         * diagnostic-core.h (warning_at_rich_loc): New declaration.
2443         (error_at_rich_loc): New declaration.
2444         (permerror_at_rich_loc): New declaration.
2445         (inform_at_rich_loc): New declaration.
2446         * diagnostic-show-locus.c (adjust_line): Delete.
2447         (struct point_state): New struct.
2448         (class colorizer): New class.
2449         (class layout_point): New class.
2450         (class layout_range): New class.
2451         (struct line_bounds): New.
2452         (class layout): New class.
2453         (colorizer::colorizer): New ctor.
2454         (colorizer::~colorizer): New dtor.
2455         (layout::layout): New ctor.
2456         (layout::print_source_line): New method.
2457         (layout::print_annotation_line): New method.
2458         (layout::get_state_at_point): New method.
2459         (layout::get_x_bound_for_row): New method.
2460         (diagnostic_show_locus): Reimplement in terms of class layout.
2461         (diagnostic_print_caret_line): Delete.
2462         * diagnostic.c (diagnostic_initialize): Replace
2463         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2464         (diagnostic_set_info_translated): Convert param from location_t
2465         to rich_location *.  Eliminate calls to set_location on the
2466         message in favor of storing the rich_location ptr there.
2467         (diagnostic_set_info): Convert param from location_t to
2468         rich_location *.
2469         (diagnostic_build_prefix): Break out array into...
2470         (diagnostic_kind_color): New variable.
2471         (diagnostic_get_color_for_kind): New function.
2472         (diagnostic_report_diagnostic): Colorize the option_text
2473         using the color for the severity.
2474         (diagnostic_append_note): Update for change in signature of
2475         diagnostic_set_info.
2476         (diagnostic_append_note_at_rich_loc): New function.
2477         (emit_diagnostic): Update for change in signature of
2478         diagnostic_set_info.
2479         (inform): Likewise.
2480         (inform_at_rich_loc): New function.
2481         (inform_n): Update for change in signature of diagnostic_set_info.
2482         (warning): Likewise.
2483         (warning_at): Likewise.
2484         (warning_at_rich_loc): New function.
2485         (warning_n): Update for change in signature of diagnostic_set_info.
2486         (pedwarn): Likewise.
2487         (permerror): Likewise.
2488         (permerror_at_rich_loc): New function.
2489         (error): Update for change in signature of diagnostic_set_info.
2490         (error_n): Likewise.
2491         (error_at): Likewise.
2492         (error_at_rich_loc): New function.
2493         (sorry): Update for change in signature of diagnostic_set_info.
2494         (fatal_error): Likewise.
2495         (internal_error): Likewise.
2496         (internal_error_no_backtrace): Likewise.
2497         (source_range::debug): New function.
2498         * diagnostic.h (struct diagnostic_info): Eliminate field
2499         "override_column".  Add field "richloc".
2500         (struct diagnostic_context): Add field "colorize_source_p".
2501         (diagnostic_override_column): Delete.
2502         (diagnostic_set_info): Convert param from location_t to
2503         rich_location *.
2504         (diagnostic_set_info_translated): Likewise.
2505         (diagnostic_append_note_at_rich_loc): New function.
2506         (diagnostic_num_locations): New function.
2507         (diagnostic_expand_location): Get the location from the
2508         rich_location.
2509         (diagnostic_print_caret_line): Delete.
2510         (diagnostic_get_color_for_kind): New declaration.
2511         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
2512         (error_cb): Update for change in signature of "error" callback.
2513         (fatal_at): Likewise.
2514         (warning_at): Likewise.
2515         * input.c (linemap_client_expand_location_to_spelling_point): New.
2516         * pretty-print.c (text_info::set_range): New method.
2517         (text_info::get_location): New method.
2518         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2519         (struct text_info): Eliminate "locations" array in favor of
2520         "m_richloc", a rich_location *.
2521         (textinfo::set_location): Add a "caret_p" param, and reimplement
2522         in terms of a call to set_range.
2523         (textinfo::get_location): Eliminate inline implementation in favor of
2524         an out-of-line reimplementation.
2525         (textinfo::set_range): New method.
2526         * rtl-error.c (diagnostic_for_asm): Update for change in signature
2527         of diagnostic_set_info.
2528         * tree-diagnostic.c (default_tree_printer): Update for new
2529         "caret_p" param for textinfo::set_location.
2530         * tree-pretty-print.c (percent_K_format): Likewise.
2532 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2534         Properly apply.
2535         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2536         * config/aarch64/aarch64.c
2537         (aarch64_can_use_per_function_literal_pools_p): New.
2538         (aarch64_use_blocks_for_constant_p): Adjust declaration
2539         and use aarch64_can_use_function_literal_pools_p.
2540         (aarch64_select_rtx_section): Update.
2542 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2544         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2545         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2546         (arm_output_multireg_pop): Likewise.
2547         (output_move_double):  Likewise.
2548         (output_move_quad):  Likewise.
2549         (output_return_instruction): Likewise.
2550         (arm_print_operand): Remove support for %( and %. print modifiers.
2551         (arm_output_shift): Make unified asm.
2552         (arm_declare_function_name): Likewise.
2553         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2554         (ASM_APP_OFF): Adjust.
2555         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2556         (ASM_OUTPUT_REG_POP): Likewise.
2557         * config/arm/arm.md: Adjust uses of %., %(, %)
2558         * config/arm/sync.md: Likewise.
2559         * config/arm/thumb2.md: Likewise.
2560         * config/arm/ldmstm.md: Regenerate.
2561         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2562         * doc/invoke.texi (masm-unified-syntax): Update documentation.
2564 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2566         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2568 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2570         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2571         add OEP_MATCH_SIDE_EFFECTS.
2572         * fold-const.c (operand_equal_p): Update documentation; handle
2573         OEP_MATCH_SIDE_EFFECTS.
2574         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2575         OEP_MATCH_SIDE_EFFECTS.
2577 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
2578             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2580         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2581         * config/aarch64/aarch64-protos.h: Declare.
2582         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2583         frsqrts.
2584         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2585         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2586         code when applicable.
2587         * config/aarch64/aarch64.md: Added enum entries.
2588         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2590 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2592         PR ipa/68057
2593         PR ipa/68220
2594         * ipa-polymorphic-call.c
2595         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2596         issue when offset is out of range.
2597         (contains_type_p): Fix out of range check, clear dynamic flag.
2599 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
2601         * config.gcc (e6500): Fix cpu_is_64bit typo.
2603 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
2605         * tree-sra.c (completely_scalarize): Properly handle negative array
2606         indices using offset_int.
2608 2015-11-06  Richard Biener  <rguenther@suse.de>
2610         * alloc-pool.h (object_allocator::allocate): Default-initialize
2611         object.
2613 2015-11-06  Richard Biener  <rguenther@suse.de>
2615         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2616         * lra.c (init_reg_info): Truncate copy_vec instead of
2617         re-allocating a new one and leaking the old.
2618         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2619         bb_infos vec.
2620         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2621         * postreload-gcse.c (free_mem): Free modify_mem_list and
2622         canon_modify_mem_list.
2624 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
2626         PR tree-optimization/68145
2627         * tree-vect-stmts.c (vectorizable_operation): Fix
2628         determination for booleans.
2630 2015-11-06  Tom de Vries  <tom@codesourcery.com>
2632         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2633         cond_jump, instead of split after last nondebug insn before cond_jump.
2634         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2635         returning.
2637 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2639         PR target/68088
2640         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2641         subregs from accumulator and make sure it's a register.
2643 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
2645         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2646         low part to scalar.
2647         (reduc_uplus_<mode>): Remove.
2648         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2649         loongson_extract_lo_<mode>.
2650         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2651         reduc_smax_<mode>, reduc_smax_<mode>, use vec
2652         loongson_extract_lo_<mode>.
2653         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2655 2015-11-06  Richard Biener  <rguenther@suse.de>
2657         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2658         members.
2659         (vect_stmt_in_region_p): Declare.
2660         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2661         (destroy_bb_vec_info): Likewise.
2662         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2663         (vect_get_and_check_slp_defs): Likewise.
2664         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2665         (vect_slp_bb): Likewise.
2666         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2667         in terms of vect_stmt_in_region_p.
2668         (vect_pattern_recog): Iterate over the BB region.
2669         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2670         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2671         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2672         * config/i386/i386.c: Include gimple-iterator.h.
2673         * config/aarch64/aarch64.c: Likewise.
2675 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
2677         PR rtl-optimization/67753
2678         PR rtl-optimization/64164
2679         * function.c (assign_parm_setup_block): Avoid allocating a
2680         stack slot if we don't have an ABI-reserved one.  Emit the
2681         copy to target_reg in the conversion seq if the copy from
2682         entry_parm is in it too.  Don't use the conversion seq to copy
2683         a PARALLEL to a REG or a CONCAT.
2685 2015-11-06  Richard Biener  <rguenther@suse.de>
2687         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2688         equal_keys.
2690 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2691             Thomas Schwinge  <thomas@codesourcery.com>
2692             James Norris  <jnorris@codesourcery.com>
2695         * gimplify.c (gimplify_scan_omp_clauses): Add support for
2696         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
2697         (gimplify_adjust_omp_clauses): Likewise.
2698         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2699         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2700         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2701         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2702         (omp_clause_code_name): Likewise.
2703         (walk_tree_1): Handle OMP_CLAUSE_TILE.
2704         * tree.h (OMP_TILE_LIST): New macro.
2706 2015-11-05  Martin Sebor  <msebor@redhat.com>
2708         PR c++/67942
2709         * doc/invoke.texi (-Wplacement-new): Document new option.
2711 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
2713         PR tree-optimization/65963
2714         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2715         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2717 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
2719         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2720         (noce_convert_multiple_sets): Likewise.
2721         (noce_process_if_block): Call them.
2723 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2725         * gimple-fold.c: Include omp-low.h.
2726         (fold_internal_goacc_dim): New.
2727         (gimple_fold_call): Call it.
2729 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2730             Ilya Verbin  <ilya.verbin@intel.com>
2732         * builtin-types.def
2733         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2734         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2735         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2736         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2737         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2738         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2739         (struct cgraph_simd_clone_arg): Adjust comment.
2740         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2741         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
2742         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2743         to GOMP_target_data_ext.
2744         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2745         to GOMP_target_update_ext.
2746         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2747         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2748         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2749         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2750         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2751         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2752         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2753         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2754         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2755         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2756         * tree-core.h (enum omp_clause_schedule_kind): Add
2757         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2758         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2759         OMP_CLAUSE_SCHEDULE_LAST value.
2760         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2761         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2762         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2763         OMP_FOR_CHECK.  Remove comment.
2764         * tree-pretty-print.c (dump_omp_clause): Handle
2765         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2766         Simplify.  Print schedule clause modifiers.
2767         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2768         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2769         cases.
2770         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2771         (omp_default_clause): Tweak for
2772         private/firstprivate/is_device_ptr variables on target
2773         construct and use_device_ptr on target data.
2774         (omp_check_private): Likewise.
2775         (omp_notice_variable): For references check whether what it refers
2776         to has mappable type, rather than the reference itself.
2777         (omp_is_private): Diagnose linear iteration variables on non-simd
2778         constructs.
2779         (omp_no_lastprivate): Return true only for Fortran.
2780         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2781         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2782         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2783         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2784         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
2785         lastprivate and linear when combined with distribute.  Gimplify
2786         variable low-bound for array reduction.  Look through
2787         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2788         reductions.
2789         (gimplify_adjust_omp_clauses_1): For implicit references to
2790         variables with reference type and when not ref to scalar or
2791         ref to pointer, map what they refer to using tofrom and
2792         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2793         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2794         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2795         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
2796         Diagnose the same var on both firstprivate and lastprivate on
2797         distribute construct.
2798         (gimplify_omp_for): Fix up handling of predetermined
2799         lastprivate or linear iter vars when combined with distribute.
2800         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2801         functions.
2802         (gimplify_omp_workshare): Call optimize_target_teams.
2803         * omp-low.c (struct omp_region): Add sched_modifiers field.
2804         (struct omp_for_data): Likewise.
2805         (omp_any_child_fn_dumped): New variable.
2806         (extract_omp_for_data): Fill in sched_modifiers, and mask out
2807         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2808         from sched_kind.
2809         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2810         bits of OMP_CLAUSE_SCHED_KIND.
2811         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2812         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
2813         for array section reductions.
2814         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2815         for distribute parallel for, if there are lastprivate clauses on the
2816         for.
2817         (lower_rec_input_clauses): Handle non-zero low-bound on array
2818         section reductions.
2819         (lower_reduction_clauses): Likewise.
2820         (lower_send_clauses): Look through POINTER_PLUS_EXPR
2821         for array section reductions.
2822         (expand_parallel_call): Use nonmonotonic entrypoints for
2823         nonmonotonic: dynamic/guided.
2824         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2825         child_fn if current_function_decl has assembler name set, but child_fn
2826         does not.  Dump the header and IL of the child function when not in SSA
2827         form.
2828         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
2829         arguments to BUILT_IN_GOMP_TARGET.
2830         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2831         Initialize the extra _looptemp_ clause to fd->loop.n2.
2832         (expand_omp_for): Use nonmonotonic entrypoints for
2833         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
2834         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
2835         again if we have dumped any child functions.
2836         (lower_omp_for_lastprivate): Determine the right count variable
2837         for distribute simd, or distribute parallel for{, simd}.
2838         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2839         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
2840         support.
2841         (simd_clone_clauses_extract): Handle variable step
2842         for references and arguments passed by reference.
2843         (simd_clone_mangle): Mangle ref/uval/val variable steps.
2844         (simd_clone_adjust_argument_types): Handle
2845         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2846         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2847         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2848         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2849         (simd_clone_linear_addend): New function.
2850         (simd_clone_adjust): Handle variable step like similarly
2851         to constant step, use simd_clone_linear_addend to determine
2852         the actual step at runtime.
2854 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2856         * target.def (goacc.dim_limit): New hook.
2857         * targhooks.h (default_goacc_dim_limit): Declare.
2858         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2859         * doc/tm.texi: Rebuilt.
2860         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2861         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2862         (default_goacc_dim_limit): New.
2863         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2864         (nvptx_goacc_dim_limit) New.
2865         (TARGET_GOACC_DIM_LIMIT): Override.
2866         * tree-vrp.c: Include omp-low.h, target.h.
2867         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2868         IFN_GOACC_DIM_POS.
2870 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2872         * tree-vect-generic.c (do_compare): Use -1 for true
2873         result instead of 1.
2875 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2877         * config/aarch64/aarch64.c
2878         (aarch64_can_use_per_function_literal_pools_p): New.
2879         (aarch64_use_blocks_for_constant_p): Adjust declaration
2880         and use aarch64_can_use_function_literal_pools_p.
2881         (aarch64_select_rtx_section): Update.
2883 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2885         * targhooks.c (default_get_mask_mode): Use BLKmode in
2886         case target doesn't support required vector mode.
2887         * stor-layout.c (layout_type); Check for BLKmode.
2889 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2890             Sebastian Pop  <s.pop@samsung.com>
2892         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2893         Remove use of parameter_rename_map.
2894         (copy_def): Remove.
2895         (copy_internal_parameters): Remove.
2896         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2897         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2898         (free_sese_info): Do not free parameter_rename_map.
2899         (set_rename): Do not use parameter_rename_map.
2900         (rename_uses): Update call to set_rename.
2901         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2902         * sese.h (parameter_rename_map_t): Remove.
2903         (struct sese_info_t): Remove field parameter_rename_map.
2905 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2906             Sebastian Pop  <s.pop@samsung.com>
2908         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2909         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2910         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2911         anonymous namespace.
2912         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2913         (isl_id_for_pbb): Use a buffer of size 10.
2914         (isl_id_for_ssa_name): Same.
2915         * sese.c (set_rename): Add more dumps.
2917 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2919         * omp-low.c (struct omp_context): Remove reduction_map field.
2920         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2921         (new_omp_context, delete_omp_context, scan_omp_target): Remove
2922         reduction_map handling.
2923         (lower_omp_target): Remove obsolete openacc reduction handling.
2925 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2927         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2929 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2930             Cesar Philippidis  <cesar@codesourcery.com>
2932         * config/nvptx/nvptx.c: Include gimple headers.
2933         (worker_red_size, worker_red_align, worker_red_name,
2934         worker_red_sym): New.
2935         (nvptx_option_override): Initialize worker reduction buffer.
2936         (nvptx_file_end): Write out worker reduction buffer var.
2937         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2938         nvptx_expand_cmp_swap): New builtin expanders.
2939         (enum nvptx_builtins): New.
2940         (nvptx_builtin_decls): New.
2941         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2942         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2943         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2944         nvptx_lockless_update): New helpers.
2945         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2946         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2947         (nvptx_goacc_reduction): New.
2948         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2949         TARGET_BUILTIN_DECL): Override.
2950         (TARGET_GOACC_REDUCTION): Override.
2952 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2953             Cesar Philippidis  <cesar@codesourcery.com>
2955         * internal-fn.def (GOACC_REDUCTION): New.
2956         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2957         * internal-fn.c (expand_GOACC_REDUCTION): New.
2958         * target.def (goacc.reduction): New OpenACC hook.
2959         * targhooks.h (default_goacc_reduction): Declare.
2960         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2961         * doc/tm.texi: Rebuilt.
2962         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2963         scan_sharing_clauses): Remove oacc reduction handling here.
2964         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2965         (oacc_lower_reduction_var_helper): Delete.
2966         (lower_oacc_reductions): New.
2967         (lower_reduction_clauses): Don't handle OpenACC reductions here.
2968         (lower_oacc_head_tail): Call lower_oacc_reductions.
2969         (oacc_gimple_assign, oacc_init_reduction_array,
2970         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2971         oacc_process_reduction_data): Delete.
2972         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
2973         dummy OpenACC gang reduction for reductions at outer level.
2974         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2975         (default_goacc_reduction): New.
2976         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2978 2015-11-04  Martin Liska  <mliska@suse.cz>
2980         * cgraphunit.c (cgraph_node::expand_thunk): Call
2981         allocate_struct_function before init_function_start.
2982         (cgraph_node::expand): Use push_cfun and pop_cfun.
2983         * config/i386/i386.c (ix86_code_end): Call
2984         allocate_struct_function before init_function_start.
2985         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2986         * function.c (init_function_start): Move preamble to all
2987         callers.
2988         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2989         (execute_one_pass): Handle newly added TODO_discard_function.
2990         (execute_pass_list_1): Terminate if cfun equals to NULL.
2991         (execute_pass_list): Do not push and pop cfun, expect that
2992         cfun is set.
2993         * tree-pass.h (TODO_discard_function): Define.
2995 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2997         * cfganal.c (inverted_post_order_compute): Remove conditional
2998         compilation, use flag_checking.
2999         * config.in: Regenerate.
3000         * configure: Regenerate.
3001         * configure.ac: Remove ENABLE_CHECKING.
3002         * genconditions.c: Do not #undef ENABLE_CHECKING.
3003         * sese.h (bb_in_region): Comment out broken check.
3004         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
3005         conditional compilation, use flag_checking.
3007 2015-11-04  Tom de Vries  <tom@codesourcery.com>
3009         PR tree-optimization/67742
3010         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
3011         field.
3012         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
3013         (create_variable_info_for_1): Add and handle handle_param parameter.
3014         Add restrict handling.
3015         (create_variable_info_for): Call create_variable_info_for_1 with extra
3016         arg.
3017         (make_param_constraints): Drop restrict_name parameter.  Ignore
3018         vi->only_restrict_pointers.
3019         (intra_create_variable_infos): Call create_variable_info_for_1 with
3020         extra arg.  Remove restrict handling.  Call make_param_constraints with
3021         one fewer arg.
3023 2015-11-04  Tom de Vries  <tom@codesourcery.com>
3025         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
3026         variable.
3028 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3030         * config/arm/coff.h: Remove.
3032 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3034         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
3035         check for aggregate types and beef up comment for mode check.
3037 2015-11-03  Richard Biener  <rguenther@suse.de>
3039         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
3040         data references here.
3041         * tree-vect-loop.c: Include cgraph.h.
3042         (vect_analyze_loop_2): Collect data references here.
3043         * tree-vect-slp.c (find_bb_location): Inline ...
3044         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
3045         Factor in vect_slp_transform_bb.
3046         (vect_slp_transform_bb): Removed.
3047         (vect_slp_analyze_bb_1): Collect data references here.
3048         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
3049         vect_slp_bb.
3050         * tree-vectorizer.h (vect_slp_bb): Declare.
3051         (vect_slp_analyze_bb): Remove.
3052         (vect_slp_transform_bb): Remove.
3053         (find_bb_location): Remove.
3054         (vect_analyze_data_refs): Remove stmt count reference parameter.
3056 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
3058         * multiple_target.c (create_dispatcher_calls): Add target check
3059         on ifunc.
3060         (create_target_clone): Change assembler name for versioned declarations.
3062 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3063             Chung-Lin Tang  <cltang@codesourcery.com>
3065         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
3066         * omp-low.c (check_omp_nesting_restrictions): Allow
3067         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
3068         contexts.
3070 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
3072         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
3073         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
3074         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
3075         builtin.
3076         (vmulxq_f32): Likewise.
3077         (vmulx_f64): New.
3078         (vmulxq_f64): Rewrite to call fmulx builtin.
3079         (vmulxs_f32): Likewise.
3080         (vmulxd_f64): Likewise.
3081         (vmulx_lane_f32): Remove.
3082         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
3084 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
3086         * config/aarch64/aarch64.md (*movhf_aarch64): Use
3087         aarch64_reg_or_fp_zero for second operand.
3089 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
3091         * gimple-expr.c: Include hash-set.h and rtl.h.
3092         (mark_addressable_queue): New var.
3093         (mark_addressable): Factor actual marking into...
3094         (mark_addressable_1): ... this.  Queue it up during expand.
3095         (mark_addressable_2): New.
3096         (flush_mark_addressable_queue): New.
3097         * gimple-expr.h (flush_mark_addressable_queue): Declare.
3098         * cfgexpand.c: Include gimple-expr.h.
3099         (pass_expand::execute): Flush mark_addressable queue.
3101 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
3103         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
3104         bb_no_side_effects_p tests...
3105         (tree_ssa_ifcombine_bb): ... here.
3107         PR tree-optimization/68083
3108         * tree-ssa-ifcombine.c: Include tree-ssa.h.
3109         (bb_no_side_effects_p): Test for undefined uses too.
3110         * tree-ssa.c (gimple_uses_undefined_value_p): New.
3111         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
3113 2015-11-02  Jeff Law <law@redhat.com>
3115         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
3116         cases where the loop latch edge is in the middle of an FSM path.
3118 2015-11-03  Tom de Vries  <tom@codesourcery.com>
3120         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
3121         (make_param_constraints): ... this.  Add and handle restrict_name
3122         parameter.  Handle is_full_var case.
3123         (intra_create_variable_infos): Use make_param_constraints.
3125 2015-11-03  Tom de Vries  <tom@codesourcery.com>
3127         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
3128         make_copy_constraint call with make_constraint_from call.
3130 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
3132         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
3133         PIE executables.
3135 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
3137         * builtins.h (fold_fma): Move to fold-const-call.h.
3138         * builtins.c: Include fold-const-call.h.
3139         (mathfn_built_in_2): New function, split out from...
3140         (mathfn_built_in_1): ...here.
3141         (do_real_to_int_conversion, fold_const_builtin_pow)
3142         (fold_const_builtin_logb, fold_const_builtin_significand)
3143         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
3144         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
3145         (fold_builtin_sincos): Use fold_const_call to handle constants.
3146         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
3147         checks for ERROR_MARK.  Use fold_const_call to handle constant
3148         folds for math functions.
3149         (fold_fma): Move to fold-const-call.c.
3150         * fold-const.c: Include fold-const-call.h.
3151         * Makefile.in (OBJS): Add fold-const-call.o.
3152         (PLUGIN_HEADERS): Add fold-const-call.h.
3153         * realmpfr.h (real_from_mpfr): Allow the format to be specified
3154         directly.
3155         * realmpfr.c (real_from_mpfr): Likewise.
3156         * fold-const-call.h, fold-const-call.c: New files.
3158 2015-11-02  Julian Brown  <julian@codesourcery.com>
3160         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
3161         brackets and semicolon.
3163 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
3165         Revert:
3166         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3168         PR tree-optimization/65963
3169         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3170         LSHIFT_EXPRs as equivalent MULT_EXPRs.
3172 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3174         PR middle-end/68166
3175         * fold-const.c: Include "md5.h".
3177 2015-11-01  Jeff Law <law@redhat.com>
3179         * vmsdbgout.c: Revert unused header file reduction patch.
3181         * config/mcore/mcore.c: Include regs.h.
3183 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
3185         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
3187 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
3189         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
3190         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
3191         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
3193 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3195         * ggc-common.c: Restore needed header for checking=release.
3197 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3199         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
3201 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3203         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
3204         existing varinfo for arguments.
3206 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3208         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
3209         create_function_info_for.  Dump constraints generated during
3210         create_function_info_for. Move intra_create_variable_infos call and
3211         function-return-values-escape bit to ...
3212         (create_function_info_for): ... here, and merge
3213         intra_create_variable_infos call with argument loop.  Add and handle
3214         nonlocal_p parameter.
3216 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3218         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
3219         updating is alap, and seperated from preceding code.  Make sure
3220         insert_vi_for_tree is seperated from surrounding code.
3222 2015-10-31  Tom de Vries  <tom@codesourcery.com>
3224         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
3226 2015-10-30  Jeff Law <law@redhat.com>
3227             Nathan Sidwell  <nathan@acm.org>
3229         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
3230         args.
3231         (MOVE_MAX): Set to 8.
3233 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
3235         * cgraph.c: Include context.h for offloading.
3236         * varpool.c: Include context.h and omp-low.h.
3238 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
3240         * rtl.h (contains_symbol_ref_p): Declare.
3241         (SYMBOL_REF_P): Define.
3242         * rtlanal.c (contains_symbol_ref_p: New function.
3243         * lra-constraints.c (contains_symbol_ref_p): Remove.
3244         * var-tracking.c (contains_symbol_ref): Remove.
3245         (track_expr_p): Use contains_symbol_ref_p instead of
3246         contains_symbol_ref.
3248 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
3250         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
3251         * fold-const.c (get_array_ctor_element_at_index): New.
3252         (fold): Remove binary-search through CONSTRUCTOR, call previous.
3254         * fold-const.h (get_array_ctor_element_at_index): New.
3256 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
3258         * Makefile.in (OBJS): Add multiple_target.o.
3259         * attrib.c (make_attribute): Moved from config/i386/i386.c
3260         * config/i386/i386.c (make_attribute): Deleted.
3261         * multiple_target.c (create_dispatcher_calls): New.
3262         (get_attr_len): Ditto.
3263         (get_attr_str): Ditto.
3264         (separate_attrs): Ditto.
3265         (is_valid_asm_symbol): Ditto.
3266         (create_new_asm_name): Ditto.
3267         (create_target_clone): Ditto.
3268         (expand_target_clones): Ditto.
3269         (ipa_target_clone): Ditto.
3270         (ipa_dispatcher_calls): Ditto.
3271         * passes.def (pass_target_clone): Two new ipa passes.
3272         * tree-pass.h (make_pass_target_clone): Ditto.
3273         * doc/extend.texi (target_clones): New attribute description.
3275 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
3277         PR rtl-optimization/68106
3278         * lra-remat.c (input_regno_present_p): Process hard regs
3279         explicitly present in machine description insns.
3280         (call_used_input_regno_present_p): Ditto.
3281         (calculate_gen_cands): Ditto.
3282         (do_remat): Ditto.
3284 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
3286         * config/arm/neon-testgen.ml: Fix comment typo.
3288 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3290         * rtlanal.c (reg_set_p): Expand function comment.
3292 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
3294         * alias.c: Remove unused headers.
3295         * asan.c: Likewise.
3296         * attribs.c: Likewise.
3297         * auto-inc-dec.c: Likewise.
3298         * auto-profile.c: Likewise.
3299         * bb-reorder.c: Likewise.
3300         * bitmap.c: Likewise.
3301         * bt-load.c: Likewise.
3302         * builtins.c: Likewise.
3303         * caller-save.c: Likewise.
3304         * calls.c: Likewise.
3305         * ccmp.c: Likewise.
3306         * cfg.c: Likewise.
3307         * cfganal.c: Likewise.
3308         * cfgbuild.c: Likewise.
3309         * cfgcleanup.c: Likewise.
3310         * cfgexpand.c: Likewise.
3311         * cfghooks.c: Likewise.
3312         * cfgloop.c: Likewise.
3313         * cfgloopanal.c: Likewise.
3314         * cfgloopmanip.c: Likewise.
3315         * cfgrtl.c: Likewise.
3316         * cgraph.c: Likewise.
3317         * cgraphbuild.c: Likewise.
3318         * cgraphclones.c: Likewise.
3319         * cgraphunit.c: Likewise.
3320         * cilk-common.c: Likewise.
3321         * combine-stack-adj.c: Likewise.
3322         * combine.c: Likewise.
3323         * compare-elim.c: Likewise.
3324         * convert.c: Likewise.
3325         * coverage.c: Likewise.
3326         * cppbuiltin.c: Likewise.
3327         * cprop.c: Likewise.
3328         * cse.c: Likewise.
3329         * cselib.c: Likewise.
3330         * data-streamer-in.c: Likewise.
3331         * data-streamer-out.c: Likewise.
3332         * data-streamer.c: Likewise.
3333         * dbxout.c: Likewise.
3334         * dce.c: Likewise.
3335         * ddg.c: Likewise.
3336         * debug.c: Likewise.
3337         * df-core.c: Likewise.
3338         * df-problems.c: Likewise.
3339         * df-scan.c: Likewise.
3340         * dfp.c: Likewise.
3341         * dojump.c: Likewise.
3342         * dominance.c: Likewise.
3343         * domwalk.c: Likewise.
3344         * double-int.c: Likewise.
3345         * dse.c: Likewise.
3346         * dumpfile.c: Likewise.
3347         * dwarf2asm.c: Likewise.
3348         * dwarf2cfi.c: Likewise.
3349         * dwarf2out.c: Likewise.
3350         * emit-rtl.c: Likewise.
3351         * except.c: Likewise.
3352         * explow.c: Likewise.
3353         * expmed.c: Likewise.
3354         * expr.c: Likewise.
3355         * final.c: Likewise.
3356         * fixed-value.c: Likewise.
3357         * fold-const.c: Likewise.
3358         * function.c: Likewise.
3359         * fwprop.c: Likewise.
3360         * gcse.c: Likewise.
3361         * generic-match-head.c: Likewise.
3362         * ggc-common.c: Likewise.
3363         * gimple-builder.c: Likewise.
3364         * gimple-expr.c: Likewise.
3365         * gimple-fold.c: Likewise.
3366         * gimple-iterator.c: Likewise.
3367         * gimple-low.c: Likewise.
3368         * gimple-match-head.c: Likewise.
3369         * gimple-pretty-print.c: Likewise.
3370         * gimple-ssa-isolate-paths.c: Likewise.
3371         * gimple-ssa-strength-reduction.c: Likewise.
3372         * gimple-streamer-in.c: Likewise.
3373         * gimple-streamer-out.c: Likewise.
3374         * gimple-walk.c: Likewise.
3375         * gimple.c: Likewise.
3376         * gimplify-me.c: Likewise.
3377         * gimplify.c: Likewise.
3378         * godump.c: Likewise.
3379         * graph.c: Likewise.
3380         * graphds.c: Likewise.
3381         * haifa-sched.c: Likewise.
3382         * hw-doloop.c: Likewise.
3383         * ifcvt.c: Likewise.
3384         * init-regs.c: Likewise.
3385         * internal-fn.c: Likewise.
3386         * ipa-chkp.c: Likewise.
3387         * ipa-comdats.c: Likewise.
3388         * ipa-cp.c: Likewise.
3389         * ipa-devirt.c: Likewise.
3390         * ipa-icf-gimple.c: Likewise.
3391         * ipa-icf.c: Likewise.
3392         * ipa-inline-analysis.c: Likewise.
3393         * ipa-inline-transform.c: Likewise.
3394         * ipa-inline.c: Likewise.
3395         * ipa-polymorphic-call.c: Likewise.
3396         * ipa-profile.c: Likewise.
3397         * ipa-prop.c: Likewise.
3398         * ipa-pure-const.c: Likewise.
3399         * ipa-ref.c: Likewise.
3400         * ipa-reference.c: Likewise.
3401         * ipa-split.c: Likewise.
3402         * ipa-utils.c: Likewise.
3403         * ipa-visibility.c: Likewise.
3404         * ipa.c: Likewise.
3405         * ira-build.c: Likewise.
3406         * ira-color.c: Likewise.
3407         * ira-conflicts.c: Likewise.
3408         * ira-costs.c: Likewise.
3409         * ira-emit.c: Likewise.
3410         * ira-lives.c: Likewise.
3411         * ira.c: Likewise.
3412         * jump.c: Likewise.
3413         * langhooks.c: Likewise.
3414         * lcm.c: Likewise.
3415         * lists.c: Likewise.
3416         * loop-doloop.c: Likewise.
3417         * loop-init.c: Likewise.
3418         * loop-invariant.c: Likewise.
3419         * loop-iv.c: Likewise.
3420         * loop-unroll.c: Likewise.
3421         * lower-subreg.c: Likewise.
3422         * lra-assigns.c: Likewise.
3423         * lra-coalesce.c: Likewise.
3424         * lra-constraints.c: Likewise.
3425         * lra-eliminations.c: Likewise.
3426         * lra-lives.c: Likewise.
3427         * lra-remat.c: Likewise.
3428         * lra-spills.c: Likewise.
3429         * lra.c: Likewise.
3430         * lto-cgraph.c: Likewise.
3431         * lto-compress.c: Likewise.
3432         * lto-opts.c: Likewise.
3433         * lto-section-in.c: Likewise.
3434         * lto-section-out.c: Likewise.
3435         * lto-streamer-in.c: Likewise.
3436         * lto-streamer-out.c: Likewise.
3437         * lto-streamer.c: Likewise.
3438         * mcf.c: Likewise.
3439         * mode-switching.c: Likewise.
3440         * modulo-sched.c: Likewise.
3441         * optabs.c: Likewise.
3442         * opts-global.c: Likewise.
3443         * passes.c: Likewise.
3444         * plugin.c: Likewise.
3445         * postreload-gcse.c: Likewise.
3446         * postreload.c: Likewise.
3447         * predict.c: Likewise.
3448         * print-tree.c: Likewise.
3449         * profile.c: Likewise.
3450         * real.c: Likewise.
3451         * realmpfr.c: Likewise.
3452         * recog.c: Likewise.
3453         * ree.c: Likewise.
3454         * reg-stack.c: Likewise.
3455         * regcprop.c: Likewise.
3456         * reginfo.c: Likewise.
3457         * regrename.c: Likewise.
3458         * regstat.c: Likewise.
3459         * reload.c: Likewise.
3460         * reload1.c: Likewise.
3461         * reorg.c: Likewise.
3462         * resource.c: Likewise.
3463         * rtl-chkp.c: Likewise.
3464         * rtl-error.c: Likewise.
3465         * rtlanal.c: Likewise.
3466         * rtlhooks.c: Likewise.
3467         * sanopt.c: Likewise.
3468         * sched-deps.c: Likewise.
3469         * sched-ebb.c: Likewise.
3470         * sched-rgn.c: Likewise.
3471         * sdbout.c: Likewise.
3472         * sel-sched-dump.c: Likewise.
3473         * sel-sched-ir.c: Likewise.
3474         * sel-sched.c: Likewise.
3475         * sese.c: Likewise.
3476         * shrink-wrap.c: Likewise.
3477         * simplify-rtx.c: Likewise.
3478         * stack-ptr-mod.c: Likewise.
3479         * statistics.c: Likewise.
3480         * stmt.c: Likewise.
3481         * stor-layout.c: Likewise.
3482         * store-motion.c: Likewise.
3483         * stringpool.c: Likewise.
3484         * symtab.c: Likewise.
3485         * target-globals.c: Likewise.
3486         * targhooks.c: Likewise.
3487         * toplev.c: Likewise.
3488         * tracer.c: Likewise.
3489         * trans-mem.c: Likewise.
3490         * tree-affine.c: Likewise.
3491         * tree-call-cdce.c: Likewise.
3492         * tree-cfg.c: Likewise.
3493         * tree-cfgcleanup.c: Likewise.
3494         * tree-chkp-opt.c: Likewise.
3495         * tree-chkp.c: Likewise.
3496         * tree-chrec.c: Likewise.
3497         * tree-complex.c: Likewise.
3498         * tree-data-ref.c: Likewise.
3499         * tree-dfa.c: Likewise.
3500         * tree-diagnostic.c: Likewise.
3501         * tree-dump.c: Likewise.
3502         * tree-eh.c: Likewise.
3503         * tree-emutls.c: Likewise.
3504         * tree-if-conv.c: Likewise.
3505         * tree-inline.c: Likewise.
3506         * tree-into-ssa.c: Likewise.
3507         * tree-iterator.c: Likewise.
3508         * tree-loop-distribution.c: Likewise.
3509         * tree-nested.c: Likewise.
3510         * tree-nrv.c: Likewise.
3511         * tree-object-size.c: Likewise.
3512         * tree-outof-ssa.c: Likewise.
3513         * tree-parloops.c: Likewise.
3514         * tree-phinodes.c: Likewise.
3515         * tree-predcom.c: Likewise.
3516         * tree-pretty-print.c: Likewise.
3517         * tree-profile.c: Likewise.
3518         * tree-scalar-evolution.c: Likewise.
3519         * tree-sra.c: Likewise.
3520         * tree-ssa-address.c: Likewise.
3521         * tree-ssa-alias.c: Likewise.
3522         * tree-ssa-ccp.c: Likewise.
3523         * tree-ssa-coalesce.c: Likewise.
3524         * tree-ssa-copy.c: Likewise.
3525         * tree-ssa-dce.c: Likewise.
3526         * tree-ssa-dse.c: Likewise.
3527         * tree-ssa-forwprop.c: Likewise.
3528         * tree-ssa-ifcombine.c: Likewise.
3529         * tree-ssa-live.c: Likewise.
3530         * tree-ssa-loop-ch.c: Likewise.
3531         * tree-ssa-loop-im.c: Likewise.
3532         * tree-ssa-loop-ivcanon.c: Likewise.
3533         * tree-ssa-loop-ivopts.c: Likewise.
3534         * tree-ssa-loop-manip.c: Likewise.
3535         * tree-ssa-loop-niter.c: Likewise.
3536         * tree-ssa-loop-prefetch.c: Likewise.
3537         * tree-ssa-loop-unswitch.c: Likewise.
3538         * tree-ssa-loop.c: Likewise.
3539         * tree-ssa-math-opts.c: Likewise.
3540         * tree-ssa-operands.c: Likewise.
3541         * tree-ssa-phiopt.c: Likewise.
3542         * tree-ssa-phiprop.c: Likewise.
3543         * tree-ssa-pre.c: Likewise.
3544         * tree-ssa-propagate.c: Likewise.
3545         * tree-ssa-reassoc.c: Likewise.
3546         * tree-ssa-scopedtables.c: Likewise.
3547         * tree-ssa-sink.c: Likewise.
3548         * tree-ssa-strlen.c: Likewise.
3549         * tree-ssa-structalias.c: Likewise.
3550         * tree-ssa-tail-merge.c: Likewise.
3551         * tree-ssa-ter.c: Likewise.
3552         * tree-ssa-threadupdate.c: Likewise.
3553         * tree-ssa-uncprop.c: Likewise.
3554         * tree-ssa-uninit.c: Likewise.
3555         * tree-ssa.c: Likewise.
3556         * tree-ssanames.c: Likewise.
3557         * tree-stdarg.c: Likewise.
3558         * tree-streamer-in.c: Likewise.
3559         * tree-streamer-out.c: Likewise.
3560         * tree-streamer.c: Likewise.
3561         * tree-switch-conversion.c: Likewise.
3562         * tree-tailcall.c: Likewise.
3563         * tree-vect-data-refs.c: Likewise.
3564         * tree-vect-generic.c: Likewise.
3565         * tree-vect-loop-manip.c: Likewise.
3566         * tree-vect-loop.c: Likewise.
3567         * tree-vect-patterns.c: Likewise.
3568         * tree-vect-slp.c: Likewise.
3569         * tree-vect-stmts.c: Likewise.
3570         * tree-vectorizer.c: Likewise.
3571         * tree-vrp.c: Likewise.
3572         * tree.c: Likewise.
3573         * tsan.c: Likewise.
3574         * ubsan.c: Likewise.
3575         * value-prof.c: Likewise.
3576         * var-tracking.c: Likewise.
3577         * varasm.c: Likewise.
3578         * varpool.c: Likewise.
3579         * vmsdbgout.c: Likewise.
3580         * vtable-verify.c: Likewise.
3581         * web.c: Likewise.
3582         * wide-int-print.cc: Likewise.
3583         * wide-int.cc: Likewise.
3584         * xcoffout.c: Likewise.
3586 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
3588         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3589         between pass numbering and execution order.
3591 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3593         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3594         check for dependencies.
3596 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3598         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3599         CDI_DOMINATORS.
3601 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3603         * real.h (format_helper): New.
3604         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3605         (real_from_target, real_nan, real_2expN, real_value_truncate)
3606         (significand_size, real_from_string2, exact_real_inverse)
3607         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3608         (real_round, real_isinteger, real_from_integer): Replace
3609         machine_mode arguments with format_helper arguments.
3610         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3611         (real_from_integer, real_nan, real_2expN, real_convert)
3612         (real_value_truncate, exact_real_truncate, real_to_target)
3613         (real_from_target, significand_size, real_powi, real_trunc)
3614         (real_floor, real_ceil, real_round, real_isinteger): Replace
3615         machine_mode arguments with format_helper arguments.
3616         (real_to_target_fmt, real_from_target_fmt): Delete.
3617         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3618         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3619         argument with real_format.
3620         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3622 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3624         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3625         (fixed_to_decimal, fixed_convert_from_real)
3626         (real_convert_from_fixed): Fix mode arguments to real_2expN.
3628 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3630         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3631         SCALAR_FLOAT_MODE_P.
3633 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
3635         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3636         (completely_scalarize): Comment zero-length arrays.
3637         (get_access_replacement): Correct comment re. precondition.
3639 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3641         * config/i386/i386.c (get_builtin_code_for_version): Set priority
3642         for PROCESSOR_ZNVER1.
3643         (enum processor_model): Add M_AMDFAM17H_znver1.
3644         (struct arch_names_table): Likewise.
3645         * doc/extend.texi: ADD znver1.
3647 2015-10-30  Richard Biener  <rguenther@suse.de>
3649         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3650         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
3651         zeros to be folded to VECTOR_CSTs.
3652         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3653         * fold-const.c (fold): Use build_vector_from_ctor.
3655 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
3657         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3658         "mov %0.h[0], %1.h[0] to "neon_move".
3659         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3660         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3661         "mov_imm".
3662         (*cmovsi_insn_uxtw): Likewise.
3664 2015-10-30  Tom de Vries  <tom@codesourcery.com>
3666         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3667         unsigned, and initialize, and use initial value instead of hardcoded
3668         constant.  Add generic constraints dumping section.  Don't dump global
3669         initializers constraints dumping section if empty.  Don't update
3670         variable from if unused.
3672 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3674         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3675         flag_checking and/or CHECKING_P to eliminate conditional compilation
3676         on ENABLE_CHECKING.
3677         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3678         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3679         * config/i386/i386.c (ix86_print_operand_address): Likewise.
3680         (output_387_binary_op): Likewise.
3681         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3682         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3683         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3684         Likewise.
3685         * config/rs6000/rs6000.h: Likewise.
3686         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3688 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3690         * config/sh/sh.opt (mfdpic): Add missing period.
3692 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
3694         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3695         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3696         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3697         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3698         mcore_base_register_rtx_p, mcore_legitimate_index_p,
3699         mcore_legitimate_address_p): New functions.
3700         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3702 2015-10-29  Jeff Law  <law@redhat.com>
3704         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3705         method.
3706         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3707         * tree-ssa-threadedge.c
3708         (record_temporary_equivalences_from_stmts_at_dest): Remove
3709         backedge_seen argument and associated code which invalidated
3710         equivalences based on the value of that argument.
3711         (thread_through_normal_block): Corresponding changes.
3713 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3715         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3716         function earlier in the file.
3717         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3718         df_regs_ever_live_p.
3720 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3722         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3723         by ignoring it.
3725 2015-10-29  Richard Henderson  <rth@redhat.com>
3727         PR target/68124
3728         PR rtl-opt/67609
3729         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3730         sse check to the exact conditions of PR 67609.
3732 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3734         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3735         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3736         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3737         of the traditional names that TFmode uses for handling IEEE
3738         extended double. If -mfloat128, add KFmode functions for all of
3739         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3740         make TFmode use the same emulation functions as KFmode.
3741         (init_float128_ibm): Likewise.
3742         (init_float128_ieee): Likewise.
3743         (rs6000_generate_compare): For IEEE 128-bit floating point
3744         comparisons, call the unordered comparison function instead of the
3745         ordered comparison function.
3746         (rs6000_expand_float128_convert): Deal with operands that are
3747         memory operands. Restructure the code to use a switch statement on
3748         the mode. Add support for TFmode defaulting to either IBM extended
3749         double or IEEE 128-bit floating point. If the underlying types are
3750         the same, use a move instead of a conversion function.
3751         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3752         use for IEEE 128-bit floating point constants with -mfloat128.
3753         (rs6000_c_mode_for_suffix): Likewise.
3754         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3755         128-bit floating point with IBM extended double floating point.
3756         (rs6000_invalid_binary_op): Likewise.
3757         (rs6000_gen_le_vsx_permute): On little endian systems generate a
3758         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3759         types that can go in vector registers.
3760         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3761         point types that can go in vector registers on little endian
3762         PowerPC systems.
3763         (mark_swaps_for_removal): Likewise.
3764         (rs6000_analyze_swaps): Likewise.
3765         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3767         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3768         rework IEEE 128-bit floating point insns to deal with TFmode being
3769         either IBM extended double or IEEE 128-bit floating point.
3770         (IFKF): Likewise.
3771         (IBM128): Update iterator to add condition that the mode is IBM
3772         extended double.
3773         (IEEE128): New iterator for IEEE 128-bit floating point.
3774         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3775         (FLOAT128): Likewise.
3776         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3777         iterator.
3778         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3779         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3780         instead of hard coding TFmode or KFmode.
3781         (negtf2_internal): Likewise.
3782         (neg<mode>2_internal): Likewise.
3783         (abs<mode>2): Likewise.
3784         (abstf2_internal): Likewise.
3785         (abs<mode>2_internal): Likewise.
3786         (ieee_128bit_neg<mode>2): Likewise.
3787         (ieee_128bit_neg<mode>2_internal): Likewise.
3788         (ieee_128bit_abs<mode>2): Likewise.
3789         (ieee_128bit_abs<mode>2_internal): Likewise.
3790         (ieee_128bit_nabs<mode>2): Likewise.
3791         (ieee_128bit_nabs<mode>2_internal): Likewise.
3792         (extendiftf2): Add explicit conversions between 128-bit floating
3793         point types. Drop the old conversions that had become unwieldy.
3794         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3795         (extendifkf2): Likewise.
3796         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3797         (extendtfkf2): Likewise.
3798         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3799         (trunciftf2): Likewise.
3800         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3801         (truncifkf2): Likewise.
3802         (float<SDI:mode><IFKF:mode>2): Likewise.
3803         (trunckftf2): Likewise.
3804         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3805         (trunctfif2): Likewise.
3806         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3807         (extenddftf2): Rework 128-bit floating point conversions to
3808         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3809         KFmode expanders into one function.
3810         (extenddf<mode>2): Likewise.
3811         (extenddftf2_fprs): Likewise.
3812         (extenddf<mode>2_fprs): Likewise.
3813         (extenddftf2_vsx): Likewise.
3814         (extenddf<mode>2_vsx): Likewise.
3815         (extendsftf2): Likewise.
3816         (extendsf<mode>2): Likewise.
3817         (trunctfdf2): Likewise.
3818         (trunc<mode>df2): Likewise.
3819         (trunctfdf2_internal1): Likewise.
3820         (trunc<mode>df2_internal1): Likewise.
3821         (trunctfdf2_internal2): Likewise.
3822         (trunc<mode>df2_internal2): Likewise.
3823         (trunctfsf2): Likewise.
3824         (trunc<mode>sf2): Likewise.
3825         (trunctfsf2_fprs): Likewise.
3826         (trunc<mode>sf2_fprs): Likewise.
3827         (floatsit2f): Likewise.
3828         (floatsi<mode>2): Likewise.
3829         (fix_trunc_helper): Likewise.
3830         (fix_trunc_helper<mode>): Likewise.
3831         (fix_trunctfsi2): Likewise.
3832         (fix_trunc<mode>si2): Likewise.
3833         (fix_trunctfsi2_fprs): Likewise.
3834         (fix_trunc<mode>si2_fprs): Likewise.
3835         (fix_trunctfsi2_internal): Likewise.
3836         (fix_trunc<mode>si2_internal): Likewise.
3837         (fix_trunctfdi2): Likewise.
3838         (fix_trunc<mode>di2): Likewise.
3839         (fixuns_trunctf<mode>2): Likewise.
3840         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3841         (floatditf2): Likewise.
3842         (floatdi<mode>2): Likewise.
3843         (floatuns<mode>tf2): Likewise.
3844         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3845         (cmptf_internal1): Use a mode iterator to add support for both
3846         types (IFmode, TFmode) that support IBM extended double.
3847         (cmp<mode>_internal1): Likewise.
3848         (cmptf_internal2): Likewise.
3849         (cmp<mode>_internal2): Likewise.
3851         * doc/extend.texi (Floating Types): Document __ibm128 and
3852         __float128 on PowerPC.
3854         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3855         -mfloat128 and -mno-float128.
3857 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3859         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3860         floating point modes that can go in vector registers.
3861         (MODES_TIEABLE_P): Move tests for vector modes before tests for
3862         scalar floating point, so that IEEE 128-bit floating point that
3863         can go in vector registers bind with vectors and not FP.
3864         (struct rs6000_args): Add libcall field.
3866         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3867         and -mfloat128-software switches.  Replace them with a binary
3868         -mfloat128 switch.
3869         (-mfloat128): Likewise.
3871         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3872         128-bit floating point types in GPRs, even if the appropriate
3873         option enabling the type was not used.
3874         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3875         debugging.
3876         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3877         pre-decrement on IEEE 128-bit floating point values.
3878         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3879         is IEEE 128-bit floating point.
3880         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3881         128-bit floating point types that can go in vector registers.
3882         (rs6000_option_override_internal): Change -mfloat128-none and
3883         -mfloat128-software to -mfloat128, and move code to be near other
3884         VSX option handling.
3885         (rs6000_option_override_internal): Disable -mfloat128 if we don't
3886         have the Altivec ABI.
3887         (rs6000_init_builtins): Don't make TFmode use either IFmode or
3888         KFmode floating point nodes. Instead, have three separate nodes.
3889         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3890         eventually moving the long double default to IEEE 128-bit floating
3891         point.
3892         (rs6000_opt_masks): Add -mfloat128.
3893         (struct rs6000_opt_var): Fix typo in comment.
3894         (init_cumulative_args): Initialize libcall field in
3895         CUMULATIVE_ARGS.
3896         (rs6000_function_arg): Treat library functions as if they had
3897         prototypes to prevent IEEE 128-bit support functions from passing
3898         arguments in both GPRs and vector registers.
3899         (rs6000_arg_partial_bytes): Likewise.
3901         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3902         an option that can be turned on via -mcpu=<xxx>.
3904         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3905         longer used.
3907         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3908         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3909         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3910         double is IBM extended double.
3912         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3913         SUBREGs.
3915 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3917         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3918         * genconditions.c: Define CHECKING_P in the generated code.
3919         * genextract.c: Use flag_checking in insn_extract.
3920         * gengtype.c (main): Remove conditional compilation.
3921         * gengtype.h: Likewise.
3923 2015-10-29  Jeff Law  <law@redhat.com>
3925         PR tree-optimization/67892
3926         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3927         in comment.
3928         (thread_through_normal_block): If we have seen a backedge, then
3929         do nothing.  No longer call find_jump_threads_backwards here.
3930         (thread_across_edge): Use find_jump_threads_backwards to find
3931         jump threads if the old style threader was not successful.
3932         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3933         gsi_last_nondebug_bb.  Return NULL if the block does not end
3934         with a control statement.
3935         (find_jump_threads_backwards): Setup code moved here from
3936         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
3937         single edge argument instead of name & block.
3938         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3939         prototype.
3941 2015-10-29  Tom de Vries  <tom@codesourcery.com>
3943         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3944         types.
3946 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
3948         * omp-low.c (lower_omp_target): Remove unreachable code & merge
3949         ifs.
3951 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
3953         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3955 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3957         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3958         guard_bb0 and use guard_bb throughout.
3960 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3962         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3963         unnecessary label.
3965 2015-10-29  Richard Biener  <rguenther@suse.de>
3967         PR middle-end/68142
3968         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3969         overflow.
3971 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3973         * alias.c: Reorder #include statements and remove duplicates.
3974         * asan.c: Likewise.
3975         * attribs.c: Likewise.
3976         * auto-inc-dec.c: Likewise.
3977         * auto-profile.c: Likewise.
3978         * bb-reorder.c: Likewise.
3979         * bt-load.c: Likewise.
3980         * builtins.c: Likewise.
3981         * caller-save.c: Likewise.
3982         * calls.c: Likewise.
3983         * ccmp.c: Likewise.
3984         * cfg.c: Likewise.
3985         * cfganal.c: Likewise.
3986         * cfgbuild.c: Likewise.
3987         * cfgcleanup.c: Likewise.
3988         * cfgexpand.c: Likewise.
3989         * cfghooks.c: Likewise.
3990         * cfgloop.c: Likewise.
3991         * cfgloopanal.c: Likewise.
3992         * cfgloopmanip.c: Likewise.
3993         * cfgrtl.c: Likewise.
3994         * cgraph.c: Likewise.
3995         * cgraphbuild.c: Likewise.
3996         * cgraphclones.c: Likewise.
3997         * cgraphunit.c: Likewise.
3998         * cilk-common.c: Likewise.
3999         * combine-stack-adj.c: Likewise.
4000         * combine.c: Likewise.
4001         * compare-elim.c: Likewise.
4002         * convert.c: Likewise.
4003         * coverage.c: Likewise.
4004         * cppbuiltin.c: Likewise.
4005         * cprop.c: Likewise.
4006         * cse.c: Likewise.
4007         * cselib.c: Likewise.
4008         * data-streamer-in.c: Likewise.
4009         * data-streamer-out.c: Likewise.
4010         * data-streamer.c: Likewise.
4011         * dbxout.c: Likewise.
4012         * dce.c: Likewise.
4013         * ddg.c: Likewise.
4014         * debug.c: Likewise.
4015         * df-core.c: Likewise.
4016         * df-problems.c: Likewise.
4017         * df-scan.c: Likewise.
4018         * dfp.c: Likewise.
4019         * dojump.c: Likewise.
4020         * dominance.c: Likewise.
4021         * double-int.c: Likewise.
4022         * dse.c: Likewise.
4023         * dumpfile.c: Likewise.
4024         * dwarf2asm.c: Likewise.
4025         * dwarf2cfi.c: Likewise.
4026         * dwarf2out.c: Likewise.
4027         * emit-rtl.c: Likewise.
4028         * except.c: Likewise.
4029         * explow.c: Likewise.
4030         * expmed.c: Likewise.
4031         * expr.c: Likewise.
4032         * final.c: Likewise.
4033         * fixed-value.c: Likewise.
4034         * fold-const.c: Likewise.
4035         * function.c: Likewise.
4036         * fwprop.c: Likewise.
4037         * gcse.c: Likewise.
4038         * generic-match-head.c: Likewise.
4039         * ggc-common.c: Likewise.
4040         * gimple-builder.c: Likewise.
4041         * gimple-expr.c: Likewise.
4042         * gimple-fold.c: Likewise.
4043         * gimple-iterator.c: Likewise.
4044         * gimple-low.c: Likewise.
4045         * gimple-match-head.c: Likewise.
4046         * gimple-pretty-print.c: Likewise.
4047         * gimple-ssa-isolate-paths.c: Likewise.
4048         * gimple-ssa-strength-reduction.c: Likewise.
4049         * gimple-streamer-in.c: Likewise.
4050         * gimple-streamer-out.c: Likewise.
4051         * gimple-walk.c: Likewise.
4052         * gimple.c: Likewise.
4053         * gimplify-me.c: Likewise.
4054         * gimplify.c: Likewise.
4055         * godump.c: Likewise.
4056         * graph.c: Likewise.
4057         * graphite-poly.c: Likewise.
4058         * haifa-sched.c: Likewise.
4059         * hw-doloop.c: Likewise.
4060         * ifcvt.c: Likewise.
4061         * incpath.c: Likewise.
4062         * init-regs.c: Likewise.
4063         * internal-fn.c: Likewise.
4064         * ipa-chkp.c: Likewise.
4065         * ipa-comdats.c: Likewise.
4066         * ipa-cp.c: Likewise.
4067         * ipa-devirt.c: Likewise.
4068         * ipa-icf-gimple.c: Likewise.
4069         * ipa-icf.c: Likewise.
4070         * ipa-inline-analysis.c: Likewise.
4071         * ipa-inline-transform.c: Likewise.
4072         * ipa-inline.c: Likewise.
4073         * ipa-polymorphic-call.c: Likewise.
4074         * ipa-profile.c: Likewise.
4075         * ipa-prop.c: Likewise.
4076         * ipa-pure-const.c: Likewise.
4077         * ipa-ref.c: Likewise.
4078         * ipa-reference.c: Likewise.
4079         * ipa-split.c: Likewise.
4080         * ipa-utils.c: Likewise.
4081         * ipa-visibility.c: Likewise.
4082         * ipa.c: Likewise.
4083         * ira-build.c: Likewise.
4084         * ira-color.c: Likewise.
4085         * ira-conflicts.c: Likewise.
4086         * ira-costs.c: Likewise.
4087         * ira-emit.c: Likewise.
4088         * ira-lives.c: Likewise.
4089         * ira.c: Likewise.
4090         * jump.c: Likewise.
4091         * langhooks.c: Likewise.
4092         * lcm.c: Likewise.
4093         * lists.c: Likewise.
4094         * loop-doloop.c: Likewise.
4095         * loop-init.c: Likewise.
4096         * loop-invariant.c: Likewise.
4097         * loop-iv.c: Likewise.
4098         * loop-unroll.c: Likewise.
4099         * lower-subreg.c: Likewise.
4100         * lra-assigns.c: Likewise.
4101         * lra-coalesce.c: Likewise.
4102         * lra-constraints.c: Likewise.
4103         * lra-eliminations.c: Likewise.
4104         * lra-lives.c: Likewise.
4105         * lra-remat.c: Likewise.
4106         * lra-spills.c: Likewise.
4107         * lra.c: Likewise.
4108         * lto-cgraph.c: Likewise.
4109         * lto-compress.c: Likewise.
4110         * lto-opts.c: Likewise.
4111         * lto-section-in.c: Likewise.
4112         * lto-section-out.c: Likewise.
4113         * lto-streamer-in.c: Likewise.
4114         * lto-streamer-out.c: Likewise.
4115         * lto-streamer.c: Likewise.
4116         * mode-switching.c: Likewise.
4117         * modulo-sched.c: Likewise.
4118         * omp-low.c: Likewise.
4119         * optabs.c: Likewise.
4120         * opts-global.c: Likewise.
4121         * passes.c: Likewise.
4122         * plugin.c: Likewise.
4123         * postreload-gcse.c: Likewise.
4124         * postreload.c: Likewise.
4125         * predict.c: Likewise.
4126         * print-tree.c: Likewise.
4127         * profile.c: Likewise.
4128         * real.c: Likewise.
4129         * realmpfr.c: Likewise.
4130         * recog.c: Likewise.
4131         * ree.c: Likewise.
4132         * reg-stack.c: Likewise.
4133         * regcprop.c: Likewise.
4134         * reginfo.c: Likewise.
4135         * regrename.c: Likewise.
4136         * regstat.c: Likewise.
4137         * reload.c: Likewise.
4138         * reload1.c: Likewise.
4139         * reorg.c: Likewise.
4140         * resource.c: Likewise.
4141         * rtl-chkp.c: Likewise.
4142         * rtl-error.c: Likewise.
4143         * rtlanal.c: Likewise.
4144         * rtlhooks.c: Likewise.
4145         * sanopt.c: Likewise.
4146         * sched-deps.c: Likewise.
4147         * sched-ebb.c: Likewise.
4148         * sched-rgn.c: Likewise.
4149         * sese.c: Likewise.
4150         * shrink-wrap.c: Likewise.
4151         * simplify-rtx.c: Likewise.
4152         * stack-ptr-mod.c: Likewise.
4153         * statistics.c: Likewise.
4154         * stmt.c: Likewise.
4155         * stor-layout.c: Likewise.
4156         * store-motion.c: Likewise.
4157         * stringpool.c: Likewise.
4158         * symtab.c: Likewise.
4159         * target-globals.c: Likewise.
4160         * targhooks.c: Likewise.
4161         * toplev.c: Likewise.
4162         * tracer.c: Likewise.
4163         * trans-mem.c: Likewise.
4164         * tree-affine.c: Likewise.
4165         * tree-call-cdce.c: Likewise.
4166         * tree-cfg.c: Likewise.
4167         * tree-cfgcleanup.c: Likewise.
4168         * tree-chkp-opt.c: Likewise.
4169         * tree-chkp.c: Likewise.
4170         * tree-chrec.c: Likewise.
4171         * tree-complex.c: Likewise.
4172         * tree-data-ref.c: Likewise.
4173         * tree-dfa.c: Likewise.
4174         * tree-diagnostic.c: Likewise.
4175         * tree-dump.c: Likewise.
4176         * tree-eh.c: Likewise.
4177         * tree-emutls.c: Likewise.
4178         * tree-if-conv.c: Likewise.
4179         * tree-inline.c: Likewise.
4180         * tree-into-ssa.c: Likewise.
4181         * tree-iterator.c: Likewise.
4182         * tree-loop-distribution.c: Likewise.
4183         * tree-nested.c: Likewise.
4184         * tree-nrv.c: Likewise.
4185         * tree-object-size.c: Likewise.
4186         * tree-outof-ssa.c: Likewise.
4187         * tree-parloops.c: Likewise.
4188         * tree-phinodes.c: Likewise.
4189         * tree-predcom.c: Likewise.
4190         * tree-pretty-print.c: Likewise.
4191         * tree-profile.c: Likewise.
4192         * tree-scalar-evolution.c: Likewise.
4193         * tree-sra.c: Likewise.
4194         * tree-ssa-address.c: Likewise.
4195         * tree-ssa-alias.c: Likewise.
4196         * tree-ssa-ccp.c: Likewise.
4197         * tree-ssa-coalesce.c: Likewise.
4198         * tree-ssa-copy.c: Likewise.
4199         * tree-ssa-dce.c: Likewise.
4200         * tree-ssa-dom.c: Likewise.
4201         * tree-ssa-dse.c: Likewise.
4202         * tree-ssa-forwprop.c: Likewise.
4203         * tree-ssa-ifcombine.c: Likewise.
4204         * tree-ssa-live.c: Likewise.
4205         * tree-ssa-loop-ch.c: Likewise.
4206         * tree-ssa-loop-im.c: Likewise.
4207         * tree-ssa-loop-ivcanon.c: Likewise.
4208         * tree-ssa-loop-ivopts.c: Likewise.
4209         * tree-ssa-loop-manip.c: Likewise.
4210         * tree-ssa-loop-niter.c: Likewise.
4211         * tree-ssa-loop-prefetch.c: Likewise.
4212         * tree-ssa-loop-unswitch.c: Likewise.
4213         * tree-ssa-loop.c: Likewise.
4214         * tree-ssa-math-opts.c: Likewise.
4215         * tree-ssa-operands.c: Likewise.
4216         * tree-ssa-phiopt.c: Likewise.
4217         * tree-ssa-phiprop.c: Likewise.
4218         * tree-ssa-pre.c: Likewise.
4219         * tree-ssa-propagate.c: Likewise.
4220         * tree-ssa-reassoc.c: Likewise.
4221         * tree-ssa-sccvn.c: Likewise.
4222         * tree-ssa-scopedtables.c: Likewise.
4223         * tree-ssa-sink.c: Likewise.
4224         * tree-ssa-strlen.c: Likewise.
4225         * tree-ssa-structalias.c: Likewise.
4226         * tree-ssa-tail-merge.c: Likewise.
4227         * tree-ssa-ter.c: Likewise.
4228         * tree-ssa-threadedge.c: Likewise.
4229         * tree-ssa-threadupdate.c: Likewise.
4230         * tree-ssa-uncprop.c: Likewise.
4231         * tree-ssa-uninit.c: Likewise.
4232         * tree-ssa.c: Likewise.
4233         * tree-ssanames.c: Likewise.
4234         * tree-stdarg.c: Likewise.
4235         * tree-streamer-in.c: Likewise.
4236         * tree-streamer-out.c: Likewise.
4237         * tree-streamer.c: Likewise.
4238         * tree-switch-conversion.c: Likewise.
4239         * tree-tailcall.c: Likewise.
4240         * tree-vect-data-refs.c: Likewise.
4241         * tree-vect-generic.c: Likewise.
4242         * tree-vect-loop-manip.c: Likewise.
4243         * tree-vect-loop.c: Likewise.
4244         * tree-vect-patterns.c: Likewise.
4245         * tree-vect-slp.c: Likewise.
4246         * tree-vect-stmts.c: Likewise.
4247         * tree-vectorizer.c: Likewise.
4248         * tree-vrp.c: Likewise.
4249         * tree.c: Likewise.
4250         * tsan.c: Likewise.
4251         * ubsan.c: Likewise.
4252         * value-prof.c: Likewise.
4253         * var-tracking.c: Likewise.
4254         * varasm.c: Likewise.
4255         * varpool.c: Likewise.
4256         * vtable-verify.c: Likewise.
4257         * web.c: Likewise.
4258         * wide-int-print.cc: Likewise.
4259         * wide-int.cc: Likewise.
4260         * xcoffout.c: Likewise.
4262 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
4264         * Makefile.in (NO_PIE_CFLAGS): New.
4265         (NO_PIE_FLAG): Likewise.
4266         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4267         (NO_PIE_FLAG_FOR_BUILD): Likewise.
4268         (BUILD_NO_PIE_CFLAGS): Likewise.
4269         (BUILD_NO_PIE_FLAG): Likewise.
4270         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
4271         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
4272         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
4273         $(BUILD_NO_PIE_CFLAGS).
4274         (BUILD_CXXFLAGS): Likewise.
4275         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
4276         $(BUILD_NO_PIE_FLAG).
4277         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
4278         (BUILD_NO_PIE_FLAG): Likewise.
4279         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4280         (NO_PIE_FLAG_FOR_BUILD): Likewise.
4281         * configure: Regenerated.
4283 2015-10-29  Richard Biener  <rguenther@suse.de>
4285         PR middle-end/56956
4286         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
4287         unsigned conditonal negation to ABS_EXPR.
4289 2015-10-29  Richard Biener  <rguenther@suse.de>
4291         * gimple-match-head.c (gimple_simplify): Remove premature checking
4292         of builtin_decl_implicit of function calls we simplify.
4294 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
4296         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
4297         (get_computation_cost_at): Ditto.
4298         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
4299         and inv_expr_id.
4301 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4303         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
4304         superfluous code.
4306 2015-10-28  Jason Merrill  <jason@redhat.com>
4308         * Makefile.in (TAGS): Include libcpp and libiberty.
4310 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4312         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
4313         (extract_omp_for_data): Remove OpenACC special handling of
4314         chunking.
4316         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
4317         (struct parallel): Update comment.
4318         (nvptx_reorg): Likewise.
4319         (nvptx_neuter): Cleanup whitespace.
4321 2015-10-28  Richard Henderson  <rth@redhat.com>
4323         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
4325 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4327         PR target/67839
4328         * config/avr/predicates.md (low_io_address_operand): Don't
4329         consider MODE when computing upper bound.
4330         (io_address_operand): Likewise.
4332 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
4334         * fold-const.c (operand_equal_p): Do not verify that types are
4335         compatible for MEM_REFs.
4337 2015-10-28  Richard Biener  <rguenther@suse.de>
4339         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
4340         in simplifying VEC_COND_EXPR conditions.
4342 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4344         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
4345         into vi_next of a full_var.
4347 2015-10-28  Tom de Vries  <tom@codesourcery.com>
4349         * tree-ssa-structalias.c (new_var_info, make_heapvar)
4350         (make_constraint_from_restrict, make_constraint_from_global_restrict)
4351         (create_function_info_for, create_variable_info_for_1)
4352         (create_variable_info_for): Add and handle add_id parameter.
4353         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
4354         (init_base_vars): Add extra argument to calls to new_var_info.
4355         (get_vi_for_tree): Add extra argument to call to
4356         create_variable_info_for.
4357         (process_constraint, do_deref, process_all_all_constraints): Add extra
4358         argument to calls to new_scalar_tmp_constraint_exp.
4359         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
4360         argument to calls to make_heapvar.
4361         (make_restrict_var_constraints): Add extra argument to call to
4362         make_constraint_from_global_restrict.
4363         (intra_create_variable_infos): Add extra argument to call to
4364         create_variable_info_for_1.
4365         (ipa_pta_execute): Add extra argument to call to
4366         create_function_info_for.
4368 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4370         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4371         (sibcall_value): Likewise.
4373 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4375         * config/nvptx/nvptx.h (struct machine_function): Add
4376         axis_predicate.
4377         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4378         nvptx_expand_oacc_join): Declare.
4379         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4380         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4381         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4382         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4383         UNSPECV_JOINING, UNSPECV_JOIN): New.
4384         (BITS, BITD): New mode iterators.
4385         (br_true_uni, br_false_uni): New.
4386         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4387         (oacc_dim_size, oacc_dim_pos): New.
4388         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4389         (oacc_fork, oacc_join): New.
4390         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4391         (worker_load<mode>, worker_store<mode>): New.
4392         (nvptx_barsync): New.
4393         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4394         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4395         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4396         worker_bcast_sym): New.
4397         (nvptx_option_override): Initialize worker broadcast buffer.
4398         (nvptx_emit_forking, nvptx_emit_joining): New.
4399         (nvptx_init_axis_predicate): New.
4400         (nvptx_declare_function_name): Init axis predicates.
4401         (nvptx_expand_call): Add fork/join markers around routine call.
4402         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4403         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4404         (nvptx_gen_vcast): New.
4405         (struct wcast_data_t): New.
4406         (enum propagate_mask): New.
4407         (nvptx_gen_wcast): New.
4408         (nvptx_print_operand): Add 'S' case.
4409         (struct parallel): New.
4410         (parallel::parallel, parallel::~parallel): New.
4411         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4412         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4413         nvptx_find_par, nvptx_discover_pars): New.
4414         (nvptx_propagate): New.
4415         (vprop_gen, nvptx_vpropagate): New.
4416         (wprop_gen, nvptx_wpropagate): New.
4417         (nvptx_wsync): New.
4418         (nvptx_single, nvptx_skip_par): New.
4419         (nvptx_process_pars, nvptx_neuter_pars): New.
4420         (ntptx_reorg): Split blocks, generate parallel structure, apply
4421         neutering.
4422         (nvptx_cannot_copy_insn_p): New.
4423         (nvptx_file_end): Emit worker broadcast decl.
4424         (nvptx_goacc_fork_join): New.
4425         (TARGET_CANNOT_COPY_INSN_P): Override.
4426         (TARGET_GOACC_FORK_JOIN): Override.
4428 2015-10-28  Richard Biener  <rguenther@suse.de>
4430         * fold-const.c (negate_expr_p): Adjust the division case to
4431         properly avoid introducing undefined overflow.
4432         (fold_negate_expr): Likewise.
4434 2015-10-28  Richard Biener  <rguenther@suse.de>
4436         PR tree-optimization/65962
4437         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4438         Avoid creating loop carried dependences also for outer loops
4439         of the loop a use to replace is in.
4441 2015-10-28  Richard Biener  <rguenther@suse.de>
4443         * common.opt (fchecking): New flag controlling flag_checking.
4444         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4445         * timevar.c (timer::print): Adjust output.
4446         * doc/invoke.texi (fchecking): Document.
4448 2015-10-28  Richard Biener  <rguenther@suse.de>
4450         PR middle-end/68067
4451         * fold-const.c (negate_expr_p): We cannot negate plus or minus
4452         if overflow is not wrapping.  Likewise multiplication unless
4453         one operand is constant and not power of two.
4454         (fold_negate_expr): Adjust accordingly.
4456 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4458         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4459         fields.
4460         (is_oacc_parallel, is_oacc_kernels): New.
4461         (enclosing_target_ctx): May return NULL.
4462         (ctx_in_oacc_kernels_region): New.
4463         (check_oacc_kernel_gwv): New.
4464         (oacc_loop_or_target_p): Delete.
4465         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
4466         operands.  Strip reductions fro kernels.
4467         (scan_omp_target): Don't calculate gwv mask.
4468         (lower_oacc_head_mark, lower_oacc_loop_marker,
4469         lower_oacc_head_tail): New.
4470         (struct oacc_collapse): New.
4471         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
4472         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4473         Remove OpenACC handling.
4474         (expand_oacc_for): New.
4475         (expand_omp_for): Call expand_oacc_for.
4476         (lower_omp_for): Call lower_oacc_head_tail.
4478 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
4480         * attribs.c (check_attribute_tables): New function, broken out from...
4481         (init_attributes): Use it.
4482         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
4483         gcc_checking_assert and checking_* functions to eliminate
4484         ENABLE_CHECKING conditionals.
4485         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
4486         (pass_expand::execute): Likewise.
4487         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4488         * cgraphunit.c (mark_functions_to_output): Likewise.
4489         (cgraph_node::expand_thunk): Likewise.
4490         (symbol_table::compile): Likewise.
4491         * ddg.c (add_cross_iteration_register_deps): Likewise.
4492         (create_ddg_all_sccs): Likewise.
4493         * df-core.c (df_finish_pass, df_analyze): Likewise.
4494         * diagnostic-core.h: Likewise.
4495         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
4496         * dominance.c (calculate_dominance_info): Likewise.
4497         * dwarf2out.c (add_AT_die_ref): Likewise.
4498         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
4499         (loc_list_from_tree, gen_lexical_block_die): Likewise.
4500         gen_type_die_with_usage, gen_type_die): Likewise.
4501         (dwarf2out_decl): Likewise.
4502         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
4503         * except.c (duplicate_eh_regions): Likewise.
4504         * fwprop.c (register_active_defs, update_df_init): Likewise.
4505         (fwprop_init, fwprop_done): Likewise.
4506         (update_uses): Likewise.
4507         * ggc-page.c (ggc_grow): Likewise.
4508         * gimplify.c (gimplify_body): Likewise.
4509         (gimplify_hasher::equal): Likewise.
4510         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4511         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4512         Likewise.
4513         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4514         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4515         * hash-table.h (::find_empty_slot_for_expand): Likewise.
4516         * ifcvt.c (if_convert): Likewise.
4517         * ipa-cp.c (ipcp_propagate_stage): Likewise.
4518         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4519         (odr_type_p, odr_types_equivalent_p): Likewise.
4520         (add_type_duplicate, get_odr_type): Likewise.
4521         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4522         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4523         (sem_item_optimizer::verify_classes): Likewise.
4524         (sem_item_optimizer::traverse_congruence_split): Likewise.
4525         (sem_item_optimizer::checking_verify_classes): New.
4526         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4527         method.
4528         * cfgrtl.c (commit_edge_insertions): Likewise.
4529         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4530         (rtl_flow_call_edges_add): Likewise.
4531         * cgraph.c (symbol_table::create_edge): Likewise.
4532         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4533         * cgraph.h (symtab_node): Likewise.
4534         (symtab_node::checking_verify_symtab_nodes): Define.
4535         (cgraph_node::checking_verify_cgraph_nodes): Define.
4536         * cfghooks.h (checking_verify_flow_info): Define.
4537         * cfgloop.h (checking_verify_loop_structure): Define.
4538         * dominance.h (checking_verify_dominators): Define.
4539         * et-forest.c: Fix comment.
4540         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4541         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4542         ENABLE_CHECKING conditionals.
4543         * ipa-inline-transform.c (save_inline_function_body): Likewise.
4544         * ipa-inline.c (inline_small_functions): Likewise.
4545         (early_inliner): Likewise.
4546         * ipa-inline.h (estimate_edge_growth): Likewise.
4547         * ipa-visibility.c (function_and_variable_visibility): Likewise.
4548         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4549         (ipa_single_use): Likewise.
4550         * ira-int.h: Likewise.
4551         * ira.c (ira): Likewise.
4552         * loop-doloop.c (doloop_optimize_loops): Likewise.
4553         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4554         * loop-invariant.c (move_loop_invariants): Likewise.
4555         * lra-assigns.c (lra_assign): Likewise.
4556         * lra-constraints.c (lra_constraints): Likewise.
4557         * lra-eliminations.c (lra_eliminate): Likewise.
4558         * lra-int.h (struct lra_reg): Likewise.
4559         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4560         (lra_create_live_ranges_1): Likewise.
4561         * lra-remat.c (create_remat_bb_data): Likewise.
4562         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4563         (lra): Likewise.
4564         (check_rtl): Always define. Remove incorrect guard around
4565         extract_constrain_insn call.
4566         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4567         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4568         ENABLE_CHECKING conditionals.
4569         * lto-streamer-out.c (DFS::DFS): Likewise.
4570         (lto_output): Likewise.
4571         * lto-streamer.c (lto_streamer_init): Likewise.
4572         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4573         expand_omp_target, execute_expand_omp): Likewise.
4574         (lower_omp_target): Likewise.
4575         * passes.c (execute_function_todo): Likewise.
4576         (execute_todo, execute_one_pass): Likewise.
4577         (verify_curr_properties): Always define.
4578         * predict.c (tree_estimate_probability: Use flag_checking,
4579         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4580         ENABLE_CHECKING conditionals.
4581         (propagate_freq): Likewise.
4582         * pretty-print.c (pp_format): Likewise.
4583         * real.c (real_to_decimal_for_mode): Likewise.
4584         * recog.c (split_all_insns): Likewise.
4585         * regcprop.c (kill_value_one_regno): Likewise.
4586         (copy_value): Likewise.
4587         (validate_value_data): Define unconditionally.
4588         * reload.c: Fix comment.
4589         * timevar.c: Include options.h
4590         * tree-ssa.h (checking_verify_ssa): Define.
4591         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4592         * sched-deps.c (CHECK): Remove unused macro.
4593         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4594         gcc_checking_assert and checking_* functions to eliminate
4595         ENABLE_CHECKING conditionals.
4596         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4597         * sel-sched.c (struct moveop_static_params): Likewise.
4598         (find_best_reg_for_expr, move_cond_jump): Likewise.
4599         (move_op_orig_expr_not_found): Likewise.
4600         (code_motion_process_successors, move_op): Likewise.
4601         * ssa-iterators.h (first_readonly_imm_use): Likewise.
4602         (next_readonly_imm_use): Likewise.
4603         * store-motion.c (compute_store_table): Likewise.
4604         * symbol-summary.h (function_summary::function_summary): Likewise.
4605         * target.h (cumulative_args_t): Likewise.
4606         (get_cumulative_args, pack_cumulative_args): Likewise.
4607         * timevar.c: (timer::print): Likewise.
4608         * trans-mem.c (ipa_tm_execute): Likewise.
4609         * tree-cfg.c (move_stmt_op): Likewise.
4610         (move_sese_region_to_fn): Likewise.
4611         (gimple_flow_call_edges_add): Likewise.
4612         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4613         Likewise.
4614         * tree-eh.c (remove_unreachable_handlers): Likewise.
4615         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4616         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4617         * tree-into-ssa.c (update_ssa): Likewise.
4618         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4619         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4620         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4621         * tree-predcom.c (suitable_component_p): Likewise.
4622         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4623         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4624         * tree-ssa-live.c (verify_live_on_entry): Likewise.
4625         * tree-ssa-live.h (register_ssa_partition): Likewise.
4626         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4627         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4628         (tree_transform_and_unroll_loop): Likewise.
4629         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4630         * tree-ssa-operands.c (get_expr_operands): Likewise.
4631         * tree-ssa-propagate.c (replace_exp_1): Likewise.
4632         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4633         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4634         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4635         * tree-ssanames.c (release_ssa_name_fn): Likewise.
4636         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4637         * tree-vect-loop-manip.c
4638         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4639         (slpeel_checking_verify_cfg_after_peeling): Likewise.
4640         (vect_do_peeling_for_loop_bound): Likewise.
4641         (vect_do_peeling_for_alignment): Likewise.
4642         * tree-vrp.c (supports_overflow_infinity): Likewise.
4643         (set_value_range): Likewise.
4644         * tree.c (free_lang_data_in_cgraph): Likewise.
4645         * value-prof.c (gimple_remove_histogram_value): Likewise.
4646         (free_hist): Likewise.
4647         * var-tracking.c (canonicalize_values_star): Likewise.
4648         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4650 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4652         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4653         IFN_GOACC_LOOP): New.
4654         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4655         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4656         IFN_UNIQUE_OACC_TAIL_MARK.
4657         (enum ifn_goacc_loop_kind): New.
4658         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4659         IFN_UNIQUE_OACC_JOIN cases.
4660         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4661         (expand_GOACC_LOOP): New.
4662         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4663         * omp-low.c: Include gimple-pretty-print.h.
4664         (struct oacc_loop): New.
4665         (enum oacc_loop_flags): New.
4666         (oacc_thread_numbers): New.
4667         (oacc_xform_loop): New.
4668         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4669         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4670         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4671         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4672         oacc_loop_discovery): New.
4673         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4674         oacc_loop_process): New.
4675         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4676         (execute_oacc_device_lower): Discover & process loops.  Process
4677         internal fns.
4678         * target.def (goacc.fork_join): Change sense of hook, clarify
4679         documentation.
4680         * doc/tm.texi: Regenerated.
4682 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4684         * target-insns.def (oacc_fork, oacc_join): Define.
4685         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4686         (goacc.fork_join): New GOACC hook.
4687         * targhooks.h (default_goacc_fork_join): Declare.
4688         * omp-low.c (default_goacc_forkjoin): New.
4689         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4690         * doc/tm.texi: Regenerate.
4692 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4694         * omp-low.c (oacc_init_rediction_array): New.
4695         (oacc_initialize_reduction_data): Initialize array.
4697 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4699         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4701 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4703         * internal-fn.c (expand_UNIQUE): New.
4704         * internal-fn.h (enum ifn_unique_kind): New.
4705         * internal-fn.def (IFN_UNIQUE): New.
4706         * target-insns.def (unique): Define.
4707         * gimple.h (gimple_call_internal_unique_p): New.
4708         * gimple.c (gimple_call_same_target_p): Check internal fn
4709         uniqueness.
4710         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4711         * tree-ssa-threadedge.c
4712         (record_temporary_equivalences_from_stmts): Likewise.
4713         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4715 2015-10-27  Richard Henderson  <rth@redhat.com>
4717         PR rtl-opt/67609
4718         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4719         narrowing subregs on SSE and MMX registers.
4720         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4721         appear to be sub-words of multi-register pseudos must be rejected.
4722         * doc/tm.texi: Regenerate.
4724 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4726         PR target/68102
4727         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4728         operands[0] is a reg before taking its REGNO in split condition.
4729         (*movdi_aarch64): Likewise.
4731 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4733         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4734         Handle floating point inner modes properly.
4736 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
4738         * tree-vect-looop.c
4739         (vectorizable_live_operation): Change iterator.
4741 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4742             Aditya Kumar  <aditya.k7@samsung.com>
4744         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4745           function to schedule based on isl_schedule_node.
4746         (get_schedule_map_st): New schedule optimizer based on
4747         isl_schedule_node.
4748         (scop_get_domains): New. Return the isl_union_set containing the
4749         domains of all the pbbs.
4750         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4752 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4754         PR target/67215
4755         * calls.c (prepare_call_address): Don't handle -fno-plt here.
4756         * config/i386/i386.c (ix86_expand_call): Generate indirect call
4757         via GOT for -fno-plt.  Support indirect call via GOT for x32.
4758         * config/i386/predicates.md (sibcall_memory_operand): Allow
4759         GOT memory operand.
4761 2015-10-27  Richard Biener  <rguenther@suse.de>
4763         PR tree-optimization/68104
4764         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4765         strided access check ...
4766         (vect_compute_data_refs_alignment): ... here.
4768 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
4769             Joseph Myers  <joseph@codesourcery.com>
4770             Mark Shinwell  <shinwell@codesourcery.com>
4771             Andrew Stubbs  <ams@codesourcery.com>
4772             Rich Felker <dalias@libc.org>
4774         * config.gcc: Handle --enable-fdpic.
4775         * config/sh/constraints.md (Ccl): New constraint.
4776         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4777         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4778         __SH_FDPIC__.
4779         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4780         library functions.
4781         * config/sh/sh-protos.h (function_symbol_result): New struct.
4782         (function_symbol): Return function_symbol_result.
4783         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4784         declarations.
4785         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4786         target hook.
4787         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4788         (sh_option_override): Force -fPIC if FDPIC is in effect.
4789         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4790         UNSPEC_GOTOFFFUNCDESC cases.
4791         (prepare_move_operands): Use FDPIC initial GOT register for
4792         TLS-related GOT access; inhibit cross-section address offset constants
4793         for FDPIC.
4794         (sh_assemble_integer): New function.
4795         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4796         PC-relative call sites.
4797         (expand_ashiftrt): Adapt invocation of function_symbol.
4798         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4799         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4800         UNSPEC_GOTOFFFUNCDESC.
4801         (legitimize_pic_address): Resolve function symbols to function
4802         descriptors for FDPIC.  Do not use GOT-relative addressing for local
4803         data that may be read-only on FDPIC.
4804         (sh_emit_storesi, sh_emit_storehi): New functions.
4805         (sh_trampoline_init): Generate FDPIC trampolines.
4806         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4807         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4808         (sh_output_mi_thunk): Generate FDPIC call.
4809         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
4810         FDPIC, generate call site labels to use PC-relative addressing rather
4811         than GOT-relative addressing.
4812         (sh_conditional_register_usage): Make PIC register fixed and call used
4813         when FDPIC is in effect.
4814         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4815         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4816         sh_get_fdpic_reg_initial_val): New functions.
4817         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4818         Handle -mfdpic.
4819         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4820         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4821         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4822         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4823         FDPIC_SELF_SPECS.
4824         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4825         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4826         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4827         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4828         constants.
4829         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4830         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4831         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4832         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4833         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4834         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4835         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4836         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4837         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4838         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4839         block_move_real, block_lump_real, block_move_real_i4,
4840         block_lump_real_i4): Add support for FDPIC calls.
4841         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4842         call_value_pop): Adjust for new function_symbol signature.
4843         * config/sh/sh.opt (-mfdpic): New option.
4844         * doc/install.texi (Options specification): Document --enable-fdpic.
4845         * doc/invoke.texi (SH Options): Document -mfdpic.
4848 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4850         PR tree-optimization/65963
4851         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4852         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4854 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4856         PR target/67929
4857         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4858         * config/arm/constraints.md (Dp): Update callsite.
4859         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4861 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4863         * builtins.c (fold_builtin_load_exponent): Rename to...
4864         (fold_const_builtin_load_exponent): ...this and only handle
4865         constant arguments.
4866         (fold_builtin_2): Update accordingly.
4867         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4869 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4871         * builtins.c (fold_builtin_logb): Rename to...
4872         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4873         (fold_builtin_significand): Rename to...
4874         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4875         (fold_builtin_1): Update accordingly.
4877 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4879         * builtins.c (fold_builtin_fmin_fmax): Delete.
4880         (fold_builtin_2): Handle constant fmin and fmax arguments here.
4881         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4883 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
4885         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4886         for register extension into sign and zero register extension.
4887         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4888         for sign and zero register extension.
4889         (cortexa57_addrcost_table): Likewise.
4890         (xgene1_addrcost_table): Likewise.
4892 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4894         * fold-const.c (fold_minmax): Delete.
4895         (fold_binary_loc): Don't call it.
4896         * match.pd: Add rules previously handled by fold_minmax.
4898 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4900         * builtins.c (fold_builtin_fma): Remove constant handling.
4901         (fold_builtin_3): Handle constant fma arguments here.
4903 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4905         * builtins.c (fold_builtin_fabs): Remove constant handling.
4906         (fold_builtin_abs): Likewise.
4908 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4910         * builtins.c (fold_builtin_copysign): Delete.
4911         (fold_builtin_2): Handle constant copysign arguments here.
4912         * match.pd: Add rules previously handled by fold_builtin_copysign.
4914 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4916         * builtins.c (fold_builtin_signbit): Delete.
4917         (fold_builtin_2): Handle constant signbit arguments here.
4918         * match.pd: Add rules previously handled by fold_builtin_signbit.
4920 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4922         * match.pd: Handle sqrt(x) cmp 0 specially.
4924 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
4926         * tree-vect-generic.c (expand_vector_operations_1): Check
4927         optab type before using it.
4929 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4931         * config/aarch64/aarch64-protos.h
4932         (struct tune_params): Add autoprefetcher_model field.
4933         * config/aarch64/aarch64.c: Include params.h
4934         (generic_tunings): Specify autoprefetcher_model value.
4935         (cortexa53_tunings): Likewise.
4936         (cortexa57_tunings): Likewise.
4937         (cortexa72_tunings): Likewise.
4938         (thunderx_tunings): Likewise.
4939         (xgene1_tunings): Likewise.
4940         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4941         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4942         (aarch64_override_options_internal): Set
4943         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4945 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4947         * builtins.c (fold_builtin_exponent): Delete.
4948         (fold_builtin_2): Handle constant expN arguments here.
4949         * match.pd: Fold expN(logN(x)) -> x.
4951 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4953         * builtins.c (fold_builtin_powi): Delete.
4954         (fold_builtin_2): Handle constant powi arguments here.
4955         * match.pd: Add rules previously handled by fold_builtin_powi.
4957 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4959         * builtins.c (fold_builtin_pow): Delete in favor of...
4960         (fold_const_builtin_pow): ...this new function.  Only handle constant
4961         arguments.
4962         (fold_builtin_2): Update accordingly.
4963         * match.pd: Add rules previously handled by fold_builtin_pow.
4965 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4967         * builtins.c (fold_builtin_hypot): Delete.
4968         (fold_builtin_2): Handle constant hypot arguments here.
4969         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
4970         hypot(x, x) to fabs(x)*sqrt(2).
4972 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4974         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4975         instead of make_ssa_name if not yet in SSA form.
4977 2015-10-27  Richard Biener  <rguenther@suse.de>
4979         * cfg.c (free_edge): Add function argument and use it instead of cfun.
4980         (clear_edges): Likewise.
4981         * cfg.h (clear_edges): Adjust prototype.
4982         * cfgexpand.c (pass_expand::execute): Adjust.
4983         * cfgloop.c (release_recorded_exits): Add function argument and use
4984         it instead of cfun.
4985         * cfgloop.h (release_recorded_exits): Adjust prototype.
4986         (loops_state_satisfies_p): Add overload with function argument.
4987         (loops_state_set): Likewise.
4988         (loops_state_clear): Likewise.
4989         (struct loop_iterator): Add function argument to constructor
4990         and iterator and use it instead of cfun.
4991         (FOR_EACH_LOOP_FN): New macro.
4992         (loop_optimizer_finalize): Add overload with function argument.
4993         * loop-init.c (loop_optimizer_init): Adjust.
4994         (fix_loop_structure): Likewise.
4995         (loop_optimizer_finaliz): Add function argument and use it
4996         instead of cfun.
4997         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4998         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4999         * cgraph.c (release_function_body): Do not push/pop cfun.
5000         * final.c (rest_of_clean_state): Adjust.
5001         * graphite.c (graphite_finalize): Likewise.
5002         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5003         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5004         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
5005         (tree_unroll_loops_completely): Likewise.
5006         (pass_complete_unrolli::execute): Likewise.
5007         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
5008         Add function argument and use it instead of cfun.
5009         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
5010         Adjust prototype.
5011         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
5012         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
5013         instead of cfun.
5014         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
5015         * tree-ssanames.c (fini_ssanames): Add function argument and use it
5016         instead of cfun.
5017         * tree-ssanames.c (fini_ssanames): Adjust prototype.
5018         * tree-vrp.c (execute_vrp): Adjust.
5019         * value-prof.c (free_histograms): Add function argument and use it
5020         instead of cfun.
5021         * value-prof.h (free_histograms): Adjust prototype.
5023 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
5025         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
5026         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
5027         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
5029 2015-10-27  Tom de Vries  <tom@codesourcery.com>
5031         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
5032         field_type.
5034 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
5036         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
5037         (inv_can_prop_to_addr_use): New function.
5038         (record_use): Call can_prop_to_addr_uses, set the new field.
5039         (get_inv_cost): Count cost if inv can't be propagated into its
5040         address uses.
5042 2015-10-26  Doug Evans  <dje@google.com>
5044         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
5046 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
5048         * match.pd (fold_widened_comparison): Apply simplifications to all
5049         integral types.
5051 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
5053         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
5054         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
5055         * doc/tm.texi: Regenerated.
5056         * reorg.c (dbr_schedule): Use new hook.
5057         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
5059 2015-10-26  Jeff Law  <law@redhat.com>
5061         PR tree-optimization/68013
5062         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5063         Make sure the first block in the path is in VISITED_BBs.
5065 2015-10-26  Richard Biener  <rguenther@suse.de>
5066         Dominik Vogt  <vogt@linux.vnet.ibm.com>
5068         PR middle-end/67443
5069         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
5070         Properly prune ref->ref for accesses outside of ref.
5072 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5074         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
5075         new statements to be inserted if inplace.  Allow calls to have
5076         nonempty sequences.
5078 2015-10-26  Richard Biener  <rguenther@suse.de>
5080         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
5081         (do_valueize): New function.
5082         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
5083         replace_uses_by.
5084         * tree-ssa-threadedge.c: Remove builtins.h include, include
5085         gimple-fold.h
5086         (fold_assignment_stmt): Remove.
5087         (threadedge_valueize): New function.
5088         (record_temporary_equivalences_from_stmts): Use
5089         gimple_fold_stmt_to_constant_1, note additional cleanup
5090         opportunities.
5092 2015-10-26  Richard Biener  <rguenther@suse.de>
5094         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
5095         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
5097 2015-10-26  Alan Hayward <alan.hayward@arm.com>
5099         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
5100         VEC_COND_EXPR types.
5102 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5104         * auto-inc-dec.c (insert_move_insn_before): Delete.
5105         (attempt_change): Remember to cost the simple move in the
5106         FORM_PRE_ADD and FORM_POST_ADD cases.
5108 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
5110         PR target/68091
5111         * config/sh/sh.c (sh_vector_mode_supported_p): Use
5112         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
5114 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5116         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
5117         factored out of ...
5118         (intra_create_variable_infos): ... here.
5120 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5122         * tree-ssa-structalias.c (intra_create_variable_infos): Add
5123         restrict_pointer_p and recursive_restrict_p variables.
5125 2015-10-26  Tom de Vries  <tom@codesourcery.com>
5127         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
5128         get_vi_for_tree call.
5130 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5132         PR middle-end/67989
5133         * optabs.c (expand_atomic_compare_and_swap): Handle case when
5134         ptarget_oval or ptarget_bool are const0_rtx.
5136 2015-10-26  Christian Bruel  <christian.bruel@st.com>
5138         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
5139         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
5140         * cp/method.c (implicitly_declare_fn): Likewise.
5141         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
5142         * java/class.c (add_method_1): Likewise.
5144 2015-10-26  Richard Biener  <rguenther@suse.de>
5146         * alloc-pool.h (base_pool_allocator): Use placement new.
5147         (base_pool_allocator::remove): Likewise.  Compute size outside of
5148         flag_checking.
5150 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5152         * builtins.c (do_real_to_int_conversion): New function.
5153         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
5154         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
5155         arguments here.
5156         * match.pd: Add rules previously handled by fold_fixed_mathfn
5157         and fold_builtin_int_roundingfn.
5159 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
5161         * match.pd: Use macros to define built-in operator lists.
5163 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
5164             Richard Biener  <rguenther@suse.de>
5166         * genmatch.c (dt_simplify::gen): Skip captures that are
5167         part of the result.
5168         (parser::parse_expr): Allow captures in results too.
5169         * builtins.c (fold_builtin_cexp): Delete.
5170         (fold_builtin_1): Handle constant cexp arguments here.
5171         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
5173 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
5175         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
5176         conditional compilation.
5177         (base_pool_allocator::remove): Use flag_checking.
5179 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
5181         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
5183         PR middle-end/68079
5184         * dojump.c (do_compare_and_jump): Canonicalize both function and
5185         method types.
5187 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
5189         PR target/68084
5190         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
5191         for =@ccae.
5193 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5195         PR ipa/pr67600
5196         * ipa-polymorphic-call.c
5197         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
5198         instance offset with offset of outer type.
5200 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5202         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
5204 2015-10-23  Caroline Tice  <cmtice@google.com>
5206         (from Richard Biener
5207         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
5208         call to iterative_hash_host_wide_int.
5210 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
5212         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
5213         Define as yes.
5215 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5217         * tree-vect-generic.c (expand_vector_operations_1): Check
5218         optab exists before use it.
5220 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5222         * tree-vect-generic.c (expand_vector_condition): Avoid
5223         uninitialized variable warning.
5225 2015-10-23  Jeff Law  <law@redhat.com>
5227         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
5228         here.  Instead...
5229         (execute_todo): Call it here.
5230         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
5231         statistics
5232         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
5234 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
5235             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5237         * config.gcc (enable_secureplt): Add *-linux*-musl*.
5239 2015-10-23  Jeff Law  <law@redhat.com>
5241         PR tree-optimization/67830
5242         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5243         Explicitly verify the mask has no bits outside the type of
5244         the innermost operands.
5246 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
5247             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5249         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
5250         (MUSL_DYNAMIC_LINKER64): Define.
5251         (GNU_USER_DYNAMIC_LINKER32): Update.
5252         (GNU_USER_DYNAMIC_LINKER64): Update.
5253         (CHOOSE_DYNAMIC_LINKER): Update.
5255         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
5256         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
5257         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5258         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5259         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5260         (CHOOSE_DYNAMIC_LINKER): Update.
5261         (INCLUDE_DEFAULTS): Redefine.
5263         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
5265 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5267         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
5268         comparing addresses.
5270 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
5272         * fold-const.c (operand_equal_p): Handle matching of vector
5273         constructors.
5275 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
5277         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
5279 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
5280             Andrew Pinski  <apinski@cavium.com>
5282         PR rtl-optimization/67736
5283         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
5284         of gen_lowpart.
5286 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5288         PR middle-end/68066
5289         * tree.c (build_truth_vector_type): Support BLK mode
5290         returned for boolean vector.
5292 2015-10-23  Alan Hayward <alan.hayward@arm.com>
5294         PR tree-optimization/65947
5295         * tree-vect-loop.c
5296         (vect_is_simple_reduction_1): Find condition reductions.
5297         (vect_model_reduction_cost): Add condition reduction costs.
5298         (get_initial_def_for_reduction): Add condition reduction initial var.
5299         (vect_create_epilog_for_reduction): Add condition reduction epilog.
5300         (vectorizable_reduction): Condition reduction support.
5301         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
5302         * doc/sourcebuild.texi (Vector-specific attributes): Document
5303         vect_max_reduc
5305 2015-10-23  Richard Biener  <rguenther@suse.de>
5307         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
5308         and builtins.def.
5310 2015-10-23  Richard Biener  <rguenther@suse.de>
5311             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5313         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
5314         into (A ^ B) - B to match.pd
5315         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
5317         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
5318         New simplifier.
5319         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
5320         New simplifier.
5321         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
5322         New simplifier.
5323         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
5324         New simplifier.
5325         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
5326         INTEGER_CST@1)): New simplifier.
5328 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
5330         * builtins.c (integer_valued_real_p): Move to fold-const.c.
5331         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5332         (fold_builtin_ceil, fold_builtin_round): Delete.
5333         (fold_builtin_1): Handle constant trunc, floor, ceil and round
5334         arguments here.
5335         * convert.c (convert_to_real): Remove narrowing of rounding
5336         functions.
5337         * fold-const.h (integer_valued_real_unary_p)
5338         (integer_valued_real_binary_p, integer_valued_real_call_p)
5339         (integer_valued_real_single_p, integer_valued_real_p): Declare.
5340         * fold-const.c (tree_single_nonnegative_warnv_p): Move
5341         name_registered_for_update_p check to SSA_NAME case statement.
5342         Don't call tree_simple_nonnegative_warnv_p for SSA names.
5343         (integer_valued_real_unary_p, integer_valued_real_binary_p)
5344         (integer_valued_real_call_p, integer_valued_real_single_p)
5345         (integer_valued_real_invalid_p): New functions.
5346         (integer_valued_real_p): Move from fold-const.c and rework
5347         to call the functions above.  Handle SSA names.
5348         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
5349         * gimple-fold.c (gimple_assign_integer_valued_real_p)
5350         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
5351         (gimple_stmt_integer_valued_real_p): New functions.
5352         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
5353         Fold f(x)->x for the same f if x is known to be integer-valued.
5354         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
5355         the result.  Canonicalize floor(x) as trunc(x) if x is
5356         nonnegative.
5358 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5360         * tree-ssa-structalias.c (intra_create_variable_infos): Use
5361         make_constraint_from.
5363 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5365         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
5366         setting of is_full_var in case of a single field.
5368 2015-10-22  Martin Sebor  <msebor@redhat.com>
5370         PR driver/68043
5371         * config/i386/i386.opt: Add missing periods to the ends of sentences.
5372         * config/msp430/msp430.opt: Same.
5374 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5376         * doc/extend.exp (Global Register Variables): Rewrite.
5378 2015-10-22  Jeff Law  <law@redhat.com>
5380         * genattrtab.c (main): If we do not have any annul-true or annul-false
5381         slots, then write out a dummy eligible_for_annul_true or
5382         eligible_for_annul_false as needed.
5384 2015-10-22  Nick Clifton  <nickc@redhat.com>
5386         * config/msp430/msp430.opt: Add -msilicon-errata and
5387         -msilicon-errata-warn.
5388         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5389         assembler.
5390         * doc/invoke.texi: Document new options.
5392 2015-10-22  Richard Biener  <rguenther@suse.de>
5394         PR tree-optimization/58497
5395         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5396         (expand_vector_operations_1): Use it.  Lower operations on
5397         all uniform vectors to scalar operations if the HW supports it.
5399 2015-10-22  Richard Biener  <rguenther@suse.de>
5401         PR tree-optimization/19049
5402         PR tree-optimization/65962
5403         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5404         to strided accesses if single-element interleaving doesn't work.
5406 2015-10-22  Richard Biener  <rguenther@suse.de>
5408         PR middle-end/68046
5409         PR middle-end/61893
5410         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5411         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5412         (expand_unop): Likewise.
5414 2015-10-22  Richard Biener  <rguenther@suse.de>
5416         * fold-const.c (fold_addr_of_array_ref_difference): Properly
5417         convert operands before folding a MINUS_EXPR.
5418         (fold_binary_loc): Move simplification of MINUS_EXPR on
5419         converted POINTER_PLUS_EXPRs ...
5420         * match.pd: ... here.
5422 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5424         * builtins.c (fold_builtin_tan): Delete.
5425         (fold_builtin_1): Handle constant tan arguments here.
5426         * match.pd: Simplify (tan (atan x)) to x.
5428 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
5430         * builtins.c (fold_builtin_cproj): Delete.
5431         (fold_builtin_1): Handle constant arguments here.
5432         (build_complex_cproj): Move and rename to...
5433         * tree.c: (build_complex_inf): ...this.
5434         * tree.h (build_complex_inf): Declare.
5435         * match.pd: Fold cproj(x)->x if x has no infinity.
5436         Use build_complex_inf for existing cproj rules.
5438 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5440         PR target/68015
5441         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5442         already have a comparison result.
5444 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5446         PR target/63304
5447         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5448         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5449         (aarch64_classify_address): Likewise.
5450         (aarch64_secondary_reload): Likewise.
5451         (aarch64_override_options_after_change_1): Adjust.
5452         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5453         Use aarch64_nopcrelative_literal_loads.
5454         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5455         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5456         Declare.
5458 2015-10-21  Martin Sebor  <msebor@redhat.com>
5460         PR driver/68043
5461         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5462         (print_filtered_help): Reference aliased option's name and encourage
5463         readers to use it in preference to the alias if the former is not
5464         documented.  Mention when using an option is diagnosed.
5465         * gcc.c (display_help): End each sentence with a period.
5467         * common.opt: End each sentence that describes an option with
5468         a period.
5469         * config/aarch64/aarch64.opt: Same.
5470         * config/alpha/alpha.opt: Same.
5471         * config/arc/arc.opt: Same.
5472         * config/arm/arm.opt: Same.
5473         * config/avr/avr.opt: Same.
5474         * config/bfin/bfin.opt: Same.
5475         * config/c6x/c6x.opt: Same.
5476         * config/cr16/cr16.opt: Same.
5477         * config/cris/cris.opt: Same.
5478         * config/cris/linux.opt: Same.
5479         * config/darwin.opt: Same.
5480         * config/epiphany/epiphany.opt: Same.
5481         * config/fr30/fr30.opt: Same.
5482         * config/frv/frv.opt: Same.
5483         * config/ft32/ft32.opt: Same.
5484         * config/g.opt: Same.
5485         * config/h8300/h8300.opt: Same.
5486         * config/i386/cygming.opt: Same.
5487         * config/i386/djgpp.opt: Same.
5488         * config/i386/i386.opt: Same.
5489         * config/i386/interix.opt: Same.
5490         * config/i386/mingw-w64.opt: Same.
5491         * config/i386/mingw.opt: Same.
5492         * config/ia64/ia64.opt: Same.
5493         * config/ia64/ilp32.opt: Same.
5494         * config/iq2000/iq2000.opt: Same.
5495         * config/linux.opt: Same.
5496         * config/lm32/lm32.opt: Same.
5497         * config/lynx.opt: Same.
5498         * config/m32c/m32c.opt: Same.
5499         * config/m32r/m32r.opt: Same.
5500         * config/m68k/ieee.opt: Same.
5501         * config/m68k/m68k.opt: Same.
5502         * config/mcore/mcore.opt: Same.
5503         * config/mep/mep.opt: Same.
5504         * config/microblaze/microblaze.opt: Same.
5505         * config/mips/mips.opt: Same.
5506         * config/mmix/mmix.opt: Same.
5507         * config/mn10300/mn10300.opt: Same.
5508         * config/moxie/moxie.opt: Same.
5509         * config/msp430/msp430.opt: Same.
5510         * config/nios2/elf.opt: Same.
5511         * config/nios2/nios2.opt: Same.
5512         * config/nvptx/nvptx.opt: Same.
5513         * config/pa/pa-hpux.opt: Same.
5514         * config/pa/pa-hpux1010.opt: Same.
5515         * config/pa/pa-hpux1111.opt: Same.
5516         * config/pa/pa-hpux1131.opt: Same.
5517         * config/pa/pa.opt: Same.
5518         * config/pa/pa64-hpux.opt: Same.
5519         * config/pdp11/pdp11.opt: Same.
5520         * config/rl78/rl78.opt: Same.
5521         * config/rs6000/476.opt: Same.
5522         * config/rs6000/aix64.opt: Same.
5523         * config/rs6000/darwin.opt: Same.
5524         * config/rs6000/linux64.opt: Same.
5525         * config/rs6000/rs6000.opt: Same.
5526         * config/rs6000/sysv4.opt: Same.
5527         * config/s390/s390.opt: Same.
5528         * config/s390/tpf.opt: Same.
5529         * config/sh/sh.opt: Same.
5530         * config/sol2.opt: Same.
5531         * config/sparc/long-double-switch.opt: Same.
5532         * config/sparc/sparc.opt: Same.
5533         * config/spu/spu.opt: Same.
5534         * config/stormy16/stormy16.opt: Same.
5535         * config/tilegx/tilegx.opt: Same.
5536         * config/tilepro/tilepro.opt: Same.
5537         * config/v850/v850.opt: Same.
5538         * config/vax/vax.opt: Same.
5539         * config/visium/visium.opt: Same.
5540         * config/vms/vms.opt: Same.
5541         * config/vxworks.opt: Same.
5542         * config/xtensa/xtensa.opt: Same.
5544 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5545             Sebastian Pop  <s.pop@samsung.com>
5547         * graphite-scop-detection.c (parameter_index_in_region): Update call to
5548         invariant_in_sese_p_rec.
5549         * graphite-sese-to-poly.c (extract_affine): Same.
5550         * sese.c (invariant_in_sese_p_rec): Pass in an extra
5551         parameter has_vdefs.
5552         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5553         variable depends on virtual definitions in the current region.
5554         * sese.h (invariant_in_sese_p_rec): Update declaration.
5556 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5557             Sebastian Pop  <s.pop@samsung.com>
5559         * graphite-scop-detection.c (build_scops): Do not handle scops
5560         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5561         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5563 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
5565         * config.in: Regenerate.
5566         * configure: Regenerate.
5567         * configure.ac (CHECKING_P): Define.
5568         * system.h: Use CHECKING_P.
5570 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5572         PR ipa/67056
5573         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5574         is negative we don't know the type.
5575         (check_stmt_for_type_change): Skip constructors of non-polymorphic
5576         types as those won't help devirutalization.
5578 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5580         * fold-const.c (operand_equal_p): Add code matching empty constructors.
5582 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5584         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5585         comments.
5586         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5587         Add comments on sign of the result.
5588         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5589         Recurse on operand #1 instead of operand #0.
5590         <CEIL_MOD_EXPR>: Do not recurse.
5591         <ROUND_MOD_EXPR>: Likewise.
5593 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5595         * cfgrtl.c (pass_free_cfg::execute): Adjust.
5596         * final.c (dbr_sequence_length): Always define.
5597         (shorten_branches): Adjust.
5598         * genattr-common.c (main): Always define DELAY_SLOTS.
5599         * genattr.c (main): Unconditionally declare functions and define
5600         macros related to delay slots.
5601         * genattrtab.c (write_eligible_delay): Adjust.
5602         (main): Always write out delay slot functions.
5603         * opts.c (default_options_table): Adjust.
5604         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5605         (redirect_with_delay_list_safe_p): Likewise.
5606         (fill_simple_delay_slots): Likewise.
5607         (fill_slots_from_thread): Likewise.
5608         (make_return_insns): Likewise.
5609         (dbr_schedule): Likewise.
5610         (rest_of_handle_delay_slots): Likewise.
5611         (pass_delay_slots::gate): Likewise.
5612         * toplev.c (process_options): Likewise.
5614 2015-10-21  Richard Henderson  <rth@redhat.com>
5616         * targhooks.c (default_addr_space_pointer_mode): Remove check
5617         for generic address space.
5618         (default_addr_space_address_mode): Likewise.
5619         (default_addr_space_valid_pointer_mode): Likewise.
5620         (default_addr_space_legitimate_address_p): Likewise.
5621         (default_addr_space_legitimize_address): Likewise.
5622         * target.def (addr_space.pointer_mode): Update documentation
5623         of default behavior.
5624         (addr_space.address_mode): Likewise.
5625         * tm.texi: Update.
5627         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5628         address spaces.
5630 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5632         * builtins.c (fold_builtin_cabs): Delete.
5633         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
5634         * match.pd: Add rules previously handled by fold_builtin_cabs.
5636 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5638         * fold-const.h (fold_strip_sign_ops): Delete.
5639         * fold-const.c (fold_strip_sign_ops): Likewise.
5640         (fold_unary_loc, fold_binary_loc): Remove calls to it.
5641         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5642         (fold_builtin_ccos): Delete.
5643         (fold_builtin_pow): Don't call fold_strip_sign_ops.
5644         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5645         Remove fndecl argument.
5646         (fold_builtin_1): Update calls accordingly.  Handle constant
5647         cos, cosh, ccos and ccosh here.
5649 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5651         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5652         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5653         * common.opt (fssa-backprop): New option.
5654         * fold-const.h (negate_mathfn_p): Declare.
5655         * fold-const.c (negate_mathfn_p): Make public.
5656         * timevar.def (TV_TREE_BACKPROP): New.
5657         * tree-pass.h (make_pass_backprop): Declare.
5658         * passes.def (pass_backprop): Add.
5659         * gimple-ssa-backprop.c: New file.
5661 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5662             Sebastian Pop  <s.pop@samsung.com>
5664         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5665         Do not call create_empty_if_region_on_edge when cond_expr is true.
5666         (translate_isl_ast_node_for): Check whether a guard has been generated.
5668 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5670         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5671         (operator=): Removed.
5672         (dr_info): Make alias_set number the last argument with default
5673         value of invalid_alias_set.
5674         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5675         of dr_info.
5676         (rewrite_reductions_out_of_ssa): Iterate only through the
5677         basic blocks which are inside region.
5678         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5679         * sese.h (struct sese_l): Removed assignment operator.
5680         (split_region_for_bb): Removed dead code.
5682 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5684         * graphite-poly.h (struct dr_info): Removed conversion constructor.
5685         (struct scop): Renamed scop::region to scop::scop_info
5686         (scop_set_region): Same.
5687         (SCOP_REGION): Removed
5688         (SCOP_CONTEXT): Removed.
5689         (POLY_SCOP_P): Removed.
5690         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5691         Rename scop->region to scop->scop_info.
5692         (add_parameters_to_ivs_params): Same.
5693         (graphite_regenerate_ast_isl): Same.
5694         * graphite-poly.c (new_scop): Same.
5695         (free_scop): Same.
5696         (print_scop_params): Same.
5697         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5698         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5699         (dot_all_scops_1): Rename scop->region to scop->scop_info.
5700         (scop_detection::nb_pbbs_in_loops): Same.
5701         (find_scop_parameters): Same.
5702         (try_generate_gimple_bb): Same.
5703         (gather_bbs::before_dom_children): Same.
5704         (gather_bbs::after_dom_children): Same.
5705         (build_scops): Same.
5706         * graphite-sese-to-poly.c (build_scop_scattering): Same.
5707         (extract_affine_chrec): Same.
5708         (extract_affine): Same.
5709         (set_scop_parameter_dim): Same.
5710         (build_loop_iteration_domains): Same.
5711         (create_pw_aff_from_tree): Same.
5712         (add_param_constraints): Same.
5713         (build_scop_iteration_domain): Same.
5714         (build_scop_drs): Same.
5715         (analyze_drs_in_stmts): Same.
5716         (insert_out_of_ssa_copy_on_edge): Same.
5717         (rewrite_close_phi_out_of_ssa):Same.
5718         (rewrite_reductions_out_of_ssa):Same.
5719         (handle_scalar_deps_crossing_scop_limits):Same.
5720         (rewrite_cross_bb_scalar_deps):Same.
5721         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5722         (build_poly_scop):Same.
5723         (build_alias_set): Use pointer to dr_info.
5724         * graphite.c (print_graphite_scop_statistics):
5725         (graphite_transform_loops):
5726         * sese.h (struct sese_l): Remove conversion constructor.
5728 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5730         PR middle-end/67966
5731         * tree.c (verify_type): Verify that TYPE_MODE match
5732         between TYPE_CANONICAL and type.
5733         * expr.c (store_expr_with_bounds): Revert my previous change.
5734         * expmed.c (store_bit_field_1): Revert prevoius change.
5735         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5736         to match for all types.
5738 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
5740         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5741         nesting.
5743 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5745         * doc/tm.texi: Regenerated.
5746         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5747         * stor-layout.c (layout_type): Use mode to get vector mask size.
5748         * target.def (get_mask_mode): New.
5749         * targhooks.c (default_get_mask_mode): New.
5750         * targhooks.h (default_get_mask_mode): New.
5751         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5752         for boolean vector.
5753         * tree.c (MAX_BOOL_CACHED_PREC): New.
5754         (nonstandard_boolean_type_cache): New.
5755         (build_nonstandard_boolean_type): New.
5756         (make_vector_type): Vector mask has no canonical type.
5757         (build_truth_vector_type): New.
5758         (build_same_sized_truth_vector_type): New.
5759         (truth_type_for): Support vector masks.
5760         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5761         (build_truth_vector_type): New.
5762         (build_same_sized_truth_vector_type): New.
5763         (build_nonstandard_boolean_type): New.
5764         * tree-cfg.c (verify_gimple_comparison) Require boolean
5765         vector type for vector comparison.
5766         (verify_gimple_assign_ternary): Likewise.
5767         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5768         condition operand.
5769         * tree-vect-stmts.c (vectorizable_condition): Use boolean
5770         vector type for vector comparison.
5771         * tree-vect-generic.c (elem_op_func): Add new operand to hold
5772         vector type.
5773         (do_unop): Adjust to modified function type.
5774         (do_binop): Likewise.
5775         (do_plus_minus): Likewise.
5776         (do_negate); Likewise.
5777         (expand_vector_piecewise): Likewise.
5778         (do_cond): Likewise.
5779         (do_compare): Use comparison instead of condition.
5780         (expand_vector_divmod): Use boolean vector type for comparison.
5781         (expand_vector_operations_1): Skip scalar mask operations.
5783 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5785         * omp-low.c (simd_clone_create): Set in_other_partition
5786         for created clones.
5788 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5790         * doc/extend.exp (Local Register Variables): Rewrite.
5792 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5794         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5795         and x*x in cases where the operands are sign ops.  Extend these
5796         rules to handle copysign as a sign op (including for cos, cosh
5797         and pow, which already treated negate and abs as sign ops).
5799 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
5801         PR target/68018
5802         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5803         for 64-bit MS_ABI targets also when default incoming stack boundary
5804         is overriden.
5806 2015-10-21  Richard Biener  <rguenther@suse.de>
5808         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5809         cond stmts, enhanced and split out from ...
5810         (vn_phi_eq): ... here.
5812 2015-10-21  Richard Biener  <rguenther@suse.de>
5814         PR middle-end/68031
5815         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5816         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5817         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
5818         make sure they are not registered for update.
5820 2015-10-21  Richard Biener  <rguenther@suse.de>
5822         PR tree-optimization/68026
5823         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5824         unsigned VARYING values.
5826 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
5828         * asan.c (asan_emit_stack_protection): Don't pass local stack to
5829         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5830         NULL and use local stack than.
5831         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5832         in addition to __asan_init.
5833         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5834         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5835         * asan.h (asan_intercepted_p): Handle new string builtins.
5836         * ubsan.c (ubsan_use_new_style_p): New function.
5837         (ubsan_instrument_float_cast): If location is unknown, assign
5838         input_location to loc. Propagate loc to ubsan_create_data if
5839         ubsan_use_new_style_p returned true.
5841 2015-10-21  Jeff Law  <law@redhat.com>
5843         * Makefile.in (OBJS): Remove sched-vis.c
5844         * sched-vis.c: Removed.  Code moved into...
5845         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
5846         * rtl.h: Remove prototypes for functions now living in print-rtl.c
5847         * print-rtl.h Add prototypes for new functions in print-rtl.c.
5848         * auto-inc-dec.c: Include print-rtl.h
5849         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5850         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5852         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5853         ATTRIBUTE_UNUSED.
5855 2015-10-21  Richard Biener  <rguenther@suse.de>
5856             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5858         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5859         to match.pd.
5860         Move (a * (1 << b)) is (a << b) to match.pd.
5861         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5862         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5863         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5865         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5866         New simplifier.
5867         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5868         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5869         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5870         : New simplifier.
5871         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5872         New simplifier.
5873         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5875 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
5876             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5877             Alan Modra  <amodra@gmail.com>
5879         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5880         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5881         (LINK_SPEC): Add %(link_secure_plt).
5882         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5883         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5885 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
5886             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5888         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5889         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5891 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5893         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5894         New function.
5895         (fusion_load_store): Use it.
5896         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5897         ldp and stp in VD modes.
5898         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5899         (store_pair<mode>, VD): Likewise.
5901 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
5903         PR rtl-optimization/67609
5904         * lra-splill.c (lra_final_code_change): Don't remove all
5905         sub-registers.
5907 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5909         * simplify-rtx.c (simplify_binary_operation): If either operand was
5910         a constant pool reference use them if all other simplifications failed.
5912 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5914         * config/aarch64/aarch64.md
5915         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5916         * config/aarch64/aarch64-simd.md
5917         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5918         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5919         (aarch64_fpconst_pow_of_2): New function.
5920         (aarch64_vec_fpconst_pow_of_2): Likewise.
5921         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5922         prototype.
5923         (aarch64_vec_fpconst_pow_of_2): Likewise.
5924         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5925         (aarch64_fp_vec_pow2): Likewise.
5927 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
5929         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5930         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
5931         * config/alpha/alpha.c (alpha_function_arg_advance): Update
5932         ALPHA_ARG_SIZE usage.
5933         (alpha_arg_partial_bytes): Ditto.
5935 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5937         PR target/66810
5938         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5939         error_mark_node decls.
5941 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5943         PR target/67963
5944         PR target/67985
5945         * common/config/i386/i386-common.c (ix86_handle_option): Remove
5946         OPT_miamcu handling.
5947         * config/i386/i386.c (PTA_NO_80387): New macro.
5948         (processor_alias_table): Add PTA_NO_80387 to lakemont.
5949         (ix86_option_override_internal): Update MASK_80387 from
5950         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
5951         SSE math only if 80387 is supported.  Don't change
5952         MASK_FLOAT_RETURNS.
5953         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5954         80387 is supported.
5955         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5956         if TARGET_80387 is true and TARGET_IAMCU is false.
5957         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5958         is true and TARGET_IAMCU_P is false.
5960 2015-10-20  Richard Biener  <rguenther@suse.de>
5962         PR tree-optimization/68017
5963         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5965 2015-10-20  Martin Liska  <mliska@suse.cz>
5967         * cgraphclones.c (cgraph_node::create_virtual_clone):
5968         Verify cgraph_node.local.versionable instead of calling
5969         tree_versionable_function_p.
5970         * ipa-cp.c (determine_versionability): Save the information
5971         to ipa_node_params summary.
5972         (ipcp_versionable_function_p): Use it.
5973         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5974         (ipcp_generate_summary): Do not compute cgraph_node
5975         versionability.
5976         * ipa-inline-analysis.c (inline_generate_summary): Compute
5977         versionability for all cgraph nodes.
5978         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5979         ipa_node_params::versionability.
5980         * ipa-prop.h (struct ipa_node_params): Declare it.
5982 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5984         PR other/67868
5985         * varasm.c (assemble_variable): Move special vtv handling to..
5986         (handle_vtv_comdat_sections): .. here. New function.
5987         (output_object_block): Handle vtv sections.
5989 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5991         PR target/66912
5992         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5994 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
5996         * doc/extend.texi: Update documentation WRT inline functions.
5998 2015-10-20  Alan Modra  <amodra@gmail.com>
6000         PR go/66870
6001         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
6002         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6003         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6005 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
6007         PR rtl-optimization/66790
6008         * df.h (DF_MIR): New macro.
6009         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
6010         (DF_MIR_INFO_BB): New macro.
6011         (DF_MIR_IN, DF_MIR_OUT): New macros.
6012         (struct df_mir_bb_info): New.
6013         (df_mir): New macro.
6014         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
6015         declarations.
6016         (df_mir_get_bb_info): New.
6017         * df-problems.c (struct df_mir_problem_data): New.
6018         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
6019         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
6020         df_mir_confluence_0, df_mir_confluence_n,
6021         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
6022         df_mir_bottom_dump, df_mir_verify_solution_start,
6023         df_mir_verify_solution_end): New.
6024         (problem_MIR): New.
6025         (df_mir_add_problem, df_mir_simulate_one_insn): New.
6026         * timevar.def (TV_DF_MIR): New.
6027         * ree.c: Include bitmap.h
6028         (add_removable_extension): Add an INIT_REGS parameter.  Use it
6029         to skip zero-extensions that may get an uninitialized register.
6030         (find_removable_extensions): Compute must-initialized registers
6031         using the MIR dataflow problem. Update the call to
6032         add_removable_extension.
6033         (find_and_remove_re): Call df_mir_add_problem.
6035 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
6037         * common/config/mn10300/mn10300-common.c
6038         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
6039         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
6041 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
6043         * doc/extend.texi (Explicit Register Variables): Simplify and
6044         avoid unnecessary and confusion abbreviations.  Update cross
6045         references.
6046         doc/implement-c.tex: Update cross reference.
6048 2015-10-19  Jeff Law  <law@redhat.com>
6050         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
6051         that create irreducible loops unless the path elimiantes a multiway
6052         branch.
6054 2015-10-19  Richard Biener  <rguenther@suse.de>
6056         PR tree-optimization/67975
6057         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
6058         * tree-cfg.c (extract_true_false_controlled_edges): Split out
6059         core worker from ...
6060         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
6061         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
6062         instead of block number for PHIs with two or one args.
6063         (vn_phi_eq): Compare edge predicates of PHIs that are in different
6064         blocks.
6066 2015-10-19  Richard Biener  <rguenther@suse.de>
6068         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
6069         (gimple_stmt_nonnegative_warnv_p): Use it.
6070         * match.pd (CPROJ): New operator list.
6071         (cproj (complex ...)): Move simplifications from ...
6072         * builtins.c (fold_builtin_cproj): ... here.
6074 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6076         * config/i386/i386.c (ix86_expand_vector_move): Use
6077         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
6078         alignment.
6080 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6082         * doc/invoke.texi: Replace @optindex with @opindex.
6084 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6086         PR target/67995
6087         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
6088         arch= is set,  clear all bits in x_ix86_isa_flags, except for
6089         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
6091 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
6093         PR middle-end/68002
6094         * common.opt (fkeep-static-functions): New option.
6095         * doc/invoke.texi: Document it.
6096         * cgraphunit.c (cgraph_node::finalize_function): Use it.
6098 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6100         * sched-int.h (struct autopref_multipass_data_): Remove offset
6101         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
6102         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
6103         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
6104         (autopref_rank_data): New function.
6105         (autopref_rank_for_schedule): Use it.
6106         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
6108 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
6110         PR other/65800
6111         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
6113 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6115         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
6116         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
6117         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
6118         (STANDARD_STARTFILE_PREFIX_1): New.
6119         (STANDARD_STARTFILE_PREFIX_2): New.
6121 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6123         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
6124         (darwin_driver_init): Note a version-min when provided on the c/l.
6125         * config/darwin.h (%darwin_minversion): Remove.
6126         * config/i386/darwin.h: Likewise.
6127         * config/rs6000/darwin.h: Likewise.
6128         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
6129         rather than an arbitrary constant.
6131 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6133         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
6134         PPC, detect conflicts between -arch and multilib settings.  Detect
6135         and warn about conflicts between multiple -arch definitions.
6137 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
6139         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
6141 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6143         * lra-constraints.c (add_next_usage_insn): Change argument type
6144         from rtx to rtx_insn *.
6146 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
6148         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
6149         for Lakemont.
6151 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
6153         * config/tilepro/gen-mul-tables.cc: Adjust include files.
6154         * config/tilegx/mul-tables.c: Regenerate.
6155         * config/tilepro/mul-tables.c: Regenerate.
6157         * config/tilegx/tilegx-c.c: Adjust include files.
6158         * config/tilegx/tilegx.c: Likewise.
6159         * config/tilepro/tilepro-c.c: Likewise.
6160         * config/tilepro/tilepro.c: Likewise.
6161         * config/aarch64/aarch64-builtins.c: Likewise.
6162         * config/aarch64/aarch64.c: Likewise.
6163         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6164         * config/alpha/alpha.c: Likewise.
6165         * config/arc/arc.c: Likewise.
6166         * config/arm/aarch-common.c: Likewise.
6167         * config/arm/arm-builtins.c: Likewise.
6168         * config/arm/arm-c.c: Likewise.
6169         * config/arm/arm.c: Likewise.
6170         * config/avr/avr-c.c: Likewise.
6171         * config/avr/avr-devices.c: Likewise.
6172         * config/avr/avr-log.c: Likewise.
6173         * config/avr/avr.c: Likewise.
6174         * config/bfin/bfin.c: Likewise.
6175         * config/c6x/c6x.c: Likewise.
6176         * config/cr16/cr16.c: Likewise.
6177         * config/cris/cris.c: Likewise.
6178         * config/darwin-c.c: Likewise.
6179         * config/darwin-driver.c: Likewise.
6180         * config/darwin.c: Likewise.
6181         * config/default-c.c: Likewise.
6182         * config/epiphany/epiphany.c: Likewise.
6183         * config/epiphany/mode-switch-use.c: Likewise.
6184         * config/epiphany/resolve-sw-modes.c: Likewise.
6185         * config/fr30/fr30.c: Likewise.
6186         * config/frv/frv.c: Likewise.
6187         * config/ft32/ft32.c: Likewise.
6188         * config/glibc-c.c: Likewise.
6189         * config/h8300/h8300.c: Likewise.
6190         * config/i386/host-cygwin.c: Likewise.
6191         * config/i386/host-mingw32.c: Likewise.
6192         * config/i386/i386-c.c: Likewise.
6193         * config/i386/i386.c: Likewise.
6194         * config/i386/msformat-c.c: Likewise.
6195         * config/i386/winnt-cxx.c: Likewise.
6196         * config/i386/winnt-stubs.c: Likewise.
6197         * config/i386/winnt.c: Likewise.
6198         * config/ia64/ia64-c.c: Likewise.
6199         * config/ia64/ia64.c: Likewise.
6200         * config/iq2000/iq2000.c: Likewise.
6201         * config/lm32/lm32.c: Likewise.
6202         * config/m32c/m32c-pragma.c: Likewise.
6203         * config/m32c/m32c.c: Likewise.
6204         * config/m32r/m32r.c: Likewise.
6205         * config/mcore/mcore.c: Likewise.
6206         * config/mep/mep-pragma.c: Likewise.
6207         * config/mep/mep.c: Likewise.
6208         * config/microblaze/microblaze-c.c: Likewise.
6209         * config/microblaze/microblaze.c: Likewise.
6210         * config/mips/mips-tables.opt
6211         * config/mips/mips.c: Likewise.
6212         * config/mmix/mmix.c: Likewise.
6213         * config/mn10300/mn10300.c: Likewise.
6214         * config/moxie/moxie.c: Likewise.
6215         * config/msp430/msp430-c.c: Likewise.
6216         * config/msp430/msp430.c: Likewise.
6217         * config/nds32/nds32-cost.c: Likewise.
6218         * config/nds32/nds32-fp-as-gp.c: Likewise.
6219         * config/nds32/nds32-intrinsic.c: Likewise.
6220         * config/nds32/nds32-isr.c: Likewise.
6221         * config/nds32/nds32-md-auxiliary.c: Likewise.
6222         * config/nds32/nds32-memory-manipulation.c: Likewise.
6223         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6224         * config/nds32/nds32-predicates.c: Likewise.
6225         * config/nds32/nds32.c: Likewise.
6226         * config/nios2/nios2.c: Likewise.
6227         * config/nvptx/mkoffload.c: Likewise.
6228         * config/nvptx/nvptx.c: Likewise.
6229         * config/pa/pa.c: Likewise.
6230         * config/pdp11/pdp11.c: Likewise.
6231         * config/rl78/rl78-c.c: Likewise.
6232         * config/rl78/rl78.c: Likewise.
6233         * config/rs6000/host-darwin.c: Likewise.
6234         * config/rs6000/rs6000-c.c: Likewise.
6235         * config/rs6000/rs6000-linux.c: Likewise.
6236         * config/rs6000/rs6000.c: Likewise.
6237         * config/rx/rx.c: Likewise.
6238         * config/s390/s390-c.c: Likewise.
6239         * config/s390/s390.c: Likewise.
6240         * config/sh/sh-c.c: Likewise.
6241         * config/sh/sh-mem.cc: Likewise.
6242         * config/sh/sh.c: Likewise.
6243         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6244         * config/sh/sh_treg_combine.cc: Likewise.
6245         * config/sol2-c.c: Likewise.
6246         * config/sol2-cxx.c: Likewise.
6247         * config/sol2-stubs.c: Likewise.
6248         * config/sol2.c: Likewise.
6249         * config/sparc/sparc-c.c: Likewise.
6250         * config/sparc/sparc.c: Likewise.
6251         * config/spu/spu-c.c: Likewise.
6252         * config/spu/spu.c: Likewise.
6253         * config/stormy16/stormy16.c: Likewise.
6254         * config/v850/v850-c.c: Likewise.
6255         * config/v850/v850.c: Likewise.
6256         * config/vax/vax.c: Likewise.
6257         * config/visium/visium.c: Likewise.
6258         * config/vms/vms-c.c: Likewise.
6259         * config/vms/vms.c: Likewise.
6260         * config/vxworks.c: Likewise.
6261         * config/winnt-c.c: Likewise.
6262         * config/xtensa/xtensa.c: Likewise.
6264 2015-10-16  Christian Bruel  <christian.bruel@st.com>
6266         PR target/67745
6267         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
6268         (FUNCTION_BOUNDARY_P): New macro:
6269         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
6270         New hook.
6271         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
6272         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
6273         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
6274         * function.c (allocate_struct_function): Call
6275         relayout_function hook.
6276         * passes.c (rest_of_decl_compilation): Likewise.
6278 2015-10-16  Christian Bruel  <christian.bruel@st.com>
6280         PR target/67745
6281         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
6282         * config/arm/arm.c (arm_option_override_internal): Call
6283         arm_override_options_after_change_1.
6284         (arm_override_options_after_change): New function.
6285         (arm_override_options_after_change_1): Likewise.
6286         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
6288 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6290         Revert:
6291         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6292         empty constructors.
6294 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6296         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
6297         argument is an ADDR_EXPR.
6299 2015-10-16  Richard Biener  <rguenther@suse.de>
6301         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
6302         and get rid of force_gimple_operand_gsi.
6303         (gimple_fold_builtin_memory_chk): Likewise.
6304         (gimple_fold_builtin_stxcpy_chk): Likewise.
6305         (rewrite_to_defined_overflow): Likewise.
6306         (gimple_convert_to_ptrofftype): New function.
6307         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
6309 2015-10-16  Richard Biener  <rguenther@suse.de>
6311         * tree-nested.h (build_addr): Adjust prototype.
6312         * tree-nested.c (build_addr): Remove context argument and use
6313         mark_addressable.
6314         (get_static_chain): Adjust calls to build_addr.
6315         (convert_nl_goto_reference): Likewise.
6316         (convert_tramp_reference_op): Likewise.
6317         (finalize_nesting_tree_1): Likewise.
6318         * value-prof.c (gimple_ic): Likewise.
6319         * gimple-low.c (lower_builtin_setjmp): Likewise.
6320         * tree-parloops.c (take_address_of): Likewise.
6321         (create_call_for_reduction_1): Likewise.
6322         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
6323         (gimple_gen_ic_func_profiler): Likewise.
6325 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6327         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6328         empty constructors.
6330 2015-10-16  Michael Collison  <michael.collison@linaro.org>
6331             Andrew Pinski <andrew.pinski@caviumnetworks.com>
6333         * match.pd ((x < y) && (x < z) -> x < min (y,z),
6334         (x > y) and (x > z) -> x > max (y,z))
6336 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6337             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6339         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
6340         (DYNAMIC_LINKER): Renamed to ...
6341         (GLIBC_DYNAMIC_LINKER): This.
6342         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
6344 2015-10-15  Marek Polacek  <polacek@redhat.com>
6346         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
6347         gimple_call_builtin instead of is_gimple_call.
6349 2015-10-15  Richard Biener  <rguenther@suse.de>
6351         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
6353 2015-10-15  Richard Biener  <rguenther@suse.de>
6355         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
6356         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
6357         * tree-vect-loop.c (get_initial_def_for_induction): Drop
6358         use of force_gimple_operand in favor of gimple_build.
6359         Use vect_get_new_ssa_name.
6360         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
6361         (vectorizable_mask_load_store): Likewise.
6362         (vectorizable_call): Likewise.
6363         (vectorizable_store): Likewise.
6364         (vectorizable_load): Likewise.
6365         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
6367 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
6369         PR tree-optimization/67945
6370         * tree-pass.h (PROP_gimple_opt_math): New property flag.
6371         * generic-match-head.c (canonicalize_math_p): New function.
6372         * gimple-match-head.c: Include tree-pass.h.
6373         (canonicalize_math_p): New function.
6374         * match.pd: Group math built-in rules into simplifications
6375         and canonicalizations.  Guard the latter with canonicalize_math_p.
6376         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6377         PROP_gimple_opt_math property.
6379 2015-10-15  Marek Polacek  <polacek@redhat.com>
6381         PR tree-optimization/67953
6382         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6384 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
6386         * config.gcc: Recognize "." in architecture base name for AArch64.
6388 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6390         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6391         ROUND_UP macro.
6392         * config/mips/mips.c (mips_setup_incoming_varargs): Use
6393         ROUND_DOWN to calculate off.
6394         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6395         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6396         rounded_size.
6398 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6400         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6402 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
6403             Torvald Riegel  <triegel@redhat.com>
6405         PR target/67281
6406         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6407         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6408         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6409         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6410         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
6411         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6412         trechkpt, treclaim, tsr, ttest): New define_expands.
6413         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6414         __TM_FENCE__ for htm.
6415         * doc/extend.texi: Update documentation for htm builtins.
6417 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
6419         PR target/67967
6420         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6421         REG_CFA_EXPRESSION to aligned SSE stores.
6423 2015-10-14  Jeff Law  <law@redhat.com>
6425         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6426         num_threaded_edges for successful FSM threads too.
6428 2015-10-14  Richard Biener  <rguenther@suse.de>
6430         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6431         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
6432         (vect_get_vec_def_for_operand): Remove unused parameter.
6433         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6434         (vect_create_epilog_for_reduction): Likewise.
6435         (vectorizable_reduction): Likewise.
6436         (vectorizable_live_operation): Likewise.
6437         * tree-vect-patterns.c (type_conversion_p): Likewise.
6438         (vect_recog_vector_vector_shift_pattern): Likewise.
6439         (check_bool_pattern): Likewise.
6440         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6441         (vect_analyze_slp_cost_1): Likewise.
6442         * tree-vect-stmts.c (process_use): Likewise.
6443         (vect_get_vec_def_for_operand): Do not handle reductions.
6444         (vect_get_vec_defs): Adjust.
6445         (vectorizable_mask_load_store): Likewise.
6446         (vectorizable_call): Likewise.
6447         (vectorizable_simd_clone_call): Likewise.
6448         (vect_get_loop_based_defs): Likewise.
6449         (vectorizable_conversion): Likewise.
6450         (vectorizable_assignment): Likewise.
6451         (vectorizable_shift): Likewise.
6452         (vectorizable_operation): Likewise.
6453         (vectorizable_store): Likewise.
6454         (vectorizable_load): Likewise.
6455         (vect_is_simple_cond): Likewise.
6456         (vectorizable_condition): Likewise.
6457         (vect_is_simple_use): Remove unused parameters.
6458         (vect_is_simple_use_1): Adjust and rename.
6460 2015-10-14  Richard Biener  <rguenther@suse.de>
6462         PR tree-optimization/67915
6463         * match.pd: Handle comparisons of addresses of STRING_CSTs.
6464         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6465         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6466         stmt folding in favor of GIMPLE one.
6468 2015-10-14  Marek Polacek  <polacek@redhat.com>
6470         PR tree-optimization/67815
6471         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
6472         (reassociate_bb): Call it.
6474 2015-10-14  Richard Biener  <rguenther@suse.de>
6476         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6477         Reset info at start.
6478         (vect_analyze_group_access_1): Add debug print.
6479         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
6480         (vect_compute_single_scalar_iteration_cost): ... to this.
6481         (vect_analyze_loop_2): Adjust.
6482         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
6483         * tree-vectorizer.h: ... here.
6484         (add_stmt_info_to_vec): Remove.
6485         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
6487 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6489         * targhooks.c (default_target_option_pragma_parse): Do not warn if
6490         called on behalf of "#pragma GCC pop_options".
6492 2015-10-14  Tom de Vries  <tom@codesourcery.com>
6494         * cfganal.c (verify_no_unreachable_blocks): New function.
6495         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
6496         verify_no_unreachable_blocks.
6497         cfganal.h (verify_no_unreachable_blocks): Declare.
6499 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
6501         * common.opt: Add flag_checking.
6502         * system.h (CHECKING_P): Define.
6504 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6505             Aldy Hernandez  <aldyh@redhat.com>
6506             Ilya Verbin  <ilya.verbin@intel.com>
6508         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6509         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6510         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6511         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6512         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6513         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6514         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6515         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6516         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6517         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6518         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6519         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6520         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6521         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6522         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6523         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6524         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6525         (struct cgraph_simd_clone_arg): Adjust comment.
6526         * coretypes.h (struct gomp_ordered): New forward decl.
6527         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6528         set critical clauses to it.
6529         (gimple_build_omp_ordered): Return gomp_ordered * instead of
6530         gimple *.  Add CLAUSES argument, set ordered clauses to it.
6531         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6532         GIMPLE_OMP_ORDERED.
6533         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6534         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6535         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
6536         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6537         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
6538         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6539         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
6540         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6541         renumber
6542         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6543         (gomp_critical): Add clauses field.
6544         (gomp_ordered): New struct.
6545         (is_a_helper <gomp_ordered *>::test): New inline.
6546         (gimple_build_omp_critical): Add CLAUSES argument.
6547         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
6548         instead of gimple *.
6549         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6550         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6551         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6552         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6553         inline functions.
6554         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6555         (dump_gimple_omp_target): Handle enter data and exit data.
6556         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6557         (dump_gimple_omp_critical): Print clauses.
6558         (dump_gimple_omp_ordered): New function.
6559         (dump_gimple_omp_task): Handle taskloop.
6560         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6561         GIMPLE_OMP_ORDERED.
6562         * gimple-walk.c (walk_gimple_op): Walk clauses on
6563         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6564         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6565         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6566         (struct gimplify_omp_ctx): Add loop_iter_var,
6567         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6568         and target_firstprivatize_array_bases fields.
6569         (delete_omp_context): Release loop_iter_var.
6570         (gimplify_bind_expr): Handle ORT_NONE.
6571         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6572         ORT_COMBINED_TARGET.
6573         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6574         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6575         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
6576         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
6577         ctx->target_map_scalars_firstprivate.
6578         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
6579         data sharing clauses.  For data sharing clause with VLA decl
6580         on omp target/target data don't add firstprivate for the pointer.
6581         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6582         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6583         the addition of ORT_COMBINED_TARGET.
6584         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
6585         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
6586         pointers as zero length array sections and
6587         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6588         data sharing.
6589         (omp_check_private): Handle omp_member_access_dummy_var vars.
6590         (find_decl_expr): New function.
6591         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
6592         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6593         Handle OMP_CLAUSE_GANG separately.  Handle
6594         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6595         clauses.  Diagnose linear clause on combined
6596         distribute {, parallel for} simd construct, unless it is the loop
6597         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6598         Handle map clauses with COMPONENT_REF.  Initialize
6599         ctx->target_map_scalars_firstprivate,
6600         ctx->target_firstprivatize_array_bases and
6601         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
6602         linear clause even to target region if combined.  Remove
6603         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6604         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
6605         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6606         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
6607         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6608         For linear clause on worksharing loop combined with parallel add
6609         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
6610         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
6611         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
6612         taskloop if needed.
6613         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6614         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6615         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6616         GOMP_MAP_POINTER.
6617         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
6618         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6619         in target body.  Handle removal of struct mapping if struct is not
6620         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
6621         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
6622         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
6623         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6624         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6625         clause appear together.  Handle
6626         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
6627         clause if it has map-type-modifier always.  Handle
6628         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6629         clauses.
6630         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6631         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6632         callers.
6633         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
6634         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
6635         iterators in doacross loops.
6636         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6637         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
6638         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
6639         for the addition of ORT_COMBINED_TARGET.
6640         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6641         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
6642         and OMP_TARGET_EXIT_DATA.
6643         (gimplify_omp_ordered): New function.
6644         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6645         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
6646         Gimplify clauses on OMP_CRITICAL.
6647         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6648         expand_GOMP_SIMD_ORDERED_END): New functions.
6649         * internal-fn.def (GOMP_SIMD_ORDERED_START,
6650         GOMP_SIMD_ORDERED_END): New internal functions.
6651         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6652         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6653         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6654         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6655         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6656         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6657         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6658         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6659         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6660         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6661         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6662         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6663         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6664         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6665         adjust type.
6666         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6667         GOMP_target_data_41, adjust type.
6668         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6669         GOMP_target_update_41, adjust type.
6670         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6671         field.
6672         (struct omp_for_data): Add ordered and simd_schedule fields.
6673         (omp_member_access_dummy_var, unshare_and_remap_1,
6674         unshare_and_remap, is_taskloop_ctx): New functions.
6675         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6676         (extract_omp_for_data): Handle taskloops and doacross loops
6677         and simd schedule modifier.
6678         (omp_adjust_chunk_size): New function.
6679         (get_ws_args_for): Use it.
6680         (lookup_sfield): Change first argument to splay_tree_key,
6681         add overload with first argument tree.
6682         (maybe_lookup_field): Likewise.
6683         (use_pointer_for_field): Handle omp_member_access_dummy_var.
6684         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6685         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6686         (build_outer_var_ref): Add LASTPRIVATE argument, handle
6687         taskloops and omp_member_access_dummy_var vars.
6688         (build_sender_ref): Change first argument to splay_tree_key,
6689         add overload with first argument tree.
6690         (install_var_field): For mask & 8 use &DECL_UID as key instead
6691         of the tree itself.
6692         (fixup_child_record_type): Const qualify *.omp_data_i.
6693         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6694         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6695         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6696         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6697         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6698         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6699         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6700         kinds.
6701         (add_taskreg_looptemp_clauses): New function.
6702         (scan_omp_parallel): Use it.
6703         (scan_omp_task): Likewise.
6704         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6705         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6706         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6707         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
6708         sandwiched taskloop constructs.  Type check
6709         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
6710         region.  Diagnose depend(source) or depend(sink:...) on
6711         target constructs or task/taskloop.
6712         (handle_simd_reference): Use get_name.
6713         (lower_rec_input_clauses): Likewise.  Ignore all
6714         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6715         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
6716         before passing it to omp_clause_{default,copy}_ctor.  Handle
6717         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
6718         lastprivate_firstprivate flag for linear that needs copyin and
6719         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6720         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6721         on taskloop lookup decl in outer context.  Pass true to
6722         build_outer_var_ref lastprivate argument.  Handle
6723         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6724         outside of outer taskloop for.
6725         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6726         OMP_CLAUSE_DECL.
6727         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6728         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
6729         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
6730         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
6731         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6732         abstract origin.  Handle omp_member_access_dummy_var vars.
6733         (expand_parallel_call): Use expand_omp_build_assign.
6734         (expand_task_call): Handle taskloop construct expansion.  Add
6735         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
6736         integers.  Add priority argument to GOMP_task* calls.  Or in
6737         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6738         GOMP_task call.
6739         (expand_omp_build_assign): Add prototype.  Add AFTER
6740         argument, if true emit statements after *GSI_P and continue linking.
6741         (expand_omp_taskreg): Adjust expand_task_call caller.
6742         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6743         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6744         zero_iter2_bb and first_zero_iter2 arguments, handle computation
6745         of counts even for ordered loops.
6746         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6747         (expand_omp_ordered_source, expand_omp_ordered_sink,
6748         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6749         functions.
6750         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
6751         clauses on worksharing loop.  Handle DOACROSS loop expansion.
6752         (expand_omp_for_static_nochunk): Handle linear clauses on
6753         worksharing loop.  Adjust expand_omp_for_init_counts
6754         callers.
6755         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
6756         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
6757         expand_omp_for_init_counts callers.
6758         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6759         functions.
6760         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6761         Handle doacross loops.
6762         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6763         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
6764         GOMP_target_{41,update_41,enter_exit_data} libcalls.
6765         (expand_omp): Don't expand ordered depend constructs here, record
6766         ord_stmt instead for later expand_omp_for_generic.
6767         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6768         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6769         clause as stand-alone directive.
6770         (lower_omp_ordered_clauses): New function.
6771         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6772         don't lower anything.
6773         (lower_omp_for_lastprivate): Use last _looptemp_ clause
6774         on taskloop for comparison.
6775         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
6776         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6777         expansion for linear adjustments.
6778         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6779         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6780         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
6781         to tree * pointing to the stmt's clauses.
6782         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6783         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6784         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6785         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6786         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6787         clauses.  Always use short kind and 8-bit align shift.
6788         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6789         (struct lower_omp_regimplify_operands_data): New type.
6790         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6791         New functions.
6792         (lower_omp_1): Use lower_omp_regimplify_operands instead of
6793         gimple_regimplify_operands.
6794         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6795         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6796         clause as stand-alone directive.
6797         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6798         (simd_clone_mangle): Mangle the various linear kinds
6799         per the new ABI.
6800         (simd_clone_adjust_argument_types): Handle
6801         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6802         (simd_clone_init_simd_arrays): Don't do anything for uval.
6803         (simd_clone_adjust): Handle
6804         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6805         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6806         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6807         * omp-low.h (omp_member_access_dummy_var): New prototype.
6808         * passes.def (pass_simduid_cleanup): Schedule another copy of the
6809         pass after all optimizations.
6810         * tree.c (omp_clause_code_name): Add entries for
6811         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6812         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6813         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
6814         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6815         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6816         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
6817         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6818         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6819         clauses.
6820         * tree-core.h (enum omp_clause_linear_kind): New.
6821         (struct tree_omp_clause): Change type of map_kind
6822         from unsigned char to unsigned int.  Add subcode.if_modifier
6823         and subcode.linear_kind fields.
6824         (enum omp_clause_code): Add
6825         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6826         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6827         (OMP_CLAUSE_REDUCTION): Document
6828         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6829         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6830         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6831         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
6832         operand.
6833         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
6834         operand.
6835         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6836         codes.
6837         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6838         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6839         char.
6840         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6841         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6842         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6843         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6844         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6845         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6846         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6847         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6848         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6849         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6850         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6851         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6852         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6853         * tree-inline.c (remap_gimple_stmt): Handle clauses on
6854         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
6855         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6856         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6857         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6858         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6859         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6860         (convert_local_omp_clauses): Likewise.
6861         * tree-pretty-print.c (dump_omp_clause): Handle
6862         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6863         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6864         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6865         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6866         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
6867         GOMP_MAP_FORCE_DEALLOC.  Handle
6868         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6869         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6870         and clauses on OMP_ORDERED and OMP_CRITICAL.
6871         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6872         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6873         (vectorize_loops): Adjust comments.
6874         (pass_simduid_cleanup::execute): Likewise.
6875         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6876         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6877         * wide-int.h (wi::gcd): New.
6879 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6881         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6882         (ix86_function_arg_advance): Ditto.
6883         (ix86_function_arg): Ditto.
6884         (ix86_gimplify_va_arg): Ditto.
6885         (ix86_class_max_nregs): Ditto.
6886         (inline_memory_move_cost): Ditto.
6887         (ix86_set_reg_reg_cost): Ditto.
6888         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6890 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
6892         PR middle-end/67912
6893         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6895 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6897         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6898         ROUND_UP macro and UNITS_PER_WORD * 2.
6899         * config/sparc/sparc.c (sparc_compute_frame_size):
6900         Use ROUND_UP and ROUND_DOWN macros where applicable.
6901         (function_arg_record_value, function_arg_record_value_1)
6902         (function_arg_record_value_1): Ditto.
6903         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6904         alignment to double-word.
6905         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6906         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6907         rounded_size.
6909 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6911         * rtl.h (print_insn): Fix prototype.
6913 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6915         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6916         -1.  Add assert that returned entry matches phi argument.
6917         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6918         free_stmt_vec_info_vec ...
6919         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
6920         with -1.
6922 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
6924         PR tree-optimization/67909, 67947
6925         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6926         really skip the inner loop.
6928 2015-10-13  Jeff Law  <law@redhat.com>
6930         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6931         Allow single block jump threading paths.
6933 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6935         PR tree-optimization/67476
6936         * doc/invoke.texi (@item parloops-schedule): New item.
6937         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6938         * tree-parloops.c: Include params-enum.h.
6939         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6941 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6943         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6944         * params-enum.h: New file.
6945         * opts.c (handle_param): Handle case that param arg is a string.
6946         * params-list.h: Handle DEFPARAMENUM5 in params.def.
6947         * params.c (find_param): New function, factored out of ...
6948         (set_param_value): ... here.
6949         (param_string_value_p): New function.
6950         * params.h (struct param_info): Add value_names field.
6951         (find_param, param_string_value_p): Declare.
6953 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6955         PR tree-optimization/67476
6956         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6958 2015-10-13  Richard Biener  <rguenther@suse.de>
6960         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6961         the data dependence vector.
6962         (vect_peeling_hash_insert): Get the peeling hash table as argument.
6963         (vect_peeling_hash_get_lowest_cost): Likewise.
6964         (vect_enhance_data_refs_alignment): Adjust.
6965         (struct _vect_peel_info, struct _vect_peel_extended_info,
6966         struct peel_info_hasher): Move from ...
6967         * tree-vectorizer.h: ... here.
6968         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6969         (LOOP_VINFO_PEELING_HTAB): Likewise.
6970         (struct _loop_vec_info): Remove min_profitable_iters and
6971         peeling_htab members.
6972         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6973         here.
6974         (destroy_loop_vec_info): Adjust.
6975         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6976         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6977         to estimate alias versioning cost.
6978         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6980 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
6982         * real.h (real_isinteger): Declare.
6983         * real.c (real_isinteger): New function.
6984         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6985         if y is an even integer.
6987 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6989         revert:
6990         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6991         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6992         counts when these are more informative.
6994 2015-10-12  Jeff Law  <law@redhat.com>
6996         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6997         (fsm_find_control_stmt_paths): Change name of first argument to
6998         more accurately relfect what it really is.  Handle simplification
6999         of GIMPLE_COND after finding a thread path for NAME.
7000         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
7001         nontrivial conditions to be handled by FSM threader.
7002         (thread_through_normal_block): Extract the name to looup via
7003         FSM threader from COND_EXPR.
7005         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
7006         restriction that traced SSA_NAME is a user variable.
7008 2015-10-12  Tom de Vries  <tom@codesourcery.com>
7010         PR tree-optimization/67476
7011         * omp-low.c (expand_omp_for_generic): Add missing phis.
7013 2015-10-12  Tom de Vries  <tom@codesourcery.com>
7015         PR tree-optimization/67476
7016         * omp-low.c (expand_omp_for_generic): Handle simple latch.
7018 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
7020         * config/aarch64/aarch64-simd-builtins.def: Update builtins
7021         tables: add tbl3 and tbx4.
7022         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
7023         (aarch64_tbx4v8qi): New.
7024         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
7025         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
7026         Rewrite using builtin functions.
7027         * config/aarch64/iterators.md (UNSPEC_TBX): New.
7029 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
7031         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
7032         ROUND_UP macro.
7033         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7034         Use ROUND_UP and ROUND_DOWN macros where applicable.
7035         (rs6000_darwin64_record_arg_flush): Ditto.
7036         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
7037         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
7038         rounded_size.
7040 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
7042         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
7043         (AARCH64_ROUND_DOWN): Ditto.
7044         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
7046 2015-10-12  Richard Biener  <rguenther@suse.de>
7048         PR ipa/67783
7049         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
7050         code that analyzes IVs on each stmt but in a cheaper way avoiding
7051         quadratic behavior.
7053 2015-10-12  Nick Clifton  <nickc@redhat.com>
7055         * config/msp430/msp430.c (msp430_mcu_names): Rename to
7056         msp430_mcu_data, add fields for ISA and hardware multiply
7057         support.  Import latest data from the devices.csv file.
7058         (msp430_override_option): Use the data from the new array.
7059         (msp430_use_f5_series_hwmult): Likewise.
7060         (use_32bit_hwmult): Likewise.
7061         (msp430_no_hwmult): Likewise.
7062         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
7063         MCU names.
7064         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
7065         not recognised then no hardware multiply support is assumed and
7066         that only the MSP430 ISA is allowed.
7068 2015-10-12  Richard Biener  <rguenther@suse.de>
7070         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
7071         related code ...
7072         (vect_analyze_loop_2): ... here.
7074 2015-10-11  Jason Merrill  <jason@redhat.com>
7076         PR c++/67557
7077         * expr.c (store_field): Call store_constructor directly when
7078         storing a CONSTRUCTOR into a target smaller than its type.
7079         Guard against unsafe bitwise copy.
7081 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7083         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
7084         counts when these are more informative.
7086 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7088         * tree-profile.c (tree_profiling): Do not clear
7089         pure/const when not instrumenting.
7090         (pass tree_profile): Add dump of symtab.
7092 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7094         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
7095         addresses.
7096         (fold_addr_of_array_ref_difference): Likewise.
7098 2015-10-11  Jeff Law  <law@redhat.com>
7100         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
7101         tree-ssa-threadbackward.c.
7102         (fsm_find_control_statement_thread_paths): Likewise.
7103         (thread_through_normal_block): Break out FSM bits and move them
7104         into a new function in tree-ssa-threadbackward.c.  Call new function
7105         instead.
7106         Minimize header file usage.
7107         * tree-ssa-threadbackward.h: New file.
7108         * tree-ssa-threadbackward.c: Likewise.
7109         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
7111 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
7113         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
7115 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
7117         PR rtl-optimization/67864
7118         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
7119         fallthrough edges for conditional jumps.  Don't sort candidate
7120         edges if not optimizing for speed.
7122 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7124         * defaults.h (REVERSE_CONDITION): New default definition.
7125         * jump.c (reversed_comparison_code_parts): Adjust.
7127 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7129         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
7130         check HARD_FRAME_POINTER_IS_ARG_POINTER.
7132 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7134         * defaults.h (FRAME_ADDR_RTX): New default definition.
7135         * builtins.c (expand_builtin_return_addr): Adjust.
7137 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7139         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
7140         * builtins.c (expand_builtin_return_addr): Adjust.
7142 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7144         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
7145         * builtins.c (expand_builtin_return_addr): Adjust.
7146         * doc/tm.texi: Likewise.
7147         * doc/tm.texi.in: Likewise.
7148         * except.c (expand_builtin_unwind_init): Likewise.
7150 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7152         * builtins.c (expand_builtin_return_addr): Adjust.
7153         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
7155 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
7157         * tree.c (type_with_interoperable_signedness): New.
7158         (gimple_canonical_types_compatible_p): Use it.
7159         * tree.h (type_with_interoperable_signedness): Declare
7161 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
7163         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
7164         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
7165         when OEP_ADDRESS_OF is se.
7167 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
7168             Sebastian Pop  <s.pop@samsung.com>
7170         * graphite-dependences.c (scop_get_dependences): Add dump of the
7171         data dependence graph.
7172         * graphite-poly.c (print_isl_union_map): New.
7173         (debug_isl_union_map): New.
7174         * graphite-poly.h (print_isl_union_map): Declare.
7175         (debug_isl_union_map): Declare.
7177 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
7178             Sebastian Pop  <s.pop@samsung.com>
7180         * graphite-poly.c (print_iteration_domain): Remove verbosity.
7181         Remove OpenScop formatting.
7182         (print_iteration_domains): Same.
7183         (debug_iteration_domain): Same.
7184         (debug_iteration_domains): Same.
7185         (print_pdr): Same.
7186         (debug_pdr): Same.
7187         (dump_gbb_cases): Same.
7188         (dump_gbb_conditions): Same.
7189         (print_pdrs): Same.
7190         (debug_pdrs): Same.
7191         (print_pbb_body): Same.
7192         (print_pbb): Same.
7193         (print_scop_params): Same.
7194         (print_scop_context): Same.
7195         (print_scop): Same.
7196         (debug_pbb_domain): Same.
7197         (debug_pbb): Same.
7198         (debug_scop_context): Same.
7199         (debug_scop): Same.
7200         (debug_scop_params): Same.
7201         * graphite-poly.h: Same.
7202         * graphite.c (graphite_transform_loops): Same.
7204 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7206         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
7207         call that isn't needed.
7209 2015-10-09  Jeff Law  <law@redhat.com>
7211         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
7212         rather than moving each name to the freelist individually.
7214 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
7216         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
7217         * frame-header-opt.c: New file.
7218         * config/mips/mips-proto.h (mips_register_frame_header_opt):
7219         Add prototype.
7220         * config/mips/mips.c (mips_compute_frame_info): Check
7221         optimize_call_stack flag.
7222         (mips_option_override): Register new frame_header_opt pass.
7223         (mips_frame_info, mips_int_mask, mips_shadow_set,
7224         machine_function): Move these types to...
7225         * config/mips/mips.h: here.
7226         (machine_function): Add does_not_use_frame_header and
7227         optimize_call_stack fields.
7228         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
7229         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
7230         Document new flags.
7231         * config/mips/mips.opt (mframe-header-opt): Add new option.
7233 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
7235         * config/i386/i386.c
7236         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
7237         ROUND_DOWN where applicable.
7239 2015-10-09  Jeff Law  <law@redhat.com>
7241         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
7242         correct statement.
7244 2015-10-09  Renlin Li  <renlin.li@arm.com>
7246         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
7247         operands[0] and operands[2].
7248         (neon_vtrn<mode>_insn): Likewise.
7249         (neon_vzip<mode>_insn): Likewise.
7251 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7253         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
7254         ((X & C2) << C1): Expand to...
7255         (X {&,^,|} C2 << C1): ...This.
7256         ((X & C2) >> C1): Expand to...
7257         (X {&,^,|} C2 >> C1): ...This.
7259 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
7261         PR target/67895
7262         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
7263         Adjust embedded rounding/SAE specifier position.
7264         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
7265         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
7266         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
7267         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
7268         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
7269         Likewise.
7270         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
7272 2015-10-09  Martin Jambor  <mjambor@suse.cz>
7274         tree-optimization/67794
7275         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
7276         between types of state,ents but accept original definitions as a
7277         parameter.
7278         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
7279         iterate over definitions.
7281 2015-10-09  James Norris  <jnorris@codesourcery.com>
7283         * config/rs6000/rs6000.c (rs6000_offload_options): New.
7284         (TARGET_OFFLOAD_OPTIONS): New.
7286 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
7288         PR middle-end/67891
7289         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
7291         PR middle-end/67766
7292         * function.c (expand_function_end): Move return value
7293         promotion past the handling of PARALLELs and CONCATs.
7295         PR rtl-optimization/67828
7296         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
7297         (tree_may_unswitch_on): Don't unswitch on expressions
7298         involving undefined values.
7300 2015-10-09  Richard Biener  <rguenther@suse.de>
7302         * genmatch.c (print_operand): Fix formatting.
7303         (dt_node::append_simplify): Warn for multiple simplifiers
7304         that match the same pattern.
7305         * match.pd (log (exp @0)): Remove duplicates.
7307 2015-10-09  Richard Biener  <rguenth@suse.de>
7309         PR target/67366
7310         * gimple-fold.c (optabs-query.h): Include
7311         (gimple_fold_builtin_memory_op): Allow unaligned stores
7312         when movmisalign_optabs are available.
7314 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7316         PR target/67366
7317         * config/arm/arm.md (movmisalign<mode>): New.
7318         * config/arm/iterators.md (HSI): New.
7320 2015-10-09  Richard Biener  <rguenther@suse.de>
7322         PR tree-optimization/67891
7323         * gimple-match.h (gimple_simplified_result_is_gimple_val):
7324         New helper.
7325         (gimple_resimplify1): Declare.
7326         (gimple_resimplify2): Likewise.
7327         (gimple_resimplify3): Likewise.
7328         * gimple-match-head.c (gimple_resimplify1): Export.
7329         (gimple_resimplify2): Likewise.
7330         (gimple_resimplify3): Likewise.
7331         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
7332         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7333         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
7334         to avoid creating stmts without VN info.
7336 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
7338         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
7339         of availability.
7341 2015-10-08  Jeff Law  <law@redhat.com>
7343         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
7344         and release_ssa_name in two places.
7345         (gimple_stringop_fixed_value): Similarly.
7347         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
7348         release_defs.
7350         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
7351         unlink_stmt_vdef and release_ssa_name_fn.
7353         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
7354         release_defs.
7356 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
7358         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
7359         SSE register save area to 16 bytes only if the incoming stack
7360         boundary is no less than 16 bytes.
7362 2015-10-08  Jeff Law  <law@redhat.com>
7364         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
7365         release_ssa_name.  Fix typo in comment.
7367 2015-10-08  Nathan Sidwell  <nathan@acm.org>
7369         * config/nvptx/nvptx.h (struct machine_function): Add comment.
7370         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
7371         may return pointer as well as in memory.
7372         (nvptx_output_return): Likewise.
7374 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7376         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7377         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7378         * match.pd: Add rules previously handled by fold_builtin_sqrt
7379         and fold_builtin_cbrt.
7381 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7383         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7384         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7385         * fold-const.h (tree_unary_nonnegative_warnv_p)
7386         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7387         (tree_expr_nonnegative_warnv_p): Add depth parameters.
7388         * fold-const.c: Include gimple-fold.h and params.h.
7389         (tree_ssa_name_nonnegative_warnv_p): New function.
7390         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7391         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7392         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7393         Add a depth parameter and increment it for recursive calls to
7394         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
7395         to handle SSA names.
7396         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7397         (gimple_stmt_nonnegative_warnv_p): Declare.
7398         * tree-vrp.c (remove_range_assertions): Remove assert that condition
7399         cannot be proven false.
7400         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7401         (gimple_stmt_nonnegative_warnv_p): Move to...
7402         * gimple-fold.c: ...here.  Add depth parameters and pass them
7403         down to the tree routines.  Accept statements that aren't
7404         assignments or calls but just return false for them.
7405         (gimple_val_nonnegative_real_p): Delete.
7406         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7407         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7408         Check HONOR_NANs first.
7410 2015-10-08  Martin Jambor  <mjambor@suse.cz>
7412         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
7413         unnecessary MIN.
7415 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7417         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7418         in the tail of outer-loop.
7420 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
7422         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7423         return UI_NONE.
7425 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
7427         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7428         "cfghooks.h", add prototypes for introduced new functions.
7429         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7430         checks on ability of loop unswitching to tree_unswitch_single_loop;
7431         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7432         on innermost loop check.
7433         (tree_unswitch_single_loop): Add all required checks on ability of
7434         loop unswitching under zero recursive level guard.
7435         (tree_unswitch_outer_loop): New function.
7436         (find_loop_guard): Likewise.
7437         (empty_bb_without_guard_p): Likewise.
7438         (used_outside_loop_p): Likewise.
7439         (get_vop_from_header): Likewise.
7440         (hoist_guard): Likewise.
7441         (check_exit_phi): Likewise.
7443 2015-10-08  Marek Polacek  <polacek@redhat.com>
7445         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7446         ops element.
7448 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7450         PR c/65345
7451         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7452         create_tmp_var_raw instead of create_tmp_var.
7454 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
7456         * expr.c (store_expr_with_bounds): Handle aggregate moves from
7457         BLKmode.
7458         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7459         to define gimple type system; compare aggregates only by size.
7461 2015-10-07  Jeff Law  <law@redhat.com>
7463         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7464         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7465         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
7466         unnecessarily.
7468 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7469             Sebastian Pop  <s.pop@samsung.com>
7471         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
7472         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
7473         (generate_isl_schedule): Same.
7474         * graphite-optimize-isl.c (scop_get_domains): Same.
7475         (apply_schedule_map_to_scop): Same.
7476         * graphite-poly.c (print_iteration_domains): Same.
7477         (remove_gbbs_in_scop): Same.
7478         (new_scop): Same.
7479         (free_scop): Same.
7480         (print_scop): Same.
7481         * graphite-poly.h (struct scop): Rename bbs to pbbs.
7482         (SCOP_BBS): Remove.
7483         * graphite-scop-detection.c (compare_bb_depths): Remove.
7484         (graphite_sort_dominated_info): Remove.
7485         (try_generate_gimple_bb): Move out of scop_detection.
7486         (all_non_dominated_preds_marked_p): Remove.
7487         (build_scop_bbs_1): Remove.
7488         (build_scop_bbs): Remove.
7489         (nb_pbbs_in_loops): Do not use SCOP_BBS.
7490         (find_scop_parameters): Same.
7491         (sese_dom_walker): Rename gather_bbs.
7492         (before_dom_children): Call try_generate_gimple_bb and collect gbb
7493         and pbb.
7494         (build_scops): Call gather_bbs.
7495         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
7496         (add_conditions_to_constraints): Same.
7497         (build_scop_iteration_domain): Same.
7498         (build_scop_drs): Same.
7499         (new_pbb_from_pbb): Same.
7500         * sese.c (new_sese_info): Create bbs.
7501         * sese.h (struct sese_info_t): Add bbs.
7503 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
7505         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
7506         encoding in 64-bit mode.
7508 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
7510         PR target/66697
7511         * config/i386/i386.c (ix86_option_override_internal): Always use
7512         8-byte minimum stack boundary in 64-bit mode.
7513         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7514         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7515         Add a REG_CFA_EXPRESSION note if needed.
7516         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7517         (ix86_handle_force_align_arg_pointer_attribute): New.
7518         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7519         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7520         with ix86_handle_force_align_arg_pointer_attribute.
7521         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7523 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7524             Sebastian Pop  <s.pop@samsung.com>
7526         * graphite-scop-detection.c (parameter_index_in_region): Remove
7527         use of SESE_ADD_PARAMS.
7528         (find_scop_parameters): Same.
7529         * sese.c (new_sese_info): Same.
7530         * sese.h (struct sese_info_t): Remove add_params.
7531         (SESE_ADD_PARAMS): Remove.
7533 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7534             Sebastian Pop  <s.pop@samsung.com>
7536         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7537         an sese_info_p.
7538         (copy_def): Same.
7539         (copy_internal_parameters): Same.
7540         (translate_isl_ast_to_gimple): Use an sese_l.
7541         (build_iv_mapping): Same.
7542         * graphite-poly.c (new_sese): Rename new_sese_info.
7543         (free_sese): Rename free_sese_info.
7544         * graphite-poly.h (struct scop): Use an sese_info_p.
7545         (scop_set_region): Same.
7546         * graphite-scop-detection.c (struct sese_l): Moved...
7547         (get_entry_bb): Moved...
7548         (get_exit_bb): Moved...
7549         (parameter_index_in_region_1): Use an sese_info_p.
7550         (parameter_index_in_region): Same.
7551         (scan_tree_for_params): Same.
7552         (find_params_in_bb): Same.
7553         (sese_dom_walker): Use an sese_l.
7554         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7555         (reduction_phi_p): Same.
7556         (parameter_index_in_region_1): Use an sese_info_p.
7557         (propagate_expr_outside_region): Use an sese_l.
7558         * graphite.c: Replace uses of SCOP_REGION.
7559         * sese.c (sese_record_loop): Use an sese_info_p.
7560         (build_sese_loop_nests): Same.
7561         (sese_build_liveouts_use): Same.
7562         (sese_build_liveouts_bb): Same.
7563         (sese_build_liveouts_bb): Same.
7564         (sese_bad_liveouts_use): Same.
7565         (sese_reset_debug_liveouts_bb): Same.
7566         (sese_build_liveouts): Same.
7567         (new_sese): Renamed new_sese_info.
7568         (free_sese): Renamed free_sese_info.
7569         (set_rename): Use an sese_info_p.
7570         (graphite_copy_stmts_from_block): Same.
7571         (copy_bb_and_scalar_dependences): Same.
7572         (outermost_loop_in_sese_1): Use an sese_l.
7573         (outermost_loop_in_sese): Same.
7574         (if_region_set_false_region): Use an sese_info_p.
7575         (move_sese_in_condition): Same.
7576         (scalar_evolution_in_region): Use an sese_l.
7577         * sese.h (struct sese_l): ... here.
7578         (SESE_ENTRY): Remove.
7579         (SESE_ENTRY_BB): Remove.
7580         (SESE_EXIT): Remove.
7581         (SESE_EXIT_BB): Remove.
7582         (sese_contains_loop): Use an sese_info_p.
7583         (sese_nb_params): Same.
7584         (bb_in_sese_p): Use an sese_l.
7585         (stmt_in_sese_p): Same.
7586         (defined_in_sese_p): Same.
7587         (loop_in_sese_p): Same.
7588         (sese_loop_depth): Same.
7589         (struct ifsese_s): Use an sese_info_p.
7590         (gbb_loop_at_index): Use an sese_l.
7591         (nb_common_loops): Same.
7592         (scev_analyzable_p): Same.
7594 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7596         * config/i386/i386.c (ix86_conditional_register_usage): Use
7597         CALL_USED_REGISTERS_MASK.
7598         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7600 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7602         PR bootstrap/67385
7603         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7604         * configure: Regenerated.
7606 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7608         PR target/67850
7609         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7610         (ix86_set_current_function): This.
7611         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7613 2015-10-07  Richard Biener  <rguenther@suse.de>
7615         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7616         (vinfo_for_stmt): Adjust.
7617         (set_vinfo_for_stmt): Likewise.
7618         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7619         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7620         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7621         of inner loop.
7622         (vect_analyze_loop_1): Remove.
7623         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7624         inner loop when vectorizing an outer loop by splitting out from ...
7625         (vect_analyze_loop_form): ... here.
7627 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7629         PR c/65345
7630         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7631         Use create_tmp_var_raw instead of create_tmp_var.
7633 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
7635         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7636         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7637         * real.c (CACHED_FRACTION): New helper macro.
7638         (dconst_third_ptr): Use it.
7639         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7640         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7641         dconst_sixth.
7642         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7644 2015-10-06  Jeff Law  <law@redhat.com>
7646         PR tree-optimization/67816
7647         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7648         from remove_jump_threads_starting_at.  Accept an edge rather than
7649         a basic block.
7650         * tree-ssa-threadupdate.c (removed_edges): New hash table.
7651         (remove_jump_threads_including): Note edges that get removed from
7652         the CFG for later pruning of jump threading paths including them.
7653         (thread_through_all_blocks): Remove paths which include edges that
7654         have been removed.
7655         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7656         on each outgoing edges when optimizing away a control statement.
7658 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7660         * reorg.c (emit_delay_sequence): Store list of delay slot insns
7661         in a vector instead of rtx_insn_list.
7662         (add_to_delay_list): Likewise.
7663         (delete_from_delay_slot): Likewise.
7664         (optimize_skip): Likewise.
7665         (redirect_with_delay_list_safe_p): Likewise.
7666         (check_annul_list_true_false): Likewise.
7667         (steal_delay_list_from_target): Likewise.
7668         (steal_delay_list_from_fallthrough): Likewise.
7669         (redundant_insn): Likewise.
7670         (fill_simple_delay_slots): Likewise.
7671         (fill_slots_from_thread): Likewise.
7672         (fill_eager_delay_slots): Likewise.
7673         (relax_delay_slots): Likewise.
7675 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
7677         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7678         For -mgpopt=local, also exclude unintialized common symbols.
7679         * doc/invoke.texi (Nios II Options): Document the change.
7681 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7683         * config/aarch64/iterators.md (vwcore): Add missing cases for
7684          V4HF/V8HF modes.
7686 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7687             Sebastian Pop  <s.pop@samsung.com>
7689         * graphite-poly.c (new_scop): Initialize drs.
7690         * graphite-poly.h (struct dr_info): New.
7691         (struct scop): Add drs.
7692         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7693         (pdr_add_memory_accesses): Same.
7694         (build_poly_dr): Same.
7695         (build_alias_set): Same.
7696         (build_scop_drs): Same.
7697         (build_pbb_drs): Remove.
7698         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7699         * tree-data-ref.h (data_reference): Remove alias_set.
7701 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7702             Sebastian Pop  <s.pop@samsung.com>
7704         * graphite-poly.c (free_data_refs_aux): Remove.
7705         (free_gimple_poly_bb): Do not call free_data_refs_aux.
7706         * graphite-poly.h (struct base_alias_pair): Remove.
7707         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7708         base_alias_pair and dr->aux.
7709         (build_alias_set): Same.
7710         * tree-data-ref.c (create_data_ref): Initialize alias_set.
7711         * tree-data-ref.h (data_reference): Add alias_set.
7713 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7714             Sebastian Pop  <s.pop@samsung.com>
7716         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7717         Do not set PDR_BASE_OBJECT_SET.
7718         * graphite-poly.h (poly_dr): Same.
7719         (PDR_BASE_OBJECT_SET): Remove.
7720         (new_poly_dr): Update decl.
7721         * graphite-sese-to-poly.c (build_poly_dr): Update call to
7722         new_poly_dr.
7723         (write_alias_graph_to_ascii_dimacs): Remove.
7724         (write_alias_graph_to_ascii_dot): Remove.
7725         (write_alias_graph_to_ascii_ecc): Remove.
7726         (dr_same_base_object_p): Remove.
7727         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
7728         code.
7729         (build_base_obj_set_for_drs): Remove.
7730         (dump_alias_graphs): Remove.
7731         (build_scop_drs): Remove dead code.
7733 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7734             Peter Bergner  <bergner@vnet.ibm.com>
7736         PR target/67808
7737         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7738         allow registers, but provide insns for the combiner to create for
7739         loads from memory. Separate VSX code from non-VSX code. For
7740         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7741         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7742         so that registers come before memory operations. Drop support from
7743         converting DFmode to TFmode, if the DFmode value is in a GPR
7744         register.
7745         (extenddftf2_fprs): Likewise.
7746         (extenddftf2_internal): Likewise.
7747         (extenddftf2_vsx): Likewise.
7748         (extendsftf2): In the expander, only allow registers, but provide
7749         insns for the combiner to create for stores and loads.
7751 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7753         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7754         from the decl parameter.
7756 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
7758         PR 67861
7759         * gimple-fold.c (gimple_fold_builtin): Add break after
7760         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7762 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
7764         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7765         to scop->isl_context.
7767 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7769         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7770         (output_probe_stack_range): Rotate the loop and simplify.
7771         (thumb1_expand_prologue): Tweak sorry message.
7772         * config/arm/arm.md (probe_stack): Use bare string.
7774 2015-10-06  Nick Clifton  <nickc@redhat.com>
7776         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7778 2015-10-06  Nick Clifton  <nickc@redhat.com>
7780         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7781         (ATTR_PERSIST): New constant.
7782         (msp430_data_attr): New function - verifies an attribute that only
7783         applies to variables.
7784         (msp430_attributes): Add noinit and persistent attributes.
7785         (noinit_section): New variable.
7786         (presis_section): New variable.
7787         (TARGET_ASM_INIT_SECTIONS): Define.
7788         (msp430_init_sections): New function - initialises the noinit and
7789         persist section variables.
7790         (msp430_select_section): Add support for noinit and persist
7791         attributes.
7792         (msp430_section_type_flags): Likewise.
7793         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
7794         and persistent attributes.
7796 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7797             Sebastian Pop  <s.pop@samsung.com>
7799         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7800         (no_violations): Remove.
7801         (subtract_commutative_associative_deps): Remove.
7802         (compute_deps): Do not call subtract_commutative_associative_deps.
7803         (transform_is_safe): Remove.
7804         (graphite_legal_transform): Remove.
7805         * graphite-poly.h (graphite_legal_transform): Remove.
7807 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
7809         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7810         which are in this region are passed so gcc_assert and remove redundant
7811         computation.
7812         * sese.c (sese_build_liveouts): Pass only those bbs which are not
7813         in region.
7814         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7815         gcc_assert on that and remove unnecessary computation.
7816         (sese_build_liveouts_use): Same.
7818 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7820         * graphite-dependences.c (scop_get_reads): Renamed scop->context
7821         to scop->param_context.
7822         (scop_get_must_writes): Same.
7823         (scop_get_may_writes): Same.
7824         (scop_get_original_schedule): Same.
7825         (scop_get_transformed_schedule): Same.
7826         (subtract_commutative_associative_deps): Same.
7827         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7828         (generate_isl_context): Same.
7829         (generate_isl_schedule): Same.
7830         (scop_to_isl_ast): Same.
7831         (graphite_regenerate_ast_isl): Same.
7832         * graphite-optimize-isl.c (scop_get_domains): Same.
7833         (optimize_isl): Renamed scop->context to scop->param_context.
7834         * graphite-poly.c (new_poly_bb): Change the type of argument to
7835         gimple_poly_bb_p.
7836         (new_scop): Renamed scop->context to scop->param_context.
7837         (free_scop): Same.
7838         (print_scop_context): Same.
7839         * graphite-poly.h (new_poly_dr): Change the type of argument from
7840         void* to data_reference_p.
7841         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7842         (new_poly_bb): Change the type of argument from void* to
7843         gimple_poly_bb_p.
7844         (pbb_set_black_box): Same.
7845         (struct scop): Rename context to param_context, ctx to isl_context.
7846         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7847         Move declarations closer to assignment.
7848         (find_params_in_bb): Same.
7849         (find_scop_parameters): Same.
7850         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7851         Global to be used for statement IDs.
7852         (isl_id_for_pbb): Use ssa_name_version_typesize.
7853         (simple_copy_phi_p): Move declarations closer to assignment.
7854         (build_pbb_scattering_polyhedrons): Same.
7855         (build_scop_scattering): Same.
7856         (isl_id_for_ssa_name): Same.
7857         (extract_affine_name): Same.
7858         (extract_affine_int): Same.
7859         (extract_affine): Same.
7860         (set_scop_parameter_dim): Use renamed member.
7861         (build_loop_iteration_domains): Same.
7862         (add_param_constraints): Same.
7863         (build_scop_iteration_domain): Same.
7864         (pdr_add_data_dimensions): Same.
7865         (build_poly_dr): Same.
7866         (build_scop_drs): Move declarations closer to assignment.
7867         (analyze_drs_in_stmts): Same.
7868         (insert_out_of_ssa_copy): Same.
7869         (insert_out_of_ssa_copy_on_edge): Same.
7870         (propagate_expr_outside_region): Same.
7871         (rewrite_phi_out_of_ssa): Same.
7872         (rewrite_degenerate_phi): Same.
7873         (rewrite_reductions_out_of_ssa): Same.
7874         (rewrite_cross_bb_scalar_dependence): Same.
7875         (handle_scalar_deps_crossing_scop_limits): Same.
7876         (rewrite_cross_bb_scalar_deps): Same.
7877         * graphite.c (graphite_transform_loops): Use renamed member.
7879 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
7881         PR c/65345
7882         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7883         create_tmp_var_raw instead of create_tmp_var.
7885 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7887         PR c/65345
7888         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7889         Use create_tmp_var_raw instead of create_tmp_var.
7891 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
7893         PR target/67849
7894         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7895         split for upper-bank registers when target does not support
7896         AVX512VL.
7897         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7898         split when target does not support AVX512VL.
7900 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
7902         PR c/65345
7903         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7904         Adjust to use create_tmp_var_raw instead of create_tmp_var.
7906 2015-10-06  Nick Clifton  <nickc@redhat.com>
7908         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7909         multiplication.
7911 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7913         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7914         (case ${target}): Add znver1.
7915         * config/i386/cpuid.h(bit_CLZERO):  Define.
7916         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7917         -march=native recognize znver1 processors.
7918         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7919         znver1, clzero def_and_undef.
7920         * config/i386/i386.c (struct processor_costs znver1_cost): New.
7921         (m_znver1): New definition.
7922         (m_AMD_MULTIPLE): Includes m_znver1.
7923         (processor_target_table): Add znver1 entry.
7924         (ix86_target_string) : Add clzero entry.
7925         (static const char *const cpu_names): Add znver1 entry.
7926         (ix86_option_override_internal): Add znver1 instruction sets.
7927         (PTA_CLZERO) :  New definition.
7928         (ix86_option_override_internal): Handle new clzerooption.
7929         (ix86_issue_rate): Add znver1.
7930         (ix86_adjust_cost): Add znver1.
7931         (ia32_multipass_dfa_lookahead): Add znver1.
7932         (has_dispatch): Add znver1.
7933         * config/i386/i386.h (TARGET_znver1): New definition.
7934         (TARGET_CLZERO): Define.
7935         (TARGET_CLZERO_P): Define.
7936         (struct ix86_size_cost): Add TARGET_ZNVER1.
7937         (enum processor_type): Add PROCESSOR_znver1.
7938         * config/i386/i386.md (define_attr "cpu"): Add znver1.
7939         (set_attr znver1_decode): New definitions for znver1.
7940         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7941         (mclzero): New.
7942         * config/i386/mmx.md (set_attr znver1_decode): New definitions
7943         for znver1.
7944         * config/i386/sse.md (set_attr znver1_decode): Likewise.
7945         * config/i386/x86-tune.def:  Add znver1 tunings.
7946         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7947         * doc/invoke.texi: Add details about znver1
7949 2015-10-06  Richard Biener  <rguenther@suse.de>
7951         PR tree-optimization/67859
7952         * tree-ssa-pre.c (create_expression_by_pieces): Properly
7953         discard not inserted stmts.
7955 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
7957         * doc/extend.texi (Template Instantiation): Reorder options and
7958         de-emphasize -frepo.
7959         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7960         example instead of -frepo.
7962 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7964         PR c/65345
7965         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7966         use create_tmp_var_raw rather than create_tmp_var.
7968 2015-10-06  Richard Biener  <rguenther@suse.de>
7970         * tree-vectorizer.h (vec_info): New base class for...
7971         (_loop_vec_info): ... this and ...
7972         (_bb_vec_info): ... this.
7973         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7974         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7975         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7976         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7977         vect_destroy_datarefs): Adjust interface to take a vec_info *
7978         rather than both a loop_vec_info and a bb_vec_info argument.
7979         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7980         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7981         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7982         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7983         accordingly.
7984         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7985         (destroy_loop_vec_info, vect_analyze_loop_2,
7986         vect_is_simple_reduction_1, get_initial_def_for_induction,
7987         vect_create_epilog_for_reduction, vectorizable_reduction,
7988         vectorizable_live_operation, vect_transform_loop): Adjust.
7989         * tree-vect-patterns.c (type_conversion_p,
7990         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7991         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7992         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7993         check_bool_pattern, vect_recog_bool_pattern,
7994         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7995         * tree-vect-slp.c (vect_get_and_check_slp_defs,
7996         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7997         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7998         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7999         (new_bb_vec_info): Initialize base classs.
8000         * tree-vect-stmts.c (record_stmt_cost, process_use,
8001         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
8002         vectorizable_mask_load_store, vectorizable_call,
8003         vectorizable_simd_clone_call, vectorizable_conversion,
8004         vectorizable_assignment, vectorizable_shift,
8005         vectorizable_operation, vectorizable_store,
8006         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
8007         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
8008         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
8010 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
8012         PR c/65345
8013         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
8014         create_tmp_var_raw rather than create_tmp_var.
8016 2015-10-05  Marek Polacek  <polacek@redhat.com>
8018         * tree-ssa-loop-im.c
8019         (move_computations_dom_walker::before_dom_children): Don't set
8020         SSA_NAME_ANTI_RANGE_P.
8021         * tree-ssa-phiopt.c (value_replacement): Likewise.
8023 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8024             Sebastian Pop  <s.pop@samsung.com>
8026         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
8028 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8029             Sebastian Pop  <s.pop@samsung.com>
8031         * graphite-poly.c (new_gimple_poly_bb): ... here.
8032         (free_data_refs_aux): ... here.
8033         (free_gimple_poly_bb): ... here.
8034         (remove_gbbs_in_scop): ... here.
8035         (new_scop): Call new_sese.
8036         (free_scop): Call remove_gbbs_in_scop and free_sese.
8037         * graphite-poly.h (base_alias_pair): ... here.
8038         (new_gimple_poly_bb): Declare.
8039         (free_gimple_poly_bb): Declare.
8040         * graphite-scop-detection.c (parameter_index_in_region_1):
8041         (parameter_index_in_region): ... here.
8042         (scan_tree_for_params): ... here.
8043         (find_params_in_bb): ... here.
8044         (find_scop_parameters): ... here.
8045         (build_scops): Call find_scop_parameters.
8046         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
8047         (free_scops): Move...
8048         (single_pred_cond_non_loop_exit): Move...
8049         (sese_dom_walker::before_dom_children): Move...
8050         (sese_dom_walker::after_dom_children): Move...
8051         (build_poly_scop): Move...
8052         * graphite-sese-to-poly.h (base_alias_pair): Move...
8053         * graphite.c (free_scops): ... here.
8055 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
8056             Sebastian Pop  <s.pop@samsung.com>
8058         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
8059         (trivially_empty_bb_p): Move...
8060         (same_close_phi_node): Move...
8061         (new_gimple_poly_bb): Move...
8062         (compare_bb_depths): Move...
8063         (graphite_sort_dominated_info): Move...
8064         (remove_duplicate_close_phi): Move...
8065         (make_close_phi_nodes_unique): Move...
8066         (canonicalize_loop_closed_ssa): Move...
8067         (canonicalize_loop_closed_ssa_form): Move...
8068         (loop_ivs_can_be_represented): Move...
8069         (single_pred_cond_non_loop_exit): Move...
8070         (graphite_can_represent_init): Move...
8071         (graphite_can_represent_scev): Move...
8072         (stmt_has_simple_data_refs_p): Move...
8073         (stmt_has_side_effects):  Move...
8074         (graphite_can_represent_stmt): Move...
8075         (scop_detection): ... here.
8076         (sese_dom_walker): ... and here.
8077         (build_scops): Call all moved functions.
8078         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
8079         (all_non_dominated_preds_marked_p): Move...
8080         (build_scop_bbs_1): Move...
8081         (build_scop_bbs): Move...
8082         (set_scop_parameter_dim): Move...
8083         (nb_pbbs_in_loops): Move...
8084         (build_poly_scop): Do not call all the moved functions.
8086 2015-10-05  Martin Jambor  <mjambor@suse.cz>
8087             Jan Hubicka  <hubicka@ucw.cz>
8089         * ipa-cp.c (ipcp_alignment_lattice): New type.
8090         (ipcp_param_lattices): Use the above to represent alignment.
8091         (ipcp_alignment_lattice::print): New function.
8092         (print_all_lattices): Use it to print alignment information.
8093         (ipcp_alignment_lattice::top_p): New function.
8094         (ipcp_alignment_lattice::bottom_p): Likewise.
8095         (ipcp_alignment_lattice::set_to_bottom): Likewise.
8096         (ipcp_alignment_lattice::meet_with_1): Likewise.
8097         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
8098         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
8099         (initialize_node_lattices): Likewise.
8100         (propagate_alignment_accross_jump_function): Work with the new class
8101         for alignment lattices.
8102         (propagate_constants_accross_call): Pass only the alignment lattice to
8103         propagate_alignment_accross_jump_function.
8104         (ipcp_store_alignment_results): Work with the new class for alignment
8105         lattices.
8107 2015-10-05  Marek Polacek  <polacek@redhat.com>
8109         PR tree-optimization/67821
8110         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
8112 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
8114         PR other/65021
8115         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
8116         function to...
8117         (mkoffload_cleanup): ... this.  Adjust all users.
8118         (maybe_unlink): Look at save_temps and verbose flags instead of
8119         debug flag.
8120         (main): Parse "-save-temps" flag.
8121         (generate_target_descr_file, generate_target_offloadend_file)
8122         (generate_host_descr_file, prepare_target_image): Pass it on.
8123         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
8124         (mkoffload_cleanup): New function.
8125         (maybe_unlink): Look at save_temps and verbose flags instead of
8126         debug flag.
8127         (main): Instead of calling utils_cleanup, register atexit handler
8128         for mkoffload_cleanup.
8129         (main): Parse "-save-temps" flag.
8130         (compile_native, main): Pass it on.
8131         * lto-wrapper.c (compile_offload_image): Likewise.
8133 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8135         * gimple.h (gimple_op_ptr): Require a non const gimple *.
8136         (gimple_assign_lhs_ptr): Likewise.
8137         (gimple_assign_rhs1_ptr): Likewise.
8138         (gimple_assign_rhs2_ptr): Likewise.
8139         (gimple_assign_rhs3_ptr): Likewise.
8140         (gimple_call_lhs_ptr): Likewise.
8141         (gimple_call_fn_ptr): Likewise.
8142         (gimple_call_chain_ptr): Likewise.
8143                 (gimple_call_arg_ptr): Likewise.
8144                 (gimple_cond_lhs_ptr): Likewise.
8145         (gimple_cond_rhs_ptr): Likewise.
8146         (gimple_switch_index_ptr): Likewise.
8147         (gimple_return_retval_ptr): Likewise.
8149 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8151         * gimple.h (gimple_asm_input_op_ptr): Remove.
8152         (gimple_asm_output_op_ptr): Likewise.
8154 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8156         * gimple.h (gimple_location_ptr): Remove.
8157         * tree-vrp.c (check_all_array_refs): Adjust.
8159 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8161         * tree-ssa-operands.c (build_uses): store tree * instead of
8162         tree.
8163         (finalize_ssa_uses): Adjust.
8164         (append_use): Likewise.
8165         (verify_ssa_operands): Likewise.
8167 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8169         * real.h (build_real_truncate): Declare.
8170         * tree.c (build_real_truncate): New function.
8171         (strip_float_extensions): Use it.
8172         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
8173         (fold_builtin_hypot, fold_builtin_pow): Likewise.
8174         * match.pd: Likewise.
8176 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
8177            Jiong Wang  <jiong.wang@arm.com>
8179         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
8181 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8183         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
8184         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
8185         (aarch64_print_operand, aarch64_float_const_representable_p)
8186         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
8187         instead of REAL_VALUE_FROM_CONST_DOUBLE.
8188         * config/arc/arc.c (arc_print_operand): Likewise.
8189         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
8190         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
8191         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
8192         Likewise.
8193         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
8194         (consttable_16): Likewise.
8195         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
8196         * config/avr/avr.c (avr_print_operand): Likewise.
8197         * config/bfin/bfin.md: Likewise (in a define_split).
8198         * config/c6x/c6x.md: Likewise (in a define_split).
8199         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
8200         (cr16_print_operand): Likewise.
8201         * config/cris/cris.c (cris_print_operand): Likewise.
8202         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
8203         * config/fr30/fr30.c (fr30_print_operand): Likewise.
8204         (fr30_const_double_is_zero): Likewise.
8205         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
8206         * config/frv/frv.md: Likewise (in a define_split).
8207         * config/frv/predicates.md (int_2word_operand): Likewise.
8208         * config/h8300/h8300.c (h8300_print_operand): Likewise.
8209         * config/i386/i386.c (standard_80387_constant_p): Likewise.
8210         (ix86_print_operand, ix86_split_to_parts): Likewise.
8211         * config/i386/i386.md: Likewise (in a define_split).
8212         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
8213         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
8214         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
8215         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
8216         (print_operand): Likewise.
8217         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
8218         * config/mep/mep.md: Likewise (in define_split).
8219         * config/microblaze/microblaze.c (microblaze_const_double_ok)
8220         (print_operand): Likewise.
8221         * config/mips/mips.md (consttable_float): Likewise.
8222         * config/mmix/mmix.c (mmix_intval): Likewise.
8223         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
8224         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
8225         * config/pa/pa.c (pa_singlemove_string): Likewise.
8226         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
8227         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
8228         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
8229         (output_toc): Likewise.
8230         * config/rs6000/rs6000.md: Likewise (in define_splits).
8231         * config/rx/rx.c (rx_print_operand): Likewise.
8232         * config/s390/s390.c (s390_output_pool_entry): Likewise.
8233         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8234         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
8235         (and also in define_splits).
8236         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
8237         (fp_high_losum_p): Likewise.
8238         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
8239         (*movsf_high): Likewise.
8240         * config/spu/spu.c (const_double_to_hwint): Likewise.
8241         * config/v850/v850.c (const_double_split): Likewise.
8242         * config/vax/vax.c (vax_float_literal): Likewise.
8243         * config/visium/visium.c (visium_expand_copysign): Likewise.
8244         * config/visium/visium.md: Likewise (in define_split).
8245         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8246         * config/xtensa/xtensa.c (print_operand): Likewise.
8247         (xtensa_output_literal): Likewise.
8248         * cprop.c (implicit_set_cond_p): Likewise.
8249         * dwarf2out.c (insert_float): Likewise.
8250         * expmed.c (expand_mult, make_tree): Likewise.
8251         * expr.c (compress_float_constant): Likewise.
8252         * rtlanal.c (split_double): Likewise.
8253         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8254         (simplify_const_unary_operation, simplify_binary_operation_1)
8255         (simplify_const_binary_operation): Likewise.
8256         (simplify_const_relational_operation): Likewise.
8257         * varasm.c (output_constant_pool_2): Likewise.
8259 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8261         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
8262         instead of CONST_DOUBLE_FROM_REAL_VALUE.
8263         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
8264         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
8265         instead of CONST_DOUBLE_FROM_REAL_VALUE.
8266         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
8267         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
8268         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
8269         (ix86_emit_swsqrtsf): Likewise.
8270         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
8271         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
8272         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8273         * config/pa/pa.c (pa_expand_builtin): Likewise.
8274         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
8275         (rs6000_scale_v2df): Likewise.
8276         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
8277         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
8278         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
8279         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
8280         (vec_ctul): Likewise.
8281         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
8282         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
8283         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
8284         * cse.c (fold_rtx): Likewise.
8285         * emit-rtl.c (immed_double_const): Likewise (in comments).
8286         (init_emit_once): Likewise.
8287         * expr.c (compress_float_constant, expand_expr_real_1)
8288         (const_vector_from_tree): Likewise.
8289         * optabs.c (expand_float, expand_fix): Likewise.
8290         * reg-stack.c (reg_to_stack): Likewise.
8291         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8292         (simplify_const_unary_operation, simplify_binary_operation_1)
8293         (simplify_const_binary_operation, simplify_relational_operation)
8294         (simplify_immed_subreg): Likewise.
8296 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8298         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
8299         * doc/tm.texi: Regenerate.
8300         * real.h (REAL_ARITHMETIC): Delete.
8301         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
8302         (ix86_expand_round_sse4): Use real_arithmetic instead of
8303         REAL_ARITHMETIC.
8304         * config/i386/sse.md (round<mode>2): Likewise.
8305         * rtl.h (rtx_to_tree_code): Likewise (in comment).
8306         * explow.c (rtx_to_tree_code): Likewise (in comment).
8307         * match.pd: Likewise.
8308         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8309         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8310         (expand_pow_as_sqrts): Likewise.
8311         * tree-pretty-print.c (dump_generic_node): Remove code that
8312         was conditional on REAL_ARITHMETIC being undefined.
8314 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8316         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
8317         * doc/tm.texi: Regenerate.
8318         * real.h (real_less): Declare.
8319         (REAL_VALUES_LESS): Delete.
8320         * real.c (real_less): New function.
8321         (real_compare): Use it.
8322         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
8323         of REAL_VALUES_LESS.
8324         * config/microblaze/microblaze.c (microblaze_const_double_ok):
8325         Likewise.
8326         * fold-const.c (fold_convert_const_int_from_real): Likewise.
8327         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8328         (simplify_const_relational_operation): Likewise.
8329         * tree-call-cdce.c (check_pow): Likewise.
8330         (gen_conditions_for_pow_cst_base): Likewise.
8332 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8334         * real.h (REAL_VALUES_IDENTICAL): Delete.
8335         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
8336         instead of REAL_VALUES_IDENTICAL.
8337         * fold-const.c (operand_equal_p): Likewise.
8338         * ipa-icf.c (sem_variable::equals): Likewise.
8339         * tree-complex.c (some_nonzerop): Likewise.
8340         (expand_complex_multiplication): Likewise.
8341         * tree.c (simple_cst_equal): Likewise.
8342         * varasm.c (compare_constant): Likewise.
8344 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
8346         * real.h (real_equal): Declare.
8347         (REAL_VALUES_EQUAL): Delete.
8348         * real.c (real_equal): New function.
8349         (real_compare): Use it.
8350         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
8351         * doc/tm.texi: Regenerate.
8352         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
8353         real_equal instead of REAL_VALUES_EQUAL.
8354         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
8355         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
8356         (fp_const_from_val): Likewise.
8357         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
8358         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
8359         (floating_exact_log2): Likewise.
8360         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8361         * config/vax/vax.c (vax_float_literal): Likewise.
8362         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8363         * cprop.c (implicit_set_cond_p): Likewise.
8364         * expmed.c (expand_mult): Likewise.
8365         * fold-const.c (const_binop): Likewise.
8366         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8367         (simplify_const_binary_operation): Likewise.
8368         (simplify_const_relational_operation): Likewise.
8369         * tree-call-cdce.c (check_pow): Likewise.
8370         (gen_conditions_for_pow_cst_base): Likewise.
8371         * tree-inline.c (estimate_num_insns): Likewise.
8372         * tree-ssa-dom.c (record_equality): Likewise.
8373         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8374         (gimple_expand_builtin_pow): Likewise.
8375         (pass_optimize_widening_mul::execute): Likewise.
8376         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8377         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8378         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8380 2015-10-05  Richard Biener  <rguenther@suse.de>
8382         PR ipa/67783
8383         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8384         consider loop header PHI defs as IVs.
8386 2015-10-05  Richard Biener  <rguenther@suse.de>
8388         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8389         call handling ...
8390         (create_expression_by_pieces): ... here and build GIMPLE
8391         calls directly.  Use gimple_build API and avoid force_gimple_operand.
8392         (insert_into_preds_of_block): Simplify.
8393         (do_regular_insertion): Add comment.
8395 2015-10-04  Jason Merrill  <jason@redhat.com>
8397         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8399 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
8401         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8402         check for general register.
8403         (ix86_emit_save_regs): Ditto.
8404         (ix86_emit_save_regs_using_mov): Ditto.
8405         (ix86_emit_restore_regs_using_pop): Ditto.
8406         (ix86_emit_restore_regs_using_mov): Ditto.
8408 2015-10-03  Marek Polacek  <polacek@redhat.com>
8410         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8411         (insn-dfatab.o): Likewise.
8413 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
8415         * config.gcc (xtensa*-*-uclinux*): New configuration.
8416         * config/xtensa/uclinux.h: New file.
8417         * config/xtensa/uclinux.opt: New file.
8419 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
8421         * doc/cpp.texi (Standard Predefined Macros): Document value of
8422         __cplusplus for C++14.
8424 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
8426         * gcc.c (process_command): Use spec_machine rather than
8427         spec_host_machine to build tooldir_prefix2.
8429 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8430             Bernd Schmidt  <bernds@codesourcery.com>
8432         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8433         (Token, Stmt): Remove structs.
8434         (decls, vars, fns): Remove variables.
8435         (alloc_comment, append_stmt, is_keyword): Remove macros.
8436         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8437         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8438         (parse_init, parse_file): Remove functions.
8439         (read_file): Accept a pointer to a length and store into it.
8440         (process): Don't try to parse the input file, just write it out as
8441         a string, but looking for maps.  Also write out the length.
8442         (main): Don't use "-S" to compile PTX code.
8444 2015-10-02  Jeff Law  <law@redhat.com>
8446         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8447         fixups.
8449 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8451         PR target/67822
8452         * config/nvptx/mkoffload.c (main): Scan the argument vector for
8453         -fopenmp, and skip generating an offloading image if specified.
8455 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
8457         * system.h (ROUND_UP): New macro definition.
8458         (ROUND_DOWN): Ditto.
8459         * ggc-page.c (ROUND_UP): Remove local macro definition.
8460         (PAGE_ALIGN): Implement using ROUND_UP macro.
8462         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8463         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8464         to align values.
8465         (ix86_compute_frame_layout): Ditto.
8466         (ix86_expand_prologue): Ditto.
8467         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8468         to round down values.
8469         (expand_set_or_movmem_via_rep): Ditto.
8471 2015-10-02  Marek Polacek  <polacek@redhat.com>
8473         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
8475 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
8477         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
8478         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
8479         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
8480         (free_gimple_bb): Renamed free_gimple_poly_bb.
8481         (try_generate_gimple_bb): Hoist loop invariant code.
8482         (analyze_drs_in_stmts): Same.
8483         (build_scop_drs): Call renamed functions.
8484         (new_pbb_from_pbb): Same.
8485         (scop_ivs_can_be_represented): Delete as functionality now moved to
8486         graphite-scop-detection.c
8487         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
8489 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
8491         * graphite-scop-detection.c (stmt_has_side_effects): New function
8492           outlined from stmt_simple_for_scop_p.
8493         (graphite_can_represent_stmt): Same.
8494         (stmt_simple_for_scop_p): Moved code out of this function for better
8495         readability.
8497 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8499         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
8500         F_AVX512IFMA.
8501         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
8503 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8505         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
8507 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
8509         PR rtl-optimization/67756
8510         * lra-constraints.c (match_reload): Add a new parameter.  Use it
8511         for creating a pseudo with the same value.
8512         (curr_insn_transform): Pass a new argument to match_reload.
8514 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8516         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8517         (expand_vec_perm_even_odd_1): Handle V64QImode.
8518         (ix86_expand_vec_perm_const_1): Try expansion with
8519         expand_vec_perm_even_odd_trunc as well.
8520         * config/i386/sse.md (VI124_AVX512F): Rename to ...
8521         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8522         to V54QI.
8523         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8524         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8525         to V32HI and V16SI.
8526         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8527         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8528         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8529         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8530         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8531         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8533 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8535         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8536         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8538 2015-10-02  Jason Merrill  <jason@redhat.com>
8540         PR c/59218
8541         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8542         (diagnose_tm_1_op): Also diagnose volatile accesses in
8543         transaction_safe function.
8545 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
8547         * system.h (malloc.h): Don't include obsolete header.
8549 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8551         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8552         (TLS_SECTION_ASM_FLAG): Delete.
8554 2015-10-02  Marek Polacek  <polacek@redhat.com>
8556         PR c/64249
8557         * doc/invoke.texi: Document -Wduplicated-cond.
8558         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8559         (insn-dfatab.o): Likewise.
8560         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8561         warning.
8563 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
8565         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8566         sequences.
8568 2015-10-02  Renlin Li  <renlin.li@arm.com>
8570         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8572 2015-10-02  Renlin Li  <renlin.li@arm.com>
8574         PR target/66776
8575         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8577 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8579         PR rtl-optimization/67786
8580         PR rtl-optimization/67787
8581         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8582         it modifies a reg used in the condition calculation.
8584 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
8586         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8587         alternatives for reads from memory and moves from general-purpose
8588         registers.
8589         (*aarch64_combinez_be<mode>): Likewise.
8591 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
8593         PR target/51726
8594         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8595         selectany within this function without need to keep attribute.
8596         (i386_pe_encode_section_info): Remove selectany-code.
8598 2015-10-02  Richard Biener  <rguenther@suse.de>
8600         * tree-ssa-sccvn.c (has_VN_INFO): New function.
8601         (free_scc_vn): Use it.
8602         (visit_use): Remove dead code and refactor to use gassign
8603         and use less indentation.
8605 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8607         PR target/67788
8608         PR target/67789
8609         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8610         (rs6000_cannot_copy_insn_p): New function.
8611         * config/rs6000/rs6000.md (cannot_copy): New attribute.
8612         (load_toc_v4_PIC_1_normal): Set cannot_copy.
8613         (load_toc_v4_PIC_1_476): Ditto.
8615 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8617         * graphite-scop-detection.c (struct sese_l): New conversion constructor
8618         so that this type can be pushed into a vec.
8619         (class scop_builder): use sese_l to collect scops.
8620         (get_scops): New getter function.
8621         (remove_intersecting_scops): Use sese_l instead of scops_p.
8622         (intersects): Same.
8623         (add_scop): Same.
8624         (subsumes): Same.
8625         (remove_subscops): Same.
8626         (build_scops): Add scops to vec<scops_p> once all the scops have been
8627         detected.
8629 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8631         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8632         Renamed type from gimple_bb_p to gimple_poly_bb_p.
8633         (translate_isl_ast_node_user): Same.
8634         * graphite-poly.c (new_poly_bb): Same.
8635         * graphite-poly.h (gbb_from_bb): Same.
8636         * sese.h: Same.
8637         * graphite-sese-to-poly.c (new_gimple_bb):
8638         gimple_bb_p -> gimple_poly_bb_p
8639         (build_scop_scattering): Same.
8640         (find_params_in_bb): Same.
8641         (add_conditions_to_domain): Same.
8642         (sese_dom_walker::before_dom_children): Same.
8643         (analyze_drs_in_stmts): Same.
8644         (new_pbb_from_pbb): Same.
8645         (free_data_refs_aux): New pointer to type base_alias_pair.
8646         * graphite-sese-to-poly.h: Same.
8647         * sese.c (if_region_set_false_region): Fixed Indentation.
8648         (move_sese_in_condition): Same.
8650 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8651             Aditya Kumar  <aditya.k7@samsung.com>
8653         PR tree-optimization/66980
8654         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8655         when data reference analysis has failed.
8657 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8658             Aditya Kumar  <aditya.k7@samsung.com>
8660         PR tree-optimization/67754
8661         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8662         scev analysis on the same loop nest as analyze_drs_in_stmts.
8663         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8664         renamed...
8665         (try_generate_gimple_bb): Call outermost_loop_in_sese.
8666         (analyze_drs_in_stmts): Same.
8667         * sese.c (outermost_loop_in_sese): ...here.
8669 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8670             Aditya Kumar  <aditya.k7@samsung.com>
8672         PR tree-optimization/67754
8673         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8674         recursion on the inner loops.
8676 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8678         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8679         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8680         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8681         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8682         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8684 2015-10-01  Marek Polacek  <polacek@redhat.com>
8686         PR c/65345
8687         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8688         create_tmp_var_raw rather than create_tmp_var.
8690 2015-10-01  Marek Polacek  <polacek@redhat.com>
8692         PR tree-optimization/67769
8693         * tree-ssa-phiopt.c (conditional_replacement): Call
8694         reset_flow_sensitive_info_in_bb.
8695         (minmax_replacement): Likewise.
8696         (abs_replacement): Likewise.
8698 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
8700         * builtins.c: Don't include gomp-constants.h.
8701         (fold_builtin_1): Don't fold acc_on_device here.
8702         * gimple-fold.c: Include gomp-constants.h.
8703         (gimple_fold_builtin_acc_on_device): New.
8704         (gimple_fold_builtin): Call it.
8706 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8708         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8709         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8711 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
8713         * config/arm/aarch-common-protos.h
8714         (aarch_accumulator_forwarding): New.
8715         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8716         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8717         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8718         * config/arm/cortex-a53.md: Rewrite.
8720 2015-10-01  Richard Biener  <rguenther@suse.de>
8722         * gimple-match.h (mprts_hook): Declare.
8723         * gimple-match.head.c (mprts_hook): Define.
8724         (maybe_push_res_to_seq): Use new hook.
8725         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8726         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8727         (vn_ssa_aux::has_constants): Remove.
8728         * tree-ssa-sccvn.c: Include gimple-match.h.
8729         (VN_INFO_GET): Assert we don't re-use SSA names.
8730         (vn_get_expr_for): Remove.
8731         (expr_has_constants): Likewise.
8732         (stmt_has_constants): Likewise.
8733         (simplify_binary_expression): Likewise.
8734         (simplify_unary_expression): Likewise.
8735         (vn_lookup_simplify_result): New hook.
8736         (visit_copy): Adjust.
8737         (visit_reference_op_call): Likewise.
8738         (visit_phi): Likewise.
8739         (visit_use): Likewise.
8740         (process_scc): Likewise.
8741         (init_scc_vn): Likewise.
8742         (visit_reference_op_load): Likewise.  Use match-and-simplify and
8743         a gimple seq for inserted expressions.
8744         (try_to_simplify): Remove GENERIC stmt combining code.
8745         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8746         * tree-ssa-pre.c (eliminate_insert): Adjust.
8747         (eliminate_dom_walker::before_dom_children): Likewise.
8749 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8751         * doc/invoke.texi (Optimization Options): Add
8752         -freorder-blocks-algorithm=.
8753         (Optimize Options) <-O>: Add -freorder-blocks.
8754         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
8755         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8756         <-freorder-blocks>: Also enabled at levels -O and -Os.
8757         <-freorder-blocks-algorithm=>: Document new option.
8759 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8761         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8762         with flag_reorder_blocks_algorithm.
8763         * common.opt (freorder-blocks-algorithm=): New flag.
8764         (reorder_blocks_algorithm): New enum.
8765         * flag-types.h (reorder_blocks_algorithm): New enum.
8766         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8767         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8769 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8771         * bb-reorder.c: Add intro comment.
8772         (reorder_basic_blocks_software_trace_cache): Print a header to
8773         the dump file.
8774         (edge_order): New function.
8775         (reorder_basic_blocks_simple): New function.
8776         (reorder_basic_blocks): Choose between the STC and the simple
8777         algorithms (always choose the former).
8779 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8781         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8782         function, factored out from ...
8783         (reorder_basic_blocks): ... here.
8785 2015-10-01  Tom de Vries  <tom@codesourcery.com>
8787         * tree-cfg.c (dump_function_to_file): Dump function attributes using
8788         __attribute__(()) string.  Move dumping of function attributes to before
8789         function name.
8791 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
8793         PR target/66870
8794         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8795         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8796         based on gold linker version.
8797         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8798         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8799         * configure, config.in: Regenerate.
8801 2015-10-01  Alan Modra  <amodra@gmail.com>
8803         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8804         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8805         (rs6000_output_mi_thunk): Likewise.
8807 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8809         * config/nvptx/mkoffload.c (process): Change offload data format.
8811 2015-09-30  Jeff Law  <law@redhat.com>
8813         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8814         with constant conditions.
8815         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8816         (remove_ctrl_stmt_and_useless_edges): No longer static.
8817         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8818         (remove_ctrl_stmt_and_useless_edges): Likewise.
8820 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8821             Cesar Philippidis  <cesar@codesourcery.com>
8823         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8824         (TARGET_GOACC_VALIDATE_DIMS): Override.
8825         * target.def (TARGET_GOACC): New target hook prefix.
8826         (validate_dims): New hook.
8827         * targhooks.h (default_goacc_validate_dims): New.
8828         * omp-low.c (oacc_validate_dims): New.
8829         (execute_oacc_device_lower): New.
8830         (default_goacc_validate_dims): New.
8831         (pass_data_oacc_device_lower): New.
8832         (pass_oacc_device_lower): New pass.
8833         (make_pass_oacc_device_lower): New.
8834         * tree-pass.h (make_pass_oacc_device_lower): Declare.
8835         * passes.def (pass_oacc_device_lower): Add it.
8836         * doc/tm.texi: Rebuilt.
8837         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8838         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8840 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8842         PR rtl-optimization/67037
8843         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8845 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
8847         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8848         * passes.c: Include tree-ssanames.h.
8849         (execute_function_todo): Flush the pending free SSA_NAMEs after
8850         eliminating unreachable basic blocks.
8851         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8852         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8853         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8854         (flush_ssanames_freelist): New function.
8855         (release_ssaname_fn): Put released names on the queue.
8856         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8857         * tree-ssanames.h (flush_ssanames_freelist): Declare.
8859 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8861         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8862         (generate_target_descr_file, generate_target_offloadend_file)
8863         (generate_host_descr_file, prepare_target_image): Pass it on.
8864         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8865         (compile_native, main): Pass it on.
8866         * lto-wrapper.c (compile_offload_image): Likewise.
8868 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8869             Ilya Verbin  <ilya.verbin@intel.com>
8870             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8872         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8873         (prepare_target_image, main): Refactor argv building to use
8874         obstacks.
8876 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8878         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8879         * config/spu/spu.c (spu_expand_atomic_op): New function.
8880         * config/spu/spu.md (AINT): New mode iterator.
8881         (ATOMIC): New code iterator.
8882         (atomic_name, atomic_pred): New code predicates.
8883         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8884         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8885         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8886         "atomic_<atomic_name>_fetch<mode>"): Likewise.
8888 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
8890         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8891         debug insns.
8892         (scalar_chain::convert_reg): Likewise.
8894 2015-09-30  Richard Biener  <rguenther@suse.de>
8896         * builtins.c: Add comment that no new simplifications should
8897         be added here.
8899 2015-09-30  Marek Polacek  <polacek@redhat.com>
8901         PR tree-optimization/67690
8902         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8903         reset_flow_sensitive_info_in_bb.
8904         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8905         * tree-ssanames.c: Include "gimple-iterator.h".
8906         (reset_flow_sensitive_info_in_bb): New function.
8907         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8909 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8911         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8912         variable, replacing it with...
8913         (offload_abi): ... this new variable.  Adjust all users.
8914         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8916 2015-09-30  Matthias Klose  <doko@ubuntu.com>
8918         * configure.ac: Remove extraneous ;;.
8919         * configure: Regenerate.
8921 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
8923         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8924         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8925         predicate, disallow register for operand 2.
8927 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
8929         * graphite-dependences.c (scop_get_dependences): Moved in down
8930         in order to be visible to its caller.
8931         * graphite-poly.h: Removed compute_deps, and extend_schedule.
8933 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8934             Aditya Kumar  <aditya.k7@samsung.com>
8936         PR tree-optimization/67754
8937         * graphite-optimize-isl.c (optimize_isl): Call
8938         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8940 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8942         * builtins.c (expand_builtin_acc_on_device): Delete.
8943         (expand_builtin): Don't call it.
8944         (fold_builtin_1): Fold acc_on_device.
8946 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8948         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8949         (ix86_nsaved_sseregs): Likewise.
8951 2015-09-29  Jeff Law  <law@redhat.com>
8953         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8954         computation of unused value.
8956         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8957         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8958         inline macro expansion.
8960         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8962         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8963         (gen_shl_sext): Likewise.
8964         * config/sh/sh.md (divsi3): Likewise.
8965         (imm->ext_dest_operand splitter): Likewise.
8967 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8968             Aditya Kumar  <aditya.k7@samsung.com>
8970         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8971         (nb_data_writes_in_bb): Remove.
8972         (split_pbb): Remove.
8973         (split_reduction_stmt): Remove.
8974         (is_reduction_operation_p): Remove.
8975         (phi_contains_arg): Remove.
8976         (follow_ssa_with_commutative_ops): Remove.
8977         (detect_commutative_reduction_arg): Remove.
8978         (detect_commutative_reduction_assign): Remove.
8979         (follow_inital_value_to_phi): Remove.
8980         (edge_initial_value_for_loop_phi): Remove.
8981         (initial_value_for_loop_phi): Remove.
8982         (used_outside_reduction): Remove.
8983         (detect_commutative_reduction): Remove.
8984         (translate_scalar_reduction_to_array_for_stmt): Remove.
8985         (remove_phi): Remove.
8986         (dr_indices_valid_in_loop): Remove.
8987         (close_phi_written_to_memory): Remove.
8988         (translate_scalar_reduction_to_array): Remove.
8989         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8990         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8991         (rewrite_commutative_reductions_out_of_ssa): Remove.
8992         (build_poly_scop): Remove call to
8993         rewrite_commutative_reductions_out_of_ssa.
8995 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
8997         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8998         Add new insn types for vector load and store pairs.
8999         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
9000         types "neon_ldp{,_q}".
9001         * config/arm/cortex-a57.md (neon_load_c): Add insn types
9002         "neon_ldp{,_q}".
9003         (neon_store_complex): Add insn types "neon_stp{,_q}".
9004         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
9005         "neon_{ldp,stp}_q".
9007 2015-09-29  Jeff Law  <law@redhat.com>
9009         * config/rx/constraints.md (Int08): Fix undefined left shift
9010         behaviour.
9011         (Sint08, Sint16, Sint24): Likewise.
9012         * config/rx/rx.c (rx_get_stack_layout): Likewise.
9014         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
9015         behaviour.
9017         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
9018         left shift behaviour.
9019         * config/msp430/constraints.md ('L' constraint): Similarly.
9020         ('Ys' constraint): Similarly.
9022 2015-09-29  Richard Biener  <rguenther@suse.de>
9024         PR tree-optimization/67170
9025         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
9026         the translate function pointer parameter to get the
9027         bool whether to disambiguate only by reference.
9028         (walk_non_aliased_vuses): Likewise.
9029         * tree-ssa-alias.c (maybe_skip_until): Adjust.
9030         (get_continuation_for_phi_1): Likewise.
9031         (get_continuation_for_phi): Likewise.
9032         (walk_non_aliased_vuses): Likewise.
9033         * tree-ssa-sccvn.c (const_parms): New bitmap.
9034         (vn_reference_lookup_3): Adjust for interface change.
9035         Disambiguate parameters pointing to readonly memory.
9036         (free_scc_vn): Free const_parms.
9037         (run_scc_vn): Initialize const_parms from a fn spec attribute.
9039 2015-09-29  Richard Biener  <rguenther@suse.de>
9041         PR tree-optimization/67741
9042         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
9043         builtin calls with correct signature.
9045 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
9047         PR target/65105
9048         * config/i386/i386.c: Include dbgcnt.h.
9049         (has_non_address_hard_reg): New.
9050         (convertible_comparison_p): New.
9051         (scalar_to_vector_candidate_p): New.
9052         (remove_non_convertible_regs): New.
9053         (scalar_chain): New.
9054         (scalar_chain::scalar_chain): New.
9055         (scalar_chain::~scalar_chain): New.
9056         (scalar_chain::add_to_queue): New.
9057         (scalar_chain::mark_dual_mode_def): New.
9058         (scalar_chain::analyze_register_chain): New.
9059         (scalar_chain::add_insn): New.
9060         (scalar_chain::build): New.
9061         (scalar_chain::compute_convert_gain): New.
9062         (scalar_chain::replace_with_subreg): New.
9063         (scalar_chain::replace_with_subreg_in_insn): New.
9064         (scalar_chain::emit_conversion_insns): New.
9065         (scalar_chain::make_vector_copies): New.
9066         (scalar_chain::convert_reg): New.
9067         (scalar_chain::convert_op): New.
9068         (scalar_chain::convert_insn): New.
9069         (scalar_chain::convert): New.
9070         (convert_scalars_to_vector): New.
9071         (pass_data_stv): New.
9072         (pass_stv): New.
9073         (make_pass_stv): New.
9074         (ix86_option_override): Created and register stv pass.
9075         (flag_opts): Add -mstv.
9076         (ix86_option_override_internal): Likewise.
9077         * config/i386/i386.md (SWIM1248x): New.
9078         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
9079         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
9080         (*anddi3_doubleword): New.
9081         (*zext<mode>_doubleword): New.
9082         (*zextsi_doubleword): New.
9083         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
9084         (*<code>di3_doubleword): New.
9085         * config/i386/i386.opt (mstv): New.
9086         * dbgcnt.def (stv_conversion): New.
9088 2015-09-29  Tom de Vries  <tom@codesourcery.com>
9090         * tree-cfg.c (dump_function_to_file): Dump function attributes.
9092 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9094         PR target/67716
9095         * config/sh/sh.c (sh_override_options_after_change): New.
9096         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9097         (sh_option_override): Move align_loops, align_jumps and
9098         align_functions handling into sh_override_options_after_change.
9100 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
9102         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
9103         (nvptx_record_offload_symbol): Record function execution geometry.
9104         * config/nvptx/mkoffload.c (process): Include launch geometry in
9105         function data.
9106         * omp-low.c (oacc_launch_pack): New.
9107         (replace_oacc_fn_attrib): New.
9108         (set_oacc_fn_attrib): New.
9109         (get_oacc_fn_attrib): New.
9110         (expand_omp_target): Create keyed varargs for GOACC_parallel call
9111         generation.
9112         * omp-low.h (get_oacc_fn_attrib): Declare.
9113         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
9114         (DEF_FUNCTION_TYPE_VAR_11): Delete.
9115         * tree.h (OMP_CLAUSE_EXPR): New.
9116         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
9118 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9119             Sebastian Pop  <s.pop@samsung.com>
9121         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
9123 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9124             Sebastian Pop  <s.pop@samsung.com>
9126         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
9127         * graphite-scop-detection.c (struct sese_l): New type.
9128         (get_entry_bb): API for getting entry bb of SESE.
9129         (get_exit_bb): API for getting exit bb of SESE.
9130         (class debug_printer): New type.  Simple printer in debug mode.
9131         (trivially_empty_bb_p): New.  Return true when BB is empty or
9132         contains only debug instructions.
9133         (graphite_can_represent_expr): Call scalar_evoution_in_region
9134         instead of analyze_scalar_evolution.  Pass in scop instead of only
9135         the scop entry.
9136         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
9137         scop entry.
9138         (stmt_simple_for_scop_p): Same.
9139         (harmful_stmt_in_bb): Same.
9140         (graphite_can_represent_loop): Deleted.
9141         (struct scopdet_info): Deleted.
9142         (scopdet_basic_block_info): Deleted.
9143         (build_scops_1): Deleted.
9144         (bb_in_sd_region): Deleted.
9145         (find_single_entry_edge): Deleted.
9146         (find_single_exit_edge): Deleted.
9147         (create_single_entry_edge): Deleted.
9148         (sd_region_without_exit): Deleted.
9149         (create_single_exit_edge): Deleted.
9150         (unmark_exit_edges): Deleted.
9151         (mark_exit_edges): Deleted.
9152         (create_sese_edges): Deleted.
9153         (build_graphite_scops): Deleted.
9154         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
9155         (build_scops): Use the new scop_builder to build scops.
9156         (dot_all_scops_1): Use the new pretty printer.  Print loop father
9157         as well.
9158         (loop_body_is_valid_scop): New.  Return true if loop body is a
9159         valid scop.
9160         (class scop_builder): New.  Builds SCoPs for polyhedral
9161         optimizations.
9162         (scop_builder): New constructor.
9163         (static sese_l invalid_sese): sese_l with invalid edges.
9164         (get_sese): Get an sese (from a loop) if possible, invalid_sese
9165         otherwise.
9166         (get_nearest_dom_with_single_entry): Get nearest dominator of a
9167         basic_block with single entry.  Return NULL if we get to the
9168         beginning of a function.
9169         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
9170         a basic_block with single exit.  Return NULL if we get to the
9171         beginning of a function.
9172         (print_sese): Pretty-print SESE.
9173         (merge_sese): Merge two SESEs if possible and return the new SESE.
9174         (build_scop_depth): Start building the SCoP within a loop nest.
9175         (build_scop_breadth): Start building the SCoP at a single loop
9176         depth.  Merge adjacent SESEs if valid.
9177         (can_represent_loop_1): Returns true if Graphite can represent
9178         loop inside SCoP.  Helper for can_represent_loop.
9179         (can_represent_loop): Returns true if Graphite can represent LOOP
9180         and all its nested loops in SCoP.
9181         (loop_is_valid_scop): Returns true if LOOP and all its nests
9182         constitute a valid SCoP.
9183         (region_has_one_loop): Returns true of a region has only one loop.
9184         (add_scop): Add SCoP to the list of valid scops.  Removes an
9185         already existing scop if it intersects with or subsumed by this one.
9186         (harmful_stmt_in_region): Returns true if SCoP has any statment
9187         which cannot be represented by Graphite.
9188         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
9189         (remove_subscops): Remove any SCoP from the list of already found
9190         SCoPs, if subsumed by S1.
9191         (intersects): Return true if region bounded by SCoPs S1 and S2
9192         intersect.
9193         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
9194         * graphite.c (print_graphite_scop_statistics):
9195         (print_graphite_statistics): Print SCoP info while debugging.
9196         (graphite_initialize): Early exit in case number of loops in a
9197         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
9198         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9199         (graphite_finalize):
9200         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
9201         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
9202         (recompute_all_dominators): Recalculate POST_DOMINATORS.
9203         * tree-cfg.c (print_loops): Print the function name while printing
9204         loops.
9206 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
9207             Sebastian Pop  <s.pop@samsung.com>
9209         PR tree-optimization/67700
9210         * graphite-sese-to-poly.c (parameter_index_in_region): Call
9211         invariant_in_sese_p_rec.
9212         (extract_affine): Same.
9213         (rewrite_cross_bb_scalar_deps): Call update_ssa.
9214         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
9215         * sese.h (invariant_in_sese_p_rec): Declare.
9217 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
9219         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
9221 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
9223         Revert:
9224         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9225                     Jiong Wang  <jiong.wang@arm.com>
9227         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9228         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9229         (REG_CLASS_NAMES): Likewise.
9230         (REG_CLASS_CONTENTS): Likewise.
9231         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9232         (aarch64_register_move_cost): Likewise.
9233         (aarch64_load_symref_appropriately): Invoke the new added pattern if
9234         possible.
9235         * config/aarch64/constraints.md (Uc0): New constraint.
9237 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
9239         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
9241 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
9243         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
9244         SECTION_EXCLUDE in XO mapping class.
9246 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
9248         PR target/54236
9249         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
9250         and handle ne and eq codes.
9251         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
9252         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
9253         CONST_INT_P.  Use reverse_condition.
9254         (sh_split_treg_set_expr): Likewise.
9256 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
9258         * config/arm/types.md (type): Add rotate_imm.
9259         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
9260         ROR immediate case.
9261         (*rorsi3_insn_uxtw): Likewise.
9262         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
9263         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
9264         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
9266 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9268         PR rtl-optimization/67481
9269         * ifcvt.c (contains_ccmode_rtx_p): New function.
9270         (insn_valid_noce_process_p): Use it.
9272 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9274         PR rtl-optimization/67456
9275         PR rtl-optimization/67464
9276         PR rtl-optimization/67465
9277         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
9278         move in the mode of x.  Handle combination of complex and simple
9279         block pairs as well as the case when one is empty.
9281 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9283         * doc/gimple.texi: Update references to gimple_statement_base.
9284         * gdbhooks.py: Likewise.
9285         * gimple.h: Likewise.
9287 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9289         * config/sparc/driver-sparc.c: map LEON to leon3
9291 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9293         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
9294           and make it inverse to change default
9295         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
9296           supervisor mode
9297         * doc/invoke.texi: Document change of default
9299 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
9301         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
9302         true on %f0 for a target without FPU.
9303         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
9304         without FPU.
9305         (untyped_return): Do not load %f0 for a target without FPU.
9307 2015-09-28  Andrew Pinski  <apinski@cavium.com>
9309         * config/aarch64/aarch64.md (prefetch):
9310         Change the predicate of operand 0 to register_operand.
9312 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
9314         * config/i386/predicates.md (register_sse4nonimm_operand): New
9315         predicate.
9316         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
9317         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
9318         Use register_sse4nonimm_operand as operand 0 predicate.
9319         (*vec_extractv8hi_sse2): Remove insn pattern.
9320         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
9321         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
9323 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
9324             Kaz Kojima  <kkojima@gcc.gnu.org>
9326         PR target/67391
9327         * config/sh/sh-protos.h (sh_lra_p): Declare.
9328         * config/sh/sh.c (sh_lra_p): Make non-static.
9329         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
9330         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
9331         Expand into addsi3_scr if operands[2] if needed.
9332         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
9333         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
9334         (addsi3_scr, *addsi3): New insn_and_split patterns.
9336 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
9338         PR rtl-optimization/64164
9339         PR tree-optimization/67312
9340         PR middle-end/67340
9341         PR middle-end/67490
9342         PR bootstrap/67597
9343         * cfgexpand.c (parm_in_stack_slot_p): Remove.
9344         (ssa_default_def_partition): Remove.
9345         (get_rtl_for_parm_ssa_default_def): Remove.
9346         (set_rtl): Check that RTL assignments match expectations.
9347         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
9348         default def location for params and results.  Record SSA names
9349         or types in REG and MEM attrs, respectively.
9350         (set_parm_rtl): New.
9351         (expand_one_ssa_partition): Drop logic that assigned MEMs with
9352         unassigned addresses.
9353         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
9354         deferred stack alloc vars.
9355         (expand_used_vars): Skip partitions holding parm default defs.
9356         Move adjust_one_expanded_partition_var loop...
9357         (pass_expand::execute): ... here.  Drop redundant assert.
9358         Adjust comments before the final loop over all ssa names.
9359         Require assigned rtl of parms and results to match exactly.
9360         Reset its attributes to match them, not any other variables in
9361         the same partition.
9362         (expand_debug_expr): Use entry value for PARM's default defs
9363         only iff they have zero nondebug uses.
9364         * cfgexpand.h (parm_in_stack_slot_p): Remove.
9365         (get_rtl_for_parm_ssa_default_def): Remove.
9366         (set_parm_rtl): Declare.
9367         * doc/invoke.texi: Improve wording.
9368         * explow.c (promote_decl_mode): Fix promote_function_mode for
9369         result decls not by reference.
9370         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
9371         bypass TYPE_MODE to get the actual vector mode.
9372         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
9373         2015-08-19's changes as follows.  Drop include of
9374         basic-block.h and df.h.
9375         (rtl_for_parm): Remove.
9376         (maybe_reset_rtl_for_parm): Remove.
9377         (parm_in_unassigned_mem_p): Remove.
9378         (use_register_for_decl): Add logic for RESULT_DECLs matching
9379         assign_parms' behavior.
9380         (split_complex_args): Revert.
9381         (assign_parms_augmented_arg_list): Revert.  Add comment
9382         referencing the logic above.
9383         (assign_parm_adjust_stack_rtl): Revert.
9384         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
9385         of SET_DECL_RTL.  Set up a REG if the parm demands so.
9386         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
9387         calls into a single set_parm_rtl.  Set up a temporary RTL
9388         temporarily for expand_assignment.
9389         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
9390         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
9391         (assign_bounds): Revert.
9392         (assign_parms): Revert.  Use set_parm_rtl.
9393         (allocate_struct_function): Relayout result and parms of
9394         non-abstruct functions.
9395         (expand_function_start): Revert.  Use set_parm_rtl.  If the
9396         result is not a hard reg, create a pseudo from the promoted
9397         mode of the default def.  Promote static chain mode.
9398         * tree-outof-ssa.c (remove_ssa_form): Drop unused
9399         partition_has_default_def.  Set up
9400         partitions_for_parm_default_defs.
9401         (finish_out_of_ssa): Remove partition_has_default_def.
9402         Release partitions_for_parm_default_defs.
9403         * tree-outof-ssa.h (struct ssaexpand): Remove
9404         partition_has_default_def.  Add
9405         partitions_for_parm_default_defs.
9406         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9407         stor-layout.h.
9408         (build_ssa_conflict_graph): Fix conflict-detection of default
9409         defs of even unused default defs of params and results.
9410         (for_all_parms): New.
9411         (create_default_def): New.
9412         (register_default_def): New.
9413         (coalesce_with_default): New.
9414         (create_outofssa_var_map): Create default defs for all parms
9415         and results, and register their partitions.  Add GIMPLE_RETURN
9416         operands as coalesce candidates with results.  Add default
9417         defs of each parm or result as coalesce candidates with its
9418         other defs.  Mark each result def, and each default def of
9419         parms, as used_in_copy.
9420         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
9421         with the ssa names, even anonymous ones.  Drop
9422         parm_in_stack_slot_p calls.  Require same signedness and
9423         alignment.
9424         (coalesce_ssa_name): Add coalesce candidates for all defs of
9425         each parm and result, even unused ones.
9426         (parm_default_def_partition_arg): New type.
9427         (set_parm_default_def_partition): New.
9428         (get_parm_default_def_partitions): New.
9429         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9430         * tree-ssa-live.c (partition_view_init): Regard unused defs of
9431         parms and results as used.
9432         (verify_live_on_entry): Don't error out just because they're
9433         not live.
9435 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
9437         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9438         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9439         (output_fde): Don't output length for debug_frame on AIX.
9440         (output_call_frame_info): Don't output length for debug_frame on AIX.
9441         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9442         HAVE_XCOFF_DWARF_EXTRAS.
9443         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9444         HAVE_XCOFF_DWARF_EXTRAS.
9445         (output_compilation_unit_header): Don't output length on AIX.
9446         (output_pubnames): Don't output length on AIX.
9447         (output_aranges): Delete argument. Compute length locally. Don't
9448         output length on AIX.
9449         (output_line_info): Don't output length on AIX.
9450         (dwarf2out_finish): Don't compute aranges_length.
9451         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9452         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9453         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9454         symbol decoration for AIX.
9455         (rs6000_xcoff_debug_unwind_info): New.
9456         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9457         for SECTION_DEBUG.
9458         (rs6000_xcoff_declare_function_name): Emit different
9459         .function pseudo-op when DWARF2_DEBUG. Don't call
9460         xcoffout_declare_function for DWARF2_DEBUG.
9461         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9462         Redefine.
9463         * config/rs6000/aix71.h: New.
9464         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9465         locations support.
9466         * configure: Regenerate.
9467         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9468         DWARF support.
9470 2015-09-26  Jeff Law  <law@redhat.com>
9472         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
9473         behaviour.
9474         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
9475         behaviour.
9477         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
9478         behaviour
9480         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
9481         undefined behaviour.
9483         * config/cris/cris.md (asrandb): Fix left shift undefined
9484         behaviour.
9485         (asrandw): Likewise.
9487 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
9489         PR target/61578
9490         * lra-constarints.c (match_reload): Check presence of the input pseudo
9491         in the output operand.
9493 2015-09-25  Tobias Burnus  <burnus@net-b.de>
9495         * doc/invoke.texi (-fsanitize): Minor wording tweak.
9497 2015-09-25  Tobias Burnus  <burnus@net-b.de>
9499         * doc/invoke.texi (-fsanitize): Update URLs.
9501 2015-09-25  Teresa Johnson  <tejohnson@google.com>
9503         * opts.c (finish_options): Unset -freorder-blocks-and-partition
9504         if not using profile.
9506 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9508         PR pretty-print/67567
9509         * pretty-print.c (pp_string): Add gcc_checking_assert.
9510         * pretty-print.h (output_buffer_append_r): Likewise.
9512 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
9514         PR target/67675
9515         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9516         addr2 individually.  Don't emit logical or insn if one is known to
9517         be aligned approriately.
9518         (sh_expand_cmpnstr): Likewise.
9520 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
9522         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9523         __builtin_aarch64_fp[sc]r arguments into a register.
9525 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
9527         * config.gcc (x86_archs): Replace lakemount with lakemont.
9528         (with_cpu): Likewise.
9529         (with_arch): Likewise.
9530         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9531         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
9532         __tune_lakemount__ with __tune_lakemont__.
9533         * config/i386/i386.c (lakemount_cost): Renamed to ...
9534         (lakemont_cost): This.
9535         (m_LAKEMOUNT): Renamed to ...
9536         (m_LAKEMONT): This.
9537         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9538         (processor_target_table): Replace "lakemount" with "lakemont".
9539         (processor_alias_table): Likewise.
9540         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9541         PROCESSOR_LAKEMONT.
9542         (ix86_adjust_cost): Likewise.
9543         (ia32_multipass_dfa_lookahead): Likewise.
9544         * config/i386/i386.h (processor_type): Likewise.
9545         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9546         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
9547         Lakemount with Lakemont.
9549 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9551         * config.gcc (x86_archs): Replace iamcu with lakemount.
9552         (with_cpu): Likewise.
9553         (with_arch): Likewise.
9554         * doc/invoke.texi: Likewise.
9555         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9556         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
9557         __tune_iamcu__ with __tune_lakemount__.
9558         * config/i386/i386.c (iamcu_cost): Renamed to ...
9559         (lakemount_cost): This.
9560         (m_IAMCU): Renamed to ...
9561         (m_LAKEMOUNT): This.
9562         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9563         (processor_target_table): Replace "iamcu" with "lakemount".
9564         (processor_alias_table): Likewise.
9565         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9566         PROCESSOR_LAKEMOUNT.
9567         (ix86_adjust_cost): Likewise.
9568         (ia32_multipass_dfa_lookahead): Likewise.
9569         * config/i386/i386.h (processor_type): Likewise.
9570         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9572 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
9574         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9575         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9576         Declare.
9577         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9578         (pa_expand_compare_and_swap_loop): New.
9579         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9580         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9581         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9582         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9583         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9584         Revise.
9586 2015-09-24  Michael Collison  <michael.collison@linaro.org>
9588         PR other/57195
9589         * read-md.c (read_name): Allow mode iterators inside angle
9590         brackets in rtl expressions.
9592 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
9594         PR target/61578
9595         * ira-color.c (update_allocno_cost): Add parameter.
9596         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
9597         parameter.
9599 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9601         PR driver/67640
9602         * opts-common.c (prune_options): Discard all -fdiagnostics-color
9603         but the last one, which is moved to the front to be processed
9604         first.
9605         * opts.c (enable_warning_as_error): Reject options that do not
9606         control warnings.
9608 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9610         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9612 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9614         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9615         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9616         (aarch64_cannot_force_const_mem): Likewise.
9617         (aarch64_classify_address): Likewise.
9618         (aarch64_classify_symbolic_expression): Likewise.
9619         (aarch64_print_operand): Likewise.
9620         (aarch64_classify_symbol): Likewise.
9621         (aarch64_mov_operand_p): Likewise.
9622         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9623         (aarch64_mov_operand): Likewise.
9625 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
9627         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9628         for info->spe_gp_size.
9630 2015-09-24  Richard Biener  <rguenther@suse.de>
9632         PR lto/67699
9633         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9634         abstract origins.
9636 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
9638         * tree-object-size.c (plus_stmt_object_size)
9639         (cond_expr_object_size): Change the formal parameters from gimple
9640         to gimple *.
9641         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9642         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9643         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9645 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9647         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9648         Check for ld -type pie on Solaris 11.x and 12.
9649         * configure: Regenerate.
9650         * config.in: Regenerate.
9652         * gcc.c (LD_PIE_SPEC): Allow redefinition.
9654         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9655         (STARTFILE_SPEC): Use it.
9656         (ENDFILE_CRTEND_SPEC): Define.
9657         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9658         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9659         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9660         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9661         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9662         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9663         (ENDFILE_ARCH_SPEC): Define.
9664         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9666 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9668         * configure.ac (gcc_cv_solaris_crts): New test.
9669         * configure. Regenerate.
9670         * config.in: Regenerate.
9671         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9672         HAVE_SOLARIS_CRTS variant.
9674 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9676         * tree-inline.h (count_insns_seq): Delete prototype.
9677         (estimate_num_insns_seq): Define prototype.
9678         * tree-inline.c (count_insns_seq): Delete.
9679         (estimate_num_insns_seq): Remove static qualifier.
9680         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9681         with estimate_num_insns_seq.
9683 2015-09-24  Richard Biener  <rguenther@suse.de>
9685         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9686         members.
9687         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9688         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
9689         offset.
9690         (ao_ref_init_from_vn_reference): Record clique and base in the
9691         built base.
9692         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9694 2015-09-24  Richard Biener  <rguenther@suse.de>
9696         PR tree-optimization/48885
9697         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9698         as not including any restrict tags from other pointers.
9700 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9702         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9703         character when appending to offload_targets.
9705         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9706         offload targets by commas, not colons.
9707         * config.in: Regenerate.
9708         * configure: Likewise.
9709         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9710         instead of setting up the default offload targets here...
9711         (process_command): ..., do it here.
9712         libgomp/
9713         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9714         targets are separated by commas.
9715         * config.h.in: Regenerate.
9717 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9718             Nathan Sidwell  <nathan@codesourcery.com>
9720         * omp-low.h (omp_reduction_init_op): Declare.
9721         * omp-low.c (omp_reduction_init_op): New, broken out of ...
9722         (omp_reduction_init): ... here.  Call it.
9723         * tree-parloops.c (initialize_reductions): Use
9724         omp_reduction_init_op.
9726 2015-09-23   Richard Biener  <rguenther@suse.de>
9728         PR middle-end/67662
9729         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9730         undefined overflow unless they will cancel out.
9732 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9734         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9735         insn emit.
9737 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9739         PR c/49655
9740         * opts.h (write_langs): Declare.
9741         * opts-global.c (write_langs): Make it extern.
9743 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
9745         PR target/67391
9746         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9747         overlapping regs when matching the pattern.
9749 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
9751         * config/aarch64/aarch64-simd.md
9752         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9753         (aarch64_float_truncate_hi_v4sf_le): New.
9754         (aarch64_float_truncate_hi_v4sf_be): Likewise.
9756 2015-09-23  Richard Biener  <rguenther@suse.de>
9758         * tree-ssa-structalias.c (intra_create_variable_infos): Build
9759         representatives for all restrict qualified pointer destinations.
9761 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9763         * config/i386/i386.md (define_code_attr mshift): New.
9764         (define_mode_iterator SWI1248_AVX512BW): Rename ...
9765         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9766         only.
9767         (define_insn "*k<logic><mode>"): Use new iterator name.
9768         (define_insn "*<mshift><mode>3"): New.
9770 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
9772         PR middle-end/67649
9773         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9774         mark the block as accessible.
9776 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
9778         * function.c (thread_prologue_and_epilogue_insns): Delete
9779         orig_entry_edge argument to try_shrink_wrapping.
9780         * shrink-wrap.c (can_get_prologue): New function.
9781         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9782         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
9783         can_get_prologue where needed.  Remove code that finds a single
9784         edge for the prologue.  Remove code that tests if any reg clobbered
9785         by the prologue is live on the prologue edge.  Remove code that finds
9786         the new prologue edge after duplicating blocks.  Make a new prologue
9787         block and edge.
9788         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9790 2015-09-22  Jeff Law  <law@redhat.com>
9792         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9793         behavior.
9795 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
9797         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
9798         -Wtemplates, -Wnamespaces): Document.
9800 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9802         PR tree-optimization/67671
9803         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9804         pointer references as restrict.
9806 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
9808         * config/nios2/nios2.c (nios2_legitimize_address): When handling
9809         'reg + reloc' cases, allow first operand to be non-REG, and use
9810         force_reg() to enforce address pattern.
9812 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
9814         PR target/67480
9815         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9816         (define_mode_iterator VI12_AVX_AVX512F): New.
9817         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9818         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9819         (define_insn "*<code><mode>3"): ... Into new pattern using
9820         VI12_AVX_AVX512F iterators without masking.
9822 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9824         * config.gcc: Support "skylake-avx512".
9825         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9826         PROCESSOR_SKYLAKE_AVX512.
9827         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9828         (processor_target_table): Add "skylake-avx512".
9829         (PTA_SKYLAKE_AVX512): Define.
9830         (ix86_option_override_internal): Add "skylake_avx512".
9831         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9832         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9833         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9834         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9835         * doc/invoke.texi (skylake-avx512): New.
9837 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9839         * config/i386/i386.md (define_insn "kunpckhi"): Fix
9840         operand in pattern.
9841         (define_insn "kunpcksi"): Ditto.
9842         (define_insn "kunpckdi"): Ditto.
9844 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9846         * config/i386/i386.md (define_split not/xor SWI1248x): Use
9847         iterator instead of fixed modes.
9849 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9851         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9852         Adjust declaration.
9853         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9854         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
9855         out_result.  Update to support update-fetch operations.
9856         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9857         Adjust for change to aarch64_gen_atomic_ldop.
9858         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9859         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9860         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9861         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9862         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9864 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9866         * config/aarch64/aarch64-protos.h
9867         (aarch64_atomic_ldop_supported_p): Declare.
9868         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9869         (enum aarch64_atomic_load_op_code): New.
9870         (aarch64_emit_atomic_load_op): New.
9871         (aarch64_gen_atomic_ldop): Update to support load-operate
9872         patterns.
9873         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9874         to an expander.
9875         (aarch64_atomic_<atomic_optab><mode>): New.
9876         (aarch64_atomic_<atomic_optab><mode>_lse): New.
9877         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9878         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9879         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9881 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9883         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9884         (UNSPECV_ATOMIC_LDOP_OR): New.
9885         (UNSPECV_ATOMIC_LDOP_BIC): New.
9886         (UNSPECV_ATOMIC_LDOP_XOR): New.
9887         (UNSPECV_ATOMIC_LDOP_PLUS): New.
9888         (ATOMIC_LDOP): New.
9889         (atomic_ldop): New.
9890         (aarch64_atomic_load<atomic_ldop><mode>): New.
9892 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9894         * config/aarch64/aarch64.md
9895         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9896         pattern.
9898 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9900         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9901         Declare.
9902         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9903         (aarch64_gen_atomic_ldop): New.
9904         (aarch64_split_atomic_op): Fix whitespace and add a comment.
9905         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9906         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9907         (atomic_exchange<mode>): Replace with an expander.
9908         (aarch64_atomic_exchange<mode>): New.
9909         (aarch64_atomic_exchange<mode>_lse): New.
9910         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9911         (aarch64_atomic_swp<mode>): New.
9913 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9915         * tree-inline.c (expand_call_inline): Use inform for extra note.
9916         Do not give a note with UNKNOWN_LOCATION.
9917         Replace input_location with gimple_location (stmt).
9918         Use true/false instead of TRUE/FALSE.
9920 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9922         PR tree-optimization/67666
9923         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9924         with single field non-conservative.
9926 2015-09-21  David S. Miller  <davem@davemloft.net>
9928         PR/67622
9929         Revert:
9930         2015-09-11  David S. Miller  <davem@davemloft.net>
9932         * config/sparc/constraints.md: Make "U" constraint a real register
9933         constraint.
9934         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9935         (D_MODES, DF_MODES): Add missing cast.
9936         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9937         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9938         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9939         cost to 8.
9940         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9941         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9942         provide these insn when flag_pic.
9944         2015-09-17  David S. Miller  <davem@davemloft.net>
9946         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9947         Declare.
9948         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9949         function.
9950         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9951         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9952         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9953         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9954         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9955         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9956         provide when flag_pic.
9958 2015-09-21  Jeff Law  <law@redhat.com>
9960         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9961         behavior.
9963 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9965         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9967 2015-09-21  Richard Biener  <rguenther@suse.de>
9969         * passes.c (rest_of_decl_compilation): Do not call
9970         dwarf2out_early_global_decl for aliases.
9972 2015-09-21  Richard Biener  <rguenther@suse.de>
9974         PR debug/67664
9975         * dwarf2out.c (add_location_or_const_value_attribute): Remove
9976         attribute parameter.  Early exit if either DW_AT_const_value
9977         or DW_AT_location are present already.
9978         (gen_variable_die): Adjust caller.
9979         (dwarf2out_late_global_decl): Likewise.
9981 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9983         PR target/67657
9984         * config/sh/sh.c (sh_remove_overlapping_post_inc,
9985         sh_peephole_emit_move_insn): Add new functions.
9986         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9987         sh_peephole_emit_move_insn): Declere them.
9988         * config/sh/sh.md: Use them in various peephole2 patterns.
9990 2015-09-21  Richard Biener  <rguenther@suse.de>
9992         PR middle-end/67651
9993         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9994         address with -fno-delete-null-pointer-checks.
9996 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
9998         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9999         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
10000         (reduc_uplus_v16qi): Remove.
10002         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
10003         (reduc_<VEC_reduc_name>_v2df): Remove.
10004         (reduc_<VEC_reduc_name>_v4sf): Remove.
10005         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
10007         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
10008         gen_ function by removing * prefix.
10009         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
10011 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10013         PR middle-end/60832
10014         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
10015         Print i_bound without converting it to a tree.
10017 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
10019         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
10020         operands[4] operands[5] swap with std::swap, removed tmp variable.
10021         (arm_evpc_neon_vzip): Replaced in0/in1 and
10022         out0/out1 swaps with std::swap, removed x variable.
10023         (arm_evpc_neon_vtrn): Replaced in0/int1 and
10024         out0/out1 swaos with std::swap, removed x variable.
10025         (arm_expand_vec_perm_const_1): Replaced
10026         d->op0/d->op1 swap with std::swap, removed x variable.
10027         (arm_evpc_neon_vuzp): Replaced in0/in1 and
10028         out0/out1 swaps with std::swap, removed x variable.
10030 2015-09-21  Jonathan Yong  <10walls@gmail.com>
10032         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10033         sysroot/usr/lib/32api for additional win32 libraries,
10034         fixes failing Cygwin bootstrapping.
10036 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
10038         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
10040 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
10042         PR target/67126
10043         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
10044         (*mov_t_msb_neg): Rewrite negc pattern.
10046 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10048         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
10049         immediate generation code.
10051 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10053         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
10054         redundant immediate generation code.
10056 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10058         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
10059         (AARCH64_NUM_BITMASKS): Remove.
10060         (aarch64_bitmasks_cmp): Remove.
10061         (aarch64_build_bitmask_table): Remove.
10063 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10065         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
10066         slow immediate matching loops with a faster algorithm.
10068 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
10070         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
10071         faster algorithm.
10073 2015-09-20  Jeff Law  <law@redhat.com>
10075         PR tree-optimization/47679
10076         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
10077         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
10078         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
10079         (thread_through_normal_block): Use record_temporary_equivalences.
10081 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
10083         * coretypes.h (gimple): Change typedef to be a forward declaration.
10084         * gimple.h (gimple_statement_base): rename to gimple.
10085         * (all functions and types using gimple): Adjust.
10086         * *.[ch]: Likewise.
10088 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
10089             David Edelsohn  <dje.gcc@gmail.com>
10091         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
10092         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10093         (EH_FRAME_THROUGH_COLLECT2): Define.
10094         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10095         (ASM_OUTPUT_DWARF_PCREL): Define.
10096         (ASM_OUTPUT_DWARF_DATAREL): Define.
10098 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
10100         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
10101         of TARGET_ELF32.
10103 2015-09-18  Jeff Law  <law@redhat.com>
10105         PR tree-optimization/47679
10106         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
10107         it here ...
10108         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
10109         object.  Update constructor.
10110         (pass_dominator::execute):  Corresponding chagnes to declaration
10111         and initialization of avail_exprs_stack.  Update constructor call
10112         for dom_opt_dom_walker object.
10113         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
10114         it down to children as needed.
10115         (record_equivalences_from_incoming_edge): Likewise.
10116         (eliminate_redundant_computations): Likewise.
10117         (record_equivalences_from_stmt): Likewise.
10118         (simplify_stmt_for_jump_threading): Likewise.
10119         (record_temporary_equivalences): Likewise.
10120         (optimize_stmt): Likewise.
10121         (dom_opt_dom_walker::thread_across_edge): Update access to
10122         avail_exprs_stack object and pass it to children as needed.
10123         (dom_opt_dom_walker::before_dom_children): Similarly.
10124         (dom_opt_dom_walker::after_dom_children): Similarly.
10125         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
10126         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
10127         Add avail_expr_stack argument.  Pass it to children as needed.
10128         (dummy_simplify): Likewise.
10129         (simplify_control_stmt_condition): Likewise.
10130         (thread_around_empty_blocks): Likewise.
10131         (thread_through_normal_block): Likewise.
10132         (thread_across_edge): Likewise.
10133         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10134         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
10136         PR tree-optimization/47679
10137         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
10138         it here ...
10139         (dom_opt_dom_walker): New private member holding the const_and_copies
10140         object.  Update constructor.
10141         (pass_dominator::execute): Corresponding changes to declaration
10142         and initialization of const_and_copies.  Update constructor call
10143         for the dom_opt_dom_walker object.
10144         (record_temporary_equivalences): Accept const_and_copies argument
10145         pass it down to children as needed.
10146         (record_equality): Likewise.
10147         (record_equivalences_from_incoming_edge): Likewise.
10148         (cprop_into_successor_phis, optimize_stmt): Likewise.
10149         (eliminate_redundant_computations): Likewise.
10150         (dom_opt_dom_walker::thread_across_edge): Update access to
10151         const_and_copies object and pass it to children as needed.
10152         (dom_opt_dom_walker::before_dom_children): Similarly.
10153         (dom_opt_dom_walker::after_dom_children): Similarly.
10155         PR tree-optimization/47679
10156         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
10157         it into the avail_exprs_stack class.
10158         (pass_dominator::execute): Corresponding changes to declaration
10159         and initialization of avail_exprs.  Pass avail_exprs to
10160         dump_dominator_optimization_stats.
10161         (record_cond): Extract avail_exprs from avail_exprs_stack.
10162         (lookup_avail_expr): Similarly.
10163         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
10164         position in file.
10165         (dump_dominator_optimization_stats): Make static and prototype.
10166         Add argument for the hash table to dump.
10167         (debug_dominator_optimization_stats): Remove.
10168         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
10169         prototype.
10170         (debug_dominator_optimization_stats): Similarly.
10171         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
10172         "void" in prototype for pop_to_marker method.  Add accessor method
10173         for the underlying avail_exprs table.
10175         * tree-ssa-threadedge.c: Remove trailing whitespace.
10177 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
10179         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
10180         unsigned.
10181         (pa_ldil_cint_p): Likewise.
10182         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
10183         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
10184         Update callers.
10185         * config/pa/pa.md: Likewise.
10187 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
10189         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
10190         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
10191         (diagnostic_show_locus): Likewise.
10192         (diagnostic_print_caret_line): Likewise.
10193         * diagnostic-show-locus.c: New file.
10195 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
10197         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
10198         "back" parameter. Declare label in #if block.
10200 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
10202         PR middle-end/67619
10203         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
10204         the address to a register.
10206 2015-09-18  Jeff Law  <law@redhat.com>
10208         PR tree-optimization/47679
10209         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
10210         * tree-ssa-dom.c: Remove unnecessary header includes.
10211         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
10212         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
10213         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
10214         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
10215         (pass_phi_only_cprop::execute): Likewise.
10216         (make_pass_phi_only_cprop): Likewise.
10217         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
10218         uses of file scoped statics by passing the required objects
10219         as parameters wherever needed.
10221 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
10222             David Edelsohn  <dje.gcc@gmail.com>
10224         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
10225         EH_FRAME_THROUGH_COLLECT2.
10226         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
10227         DW_EH_PE_datarel.
10228         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
10229         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
10230         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
10231         * except.c (switch_to_exception_section): Use a read-only section
10232         even if EH_FRAME_SECTION_NAME is undefined.
10233         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
10234         * collect2.c (write_c_file_stat): Provide dbase on AIX.
10235         (scan_prog_file): Don't export __dso_handle nor
10236         __gcc_unwind_dbase.
10237         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10238         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10239         (ASM_OUTPUT_DWARF_PCREL): Define.
10240         (ASM_OUTPUT_DWARF_DATAREL): Define.
10241         (EH_FRAME_THROUGH_COLLECT2): Define.
10242         (EH_FRAME_IN_DATA_SECTION): Delete.
10243         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
10244         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
10245         Declare.
10246         (rs6000_asm_output_dwarf_datarel): Declare.
10247         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
10248         (rs6000_aix_asm_output_dwarf_datarel): New.
10249         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
10250         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
10251         (EH_FRAME_THROUGH_COLLECT2): Define.
10252         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
10253         (EH_FRAME_THROUGH_COLLECT2): Define.
10254         (EH_TABLES_CAN_BE_READ_ONLY): Define.
10255         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
10256         (EH_FRAME_THROUGH_COLLECT2): New.
10257         (ASM_OUTPUT_DWARF_DATAREL): New.
10258         * doc/tm.texi: Regenerate.
10260 2015-09-18  Richard Biener  <rguenther@suse.de>
10262         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
10263         we're in early phase.
10264         (schedule_generic_params_dies_gen): Likewise.
10265         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
10266         work as possible, retaining unhandled cases.
10267         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
10268         clear out generic_type_instances at the end.
10269         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
10270         (dwarf2out_early_finish): ... here.  Do most of
10271         gen_remaining_tmpl_value_param_die_attribute here.
10273 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
10275         PR tree-optimization/67283
10276         * tree-sra.c (type_consists_of_records_p): Rename to...
10277         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10278         (completely_scalarize_record): Rename to...
10279         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10280         (scalarize_elem): New.
10281         (analyze_all_variable_accesses): Follow renamings.
10283 2015-09-18  Richard Biener  <rguenther@suse.de>
10285         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
10286         in early-dwarf.
10288 2015-09-18  Richard Biener  <rguenther@suse.de>
10290         PR tree-optimization/66142
10291         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
10292         treat MEM[&x] and x the same.
10293         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
10294         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
10295         when we simplified sth.
10296         (vn_reference_maybe_forwprop_address): Likewise.
10297         (valueize_refs_1): When we simplified through
10298         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
10299         set valueized_anything to true.
10300         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
10301         one ref kills the other instead of just a offset-based test.
10302         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
10303         for the operand_equal_p test to compare bases and also compare
10304         sizes.
10306 2015-09-17  Christian Bruel  <christian.bruel@st.com>
10308         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
10310 2015-09-17  Richard Henderson  <rth@redhat.com>
10312         PR libstdc++/65913
10313         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
10314         pointers that encode the alignment of the object.
10316 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10318         PR rtl-optimization/66790
10319         * df-problems.c (LIVE): Amend documentation.
10321 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
10323         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
10324         and optabs-tree.o.
10325         (GTFILES): Replace optabs.c with optabs-libfunc.c.
10326         * genopinit.c (main): Add an include guard to insn-opinit.h.
10327         Protect the rtx_code parts with NUM_RTX_CODE.
10328         * optabs.h: Split parts out to...
10329         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
10330         * optabs.c: Split parts out to...
10331         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
10332         * cilk-common.c: Include optabs-query.h rather than optabs.h.
10333         * fold-const.c: Likewise.
10334         * target-globals.c: Likewise.
10335         * tree-if-conv.c: Likewise.
10336         * tree-ssa-forwprop.c: Likewise.
10337         * tree-ssa-loop-prefetch.c: Likewise.
10338         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
10339         Remove unncessary include files.
10340         * tree-ssa-phiopt.c: Likewise.
10341         * tree-ssa-reassoc.c: Likewise.
10342         * tree-switch-conversion.c: Likewise.
10343         * tree-vect-data-refs.c: Likewise.
10344         * tree-vect-generic.c: Likewise.
10345         * tree-vect-loop.c: Likewise.
10346         * tree-vect-patterns.c: Likewise.
10347         * tree-vect-slp.c: Likewise.
10348         * tree-vect-stmts.c: Likewise.
10349         * tree-vrp.c: Likewise.
10350         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
10351         rather than optabs.h.
10352         * expr.c: Include optabs-tree.h.
10353         * function.c: Likewise.
10355 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10357         PR middle-end/65958
10358         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
10359         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
10360         * config/arm/arm.c: Include common/common-target.h.
10361         (use_return_insn): Return 0 if the static chain register was saved
10362         above a non-APCS frame.
10363         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
10364         (struct scratch_reg): New.
10365         (get_scratch_register_on_entry): New function.
10366         (release_scratch_register_on_entry): Likewise.
10367         (arm_emit_probe_stack_range): Likewise.
10368         (output_probe_stack_range): Likewise.
10369         (arm_expand_prologue): Factor out code dealing with the IP register
10370         for nested function and adjust it for stack checking.
10371         Invoke arm_emit_probe_stack_range if static builtin stack checking
10372         is enabled.
10373         (thumb1_expand_prologue): Sorry out if static builtin stack checking
10374         is enabled.
10375         (arm_expand_epilogue): Add the saved static chain register, if any, to
10376         the amount of pre-pushed registers to pop.
10377         (arm_frame_pointer_required): Return true if static stack checking is
10378         enabled and we want to catch the exception with the EABI unwinder.
10379         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10380         (UNSPEC_PROBE_STACK_RANGE): Likewise.
10381         * config/arm/arm.md (probe_stack): New insn.
10382         (probe_stack_range): Likewise.
10384 2015-09-17  Richard Biener  <rguenther@suse.de>
10386         * genmatch.c (parser::parse_expr): Improve error message
10387         for mis-placed flags.
10389 2015-09-17  Richard Biener  <rguenther@suse.de>
10391         * passes.c (rest_of_decl_compilation): Always call early_global_decl
10392         debug hook when we created a varpool node.
10393         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10394         dwarf2out_early_global_decl, when not just add location or
10395         value attributes to existing DIEs.
10397 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
10399         * config/aarch64/aarch64.md (copysigndf3): New.
10400         (copysignsf3): Likewise.
10402 2015-09-17  David S. Miller  <davem@davemloft.net>
10404         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10405         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10406         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10407         (HARD_REGNO_CALLER_SAVE_MODE): Define.
10408         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10409         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10410         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10411         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10412         provide when flag_pic.
10414 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
10416         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10417         object_allocator change.
10419 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10421         PR tree-optimization/66388
10422         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10423         (dump_iv): Dump no_overflow information.
10424         (alloc_iv): Initialize new field for struct iv.
10425         (mark_bivs): Count number of no_overflow bivs.
10426         (find_deriving_biv_for_expr, record_biv_for_address_use): New
10427         functions.
10428         (idx_find_step): Call new functions above.
10429         (add_candidate_1, add_candidate): New paramter.
10430         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10431         (get_computation_aff): Simplify convertion of cand for BIV.
10432         (get_computation_cost_at): Step cand's base if necessary.
10434 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
10436         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10437         parameter.
10438         (tree_simplify_using_condition): Ditto.
10439         (simplify_using_initial_conditions): Ditto.
10440         (loop_exits_before_overflow): Pass new argument to function
10441         simplify_using_initial_conditions.  Remove case for type conversions
10442         simplification.
10443         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10444         parameter.
10445         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10446         in iv base using loop initial conditions.
10448 2015-09-16  Jeff Law  <law@redhat.com>
10450         PR tree-optimization/47679
10451         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10452         (free_all_edge_infos): Use it.
10453         (allocate_edge_info): Free preexisting edge info data.
10454         (pass_dominator::execute): Set up initial edge info structures.
10455         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10456         thread_across_edge.
10457         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10458         If non-null, then push/pop markers appropriately.
10459         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10460         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10461         thread-across_edge.
10463 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
10465         * config/ft32/ft32.c: Fix the memory address space predicate.
10467 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10469         PR target/67573
10470         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
10471         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10473 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10475         * toplev.h (check_global_declaration): Remove declaration.
10476         * toplev.c (check_global_declaration): Move to ...
10477         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
10478         (analyze_functions): Update call.
10480 2015-09-16  David S. Miller  <davem@davemloft.net>
10482         * lra-constraints.c (simplify_operand_subreg): Do not assume that
10483         lowpart of a SUBREG has offset zero.
10485 2015-09-16  Jeff Law  <law@redhat.com>
10487         PR tree-optimization/47679
10488         * tree-ssa-dom.c (enum expr_kind): Moved from here to
10489         tree-ssa-scopedtables.h.
10490         (struct hashable_expr, class expr_hash_elt): Likewise.
10491         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
10492         Move associated methods into tree-ssa-scopedtables.c.
10493         (avail_expr_hash, initialize_expr_from_cond): Similarly.
10494         (hashable_expr_equal_p, add_expr_commutative): Likewise.
10495         (add_hashable_expr): Likewise.
10496         (record_cond): Delete element directly.
10497         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
10498         private copy ctor and assignment operator methods.
10499         (expr_elt_hasher): Inline trivial methods.
10500         (initialize_expr_from_cond): Prototype.
10501         * tree-ssa-scopedtables.c: Add necessary includes, functions and
10502         methods that were previously in tree-ssa-dom.c.  Improve various
10503         comments.
10505 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
10507         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
10509 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
10511         PR bootstrap/67587
10512         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10513         fixup_partitions.
10515 2015-09-16  Richard Biener  <rguenther@suse.de>
10517         PR middle-end/67253
10518         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10519         location of possibly shared trees.
10521 2015-09-16  Richard Biener  <rguenther@suse.de>
10523         PR middle-end/67271
10524         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10526 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
10528         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10529         offset and size computations instead of HOST_WIDE_INT.
10531 2015-09-16  Richard Biener  <rguenther@suse.de>
10533         PR middle-end/67442
10534         * fold-const.c (extract_muldiv_1): Properly extend multiplication
10535         result before builting a tree via wide_int_to_tree.
10537 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
10539         * Makefile.in: Add memory-block.cc
10540         (pool_allocator::initialize): Use fixed block size.
10541         (pool_allocator::release): Use memory_block_pool.
10542         (pool_allocator::allocate): Likewise.
10543         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10544         object pools.
10545         * cfg.c (initialize_original_copy_tables): Likewise.
10546         * cselib.c (elt_list_pool, elt_loc_list_pool,
10547         cselib_val_pool): Likewise.
10548         * df-problems.c (df_chain_alloc): Likewise.
10549         * df-scan.c (df_scan_alloc): Likewise.
10550         * dse.c (cse_store_info_pool, rtx_store_info_pool,
10551         read_info_type_pool, insn_info_type_pool, bb_info_pool,
10552         group_info_pool, deferred_change_pool): Likewise.
10553         * et-forest.c (et_nodes, et_occurrences): Likewise.
10554         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10555         ipcp_agg_lattice_pool): Likewise.
10556         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10557         * ipa-profile.c (histogram_pool): Likewise.
10558         * ipa-prop.c (ipa_refdesc_pool): Likewise.
10559         * ira-build.c (live_range_pool, allocno_pool, object_pool,
10560         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10561         * ira-color.c (update_cost_record_pool): Likewise.
10562         * lra-lives.c (lra_live_range_pool): Likewise.
10563         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10564         * memory-block.cc: New file.
10565         * memory-block.h: New file.
10566         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10567         * sched-deps.c (sched_deps_init): Likewise.
10568         * sel-sched-ir.c (sched_lists_pool): Likewise.
10569         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10570         * tree-sra.c (access_pool): Likewise.
10571         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10572         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10573         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10574         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10575         * tree-ssa-strlen.c (strinfo_pool): Likewise.
10576         * tree-ssa-structalias.c (variable_info_pool): Likewise.
10577         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10578         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10580 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10582         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10583         definition.
10584         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10585         call0 ABI.
10587 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10589         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10590         to pass TLS call argument, according to current ABI.
10591         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10592         callx0 for TLS call, according to current ABI.
10594 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10596         * tree-eh.c (lower_try_finally_dup_block): Clear location information
10597         on stack restore statements.
10598         (decide_copy_try_finally): Do not consider a stack restore statement as
10599         coming from sources.
10601 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
10603         * config/alpha/alpha.c (alpha_expand_block_clear): Use
10604         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10606 2015-09-15  Jeff Law  <law@redhat.com>
10608         PR tree-optimization/47679
10609         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10610         methods and private members.
10611         (avail_exprs_stack): Similarly.  Change type of global
10612         from a pair of expr_hash_elt_t to the new class.
10613         (expr_elt_hasher::hash): Corresponding changes.
10614         (expr_elt_hasher::equal): Similarly.
10615         (avail_expr_hash): Similarly.
10616         (pass_dominator::execute): Similarly.
10617         (dom_opt_dom_walker::thread_across_edge): Similarly.
10618         (record_cond): Similarly.
10619         (dom_opt_dom_walker::before_dom_children): Similarly.
10620         (dom_opt_dom_walker::after_dom_children): Similarly.
10621         (lookup_avail_expr): Likewise.
10622         (initialize_hash_element): Now a expr_hash_elt constructor.
10623         (initialize_hash_element_from_expr): Similarly.
10624         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10625         (free_expr_hash_elt): Call dtor for the element.
10626         (remove_local_expressions_from_table): Now the "pop_to_marker"
10627         method in the available_exprs_stack class.
10628         (avail_expr_stack::record_expr): Method factored out.
10629         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10630         Fix formatting.
10631         (hashable_expr_equal_p): Fix formatting.
10633 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
10635         * input.h (location_get_source_line): Drop "expanded_location"
10636         param in favor of a file and line number.
10637         * input.c (location_get_source_line): Likewise.
10638         (dump_location_info): Update for change in signature of
10639         location_get_source_line.
10640         * diagnostic.c (diagnostic_print_caret_line): Likewise.
10642 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10644         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10645         Bump to 4KB for SJLJ exceptions.
10646         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
10647         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10648         * doc/tm.texi: Regenerate.
10650 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10652         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10653         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
10654         Update prototype.
10656 2015-09-15  Richard Biener  <rguenther@suse.de>
10658         PR tree-optimization/67470
10659         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10660         structure for PHI hoisting by inserting a forwarder block
10661         if appropriate.
10663 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10665         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10666         (arm_option_print): New function.
10668 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10670         PR target/52144
10671         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10672         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10673         Remove flags parameter.
10674         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10675         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10676         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10677         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10678         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10679         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10680         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10681         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10683 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10685         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10687         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10688         AARCH64_VALID_SIMD_DREG_MODE.
10690 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10692         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10693         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10694         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10695         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10696         aarch64_ld4_lane<mode>): Combine together, making...
10697         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10698         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10699         aarch64_st4_lane<mode>): Combine together, making...
10700         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10701         * config/aarch64/iterators.md (nregs): Add comment.
10703 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10705         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10706         Change operand mode from <V_TWO_ELEM> to BLK.
10707         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10708         (aarch64_vec_store_lanesoi_lane<mode): Likewise
10709         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10710         (aarch64_ld2_lane<mode>): Likewise.
10711         (aarch64_st2_lane<VQ:mode>): Likewise.
10712         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10714 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10716         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10717         Change operand mode from <V_FOUR_ELEM> to BLK.
10718         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10719         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10720         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10721         (aarch64_ld4_lane<mode>): Likewise.
10722         (aarch64_st4_lane<mode>): Likewise.
10723         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10725 2015-09-15  Richard Biener  <rguenther@suse.de>
10727         PR middle-end/67563
10728         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10729         transfer EH info from old to new stmt.
10730         (replace_call_with_value): Likewise.
10731         (replace_call_with_call_and_fold): Likewise.
10732         (gimple_fold_builtin_memory_op): Likewise.
10733         (gimple_fold_builtin_memset): Likewise.
10734         (gimple_fold_builtin_stpcpy): Likewise.
10735         (gimple_fold_call): Likewise.
10737 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10739         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10740         comment.
10741         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10742         (aarch64_simd_intEI_type_node): Likewise.
10743         (aarch64_simd_builtin_std_type): Remove EImode case.
10744         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10745         * config/aarch64/aarch64-modes.def: Remove EImode.
10747 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10749         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10750         Change operand mode from <V_THREE_ELEM> to BLK.
10751         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10752         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10753         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10754         (aarch64_ld3_lane<mode>): Likewise.
10755         (aarch64_st3_lane<mode>): Likewise.
10756         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10758 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10760         * config/aarch64/aarch64-simd.md
10761         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10762         Change all TImode operands to BLKmode.
10763         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10764         Change all EImode operands to BLKmode.
10765         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10766         Change all OImode operands to BLKmode.
10768         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10769         and call set_mem_size.
10770         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10772         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10774 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10776         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10777         to...
10778         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10780         (vec_store_lanesci_lane<mode>): Rename to...
10781         (aarch64_vec_store_lanesci_lane<mode>): ...this.
10783         (vec_store_lanesxi_lane<mode>): Rename to...
10784         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10786         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10787         aarch64_st4_lane<mode>): Follow renaming.
10789 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10791         * config/s390/s390.c (s390_const_operand_ok): Add missing
10792         brackets.
10794 2015-09-15  Richard Biener  <rguenther@suse.de>
10796         PR lto/67568
10797         * lto-streamer.h (lto_location_cache::current_sysp): Properly
10798         initialize.
10799         * lto-streamer-out.c (clear_line_info): Likewise.
10801 2015-09-15  Richard Biener  <rguenther@suse.de>
10803         * doc/match-and-simplify.texi: Fix wording.
10805 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
10807         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10808         unnecessary type conversion in op1.
10810 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10812         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10813         (dup_block_and_redirect): Delete function.
10814         (can_dup_for_shrink_wrapping): New function.
10815         (fix_fake_fallthrough_edge): New function.
10816         (try_shrink_wrapping): Rewrite function.
10817         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10819 2015-09-14  Rich Felker  <dalias@libc.org>
10821         * configure.ac: Change target pattern for sh TLS support
10822         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10823         * configure: Regenerate.
10825 2015-09-14  Jeff Law  <law@redhat.com>
10827         PR tree-optimization/47679
10828         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10829         type rather than void *.
10831 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10833         PR fortran/67460
10834         * diagnostic.c (diagnostic_initialize): Do not set
10835         some_warnings_are_errors.
10836         (diagnostic_finish): Use DK_WERROR count instead.
10837         (diagnostic_report_diagnostic): Do not set
10838         some_warnings_are_errors.
10839         * diagnostic.h (struct diagnostic_context): Remove
10840         some_warnings_are_errors.
10842 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
10844         * config/sparc/predicates.md (const_all_ones_operand): Use
10845         CONSTM1_RTX to simplify definition.
10847 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
10849         PR target/67061
10850         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10851         Handle call insns.
10853 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
10855         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10856         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10857         OPT_fshow_column to handled saved option cases.
10858         (append_compiler_options): Do not skip the above added options.
10860 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10862         PR target/63304
10863         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10864         nopcrelative_literal_loads.
10865         (aarch64_classify_address): Likewise.
10866         (aarch64_constant_pool_reload_icode): Define.
10867         (aarch64_secondary_reload): Handle secondary reloads for
10868         literal pools.
10869         (aarch64_override_options): Handle nopcrelative_literal_loads.
10870         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10871         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10872         Define.
10873         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10874         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10875         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10876         predicate.
10877         * doc/invoke.texi (mpc-relative-literal-loads): Document.
10879 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
10881         PR middle-end/67401
10882         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10883         sync_compare_and_swap_optab libcall to target_oval.
10885 2015-09-14  Marek Polacek  <polacek@redhat.com>
10887         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10888         value.
10889         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10891 2015-09-11  Mark Wielaard  <mjw@redhat.com>
10893         PR c/28901
10894         * toplev.c (check_global_declaration): Check and use
10895         warn_unused_const_variable.
10896         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10897         (-Wunused-variable): Remove non-constant. For C implies
10898         -Wunused-const-variable.
10899         (-Wunused-const-variable): New.
10901 2015-09-14  Richard Biener  <rguenther@suse.de>
10903         * doc/match-and-simplify.texi: Update for changed syntax
10904         of inner ifs and the new switch expression.
10906 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10908         * config/i386/haswell.md: New file describing Haswell pipeline.
10909         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10910         haswell-like processors.
10911         (ix86_reassociation_width): Increase reassociation width for 64-bit
10912         Haswell processor family.
10913         * config/i386/i386.md: Introduce haswell cpu and include new md file.
10915 2015-09-14  Richard Biener  <rguenther@suse.de>
10917         * doc/match-and-simplify.texi: Fixup some formatting issues
10918         and document the 's' flag.
10920 2015-09-13  Olivier Hainque  <hainque@adacore.com>
10921             Eric Botcazou  <ebotcazou@adacore.com>
10923         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10924         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
10925         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10926         (TARGET_CPU_gr5): Likewise.
10927         (TARGET_CPU_gr6): Likewise.
10928         (MULTILIB_DEFAULTS): Likewise.
10929         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10930         for mcpu=gr5 and mcpu=gr6.
10931         (MULTILIB_DIRNAMES): Adjust accordingly.
10933 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10935         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10936         (mem_ref_p): Likewise.
10937         (outermost_indep_loop): Adjust.
10938         (mem_ref_in_stmt): Likewise.
10939         (determine_max_movement): Likewise.
10940         (mem_ref_alloc): Likewise.
10941         (record_mem_ref_loc): Likewise.
10942         (set_ref_stored_in_loop): Likewise.
10943         (mark_ref_stored): Likewise.
10944         (gather_mem_refs_stmt): Likewise.
10945         (mem_refs_may_alias_p): Likewise.
10946         (for_all_locs_in_loop): Likewise.
10947         (struct rewrite_mem_ref_loc): Likewise.
10948         (rewrite_mem_refs): Likewise.
10949         (struct first_mem_ref_loc_1): Likewise.
10950         (first_mem_ref_loc): Likewise.
10951         (struct sm_set_flag_if_changed): Likewise.
10952         (execute_sm_if_changed_flag_set): Likewise.
10953         (execute_sm): Likewise.
10954         (hoist_memory_references):
10955         (struct ref_always_accessed): Likewise.
10956         (ref_always_accessed_p): Likewise.
10957         (refs_independent_p): Likewise.
10958         (record_dep_loop): Likewise.
10959         (ref_indep_loop_p_1): Likewise.
10960         (ref_indep_loop_p_2): Likewise.
10961         (ref_indep_loop_p): Likewise.
10962         (can_sm_ref_p): Likewise.
10963         (find_refs_for_sm): Likewise.
10964         (tree_ssa_lim_finalize): Likewise.
10966 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10968         * dwarf2out.c (dw_attr_ref): Remove typedef.
10969         (dw_line_info_ref): Likewise.
10970         (pubname_ref): Likewise.
10971         (dw_ranges_ref): Likewise.
10972         (dw_ranges_by_label_ref): Likewise.
10973         (comdat_type_node_ref): Likewise.
10974         (get_AT): Adjust.
10975         (get_AT_low_pc): Likewise.
10976         (get_AT_hi_pc): Likewise.
10977         (get_AT_string): Likewise.
10978         (get_AT_flag): Likewise.
10979         (get_AT_unsigned): Likewise.
10980         (get_AT_ref): Likewise.
10981         (get_AT_file): Likewise.
10982         (remove_AT): Likewise.
10983         (print_die): Likewise.
10984         (check_die): Likewise.
10985         (die_checksum): Likewise.
10986         (attr_checksum_ordered): Likewise.
10987         (struct checksum_attributes): Likewise.
10988         (collect_checksum_attributes): Likewise.
10989         (die_checksum_ordered): Likewise.
10990         (same_die_p): Likewise.
10991         (is_declaration_die): Likewise.
10992         (clone_die): Likewise.
10993         (clone_as_declaration): Likewise.
10994         (copy_declaration_context): Likewise.
10995         (break_out_comdat_types): Likewise.
10996         (copy_decls_walk): Likewise.
10997         (output_location_lists): Likewise.
10998         (external_ref_hasher::hash): Likewise.
10999         (optimize_external_refs_1): Likewise.
11000         (build_abbrev_table): Likewise.
11001         (size_of_die): Likewise.
11002         (unmark_all_dies): Likewise.
11003         (size_of_pubnames): Likewise.
11004         (output_die_abbrevs): Likewise.
11005         (output_die): Likewise.
11006         (output_pubnames): Likewise.
11007         (add_ranges_num): Likewise.
11008         (add_ranges_by_labels): Likewise.
11009         (add_high_low_attributes): Likewise.
11010         (gen_producer_string): Likewise.
11011         (dwarf2out_set_name): Likewise.
11012         (new_line_info_table): Likewise.
11013         (prune_unused_types_walk_attribs): Likewise.
11014         (prune_unused_types_update_strings): Likewise.
11015         (prune_unused_types): Likewise.
11016         (resolve_addr): Likewise.
11017         (optimize_location_lists_1): Likewise.
11018         (index_location_lists): Likewise.
11019         (dwarf2out_finish): Likewise.
11021 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11023         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
11025 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11027         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
11028         (dump_asserts_for): Adjust.
11029         (register_new_assert_for): Likewise.
11030         (process_assert_insertions): Likewise.
11031         (insert_range_assertions): Likewise.
11033 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11035         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
11036         and remove typedef.
11037         (new_temp_expr_table): Adjust.
11038         (free_temp_expr_table): Likewise.
11039         (version_to_be_replaced_p): Likewise.
11040         (make_dependent_on_partition): Likewise.
11041         (add_to_partition_kill_list): Likewise.
11042         (remove_from_partition_kill_list): Likewise.
11043         (add_dependence): Likewise.
11044         (finished_with_expr): Likewise.
11045         (process_replaceable): Likewise.
11046         (kill_expr): Likewise.
11047         (kill_virtual_exprs): Likewise.
11048         (mark_replaceable): Likewise.
11049         (find_replaceable_in_bb): Likewise.
11050         (find_replaceable_exprs): Likewise.
11051         (debug_ter): Likewise.
11053 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11055         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
11056         (struct btr_user): Rename from btr_user_s.
11057         (struct btr_def): Rename from btr_def_s.
11058         (find_btr_def_group): Adjust.
11059         (add_btr_def): Likewise.
11060         (new_btr_user): Likewise.
11061         (note_other_use_this_block): Likewise.
11062         (compute_defs_uses_and_gen): Likewise.
11063         (link_btr_uses): Likewise.
11064         (build_btr_def_use_webs): Likewise.
11065         (block_at_edge_of_live_range_p): Likewise.
11066         (btr_def_live_range): Likewise.
11067         (combine_btr_defs): Likewise.
11068         (move_btr_def): Likewise.
11069         (migrate_btr_def): Likewise.
11070         (migrate_btr_defs): Likewise.
11072 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11074         * var-tracking.c (shared_hash_def): Rename to shared_hash.
11075         (shared_hash): Remove typedef.
11076         (struct dataflow_set): Adjust.
11077         (shared_hash_unshare): Likewise.
11078         (dataflow_set_merge): Likewise.
11079         (vt_initialize): Likewise.
11080         (vt_finalize): Likewise.
11082 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11084         * var-tracking.c (struct location_chain): Rename from
11085         location_chain_def.
11086         (struct variable_part): Adjust.
11087         (variable_htab_free): Likewise.
11088         (unshare_variable): Likewise.
11089         (get_init_value): Likewise.
11090         (get_addr_from_local_cache): Likewise.
11091         (drop_overlapping_mem_locs): Likewise.
11092         (val_reset): Likewise.
11093         (struct variable_union_info): Likewise.
11094         (variable_union): Likewise.
11095         (find_loc_in_1pdv): Likewise.
11096         (insert_into_intersection): Likewise.
11097         (intersect_loc_chains): Likewise.
11098         (canonicalize_loc_order_check): Likewise.
11099         (canonicalize_values_mark): Likewise.
11100         (canonicalize_values_star): Likewise.
11101         (canonicalize_vars_star): Likewise.
11102         (variable_merge_over_cur): Likewise.
11103         (remove_duplicate_values): Likewise.
11104         (variable_post_merge_new_vals): Likewise.
11105         (variable_post_merge_perm_vals): Likewise.
11106         (find_mem_expr_in_1pdv): Likewise.
11107         (dataflow_set_preserve_mem_locs): Likewise.
11108         (dataflow_set_remove_mem_locs): Likewise.
11109         (variable_part_different_p): Likewise.
11110         (onepart_variable_different_p): Likewise.
11111         (find_src_set_src): Likewise.
11112         (dump_var): Likewise.
11113         (set_slot_part): Likewise.
11114         (clobber_slot_part): Likewise.
11115         (delete_slot_part): Likewise.
11116         (vt_expand_var_loc_chain): Likewise.
11117         (emit_note_insn_var_location): Likewise.
11118         (vt_finalize): Likewise.
11120 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11122         * dse.c (store_info_t): Remove typedef.
11123         (group_info_t): Likewise.
11124         (const_group_info_t): Likewise.
11125         (deferred_change_t): Likewise.
11126         (get_group_info): Adjust.
11127         (free_store_info): Likewise.
11128         (canon_address): Likewise.
11129         (clear_rhs_from_active_local_stores): Likewise.
11130         (record_store): Likewise.
11131         (replace_read): Likewise.
11132         (check_mem_read_rtx): Likewise.
11133         (scan_insn): Likewise.
11134         (remove_useless_values): Likewise.
11135         (dse_step1): Likewise.
11136         (dse_step2_init): Likewise.
11137         (dse_step2_nospill): Likewise.
11138         (scan_stores_nospill): Likewise.
11139         (scan_reads_nospill): Likewise.
11140         (dse_step3_exit_block_scan): Likewise.
11141         (dse_step3): Likewise.
11142         (dse_step5_nospill): Likewise.
11143         (dse_step6): Likewise.
11145 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11147         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
11148         (alias_set_entry): Remove typedef.
11149         (alias_set_subset_of): Adjust.
11150         (alias_sets_conflict_p): Likewise.
11151         (init_alias_set_entry): Likewise.
11152         (get_alias_set): Likewise.
11153         (new_alias_set): Likewise.
11154         (record_alias_subset): Likewise.
11156 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
11158         * doc/install.texi (Downloading the source): Mark up
11159         contrib/download_prerequisites properly and drop leading "./".
11161 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11163         * config/arc/arc.h: Remove define of STRUCT_VALUE.
11164         * config/lm32/lm32.h: Likewise.
11165         * config/mep/mep.h: Likewise.
11166         * config/visium/visium.h: Likewise.
11167         * system.h: Poison STRUCT_VALUE macro.
11169 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
11171         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
11172         CONSTANT_P operands.
11174 2015-09-11  David S. Miller  <davem@davemloft.net>
11176         * config/sparc/constraints.md: Make "U" constraint a real register
11177         constraint.
11178         * config/sparc/sparc.c (TARGET_LRA_P): Define.
11179         (D_MODES, DF_MODES): Add missing cast.
11180         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11181         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11182         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11183         cost to 8.
11184         * config/sparc/sparc.h (PROMOTE_MODE): Define.
11185         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11186         provide these insn when flag_pic.
11188 2015-09-11  Jeff Law  <law@redhat.com>
11190         PR tree-optimization/47679
11191         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
11192         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
11193         member with m_.  Update inline member functions as necessary.  Add
11194         toplevel comment.
11195         * tree-ssa-scopedtables.c: Update const_and_copies's member
11196         functions to use m_ prefix to access the stack.
11198 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
11200         * graphite-optimize-isl.c (disable_tiling): Remove.
11201         (get_schedule_for_band): Do not use disable_tiling.
11202         (get_prevector_map): Delete function.
11203         (enable_polly_vector): Remove.
11204         (get_schedule_for_band_list): Remove dead code.
11206 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
11208         * graphite-optimize-isl.c (get_tile_map): Refactor.
11209         (get_schedule_for_band): Same.
11210         (getScheduleForBand): Same.
11211         (get_prevector_map): Same.
11212         (get_schedule_for_band_list): Same.
11213         (get_schedule_map): Same.
11214         (get_single_map): Same.
11215         (apply_schedule_map_to_scop): Same.
11216         (optimize_isl): Same.
11218 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11220         PR target/63304
11221         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
11222         (movtf): Delete.
11223         * config/aarch64/iterators.md (GPF_TF_F16): New.
11224         (GPF_F16): Delete.
11226 2015-09-10  Nathan Sidwell  <nathan@acm.org>
11228         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
11229         (nvptx_reorg): Adjust comments.
11231 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
11233         PR bootstrap/67363
11234         * configure.ac: Check if setenv and unsetenv are declared.
11235         * configure: Rebuild.
11236         * config.in: Rebuild.
11237         * system.h: Declare setenv and unsetenv if not declared.
11239 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11241         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
11242         commentary to simplify permute mask adjustment equation.
11243         (special_handling_values): Add SH_VPERM.
11244         (const_load_sequence_p): New function.
11245         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
11246         the mask loaded from the constant pool.
11247         (adjust_vperm): New function.
11248         (handle_special_swappables): Call adjust_vperm.
11249         (dump_swap_insn_table): Handle SH_VPERM.
11251 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
11253         * shrink-wrap.c (requires_stack_frame_p): Remove static.
11254         * shrink-wrap.h (requires_stack_frame_p): Put back.
11256 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
11258         * reload1.c (elimination_costs_in_insn): Locally turn
11259         -Wmaybe-uninitialized into a warning.
11261 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
11263         * shrink-wrap.c (requires_stack_frame_p): Make static.
11264         (prepare_shrink_wrap): Likewise.
11265         (dup_block_and_redirect): Likewise.
11266         * shrink-wrap.h: Remove declarations of those functions.
11268 2015-09-10  Mark Wielaard  <mjw@redhat.com>
11270         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
11272 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
11274         PR target/67506
11275         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
11276         missing simplify_gen_subreg.
11278 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11280         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
11281         the vector element is bigger than 64 bit.
11283 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11285         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
11286         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
11288 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11290         * config/s390/s390.c: Add V1TImode to constant pool modes.
11292 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11294         PR target/67439
11295         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
11296         predicate.  Set predicable_short_it attr to "no".
11298 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
11300         PR rtl-optimization/67421
11301         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
11302         left wide shift tranformation.
11304 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
11306         * common/config/arc/arc-common.c: Remove references to A5.
11307         * config/arc/arc-opts.h: Likewise.
11308         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
11309         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
11310         * config/arc/t-arc-newlib: Likewise.
11312 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
11314         * config/arc/arc.md (length): Fix attribute length for conditional
11315         executed instructions with long immediate.
11317 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11319         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
11320         type for second alternative.
11322 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
11324         * doc/invoke.texi (Downloading GCC): Mention
11325         contrib/download_prerequisites script.
11327 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
11329         PR c++/67523
11330         * gimplify.c (gimplify_omp_for): If inner stmt is not found
11331         for combined loop, assert seen_error () and return GS_ERROR.
11333         PR middle-end/67521
11334         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
11335         if decl is already in outer->variables.
11337         PR middle-end/67517
11338         * gimplify.c (gimplify_scan_omp_clauses): Instead of
11339         asserting that decl is not specified in octx->variables,
11340         break out of the loop if it is.
11342         PR c++/67514
11343         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
11344         iterator is not explicitly determined, but is defined inside
11345         of the combined workshare region, handle it like if it has
11346         DECL_EXPR in OMP_FOR_PRE_BODY.
11348 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11350         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
11351         (*cmp<mode>): Add assembler spacing.
11352         (setcc_int<mode>, set_cc_float<mode>): Likewise.
11353         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
11354         level.
11355         (write_func_decl_from_insn): Refactor argument loops & comma emission.
11356         (nvptx_expand_call): Likewise.
11357         (nvptx_output_call_insn): Likewise.
11358         (nvptx_reorg_subreg): Add spacing.
11360 2015-09-09  Marek Polacek  <polacek@redhat.com>
11362         PR middle-end/67512
11363         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
11364         for comparisons.
11366 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
11368         PR c++/53184
11369         * doc/invoke.texi ([Wsubobject-linkage]): Document.
11371 2015-09-09  Tom de Vries  <tom@codesourcery.com>
11373         * params-list.h: Add missing copyright notice.
11375 2015-09-09  Nathan Sidwell  <nathan@acm.org>
11377         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11378         sel_truesi, not andsi.
11380 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11382         * config/arm/arm.md (*subsi3_compare0): Rename to...
11383         (subsi3_compare0): ... This.
11384         (modsi3): New define_expand.
11385         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11386         when operand is power of 2.
11388 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11390         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11391         (*neg<mode>2_compare0): Rename to...
11392         (neg<mode>2_compare0): ... This.
11393         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11394         Move check for speed inside the if-then-elses.  Reflect
11395         CSNEG sequence in MOD by power of 2 case.
11397 2015-09-09  Alan Modra  <amodra@gmail.com>
11399         PR target/67378
11400         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11401         reload replacement for PRE_MODIFY address reg.
11403 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
11405         PR tree-optimization/53852
11406         * config.in: Regenerate.
11407         * configure: Regenerate.
11408         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11409         * graphite-optimize-isl.c (optimize_isl): Stop computation when
11410         PARAM_MAX_ISL_OPERATIONS is reached.
11411         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11412         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11413         result equal to isl_stat_ok as the status now can be isl_error_quota.
11414         (subtract_commutative_associative_deps): Same.
11415         (compute_deps): Same.
11417 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
11418             Sebastian Pop  <s.pop@samsung.com>
11420         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11421         Return the parameter if it was saved in corresponding
11422         parameter_rename_map of the region.
11423         (copy_def): Copy def from sese region to the newly created region.
11424         (copy_internal_parameters): Copy all the internal parameters defined
11425         within a region to the newly created region.
11426         (graphite_regenerate_ast_isl): Copy parameters to the new region before
11427         translating isl to gimple.
11428         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11429         the loop-nest does not have any data-references.
11430         (build_graphite_scops): Create a scop only when there is at least one
11431         loop inside it.
11432         (contains_only_close_phi_nodes): Deleted.
11433         (print_graphite_scop_statistics): Deleted
11434         (print_graphite_statistics): Deleted
11435         (limit_scops): Deleted.
11436         (build_scops): Removed call to limit_scops.
11437         * sese.c (new_sese): Construct.
11438         (free_sese): Destruct.
11439         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11440         added.
11441         (set_rename): Pass sese region so that parameters inside the region can
11442         be added to its parameter_rename_map.
11443         (rename_uses): Pass sese region.
11444         (graphite_copy_stmts_from_block): Do not copy parameters that have been
11445         generated in the header of the scop. For each SSA_NAME in the
11446         parameter_rename_map rename its usage.
11447         (invariant_in_sese_p_rec): Return false if tree t is defined outside
11448         sese region.
11449         (scalar_evolution_in_region): If the tree t is invariant just return t.
11450         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11451         struct sese to keep track of all the parameters which need renaming.
11452         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11453         any data-refs.
11454         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11456 2015-09-08  Tom de Vries  <tom@codesourcery.com>
11458         * Makefile.in (generated_files): Add params.list.
11459         (params.list, s-params.list): Add rule.
11460         * params.h (enum compiler_param): Include params-list.h.  Move define
11461         DEFPARAM, include params.def and undef DEFPARAM ...
11462         * params-list.h: ... here.  New file.
11464 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
11466         * pretty-print.h (printer_fn): Fix typo in comment.
11468 2015-09-07  Jeff Law  <law@redhat.com>
11470         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
11472 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11474         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
11475         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
11476         (arm_neon_fp16_hw): New.
11478 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11480         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
11481         UNITS_PER_WORD >= 4.
11483 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11485         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
11486         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
11487         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
11488         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
11489         (aarch64_float_extend_lo_v2df): Rename to...
11490         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
11492         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
11493         (float_extend_lo): Add v4sf.
11495         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
11496         * config/aarch64/iterators.md (VQ_HSF): New iterator.
11497         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
11498         (Vwide): New mode_attr.
11500 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11502         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
11503         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
11504         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
11505         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
11506         V4HF and V8HF variants to iterator.
11508         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11510         * config/aarch64/iterators.md (VDQF_F16): New.
11511         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11513 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11515         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11516         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11517         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11518         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11519         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11520         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11521         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11522         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11523         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11524         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11525         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11526         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11527         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11528         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11529         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11530         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11531         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11532         vld1q_dup_f16): New.
11534 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11536         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11537         Reparameterize to...
11538         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11539         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11540         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11542         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11543         v8hf variant.
11544         (float_truncate_lo_): Use BUILTIN_VDF iterator.
11546         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11548         * config/aarch64/iterators.md (VDF, Vdtype): New.
11549         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11551 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11553         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11554         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11555         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11556         Add __builtin_aarch64_simd_hf.
11557         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11558         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11559         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11560         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11561         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11562         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11563         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11564         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11565         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11567         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11568         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11569         (VDC, Vdbl): Add V4HF.
11571 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11573         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11574         V4HFmode and V8HFmode.
11575         (aarch64_split_simd_move): Add case for V8HFmode.
11576         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11577         (aarch64_simd_builtin_std_type): Handle HFmode.
11578         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11580         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11581         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11582         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11584         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11585         Float16x8_t.
11587         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11588         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11589         New typedefs.
11590         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11591         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11592         vst1q_lane_f16): New.
11593         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11594         (VALLDI_F16, VALL_F16): New.
11595         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11596         Add cases for V4HF and V8HF.
11597         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11599 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11601         * config/arm/arm-builtins.c (VAR11, VAR12): New.
11602         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11603         vld4_dup): Add v4hf variant.
11604         (vget_high, vget_low): Add v8hf variant.
11605         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11606         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11607         v4hf and v8hf variants.
11609         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11610         (VDX): Add V4HF.
11611         (V_DOUBLE): Add case for V4HF.
11612         (VQX): Add V8HF.
11613         (V_HALF): Add case for V8HF.
11614         (VDQX): Add V4HF, V8HF.
11615         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11616         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11618         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11619         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11620         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11621         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11622         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11623         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11624         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11625         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11626         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11628         (neon_vcreate, neon_vreinterpretv8qi<mode>,
11629         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11630         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11631         Change VDX to VD_RE.
11633         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11634         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11635         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11637         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11638         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11639         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11640         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11641         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11642         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11643         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11644         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11645         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11647 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11649         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11650         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11651         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11652         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11653         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11654         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11655         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11656         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11657         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11658         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11659         New.
11661 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11663         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11665         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11667         * config/arm/arm-builtins.c (v8hf_UP): New.
11668         (arm_init_simd_builtin_types): Initialise Float16x8_t.
11670         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11672         * config/arm/arm_neon.h (float16x8_t): New typedef.
11674 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11676         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11677         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11678         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11679         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11680         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11681         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11682         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11683         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11684         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11685         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11687 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
11689         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11690         non-alphanumeric characters in the symbol name.
11692 2015-09-07  Marek Polacek  <polacek@redhat.com>
11694         PR inline-asm/67448
11695         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11696         a memory input.
11698 2015-09-07  Marek Polacek  <polacek@redhat.com>
11700         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11702 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
11704         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11705         not warn.
11707 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
11709         PR middle-end/67452
11710         * tree-ssa-live.c: Include cfgloop.h.
11711         (remove_unused_locals): Clear loop->simduid if simduid is about
11712         to be removed from cfun->local_decls.
11714 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11716         PR target/65210
11717         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11718         attribute as well.
11720 2015-09-04  Tom de Vries  <tom@codesourcery.com>
11722         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11724 2015-09-04  Jeff Law  <law@redhat.com>
11726         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11727         unnecessary constructor.  It's now trivial and implemented inside...
11728         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11729         constructor.  Add comments to various methods.  Remove unused
11730         private fields.
11731         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11732         * tree-vrp.c (identify_jump_threads): Likewise.
11733         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11734         indentation issues.
11735         (thread_across_edge): Similarly.
11736         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11737         arguments in constructor call.
11739 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11741         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11742         temp path contains a '-'.
11744 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11745             Petr Murzin  <petr.murzin@intel.com>
11746             Kirill Yukhin  <kirill.yukhin@intel.com>
11748         * config/i386/i386-builtin-types.def
11749         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11750         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11751         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11752         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11753         * config/i386/i386.c
11754         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11755         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11756         IX86_BUILTIN_SCATTERALTDIV16SI.
11757         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11758         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11759         __builtin_ia32_scatteraltdiv8si.
11760         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11761         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11762         IX86_BUILTIN_SCATTERALTDIV16SI.
11763         (ix86_vectorize_builtin_scatter): New.
11764         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11765         ix86_vectorize_builtin_scatter.
11767 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11768             Petr Murzin  <petr.murzin@intel.com>
11769             Kirill Yukhin  <kirill.yukhin@intel.com>
11771         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11772         * doc/tm.texi: Regenerate.
11773         * target.def: Add scatter builtin.
11774         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11775         for loads/stores in case of gather/scatter accordingly.
11776         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11777         STMT_VINFO_GATHER_P(S).
11778         (vect_check_gather): Rename to ...
11779         (vect_check_gather_scatter): this.
11780         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11781         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11782         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11783         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11784         variable and new checkings for it accordingly.
11785         * tree-vect-stmts.c
11786         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11787         STMT_VINFO_GATHER_P(S).
11788         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11789         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11791 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
11793         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11794         define_insn.
11795         (mulv16qi3): New define_expand.
11797 2015-09-03  Martin Sebor  <msebor@redhat.com>
11799         PR c/66516
11800         * doc/extend.texi (Other Builtins): Document when the address
11801         of a built-in function can be taken.
11803 2015-09-03  Richard Biener  <rguenther@suse.de>
11805         * dwarf2out.c (flush_limbo_die_list): Split out from ...
11806         (dwarf2out_early_finish): ... here.
11807         (dwarf2out_finish): Do not call dwarf2out_early_finish but
11808         flush_limbo_die_list.  Assert we have no deferred asm names.
11810 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11812         * optabs.c (expand_binop): Don't create a broadcast vector with a
11813         source element wider than the inner mode.
11815 2015-09-03  Richard Biener  <rguenther@suse.de>
11817         * varasm.c (output_constant): Use fold_convert instead of
11818         wide_int_to_tree.
11820 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11822         PR tree-optimization/65637
11823         * omp-low.c (expand_omp_for_static_chunk): Handle case that
11824         fin_bb has 2 predecessors.
11826 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11828         PR tree-optimization/65637
11829         * omp-low.c (find_phi_with_arg_on_edge): New function.
11830         (expand_omp_for_static_chunk): Fix inner loop phi.
11832 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11834         PR tree-optimization/65637
11835         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11836         that head is NULL.
11838 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11840         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11842 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11844         * doc/invoke.texi (parloops-chunk-size): Add item.
11845         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11846         * tree-parloops.c: Include params.h.
11847         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11848         param parloops-chunk-size is used.
11850 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11852         PR middle-end/67351
11853         * fold-const.c (fold_binary_loc) : Move
11854         Transform (x >> c) << c into x & (-1<<c) or
11855         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11856         types using simplify and match.
11857         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11858         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11860 2015-09-03  Richard Biener  <rguenther@suse.de>
11862         PR ipa/66705
11863         * tree-ssa-structalias.c (ctor_for_analysis): New function.
11864         (create_variable_info_for_1): Use ctor_for_analysis instead
11865         of get_constructor.
11866         (create_variable_info_for): Likewise.
11868 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
11870         PR ipa/67280
11871         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11872         in new callgraph edge.
11874 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
11876         PR target/59810
11877         PR target/63652
11878         PR target/63653
11879         * config/aarch64/aarch64-simd.md
11880         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11881         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11882         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11883         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11885 2015-09-02  Alan Modra  <amodra@gmail.com>
11887         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11888         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11889         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11891 2015-09-02  Alan Modra  <amodra@gmail.com>
11893         PR target/67417
11894         * config/rs6000/predicates.md (current_file_function_operand): Don't
11895         return true for weak symbols.
11896         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11898 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11899             Andrew Bennett  <andrew.bennett@imgtec.com>
11901         * config/mips/mips-opts.h (mips_cb_setting): New enum.
11902         * config/mips/mips-protos.h: Add definitions for
11903         mips_output_jump and mips_output_equal_conditional_branch
11904         * config/mips/mips.c (MIPS_JR): Change to support the
11905         JIC instruction.
11906         (mips_emit_compare): Add support for the MIPS R6 conditional
11907         compact branches.
11908         (mips_process_sync_loop): Likewise.
11909         (mips_output_order_conditional_branch): Likewise.
11910         (mips16_build_call_stub): Change MIPS_CALL to
11911         mips_output_jump.
11912         (mips_print_operand_punctuation): Update 's' case to only
11913         apply to micromips r2.
11914         (mips_adjust_insn_length): Add support for forbidden slot
11915         hazards.
11916         (mips_avoid_hazard): Likewise.
11917         (mips_reorg_process_insns): Likewise.
11918         (mips_output_jump): New function.
11919         (mips_output_equal_conditional_branch): Likewise.
11920         (mips_output_conditional_branch): Use jrc/bc if compact
11921         branch support is enabled.  Ensure the forbidden slots
11922         between the two branch instructions is filled with a nop.
11923         (mips_option_override): Add support to process the compact
11924         branch option and set the correct defaults.  Prevent
11925         non-explict relocs being using for MIPS R6.
11926         (mips_trampoline_init): Add compact branch support.
11927         (mips_mult_zero_zero_cost): Allow zero initialisation of
11928         accumulators with TARGET_DSP.
11929         * config/mips/mips.h (TARGET_CB_NEVER): New define.
11930         (TARGET_CB_MAYBE): New define.
11931         (TARGET_CB_ALWAYS): New define.
11932         (ISA_HAS_DELAY_SLOTS): New define.
11933         (ISA_HAS_COMPACT_BRANCHES): New define.
11934         (ISA_HAS_JRC): New define.
11935         (MIPS_BRANCH_C): New define.
11936         (MIPS_CALL): Removed.
11937         (MICROMIPS_J): Removed.
11938         * config/mips/mips.md (compact_form): New attr.
11939         (hazard): Add support for forbidden slots.
11940         (define_delay): Add support for compact branches.
11941         (*branch_order<mode>): Likewise.
11942         (*branch_order<mode>_inverted): Likewise.
11943         (*branch_equality<mode>): Likewise.
11944         (*branch_equality<mode>_inverted): Likewise.
11945         (*jump_absolute): Likewise.
11946         (*jump_pic): Likewise.
11947         (indirect_jump): Use mips_output_jump to produce assembly output.
11948         (tablejump_<mode>"): Likewise.
11949         (*<optab>"): Likewise.
11950         (<optab>_internal): Likewise.
11951         (sibcall_internal): Likewise.
11952         (sibcall_value_internal): Likewise.
11953         (sibcall_value_multiple_internal): Likewise.
11954         (call_internal): Likewise.
11955         (call_split): Likewise.
11956         (call_internal_direct): Likewise.
11957         (call_direct_split): Likewise.
11958         (call_value_internal): Likewise.
11959         (call_value_split): Likewise.
11960         (call_value_internal_direct): Likewise.
11961         (call_value_direct_split): Likewise.
11962         (call_value_multiple_internal): Likewise.
11963         (call_value_multiple_split): Likewise.
11964         (mips_get_fcsr_mips16_<mode>): Likewise.
11965         (mips_set_fcsr_mips16_<mode>): Likewise.
11966         (tls_get_tp_mips16_<mode>): Likewise.
11967         * config/mips/mips.opt: Add -mcompact-branches option.
11968         * config/mips/predicates.md (order_operator): Ensure the
11969         conditional compact branches are only used if the ISA them.
11970         * doc/invoke.texi: Document -mcompact-branches option.
11972 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
11974         PR target/61578
11975         * lra-lives.c (process_bb_lives): Process move pseudos with the
11976         same value for copies and preferences
11977         * lra-constraints.c (match_reload): Create match reload pseudo
11978         with the same value from single dying input pseudo.
11980 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
11982         PR target/67405
11983         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11985 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
11987         * trans-mem.c: Add contributed-by.
11988         * trans-mem.h: Same.
11990 2015-09-01  Richard Biener  <rguenther@suse.de>
11992         * expr.c (expand_expr_real_1): For expanding TERed defs
11993         set the current location to that of the def if not UNKNOWN.
11995 2015-09-01  David Sherwood  <david.sherwood@arm.com>
11997         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11999 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12001         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
12002         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
12003         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
12004         Include rtl-iter.h.
12005         (noce_simple_bbs): New function.
12006         (noce_try_move): Bail if basic blocks are not simple.
12007         (noce_try_store_flag): Likewise.
12008         (noce_try_store_flag_constants): Likewise.
12009         (noce_try_addcc): Likewise.
12010         (noce_try_store_flag_mask): Likewise.
12011         (noce_try_cmove): Likewise.
12012         (noce_try_minmax): Likewise.
12013         (noce_try_abs): Likewise.
12014         (noce_try_sign_mask): Likewise.
12015         (noce_try_bitop): Likewise.
12016         (bbs_ok_for_cmove_arith): New function.
12017         (noce_emit_all_but_last): Likewise.
12018         (noce_emit_insn): Likewise.
12019         (noce_emit_bb): Likewise.
12020         (noce_try_cmove_arith): Handle non-simple basic blocks.
12021         (insn_valid_noce_process_p): New function.
12022         (contains_mem_rtx_p): Likewise.
12023         (bb_valid_for_noce_process_p): Likewise.
12024         (noce_process_if_block): Allow non-simple basic blocks
12025         where appropriate.
12027 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
12029         * tree-ssa-dom.c (record_equivalences_from_phis,
12030         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
12031         (lookup_avail_expr): Likewise, and remove comment and unused temp.
12033 2015-09-01  Nick Clifton  <nickc@redhat.com>
12035         * config/msp430/msp430.opt (mcpu): Fix typo.
12037 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12039         * config/aarch64/aarch64.c (aarch64_set_current_function):
12040         Re-layout any vector parameters have non-simd layout.
12041         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
12042         Delete.
12043         (aarch64_simd_expand_args): Delete call to the above.
12045 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
12047         * doc/invoke.texi (asan-stack): Add space before option.
12049 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
12051         * tree.h (zerop): New function.
12052         * tree.c (zerop): Likewise.
12053         (element_precision): Handle expressions.
12054         * match.pd (define_predicates): Add zerop.
12055         (x <= +Inf): Fix comment.
12056         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
12057         * fold-const.c (fold_binary_loc): ... here. Remove.
12059 2015-08-31  Richard Biener  <rguenther@suse.de>
12061         PR middle-end/67381
12062         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
12064 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
12066         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
12067         (CEXPI): New operator list.
12068         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
12069         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
12070         Converted from ...
12071         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
12073 2015-08-31  Tom de Vries  <tom@codesourcery.com>
12075         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
12076         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
12077         parameter.
12078         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
12079         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
12080         (rewrite_into_loop_closed_ssa): ... here.
12081         (replace_uses_in_dominated_bbs): Remove function.
12082         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
12083         rewrite_into_loop_closed_ssa_1.
12085 2015-08-31  Michael Matz  <matz@suse.de>
12087         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
12088         enter entry and exit blocks for reverse post order.
12090 2015-08-31  Richard Biener  <rguenther@suse.de>
12092         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
12093         (lto_location_cache::current_sysp): Likewise.
12094         (output_block::current_sysp): Likewise.
12095         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
12096         (lto_location_cache::apply_location_cache): Properly record
12097         system header locations.
12098         (lto_location_cache::input_location): Input whether a file
12099         is a system header.
12100         * lto-streamer-out.c (lto_output_location): Stream whether a file
12101         is a system header.
12103 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12105         PR bootstrap/67363
12106         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
12108 2015-08-31  Tom de Vries  <tom@codesourcery.com>
12110         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
12111         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
12112         Improve function header comments.
12114 2015-08-30  Michael Collison  <michael.collison@linaro.org>
12116         PR other/67320
12117         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
12118         standard names
12120 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12122         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
12123         special_handling bitfield.
12124         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
12125         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
12126         that represents a general xxpermdi.
12127         (insn_is_swappable_p): Add handling for vec_concat of two
12128         doublewords, which maps to a specific xxpermdi.
12129         (adjust_xxpermdi): New function.
12130         (adjust_concat): Likewise.
12131         (handle_special_swappables): Call adjust_xxpermdi and
12132         adjust_concat.
12133         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
12135 2015-08-30  Rich Felker <dalias@libc.org>
12137         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
12138         case instead of sh[123456ble]-*-*.
12140 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
12142         * ira.c (print_unform_and_important_classes,
12143         print_translated_classes): Remove reg_class_names static array.
12144         (print_unform_and_important_classes): Rename to ...
12145         (print_uniform_and_important_classes): ... this.
12146         (ira_debug_allocno_classes): Update accordingly.
12148 2015-08-29  Tom de Vries  <tom@codesourcery.com>
12150         PR tree-optimization/46193
12151         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
12152         clause.
12154 2015-08-28  Jeff Law  <law@redhat.com>
12156         PR lto/66752
12157         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12158         unable to find X NE 0 in the tables, return X as the simplified
12159         condition.
12160         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12161         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
12162         to VISISTED_BBS.
12163         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12164         after removing the control flow statement and unnecessary edges.
12166 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
12168         Revert:
12169         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12171         PR tree-optimization/67283
12172         * tree-sra.c (type_consists_of_records_p): Rename to...
12173         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12175         (completely_scalarize_record): Rename to...
12176         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
12177         code to:
12178         (scalarize_elem): New.
12180 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
12182         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
12183         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
12184         (aarch64_symbol_type): Likewise.
12185         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12186         Likewise.
12187         (aarch64_expand_mov_immediate): Likewise.
12188         (aarch64_print_operand): Likewise.
12189         (aarch64_classify_tls_symbol): Likewise.
12191 2015-08-28  Richard Biener  <rguenther@suse.de>
12193         * cgraphunit.c (symbol_table::compile): Move early debug generation
12194         and finish...
12195         (symbol_table::finalize_compilation_unit): ... back here and
12196         add a !seen_error () guard.
12198 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12200         * toplev.c (process_options): Do not use flag_loop_block,
12201         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
12202         flag_loop_optimize_isl.
12204 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12206         * Makefile.in (OBJS): Remove graphite-blocking.o and
12207         graphite-interchange.o.
12208         * common.opt (floop-strip-mine, floop-interchange, floop-block):
12209         Alias of floop-nest-optimize.
12210         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
12211         Document as alias of -floop-nest-optimize.
12212         * graphite-blocking.c: Remove.
12213         * graphite-interchange.c: Remove.
12214         * graphite-optimize-isl.c: Include dumpfile.h.
12215         (getScheduleForBand): Add dump for tiled loops.  Use
12216         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
12217         * graphite-poly.c (scop_max_loop_depth): Remove.
12218         (print_scattering_function_1): Remove.
12219         (print_scattering_function): Remove.
12220         (print_scattering_functions): Remove.
12221         (debug_scattering_function): Remove.
12222         (debug_scattering_functions): Remove.
12223         (apply_poly_transforms): Remove use of flag_loop_block,
12224         flag_loop_strip_mine, and flag_loop_interchange.
12225         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
12226         PBB_ORIGINAL.
12227         (print_pdr_access_layout): Remove.
12228         (print_pdr): Print ISL representation.
12229         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
12230         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
12231         (free_scop): Same.
12232         (openscop_print_pbb_domain): Remove.
12233         (print_pbb): Remove call to print_scattering_function.
12234         (openscop_print_scop_context): Remove.
12235         (print_scop_context): Do not print matrices anymore.
12236         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
12237         SCOP_TRANSFORMED_SCHEDULE.
12238         (print_isl_set): Add printing of a new line.
12239         (print_isl_map): Same.
12240         (print_isl_aff): Same.
12241         (print_isl_constraint): Same.
12242         (loop_to_lst): Remove.
12243         (scop_to_lst): Remove.
12244         (lst_indent_to): Remove.
12245         (print_lst): Remove.
12246         (debug_lst): Remove.
12247         (dot_lst_1): Remove.
12248         (dot_lst): Remove.
12249         (reverse_loop_at_level): Remove.
12250         (reverse_loop_for_pbbs): Remove.
12251         * graphite-poly.h (pdr_dim_iter_domain): Remove.
12252         (pdr_nb_params): Remove.
12253         (pdr_alias_set_dim): Remove.
12254         (pdr_subscript_dim): Remove.
12255         (pdr_iterator_dim): Remove.
12256         (pdr_parameter_dim): Remove.
12257         (same_pdr_p): Remove.
12258         (struct poly_scattering): Remove.
12259         (struct poly_bb): Remove _original, _transformed, _saved.
12260         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
12261         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
12262         (PBB_NB_LOCAL_VARIABLES): Remove.
12263         (PBB_NB_SCATTERING_TRANSFORM): Remove.
12264         (schedule_to_scattering): Remove.
12265         (number_of_write_pdrs): Remove.
12266         (pbb_dim_iter_domain): Remove.
12267         (pbb_nb_params): Remove.
12268         (pbb_nb_scattering_orig): Remove.
12269         (pbb_nb_scattering_transform): Remove.
12270         (pbb_nb_dynamic_scattering_transform): Remove.
12271         (pbb_nb_local_vars): Remove.
12272         (pbb_iterator_dim): Remove.
12273         (pbb_parameter_dim): Remove.
12274         (psco_scattering_dim): Remove.
12275         (psct_scattering_dim): Remove.
12276         (psct_local_var_dim): Remove.
12277         (psco_iterator_dim): Remove.
12278         (psct_iterator_dim): Remove.
12279         (psco_parameter_dim): Remove.
12280         (psct_parameter_dim): Remove.
12281         (psct_dynamic_dim): Remove.
12282         (psct_static_dim): Remove.
12283         (psct_add_local_variable): Remove.
12284         (new_lst_loop): Remove.
12285         (new_lst_stmt): Remove.
12286         (free_lst): Remove.
12287         (copy_lst): Remove.
12288         (lst_add_loop_under_loop): Remove.
12289         (lst_depth): Remove.
12290         (lst_dewey_number): Remove.
12291         (lst_dewey_number_at_depth): Remove.
12292         (lst_pred): Remove.
12293         (lst_succ): Remove.
12294         (lst_find_pbb): Remove.
12295         (find_lst_loop): Remove.
12296         (lst_find_first_pbb): Remove.
12297         (lst_empty_p): Remove.
12298         (lst_find_last_pbb): Remove.
12299         (lst_contains_p): Remove.
12300         (lst_contains_pbb): Remove.
12301         (lst_create_nest): Remove.
12302         (lst_remove_from_sequence): Remove.
12303         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
12304         (lst_niter_for_loop): Remove.
12305         (pbb_update_scattering): Remove.
12306         (lst_update_scattering_under): Remove.
12307         (lst_update_scattering): Remove.
12308         (lst_insert_in_sequence): Remove.
12309         (lst_replace): Remove.
12310         (lst_substitute_3): Remove.
12311         (lst_distribute_lst): Remove.
12312         (lst_remove_all_before_including_pbb): Remove.
12313         (lst_remove_all_before_excluding_pbb): Remove.
12314         (struct scop): Remove original_schedule, transformed_schedule, and
12315         saved_schedule.
12316         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
12317         (SCOP_SAVED_SCHEDULE): Remove.
12318         (poly_scattering_new): Remove.
12319         (poly_scattering_free): Remove.
12320         (poly_scattering_copy): Remove.
12321         (store_scattering_pbb): Remove.
12322         (store_lst_schedule): Remove.
12323         (restore_lst_schedule): Remove.
12324         (store_scattering): Remove.
12325         (restore_scattering_pbb): Remove.
12326         (restore_scattering): Remove.
12327         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12328         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
12329         compute the scattering polyhedron dimension from the dimension of
12330         pbb->domain.
12331         (build_scop_scattering): Update call to
12332         build_pbb_scattering_polyhedrons.
12333         (build_poly_scop): Remove call to scop_to_lst.
12334         * graphite.c (graphite_transform_loops): Add call to print_scop.
12335         (gate_graphite_transforms): Remove use of flag_loop_block,
12336         flag_loop_interchange, and flag_loop_strip_mine.
12338 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
12340         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
12341         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
12342         -floop-nest-optimize.
12343         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
12344         (generate_luj_sepclass): Remove.
12345         (generate_luj_options): Remove.
12346         (set_options): Remove opt_luj.
12347         (scop_to_isl_ast): Remove opt_luj.
12348         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
12349         flag_loop_unroll_jam.
12350         (getPrevectorMap_full): Remove.
12351         (getScheduleForBandList): Remove map_sepcl.
12352         (getScheduleMap): Same.
12353         (apply_schedule_map_to_scop): Remove sepcl.
12354         (optimize_isl): Same.
12355         * graphite-poly.c (apply_poly_transforms): Remove check for
12356         flag_loop_unroll_jam.
12357         (new_poly_bb): Remove map_sepclass.
12358         * graphite-poly.h (struct poly_bb): Same.
12359         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
12360         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
12361         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
12362         * toplev.c (process_options): Remove flag_loop_unroll_jam.
12364 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
12366         PR target/67317
12367         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
12368         (addqi3_cc): Ditto.
12369         (UNSPEC_ADD_CARRY): Remove.
12370         (addqi3_cconly_overflow): New expander.
12371         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
12372         Adjust for changed add<mode>3_carry.
12373         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
12374         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
12375         (<plusminus_insn><mode>3_carry): Remove expander.
12376         (*<plusminus_insn><mode>3_carry): Split insn pattern to
12377         add<mode>3_carry and sub<mode>3_carry.
12378         (plusminus_carry_mnemonic): Remove code attribute.
12379         (add<mode>3_carry): Canonicalize insn pattern.
12380         (*addsi3_carry_zext): Ditto.
12381         (sub<mode>3_carry): Ditto.
12382         (*subsi3_carry_zext): Ditto.
12383         (adcx<mode>3): Remove insn pattern.
12384         (addcarry<mode>): New insn pattern.
12385         (subborrow<mode>): Ditto.
12386         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12387         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12388         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12389         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12390         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12391         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12392         Rewrite expander to not clobber carry flag chains.
12394 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
12396         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12397         instead of a rotate.
12399 2015-08-27  Marek Polacek  <polacek@redhat.com>
12401         PR middle-end/67005
12402         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12403         an entry into an irreducible region.
12405 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12407         * configure: Regenerate.
12409 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12411         PR tree-optimization/67283
12412         * tree-sra.c (type_consists_of_records_p): Rename to...
12413         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12415         (completely_scalarize_record): Rename to...
12416         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12417         (scalarize_elem): New.
12419 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
12421         * tree-sra.c (completely_scalarize_var): Rename to...
12422         (create_total_scalarization_access): ... Here. Drop call to
12423         completely_scalarize_record.
12425         (analyze_all_variable_accesses): Replace completely_scalarize_var
12426         with create_total_scalarization_access and completely_scalarize_record.
12428 2015-08-27  Alan Modra  <amodra@gmail.com>
12430         PR target/67356
12431         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12432         for operand 1.
12434 2015-08-27  Richard Biener  <rguenther@suse.de>
12436         * passes.c (rest_of_decl_compilation): Guard early_global_decl
12437         call with !seen_error ().
12438         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12439         early debug generation and finish...
12440         (symbol_table::compile): ... here to put it after a !seen_error ()
12441         guard.
12443 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12445         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12446         Solaris 12+.
12448 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12449             Andre Vieira  <andre.simoesdiasvieira@arm.com>
12451         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12452         (*cb<optab><mode>1): Likewise.
12453         (*tb<optab><mode>1): Likewise.
12454         (*cb<optab><mode>1): Likewise.
12455         * config/aarch64/iterators.md (inv_cb): New code attribute.
12456         (inv_tb): Likewise.
12457         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12458         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12460 2015-08-27  Richard Biener  <rguenther@suse.de>
12462         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12464 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12466         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12467         trap to fix ICE.
12469 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12471         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
12472         Add declaration.
12474         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
12475         comment.
12476         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
12477         floating point in VSX registers.
12478         (rs6000_output_move_128bit): Always print out the set insn if we
12479         can't generate an appropriate 128-bit move.
12480         (rs6000_generate_compare): Add support for IEEE 128-bit floating
12481         point in VSX registers comparisons.
12482         (rs6000_expand_float128_convert): Likewise.
12484         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
12485         predicate for only GPR hard registers.
12487         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
12488         modes to iterators. Add new iterators for moving 128-bit values in
12489         scalar FPR registers and VSX registers.
12490         (FMOVE128): Likewise.
12491         (FMOVE128_FPR): Likewise.
12492         (FMOVE128_GPR): Likewise.
12493         (FMOVE128_VSX): Likewise.
12494         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
12495         in VSX registers.
12496         (IFKF): Likewise.
12497         (IBM128): Likewise.
12498         (TFIFKF): Likewise.
12499         (RELOAD): Add IEEE 128-bit floating point modes.
12500         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
12501         floating point in VSX registers modes.
12502         (signbit<mode>2, IBM128 iterator): Likewise.
12503         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
12504         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12505         (negtf2): Likewise.
12506         (neg<mode>2, TFIFKF iterator): Likewise.
12507         (negtf2_internal): Likewise.
12508         (abstf2): Likewise.
12509         (abs<mode>2, TFIFKF iterator): Likewise.
12510         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12511         VSX insn support for negate, absolute value, and negative absolute
12512         value.
12513         (ieee_128bit_vsx_neg<mode>2): Likewise.
12514         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12515         (ieee_128bit_vsx_abs<mode>2): Likewise.
12516         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12517         (ieee_128bit_vsx_nabs<mode>2): Likewise.
12518         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12519         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12520         floating point in VSX registers.
12521         (unpack<mode>_dm): Likewise.
12522         (unpack<mode>_nodm): Likewise.
12523         (pack<mode>): Likewise.
12524         (unpackv1ti): Likewise.
12525         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12526         (packv1ti): Likewise.
12527         (pack<mode>, FMOVE128_VSX iterator): Likewise.
12528         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12529         registers.
12530         (extenddftf2_internal): Likewise.
12531         (trunctfdf2): Likewise.
12532         (trunctfdf2_internal2): Likewise.
12533         (fix_trunc_helper): Likewise.
12534         (fix_trunctfdi2"): Likewise.
12535         (floatditf2): Likewise.
12536         (floatuns<mode>tf2): Likewise.
12537         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12538         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12539         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12540         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12541         (float<SDI:mode><IFKF:mode>2): Likewise.
12542         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12544 2015-08-26  Renlin Li  <renlin.li@arm.com>
12546         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12548 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12549             Jiong Wang  <jiong.wang@arm.com>
12551         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12552         (tlsie_tiny_<mode>): New define_insn.
12553         (tlsie_tiny_sidi): Likewise.
12554         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12555         SYMBOL_TINY_TLSIE.
12556         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12557         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12558         SYMBOL_TINY_TLSIE.
12559         (aarch64_expand_mov_immediate): Likewise.
12560         (aarch64_print_operand): Likewise.
12561         (arch64_classify_tls_symbol): Likewise.
12563 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12565         * config/arm/arm-arches.def: Replace single value flags with
12566         an initializer built from ARM_FSET_MAKE_CPU1.
12567         * config/arm/arm-cores.def: Likewise.
12568         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12569         derivation from the ARM_CORE macro definition, use the given value
12570         instead.
12571         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12572         ARM_ARCH macro definition, use the given value instead.
12574 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12576         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12577         feature set.
12578         (struct builtin_description): Replace field mask with field
12579         features.
12580         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12581         (IWMMXT2_BUILTIN): Likewise.
12582         (IWMMXT2_BUILTIN2): Likewise.
12583         (FP_BUILTIN): Likewise.
12584         (CRC32_BUILTIN): Likewise.
12585         (CRYPTO_BUILTIN): Likewise.
12586         (iwmmx_mbuiltin): Likewise.
12587         (iwmmx2_mbuiltin): Likewise.
12588         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12589         struct builtin_description.
12591 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12593         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12594         (struct builtin_description): Change type of mask to unsigned
12595         long.
12596         * config/arm/arm-protos.h (insn_flags): Declare as type
12597         arm_feature_set.
12598         (tune_flags): Likewise.
12599         * config/arm/arm.c (feature_count): New.
12600         (insn_flags): Define as type arm_feature_set.
12601         (tune_flags): Likewise.
12602         (struct processors): Define field flags as type arm_feature_set.
12603         (all_cores): Update for change to struct processors.
12604         (all_architectures): Likewise.
12605         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12606         macros.
12607         (arm_option_override_internal): Likewise.
12608         (arm_option_override): Likewise.
12610 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12611             Jiong Wang  <jiong.wang@arm.com>
12613         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12614         tls size for tiny, small, large memory model.
12615         (aarch64_load_symref_appropriately): Support new symbol types.
12616         (aarch64_expand_mov_immediate): Likewise.
12617         (aarch64_print_operand): Likewise.
12618         (aarch64_classify_tls_symbol): Likewise.
12619         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12620         (aarch64_symbol_type): Likewise.
12621         * config/aarch64/aarch64.md (tlsle): Deleted.
12622         (tlsle12_<mode>): New define_insn.
12623         (tlsle24_<mode>): Likewise.
12624         (tlsle32_<mode>): Likewise.
12625         (tlsle48_<mode>): Likewise.
12626         * doc/sourcebuild.texi (AArch64-specific attributes): Document
12627         "aarch64_tlsle32".
12629 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12631         * config/arm/arm-protos.h (FL_NONE): New.
12632         (FL_ANY): New.
12633         (arm_feature_set): New.
12634         (ARM_FSET_MAKE): New.
12635         (ARM_FSET_MAKE_CPU1): New.
12636         (ARM_FSET_MAKE_CPU2): New.
12637         (ARM_FSET_CPU1): New.
12638         (ARM_FSET_CPU2): New.
12639         (ARM_FSET_EMPTY): New.
12640         (ARM_FSET_ANY): New.
12641         (ARM_FSET_HAS_CPU1): New.
12642         (ARM_FSET_HAS_CPU2): New.
12643         (ARM_FSET_HAS_CPU): New.
12644         (ARM_FSET_ADD_CPU1): New.
12645         (ARM_FSET_ADD_CPU2): New.
12646         (ARM_FSET_DEL_CPU1): New.
12647         (ARM_FSET_DEL_CPU2): New.
12648         (ARM_FSET_UNION): New.
12649         (ARM_FSET_INTER): New.
12650         (ARM_FSET_XOR): New.
12651         (ARM_FSET_EXCLUDE): New.
12652         (AFM_FSET_IS_EMPTY): New.
12653         (ARM_FSET_CPU_SUBSET): New.
12655 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12657         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12658         SYMBOL_TLSLE to SYMBOL_TLSLE24.
12659         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12660         Likewise.
12661         (aarch64_expand_mov_immediate): Likewise.
12662         (aarch64_print_operand): Likewise.
12663         (aarch64_classify_symbol): Likewise.
12665 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12667         * config/aarch64/aarch64.opt (mtls-size): New entry.
12668         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12669         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12670         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12672 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12674         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12675         ARM_CORE entry.  Fix some white-space.
12676         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12677         ARM_CORE definition.
12679 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12681         * fold-const.c (fold_binary_loc) : Move Optimize
12682         root(x)*root(y) as root(x*y) to match.pd.
12683         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12684         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12685         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12686         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12687         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12688         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12689         (mult (exps:s @0) (exps:s @1)) : New simplifier.
12690         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12691         (rdiv @0 (exps:s @1)) : New simplifier.
12693 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
12695         * gcc.c (driver::finalize): Only assign to extra_specs if
12696         [EXTRA_SPECS].
12698 2015-08-25  Marek Polacek  <polacek@redhat.com>
12700         PR middle-end/67330
12701         * varasm.c (declare_weak): Return after giving an error.
12703 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
12705         * gcc-main.c (main): Add params to driver ctor.
12706         * gcc.c (class env_manager): New.
12707         (env): New global.
12708         (env_manager::init): New.
12709         (env_manager::get): New.
12710         (env_manager::xput): New.
12711         (env_manager::restore): New.
12712         Poison getenv and putenv.
12713         (DEFAULT_TARGET_SYSTEM_ROOT): New.
12714         (target_system_root): Update initialization to use
12715         DEFAULT_TARGET_SYSTEM_ROOT.
12716         (struct spec_list): Add field "default_ptr".
12717         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12718         (init_spec): Likewise.
12719         (set_spec): Clear field "default_ptr".
12720         (read_specs): Free "spec" and "buffer".
12721         (xputenv): Reimplement in terms of env_manager.
12722         (process_command): Replace ::getenv calls with calls to the
12723         env_manager singleton.
12724         (process_brace_body): Free string in three places.
12725         (driver::driver): New.
12726         (driver::~driver): New.
12727         (used_arg): Convert from a function to...
12728         (class used_arg_t): ...this class, and...
12729         (used_arg): ...this new global instance.
12730         (used_arg_t::finalize): New function.
12731         (getenv_spec_function): Add "const" to local "value".  Replace
12732         ::getenv call with call to the env_manager singleton.
12733         (path_prefix_reset): New function.
12734         (driver::finalize): New function.
12735         * gcc.h (driver::driver): New.
12736         (driver::~driver): New.
12737         (driver::finalize): New.
12739 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12741         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12742         target doesn't have one.
12744 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12746         PR target/67346
12747         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12749 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12751         PR target/67344
12752         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12753         a define_insn, remove second alternative.
12755 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
12756             Joseph Myers  <joseph@codesourcery.com>
12758         * gcc.c (struct switchstr): Expand comment.
12760 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12762         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12763         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12765 2015-08-25  Richard Biener  <rguenther@suse.de>
12767         PR middle-end/67306
12768         * genmatch.c (expr::gen_transform): Verify the result of
12769         builtin_decl_implicit.
12770         (dt_simplify::gen_1): Likewise.
12772 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12774         * config/arm/constraints.md: Also list Cs and US ARM-specific
12775         constraints as used.
12777 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12779         PR target/66609
12780         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12781         UNSPEC_PCREL.
12782         (nonpic_symbol_mentioned_p): Likewise.
12783         (sh_delegitimize_address): Likewise.
12784         (sh_function_ok_for_sibcall): Take into account weak symbols.
12785         (sh_expand_sym_label2reg): New.
12786         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12787         * config/sh/sh.md (UNSPEC_PCREL): New enum.
12788         (call_pcrel): Use sh_expand_sym_label2reg.
12789         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12790         (symPCREL_label2reg) New expand.
12792 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12794         * graphite-poly.c: Change type of region from void* to sese.
12795         * graphite-poly.h (struct scop): Changing the type of scop::region
12796         from void* to sese. Change accessor macro accordingly.
12797         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12799 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12801         * graphite-scop-detection.c (stmt_simple_for_scop_p):
12802         Constrain only on INTEGER_TYPE.
12804 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12806         PR target/67211
12807         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12808         -mefficient-unaligned-vsx on ISA 2.7.
12810         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12811         option to a masked option.
12813         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12814         logic for -mefficient-unaligned-vsx so that it is set via an arch
12815         ISA option, instead of being set if -mtune=power8 is set. Move
12816         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12817         near other default option handling.
12819 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12821         * genflags.c (gen_macro): Delete.
12822         (gen_proto): Don't create GEN.*CALL.* macros.
12823         * gensupport.h (get_file_location): Declare.
12824         * gensupport.c (rtx_locs): New variable.
12825         (read_md_rtx): Record rtx locations.
12826         (get_file_location): New function.
12827         * target-insns.def (call, call_pop, call_value, call_value_pop)
12828         (sibcall, sibcall_value): New patterns.
12829         * gentarget-def.c (parse_argument): New function.
12830         (def_target_insn): Use it.  Handle optional operands.  Raise an
12831         error if an .md pattern has the wrong number of operands for the
12832         pattern name.  Remove the names of unused operands from the prototype.
12833         * builtins.c (expand_builtin_apply): Use targetm functions
12834         instead of HAVE_call_value and GEN_CALL_VALUE.
12835         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
12836         and sibcall_value_pop.
12837         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12838         of GEN_CALL.
12839         * config/alpha/alpha.md (untyped_call): Likewise.
12840         * config/iq2000/iq2000.md (untyped_call): Likewise.
12841         * config/m68k/m68k.md (untyped_call): Likewise.
12842         * config/mips/mips.md (untyped_call): Likewise.
12843         * config/pa/pa.md (untyped_call): Likewise.
12844         * config/rs6000/rs6000.md (untyped_call): Likewise.
12845         * config/sparc/sparc.md (untyped_call): Likewise.
12846         * config/tilegx/tilegx.md (untyped_call): Likewise.
12847         * config/tilepro/tilepro.md (untyped_call): Likewise.
12848         * config/visium/visium.md (untyped_call): Likewise.
12849         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12850         gen_call_value instead of GEN_CALL_VALUE.
12851         * config/arm/arm.md (untyped_call): Likewise.
12852         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12853         GEN_CALL.
12855 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12857         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12858         (have_cbranchcc4): New variable.
12859         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12860         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12861         (if_convert): Initialize have_cbranchcc4.
12863 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12865         * builtins.c (expand_cmpstrn): Rename to...
12866         (expand_cmpstrn_or_cmpmem): ...this.
12867         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12868         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12869         Remove mode argument.
12870         (expand_builtin): Update accordingly.
12872 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12874         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12875         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
12876         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12877         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12878         Add predicates for operands 0 and 3.
12879         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12880         operand.
12881         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12882         immediate_operand to nonmemory_operand.
12884 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12886         * df-scan.c (df_insn_info_init_fields): New function, split out
12887         from...
12888         (df_insn_create_insn_record): ...here.
12889         (df_insn_info_free_fields): New function, split out from...
12890         (df_insn_info_delete): ...here.
12891         (df_insn_rescan): Use the new functions instead of freeing and
12892         reallocating the df_insn_info.
12894 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12896         * doc/install.texi (Binaries): Remove links no longer valid.
12898 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
12900         * config/nvptx/mkoffload.c (process): Replace
12901         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12903 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
12905         PR target/67329
12906         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12908 2015-08-24  Renlin Li  <renlin.li@arm.com>
12910         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12911         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12912         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12913         * config/arm/constraints.md ("j"): Add check for high code.
12915 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12917         PR tree-optimization/65468
12918         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12919         chunk_size is one.
12921 2015-08-24  Nathan Sidwell  <nathan@acm.org>
12923         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12924         change to nvptx_type_from_mode call. Use arg_promotion for both
12925         split and non-split args.
12927 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12929         * target-insns.def (movstr): New pattern.
12930         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12931         (expand_movstr): Use targetm rather than HAVE_movstr/
12932         CODE_FOR_movstr.
12934 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12936         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12937         cast syntax.
12939 2015-08-24  Andrew Pinski  <apinski@cavium.com>
12941         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12942         AARCH64_EXTRA_TUNING_OPTION.
12943         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12944         New enum.
12945         (aarch64_extra_tuning_flags): Base the shifted value on the index
12946         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12947         * config/aarch64/aarch64.c: Remove the last argument to
12948         AARCH64_EXTRA_TUNING_OPTION.
12950 2015-08-23  Nathan Sidwell  <nathan@acm.org>
12952         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12953         decls.
12954         (nvptx_declare_function_name): Insert formatting tabs for
12955         consistency.
12957 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12959         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12960         parm_decl, rather than generating a dummy default def in cfun.
12961         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
12962         ssa_name from cfun and child_fn do not share a stmt as def stmt.
12963         (move_stmt_op): Handle PARM_DECl.
12964         (gather_ssa_name_hash_map_from): New function.
12965         (move_sese_region_to_fn): Add default defs for function params, and add
12966         them to vars_map.  Release copied ssa names.
12967         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12969 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12971         * doc/sourcebuild.texi: Rename vect_no_int_max with
12972         vect_no_int_min_max.  Update description.
12974 2015-08-22  Andrew Pinski  <apinski@cavium.com>
12976          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12977         * config/aarch64/aarch64-protos.h
12978         (aarch64_fusion_pairs_index): New enum.
12979         (aarch64_fusion_pairs): Base the shifted value on the index instead
12980         Rewrite AARCH64_FUSE_ALL to be based on the end index.
12981         of the argument to AARCH64_FUSION_PAIR.
12982         * config/aarch64/aarch64.c: Remove the last argument to
12983         AARCH64_FUSION_PAIR.
12985 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
12987         * dominance.c (new_zero_array): Define.
12988         (dom_info): Redefine as class with proper encapsulation.
12989         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12990         Add new members.
12991         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
12992         allocations/deallocations.  Pass function as parameter (instead of
12993         using cfun).
12994         (dom_info::get_idom): Define accessor method.
12995         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12996         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
12997         (calculate_dominance_info): Adjust to use dom_info class.
12998         (verify_dominators): Likewise.
13000 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
13002         * print-rtl.c (print_rtx): Check the correct range for
13003         flag_dump_unnumbered_links to behave as documented.
13005         PR rtl-optimization/67227
13006         PR rtl-optimization/64164
13007         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
13008         (nonoverlapping_memrefs_p): Test offsets and sizes when given
13009         identical gimple_reg exprs.
13011 2015-08-21  Nathan Sidwell  <nathan@acm.org>
13013         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
13014         expansion.
13015         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
13016         crtl->stack_alignment_needed to determine alignment.
13017         (nvptx_get_drap_rtx): New.
13018         (TARGET_GET_DRAP_RTX): Override.
13019         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
13021 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13023         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
13025 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13027         * configure.ac: Remove uwin* cases.
13028         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
13029         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
13030         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
13031         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
13032         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
13033         i[34567]86-*-uwin*, powerpc-*-beos*.
13035 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
13037         * gencodes.c (gencodes): Print the comma for the preceding
13038         enum value rather than the current one.  Use aliased enum values
13039         rather than #defines for compiled-out patterns.
13040         (main): Update accordingly.  Replace LAST_INSN_CODE with
13041         NUM_INSN_CODES.
13042         * lra.c (insn_code_data): Update accordingly.
13043         (finish_insn_code_data_once, get_static_insn_data): Likewise.
13044         * recog.h (target_recog): Likewise.
13045         (preprocess_insn_constraints): Change parameter to unsigned int.
13046         * recog.c (preprocess_insn_constraints): Likewise.
13047         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
13048         * tree-vect-stmts.c (vectorizable_operation): Simplify.
13050 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13052         PR rtl-optimization/61657
13053         * loop-iv.c (iv_number_of_iterations): Declare up and down as
13054         unsigned.  Remove superflous uint64_t cast.
13056 2014-08-21  Felix Yang  <felix.yang@huawei.com>
13057             Jiji Jiang  <jiangjiji@huawei.com>
13059         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
13060         argument and get builtin function code directly from CALL.
13061         (gimple_stringop_fixed_value): Modified accordingly.
13062         (gimple_stringops_transform, gimple_stringops_values_to_profile):
13063         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
13065 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13067         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
13069 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13071         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
13072         to match.pd.
13073         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
13074         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
13075         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
13076         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
13077         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
13078         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
13079         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
13080         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
13081         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
13082         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
13084         * match.pd (SIN ) : New Operator.
13085         (TAN) : New Operator.
13086         (mult (SQRT@1 @0) @1) : New simplifier.
13087         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
13088         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13089         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
13090         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
13091         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
13092         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
13093         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
13094         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
13095         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
13096         (rdiv @0 (POW:s @1 @2)) : New simplifier.
13098 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
13100         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
13101         loop if EXPR is simplified to const value.
13103 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
13105         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
13106         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
13108 2015-08-21  Richard Biener  <rguenther@suse.de>
13110         PR middle-end/67285
13111         * gimple-fold.c (replace_stmt_with_simplification): Assert
13112         seq is empty when replacing a call with itself but different
13113         arguments.
13114         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
13115         a call require that it is const.
13117 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13119         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
13120         * builtins.c (get_object_alignment_2): Adjust.
13121         * varasm.c (align_variable): Likewise.
13122         (get_variable_align): Likewise.
13123         (build_constant_desc): Likewise.
13124         (force_const_mem): Likewise.
13125         * doc/tm.texi.in: Likewise.
13126         * doc/tm.texi: Regenerate.
13128 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13130         * genconfig.c (main): Always define HAVE_cc0.
13131         * recog.c (rest_of_handle_peephole2): Adjust.
13133 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13135         * reorg.c (relax_delay_slots): Don't use #if to check value of
13136         HAVE_cc0.
13138 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13140         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
13141         * targhooks.c (default_have_conditional_execution): Adjust.
13143 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
13145         * rtl.h (rtvec_all_equal_p): Declare.
13146         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
13147         * rtl.c (rtvec_all_equal_p): New function.
13148         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
13149         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
13150         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
13151         * config/arm/arm.c (neon_vdup_constant): Likewise.
13152         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
13153         * config/tilegx/constraints.md (W, Y): Likewise.
13154         * config/tilepro/constraints.md (W, Y): Likewise.
13155         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
13156         (classify_immediate): Use unwrap_const_vec_duplicate.
13157         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
13158         (reg_or_v2s8bit_operand): Likewise.
13159         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
13160         (reg_or_v4s8bit_operand): Likewise.
13162 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13164         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
13165         (vec_shasigma_be): New #define.
13166         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
13167         (VPMSUMH): Likewise.
13168         (VPMSUMW): Likewise.
13169         (VPMSUMD): Likewise.
13170         (VPMSUM): New BU_P8V_OVERLOAD_2.
13171         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
13172         entries for VEC_MADD and VEC_VPMSUM.
13174 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
13176         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
13177         Multiply argument avr_n_flash by 64 to match unit of "KiB".
13178         (avr_pgm_check_var_decl): Same.
13180 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
13182         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
13183         initialization of HFmode scalar type (float16_t) to...
13184         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
13185         code.
13187         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
13189         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
13190         having an -mfp16-format.
13192 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
13194         * config/i386/predicates.md (vector_all_ones_operand): Use
13195         CONSTM1_RTX to simplify definition.
13197 2015-08-20  Richard Biener  <rguenther@suse.de>
13199         * toplev.c (compile_file): Remove loop calling late_global_decl
13200         on all symbols.
13201         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
13202         on decls we assembled.
13204 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
13206         * common/config/aarch64/aarch64-common.c
13207         (AARCH64_CPU_NAME_LENGTH): Delete.
13208         (aarch64_option_extension): New.
13209         (all_extensions): Likewise.
13210         (processor_name_to_arch): Likewise.
13211         (arch_to_arch_name): Likewise.
13212         (all_cores): New.
13213         (all_architectures): Likewise.
13214         (aarch64_get_extension_string_for_isa_flags): Likewise.
13215         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
13216         architecture names.
13217         * config/aarch64/aarch64-protos.h
13218         (aarch64_get_extension_string_for_isa_flags): New.
13219         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
13220         (aarch64_option_print): Get the string to print from
13221         aarch64_get_extension_string_for_isa_flags.
13222         (aarch64_declare_function_name): Likewise.
13223         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
13224         (MCPU_TO_MARCH_SPEC): This.
13225         (ASM_CPU_SPEC): Use it.
13226         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
13227         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
13228         (EXTRA_SPEC_FUNCTIONS): Use it.
13230 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
13232         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
13233         expansion when !ISA_HAS_LWL_LWR.
13234         (mips_block_move_straight): Update the size of elements copied to
13235         account for alignment when !ISA_HAS_LWL_LWR.
13236         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
13238 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
13240         * expr.c (expand_expr_real_2): Check gimple statement during
13241         LSHIFT_EXPR expand.
13243 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
13245         * common.opt (fstack-protector): Initialize to -1.
13246         (fstack-protector-all): Likewise.
13247         (fstack-protector-strong): Likewise.
13248         (fstack-protector-explicit): Likewise.
13249         * configure.ac: Add --enable-default-ssp.
13250         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
13251         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
13252         -1.
13253         * doc/install.texi: Document --enable-default-ssp.
13254         * config.in: Regenerated.
13255         * configure: Likewise.
13257 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
13259         PR rtl-optimization/64164
13260         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
13261         (parm_in_stack_slot_p): ... this.  Disregard mode, what
13262         matters is whether the parm will live in a pseudo or a stack
13263         slot.
13264         (expand_one_ssa_partition): Deal with params without a default
13265         def.  Disregard mode.
13266         * cfgexpand.h: Renamed function declaration.
13267         * tree-ssa-coalesce.c: Adjust.
13268         * function.c (split_complex_args): Allocate stack slot for
13269         unassigned parms before splitting.
13270         (parm_in_unassigned_mem_p): New.  Use it instead of
13271         parm_maybe_byref_p throughout this file.
13272         (assign_parm_setup_block): Use it.  Accept pseudos in the
13273         expand-assigned rtl.
13274         (assign_parm_setup_reg): Drop BLKmode requirement.
13275         (assign_parm_setup_stack): Allocate and fill in the address of
13276         unassigned MEM parms.
13278 2015-08-19  David Sherwood  <david.sherwood@arm.com>
13280         * genmodes.c (emit_mode_unit_size_inline): New function.
13281         (emit_mode_unit_precision_inline): New function.
13282         (emit_insn_modes_h): Emit new #define.  Emit new functions.
13283         (emit_mode_unit_size): New function.
13284         (emit_mode_unit_precision): New function.
13285         (emit_mode_adjustments): Add mode_unit_size adjustments.
13286         (emit_insn_modes_c): Emit new arrays.
13287         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
13288         use new inline methods.
13290 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13292         * config/aarch64/aarch64.c (bit_count): Delete prototype
13293         and definition.
13294         (aarch64_print_operand): Use popcount_hwi instead of the above.
13296 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13298         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
13299         comment.
13301 2015-08-19  Marek Polacek  <polacek@redhat.com>
13303         PR middle-end/67133
13304         * gimple-ssa-isolate-paths.c
13305         (insert_trap_and_remove_trailing_statements): Rename to ...
13306         (insert_trap): ... this.  Don't remove trailing statements; split
13307         block instead.
13308         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
13310 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
13312         PR other/67042
13313         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
13314         conditionalize the whole on __GNUC__.  Add fallback code
13315         depending neither on undefined nor implementation-defined behaviour.
13317 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
13319         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
13320         whitespaces with tab.
13322 2015-08-19  Florian Weimer  <fweimer@redhat.com>
13324         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
13325         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
13326         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
13327         Move Name_Ids instantiation to the Prj.Proc package, to avoid
13328         trampolines.
13330 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13332         * config/arm/arm.c (bounds_check): Use %wd print format
13333         for HOST_WIDE_INT arguments.
13335 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
13337         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
13338         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
13339         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
13340         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
13341         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
13342         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
13343         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
13344         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
13345         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
13346         typedefs.
13348 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
13350         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
13351         function.c, graphite-scop-detection.c, haifa-sched.c,
13352         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
13353         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
13354         varasm.c: Remove typedefs of structs.
13356 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13358         * config/rs6000/altivec.h (vec_adde): New define.
13359         (vec_addec): Likewise.
13360         (vec_double): Likewise.
13361         (vec_bperm): Likewise.
13362         (vec_gb): Likewise.
13363         * config/rs6000/rs6000-builtin.def (ADDE): New
13364         BU_ALTIVEC_OVERLOAD_3.
13365         (ADDEC): Likewise.
13366         (DOUBLE): New BU_VSX_OVERLOAD_1.
13367         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
13368         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
13369         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
13370         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
13371         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
13372         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
13373         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
13374         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
13375         and P8V_BUILTIN_VEC_VBPERMQ.
13377 2015-08-18  Jason Merrill  <jason@redhat.com>
13379         * print-tree.c (print_node): Handle TREE_BINFO.
13381 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13383         PR middle-end/36757
13384         * builtins.c (expand_builtin_signbit): Add asserts to make sure
13385         we can expand BUILT_IN_SIGNBIT inline.
13386         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13387         * doc/extend.texi: Document the type-generic __builtin_signbit.
13389 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
13391         PR rtl-optimization/67218
13392         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13393         (simplify_unary_operation_1): Use it.
13395 2015-08-18  Marek Polacek  <polacek@redhat.com>
13397         PR middle-end/67222
13398         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13399         if the call isn't valid.
13400         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13401         gimple_call_builtin_p.
13402         (call_may_clobber_ref_p_1): Likewise.
13403         (stmt_kills_ref_p): Likewise.
13405 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13407         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13408         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13409         (mips_hard_regno_scratch_ok): Likewise.
13410         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13411         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13413 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
13415         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13416         (determine_value_range): Call refine_value_range_using_guard for
13417         each loop initial condition to improve value range.
13419 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
13421         * config/i386/i386.c: Remove include of fibheap.h.
13423 2015-08-17  Richard Biener  <rguenther@suse.de>
13425         PR tree-optimization/67221
13426         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13427         (sccvn_dom_walker::before_dom_children): Mark backedges of
13428         non-executable blocks as not executable.
13430 2015-08-17  David Sherwood  <david.sherwood@arm.com>
13432         * config/arm/arm.c (neon_element_bits): Replace call to
13433         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13434         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13435         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13436         (neon_vdup_lane<mode>): Likewise.
13437         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13438         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13439         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13440         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13441         * config/spu/spu.c (arith_immediate_p): Likewise.
13442         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13443         * expr.c (expand_expr_real_2): Likewise.
13444         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13445         * simplify-rtx.c (simplify_immed_subreg): Likewise.
13446         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13447         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13448         New variable.
13449         * fold-const.c (fold_binary_loc): Replace call to
13450         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13451         GET_MODE_UNIT_PRECISION (m).
13453 2015-08-17  Mike Stump  <mikestump@comcast.net>
13455         * config/arm/arm.c (arm_block_move_unaligned_straight):
13456         Emit normal move instead of unaligned load when source or destination
13457         are appropriately aligned.
13459 2015-08-17  Richard Biener  <rguenther@suse.de>
13460             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13462         PR middle-end/16107
13463         * match.pd (div (coss (op @0) : New simplifier.
13465 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
13467         PR rtl-optimization/64164
13468         PR bootstrap/66978
13469         PR middle-end/66983
13470         PR rtl-optimization/67000
13471         PR middle-end/67034
13472         PR middle-end/67035
13473         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13474         * tree-ssa-copyrename.c: Removed.
13475         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13476         -ftree-coalesce-vars.
13477         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13478         * common.opt (ftree-copyrename): Ignore.
13479         (ftree-coalesce-inlined-vars): Likewise.
13480         * doc/invoke.texi: Remove the ignored options above.
13481         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13482         * tree-ssa-coalesce.h: ... here.
13483         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13484         headers required by it.
13485         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13486         across variables when flag_tree_coalesce_vars.  Check register
13487         use and promoted modes to allow coalescing.  Do not coalesce
13488         maybe-byref parms with SSA_NAMEs of other variables, or
13489         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
13490         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13491         with its member functions to tree-ssa-coalesce.c.
13492         (var_map_base_init): Likewise.  Renamed to
13493         compute_samebase_partition_bases.
13494         (partition_view_normal): Drop want_bases parameter.
13495         (partition_view_bitmap): Likewise.
13496         * tree-ssa-live.h: Adjust declarations.
13497         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
13498         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13499         default defs at the entry point.
13500         (dump_part_var_map): New.
13501         (compute_optimized_partition_bases): New, called by...
13502         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13503         of compute_samebase_partition_bases.  Adjust.
13504         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13505         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
13506         (ssa_default_def_partition): New.
13507         (get_rtl_for_parm_ssa_default_def): New.
13508         (align_local_variable, add_stack_var): Support anonymous SSA
13509         names.
13510         (defer_stack_allocation): Likewise.  Declare earlier.
13511         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13512         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13513         Do no record deferred-allocation marker in
13514         SA.partition_to_pseudo.
13515         (expand_stack_vars): Adjust check for the marker in it.
13516         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13517         redundant MEM attr setting.
13518         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13519         from...
13520         (expand_one_stack_var): ... this.  New wrapper to check and
13521         skip already expanded SSA partitions.
13522         (record_alignment_for_reg_var): New, factored out of...
13523         (expand_one_var): ... this.
13524         (expand_one_ssa_partition): New.
13525         (adjust_one_expanded_partition_var): New.
13526         (expand_one_register_var): Check and skip already expanded SSA
13527         partitions.
13528         (expand_used_vars): Don't create DECLs for anonymous SSA
13529         names.  Expand all SSA partitions, then adjust all SSA names.
13530         (pass::execute): Replace the loops that set
13531         SA.partition_to_pseudo from partition leaders and cleared
13532         DECL_RTL for multi-location variables, and that which used to
13533         rename vars and set attrs, with one that clears DECL_RTL and
13534         checks that PARMs and RESULTs default_defs match DECL_RTL.
13535         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13536         * emit-rtl.c: Include stor-layout.h.
13537         (set_reg_attrs_for_parm): Handle NULL decl.
13538         (set_reg_attrs_for_decl_rtl): Take mode from expression if
13539         it's not a DECL.
13540         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13541         rather than its possibly-NULL DECL.
13542         * explow.c (promote_ssa_mode): New.
13543         * explow.h (promote_ssa_mode): Declare.
13544         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13545         (read_complex_part): Export.
13546         * expr.h (read_complex_part): Declare.
13547         * cfgexpand.h (parm_maybe_byref_p): Declare.
13548         * function.c: Include cfgexpand.h.
13549         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13550         (use_register_for_parm_decl): Wrapper for the above to
13551         special-case the result_ptr.
13552         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13553         (split_complex_args): Take assign_parm_data_all argument.
13554         Pass it to rtl_for_parm.  Set up rtl and context for split
13555         args.  Reset complex parm before fetching its default decl
13556         rtl.
13557         (assign_parms_unsplit_complex): Use the default-def complex
13558         parm rtl if it matches the components.
13559         (assign_parms_augmented_arg_list): Adjust.
13560         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13561         multiple locations.  Recognize split complex args.
13562         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13563         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13564         (assign_parm_setup_block): Prefer SSA-assigned location, and
13565         fill in its address if the memory location of a maybe-byref
13566         parm was not assigned by cfgexpand.
13567         (assign_parm_setup_reg): Likewise.  Adjust its mode as
13568         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
13569         sure passed_pointer parms don't need conversion.  Copy address
13570         or value as needed.
13571         (assign_parm_setup_stack): Prefer SSA-assigned location.
13572         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13573         rtl before testing for pointer bounds.  Special-case result_ptr.
13574         (expand_function_start): Maybe reset DECL_RTL of result.
13575         Prefer SSA-assigned location for result and static chain.
13576         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
13577         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
13578         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13579         anonymous SSA names.  Use promote_ssa_mode.
13580         (get_temp_reg): Likewise.
13581         (remove_ssa_form): Adjust.
13582         * stor-layout.c (layout_decl): Don't set mem attributes of
13583         non-MEMs.
13584         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13585         and get its reg_usage for reg invalidation.
13586         (compute_bb_dataflow): Pass it insn.
13587         (emit_notes_in_bb): Likewise.
13589 2015-08-14  Marek Polacek  <polacek@redhat.com>
13591         * tree-core.h (tree_base): Fix typo.
13593 2015-08-14  Marek Polacek  <polacek@redhat.com>
13595         PR middle-end/67133
13596         * gimple.c (infer_nonnull_range_by_attribute): Check that the
13597         nonnull argument position is not outside function arguments.
13599 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
13601         PR target/67143
13602         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13603         'lconst_atomic' with 'const_atomic'.
13604         (atomic_fetch_<optab><mode>): Likewise.
13605         (atomic_<optab>_fetch<mode>): Likewise.
13606         * config/aarch64/iterators.md (lconst-atomic): Move below
13607         'const_atomic'.
13608         (const_atomic): New.
13610 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
13611             Bernd Schmidt  <bernds@codesourcery.com>
13613         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13614         debug options.
13615         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13616         (DWARF2_DEBUGGING_INFO): Don't define.
13617         * debug.h (dwarf2_lineno_debug_hooks): Declare.
13618         * toplev.c (process_options): Add a case for it.
13619         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13620         (dwarf2out_init): Skip most initializations if
13621         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13622         case.
13623         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13624         DWARF2_LINENO_DEBUGGING_INFO.
13625         * opts.c (set_debug_level): Likewise.
13627 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
13629         * config/arm/types.md (is_neon_type): Add missing types.
13631 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13633         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13634         for skylake.
13635         * config/i386/i386.c (PTA_SKYLAKE): New macros.
13636         (processor_alias_table): Add skylake description.
13637         (enum processor_model): Add skylake processor.
13638         (arch_names_table): Add skylake record.
13639         * doc/invoke.texi: Add skylake item.
13641 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
13643         * ira-int.h: Include recog.h.
13644         * ira-build.c: Don't include recog.h.
13645         * ira-color.c: Likewise.
13646         * ira-conflicts.c: Likewise.
13647         * ira-costs.c: Likewise.
13648         * ira-emit.c: Likewise.
13649         * ira-lives.c: Likewise.
13650         * ira.c: Likewise.
13651         * sched-deps.c: Likewise.
13652         * sel-sched.c: Likewise.
13653         * target-globals.c: Likewise.
13655 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
13657         PR bootstrap/55035
13658         * reload1.c (elimination_costs_in_insn): Make it obvious to the
13659         compiler that the n_dups and n_operands loop bounds are invariant.
13661 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13663         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13664         expressions in A and B.
13666 2015-08-13  Richard Biener  <rguenther@suse.de>
13668         * tree.c (nonnull_arg_p): Move from ...
13669         * tree-vrp.c (nonnull_arg_p): ... here.
13670         * tree.h (nonnull_arg_p): Declare.
13671         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13672         here, register ptr != 0 for nonnull_arg_p pointer arguments.
13673         Properly initialize static chain and by-reference result pointer.
13674         (run_scc_vn): Adjust.
13676 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13678         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13679         TUNE_I6400.
13681 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13683         * config/aarch64/aarch64-protos.h
13684         (aarch64_gen_atomic_cas): Declare.
13685         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13686         Choose appropriate instruction pattern for the target.
13687         (aarch64_gen_atomic_cas): New.
13688         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13689         (atomic_compare_and_swap<mode>_1): Rename to
13690         aarch64_compare_and_swap<mode>.  Fix some indentation.
13691         (aarch64_compare_and_swap<mode>_lse): New.
13692         (aarch64_atomic_cas<mode>): New.
13694 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13696         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13697         (TARGET_LSE): New.
13699 2015-08-13  Richard Biener  <rguenther@suse.de>
13701         PR tree-optimization/67191
13702         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13703         assert we value-numbered last stmts operand because it can validly
13704         trigger for unreachable code.
13706 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13708         PR rtl-optimization/67103
13709         * ifcvt.c (noce_try_store_flag_constants): Move
13710         x = (-(test != 0) & (b - a)) + a transformation to...
13711         (noce_try_cmove): ... Here.  Try it if normal conditional
13712         move fails.
13714 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13716         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13717         pseudo-processors.
13718         * config/mips/mips.md (processor): Remove w32 and w64.
13720 2015-08-13  Richard Biener  <rguenther@suse.de>
13722         PR tree-optimization/66502
13723         PR tree-optimization/67167
13724         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13725         backedge arguments.
13726         (vn_phi_lookup): Adjust.
13727         (vn_phi_insert): Likewise.
13728         (visit_phi): Prefer to value-number to another PHI node
13729         over value-numbering to a PHI argument.
13730         (init_scc_vn): Mark DFS back edges.
13732 2015-08-13  Richard Biener  <rguenther@suse.de>
13734         * gimple.h (gcall::code_): New constant static member.
13735         (gcond::code_): Likewise.
13736         * gimple.c (gcall::code_): Define.
13737         (gcond::code_): Likewise.
13738         (is_a_helper <const gcond *>): Add.
13739         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13740         and forward to a new gcall overload with less checking and a
13741         cheaper way to access the operand.
13742         (gimple_call_lhs_ptr): Likewise.
13743         (gimple_call_set_lhs): Likewise.
13744         (gimple_call_internal_p): Likewise.
13745         (gimple_call_with_bounds_p): Likewise.
13746         (gimple_call_set_with_bounds): Likewise.
13747         (gimple_call_internal_fn): Likewise.
13748         (gimple_call_set_ctrl_altering): Likewise.
13749         (gimple_call_ctrl_altering_p): Likewise.
13750         (gimple_call_fntype): Likewise.
13751         (gimple_call_fn): Likewise.
13752         (gimple_call_fn_ptr): Likewise.
13753         (gimple_call_set_fndecl): Likewise.
13754         (gimple_call_fndecl): Likewise.
13755         (gimple_call_chain): Likewise.
13756         (gimple_call_num_args): Likewise.
13757         (gimple_call_arg): Likewise.
13758         (gimple_call_arg_ptr): Likewise.
13759         (gimple_call_set_arg): Likewise.
13760         (gimple_call_noreturn_p): Likewise.
13761         (gimple_cond_code): Likewise.
13762         (gimple_cond_lhs): Likewise.
13763         (gimple_cond_rhs): Likewise.
13764         (gimple_has_lhs): Reduce checking.
13766 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13768         PR middle-end/25529
13769         * match.pd (div (mult @0 @1) @1) : New simplifier.
13771 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13773         PR target/67071
13774         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13775         predicate to allow construction of vector constants using the
13776         VSLDOI vector shift instruction.
13778         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13779         declaration.
13781         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13782         the number of bytes to be shifted left and filled in with either
13783         all zero or all one bits.
13784         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13785         methods exist.
13786         (output_vec_const_move): On power8, generate XXLORC to generate
13787         a vector constant with all 1's. Do a split if we need to use a
13788         VSLDOI instruction.
13790         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13791         properly test for the MSB.
13793         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13794         vector constants that can be created with VSLDOI.
13796 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13798         revert:
13799         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13800         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13801         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13802         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13803         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13804         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13805         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13806         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13807         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13809 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
13811         * config/xtensa/constraints.md (define_constraint "Y"): New
13812         constraint.
13813         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13814         * config/xtensa/linux.h (ASM_SPEC): Likewise.
13815         * config/xtensa/predicates.md (move_operand): Match constants
13816         and symbols in the presence of TARGET_AUTO_LITPOOLS.
13817         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13818         immediate references to TLS data.
13819         (xtensa_emit_move_sequence): Don't force constants to memory in
13820         the presence of TARGET_AUTO_LITPOOLS.
13821         (print_operand): Add 'y' format, same as default, but capable of
13822         printing SF mode constants as well.
13823         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13824         (movsf_internal): Add movi pattern that loads literal.
13825         (movsf, movdf): Don't force constants to memory in the presence
13826         of TARGET_AUTO_LITPOOLS.
13827         (movdf_internal): Add 'Y' constraint.
13828         * config/xtensa/xtensa.opt (mauto-litpools): New option.
13829         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13831 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13833         * config/arm/arm-fpus.def: Replace booleans with feature flags.
13834         Update comment.
13835         * config/arm/arm.c (ARM_FPU): Update macro.
13836         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13837         (TARGET_FP16): Likewise.
13838         (TARGET_CRYPTO): Likewise.
13839         (TARGET_NEON): Likewise.
13840         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
13841         field features.
13843 2015-08-12  Tom de Vries  <tom@codesourcery.com>
13845         PR other/67092
13846         PR other/67098
13847         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
13848         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13849         accordingly.  Mention default for --with-stage1-ldflags.
13851 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13853         * config/arm/arm.h (arm_fpu_feature_set): New.
13854         (ARM_FPU_FSET_HAS): New.
13855         (FPU_FL_NONE): New.
13856         (FPU_FL_NEON): New.
13857         (FPU_FL_FP16): New.
13858         (FPU_FL_CRYPTO): New.
13860 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13862         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13863         after -mcmodel=large -fPIC sorry.
13865 2015-08-12  Richard Biener  <rguenther@suse.de>
13867         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13868         comparison operand order and commutative ternary op operand order.
13869         (sccvn_dom_walker::cond_stack): New state to track temporary
13870         expressions.
13871         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13872         no longer valid.
13873         (sccvn_dom_walker::record_cond): Add a single temporary conditional
13874         expression.
13875         (sccvn_dom_walker::record_conds): Add a temporary conditional
13876         expressions and all related expressions also true/false.
13877         (sccvn_dom_walker::before_dom_children): Record temporary
13878         expressions based on the controlling condition of a single
13879         predecessor.  When trying to simplify a conditional statement
13880         lookup expressions we might have inserted earlier.
13882 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
13884         PR target/67127
13885         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13886         to ARM core registers.
13888 2015-08-12  Nathan Sidwell  <nathan@acm.org>
13890         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13891         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13893 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
13895         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13896         line with comments.
13897         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13899 2015-08-12  Richard Biener  <rguenther@suse.de>
13901         * gimple.h (remove_pointer): New trait.
13902         (GIMPLE_CHECK2): New inline template function.
13903         (gassign::code_): New constant static member.
13904         (is_a_helper<const gassign *>): Add.
13905         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13906         and forward to a new gassign overload with less checking and a
13907         cheaper way to access the operand.
13908         (gimple_assign_lhs_ptr): Likewise.
13909         (gimple_assign_set_lhs): Likewise.
13910         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13911         Likewise.
13912         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13913         Likewise.
13914         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13915         Likewise.
13916         (gimple_assign_rhs_code): Likewise.
13917         * gimple.c (gassign::code_): Define.
13919 2015-08-12  Richard Biener  <rguenther@suse.de>
13921         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13922         Eliminate edges marked as not executable by SCCVN.
13923         * tree-ssa-sccvn.c: Include gimple-iterator.h.
13924         (cond_dom_walker): Rename to sccvn_dom_walker.
13925         (sccvn_dom_walker::before_dom_children): Value-number defs
13926         of all stmts.
13927         (run_scc_vn): Remove loop value-numbering all SSA names.
13928         Drop not visited SSA names to varying.
13930 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13932         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13933         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13934         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13935         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13936         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13937         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13938         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13939         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13940         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13942 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
13944         PR target/66954
13945         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13946         to enum feature_priority and feature_list.
13947         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13948         and isa_names_table.
13950 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
13952         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13953         vect_induction_def.
13955 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13957         PR c/66098
13958         PR c/66711
13959         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13960         account when deciding what was the command-line status.
13962 2015-08-11  Nathan Sidwell  <nathan@acm.org>
13964         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13966         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13967         we're not the only contributor to target phi.
13969 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
13971         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13972         FIXED_REG0.
13974 2015-08-11  Tom de Vries  <tom@codesourcery.com>
13976         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13978 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
13980         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13981         with CPU_SLM.
13982         * config/i386/i386.md (cpu): Remove knl.
13984 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13986         PR libgomp/65742
13987         PR middle-end/66332
13988         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13989         open-coded sequence.
13990         * omp-low.c (oacc_process_reduction_data): Remove handline of
13991         GOMP_DEVICE_HOST_NONSHM.
13993         * lto-streamer-in.c (lto_input_mode_table): Adjust to
13994         GET_MODE_INNER changes.
13996 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13997             Ilya Verbin  <ilya.verbin@intel.com>
13999         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
14001 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14003         * doc/options.texi (EnabledBy): Document that the argument must be
14004         a Common option.
14005         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
14006         Not enabled by -Wall.
14007         * optc-gen.awk: Give nicer error messages. Detect if the argument
14008         of EnabledBy is not a Common option.
14009         * common.opt (Wnull-dereference): Not enabled by -Wall.
14010         * opt-functions.awk (lang_enabled_by): Nicer error messages.
14012 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14014         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
14015         model == 0x4f as Broadwell.
14017 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
14019         PR rtl-optimization/67028
14020         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
14021         Add test to see if a const_int fits in the new mode.
14023 2015-08-07  DJ Delorie  <dj@redhat.com>
14025         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
14027 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
14029         PR rtl-optimization/67029
14030         * ira-color.c: Include "recog.h" before including "ira-int.h".
14031         * target-globals.c: Likewise.
14032         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
14033         adds an alternative_mask argument and use it instead of
14034         preferred_alternatives.
14035         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
14036         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
14037         * sched-deps.c: Include "ira-int.h" after including "ira.h".
14038         (sched_analyze_insn): Update call to
14039         ira_implicitly_set_insn_hard_regs.
14040         * sel-sched.c: Include "ira-int.h" after including "ira.h".
14041         (implicit_clobber_conflict_p): Update call to
14042         ira_implicitly_set_insn_hard_regs.
14044 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
14046         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
14048 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14050         PR target/67002
14051         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
14052         currently_expanding_to_rtl is set.
14054 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
14056         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
14057         * configure: Regenerate.
14059 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14060             Jiong Wang  <jiong.wang@arm.com>
14062         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14063         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14064         (REG_CLASS_NAMES): Likewise.
14065         (REG_CLASS_CONTENTS): Likewise.
14066         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14067         (aarch64_register_move_cost): Likewise.
14068         (aarch64_load_symref_appropriately): Invoke the new added pattern if
14069         possible.
14070         * config/aarch64/constraints.md (Uc0): New constraint.
14072 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
14074         * config/aarch64/constraints.md (Usf): Add the test of
14075         aarch64_is_noplt_call_p.
14077 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
14079         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
14080         declaration.
14081         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
14082         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
14083         (call_symbol): Likewise.
14085 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
14087         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
14088         for vectorizing multiplication patterns.
14089         * tree-vectorizer.h: Adjust the number of patterns.
14091 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
14093         * config/i386/sse.md (*vec_concatv2df): Declare added
14094         alternatives as sselog type.
14096 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14098         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
14099         all GPRs.
14101 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14103         * config/s390/s390.c (s390_expand_tbegin): Expand either
14104         tbegin_1_z13 or tbegin_1 depending on VX flag.
14105         * config/s390/s390.md ("tbegin_1_z13"): New expander.
14107 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14109         * config/s390/s390.opt: Clarify description for -mzvector
14110         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
14111         -mzvector.
14113 2015-08-06  Richard Biener  <rguenther@suse.de>
14115         * gimple.h (gimple_call_set_fn): Access op member directly.
14116         (gimple_call_chain_ptr): Likewise.
14117         (gimple_call_set_chain): Likewise.
14118         (gimple_cond_lhs_ptr): Likewise.
14119         (gimple_cond_set_lhs): Likewise.
14120         (gimple_cond_rhs_ptr): Likewise.
14121         (gimple_cond_set_rhs): Likewise.
14122         (gimple_cond_true_label): Likewise.
14123         (gimple_cond_set_true_label): Likewise.
14124         (gimple_cond_set_false_label): Likewise.
14125         (gimple_cond_false_label): Likewise.
14126         (gimple_label_label): Likewise.
14127         (gimple_label_set_label): Likewise.
14128         (gimple_goto_set_dest): Likewise.
14129         (gimple_asm_input_op): Likewise.
14130         (gimple_asm_input_op_ptr): Likewise.
14131         (gimple_asm_set_input_op): Likewise.
14132         (gimple_asm_output_op): Likewise.
14133         (gimple_asm_output_op_ptr): Likewise.
14134         (gimple_asm_set_output_op): Likewise.
14135         (gimple_asm_clobber_op): Likewise.
14136         (gimple_asm_set_clobber_op): Likewise.
14137         (gimple_asm_label_op): Likewise.
14138         (gimple_asm_set_label_op): Likewise.
14139         (gimple_switch_index): Likewise.
14140         (gimple_switch_index_ptr): Likewise.
14141         (gimple_return_retval_ptr): Likewise.
14142         (gimple_return_retval): Likewise.
14143         (gimple_return_set_retval): Likewise.
14144         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
14145         (gimple_switch_label): Likewise.
14146         (gimple_switch_set_label): Likewise.
14148 2015-08-06  Richard Biener  <rguenther@suse.de>
14150         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
14151         bool comparison canonicalization and restrict to integers.
14153 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
14155         * coretypes.h (enum symbol_visibility): Relocate here.
14156         * flag-types.h (enum symbol_visibility): Remove.
14157         * tree-core.h (enum symbol_visibility): Remove.
14159 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
14161         PR target/66870
14162         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
14163         for no_split_stack function attribute along with
14164         flag_split_stack.
14165         (rs6000_expand_split_stack_prologue): Likewise.
14167 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14168             Jeff Law  <law@redhat.com>
14170         PR c/16351
14171         * doc/invoke.texi (Wnull-dereference): New.
14172         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
14173         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
14174         Warn for potential NULL dereferences.
14175         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
14176         * ubsan.c (instrument_nonnull_arg): Call
14177         infer_nonnull_range_by_attribute.
14178         (instrument_nonnull_return): Likewise.
14179         * common.opt (Wnull-dereference); New.
14180         * gimple.c (infer_nonnull_range): Remove bool arguments.
14181         (infer_nonnull_range_by_dereference): New.
14182         (infer_nonnull_range_by_attribute): New.
14183         * gimple.h: Update declarations.
14185 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14187         * gensupport.c (sequence_num): Replace with...
14188         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
14189         ...these new variables.
14190         (init_rtx_reader_args_cb): Update accordingly.
14191         (get_num_code_insns): Likewise.
14192         (read_md_rtx): Rework to use a while loop and get_c_test.
14193         Use the new counters.  Remove redundant DEFINE_SUBST case.
14194         * genoutput.c (gen_split): Delete.
14195         (main): Don't call it.
14197 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14199         * gensupport.h (get_c_test): Declare.
14200         * gensupport.c (get_c_test): New function.
14201         * genconditions.c (main): Use it.
14202         * genrecog.c (validate_pattern): Likewise.
14203         (match_pattern_1): Likewise.  Remove c_test argument.
14204         (match_pattern): Update accordingly and remove c_test argument.
14205         (main): Update accordingly.
14207 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14209         * gensupport.h (get_num_insn_codes): Declare.
14210         * gensupport.c (get_num_insn_codes): New function.
14211         * genattrtab.c (optimize_attrs): Rename max_insn_code to
14212         num_insn_codes.
14213         (main): Likewise.  Use get_num_insn_codes.
14214         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
14216 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14218         PR middle-end/66311
14219         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
14220         is zero- rather than sign-extended.
14222 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14224         * target-insns.def (can_extend): Delete.
14226 2015-08-05  Richard Biener  <rguenther@suse.de>
14228         PR tree-optimization/67121
14229         * tree-if-conv.c (combine_blocks): Clear range-info produced
14230         by stmts no longer executed conditionally.
14232 2015-08-05  Nick Clifton  <nickc@redhat.com>
14234         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
14235         to allow identical far pointers to remain.
14237 2015-08-05  Richard Biener  <rguenther@suse.de>
14239         PR middle-end/67120
14240         * match.pd: Compare address bases with == if they are decls
14241         or SSA names, not operand_equal_p.  Otherwise fail.
14243 2015-08-05  Richard Biener  <rguenther@suse.de>
14245         PR tree-optimization/67055
14246         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
14247         NULL gimple_block.
14249         * g++.dg/torture/pr67055.C: New testcase.
14251 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
14253         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
14254         noavx512vl.
14255         (define_attr "enabled"): Handle avx521vl and noavx512vl.
14256         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
14257         AVX-512 alternative out of SSE.
14258         (define_insn "*vec_concatv2df"): Ditto.
14260 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
14262         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
14263         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
14264         CODE_FOR_avx_ptestv4di.
14265         * config/i386/sse.md (define_mode_iterator V_AVX): New.
14266         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
14267         (define_insn "avx_ptest256"): Merge this ...
14268         (define_insn "sse4_1_ptest"): And this ...
14269         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
14271 2015-08-05  Richard Biener  <rguenther@suse.de>
14273         PR tree-optimization/67109
14274         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
14275         against too big groups.  Print whether this is a load or store
14276         group.  Rename from ...
14277         (vect_analyze_group_access): ... this which is now a wrapper
14278         dissolving an invalid group.
14279         (vect_analyze_data_ref_accesses): Print whether this is a load
14280         or store group.
14282 2015-08-05  Richard Biener  <rguenther@suse.de>
14284         PR middle-end/67107
14285         * match.pd: Guard const_binop result checking against NULL_TREE
14286         result.
14288 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
14290         * cse.c (cse_insn): Restoring old behaviour for src_eqv
14291          when dest and value in the REG_EQUAL are same and dest
14292          is STRICT_LOW_PART.
14294 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
14296         * config/moxie/moxie.h (PRINT_OPERAND,
14297           PRINT_OPERAND_ADDRESS): Remove macros.
14298         * config/moxie/moxie-protos.h (moxie_print_operand,
14299           moxie_print_operand_address): Remove declaration.
14300         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
14301           TARGET_PRINT_OPERAND_ADDRESS): Define.
14302           (moxie_print_operand, moxie_print_operand_address): Make static.
14304 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14306         PR target/66731
14307         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
14308         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
14310 2015-08-04  Richard Biener  <rguenther@suse.de>
14312         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
14313         generated code.
14314         (dt_operand::gen_gimple_expr): Adjust.
14316 2015-08-04  Richard Biener  <rguenther@suse.de>
14318         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
14319         bool compares on RHS.
14320         * match.pd: Add X ==/!= !X is false/true pattern.
14322 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
14324         * config/aarch64/aarch64.c: Change inner loop statement cost
14325         to be consistent with other targets.
14327 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
14329         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
14330         targets.
14332 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
14334         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
14335         (machine_function): Remove pseudos field.
14337 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14339         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14340         Exit early and use target_option_current_node if processing current
14341         pragma.
14343 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14345         * doc/extend.texi (AArch64 Function Attributes): New node.
14346         (AArch64 Pragmas): Likewise.
14348 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14350         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14351         Initialize simd builtins if TARGET_SIMD.
14352         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14353         Make sure that the builtins are initialized only once no matter how
14354         many times the function is called.
14355         (aarch64_init_builtins): Unconditionally initialize crc builtins.
14356         (aarch64_relayout_simd_param): New function.
14357         (aarch64_simd_expand_args): Use above during argument expansion.
14358         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
14359         simd builtins if TARGET_SIMD.
14360         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
14361         prototype.
14362         (aarch64_relayout_simd_types): Likewise.
14364 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14366         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
14367         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
14368         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
14369         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14370         static keyword.
14371         (aarch64_reset_previous_fndecl): New function.
14372         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
14373         the string.
14374         * config/aarch64/aarch64-c.c: New file.
14375         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
14376         Push and pop options at beginning and end.  Remove ifdef
14377         __ARM_FEATURE_CRC32.
14378         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14379         Add pragma +nothing+simd and +nothing+crypto where appropriate.
14380         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14381         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14382         Define prototype.
14383         (aarch64_register_pragmas): Likewise.
14384         (aarch64_reset_previous_fndecl): Likewise.
14385         (aarch64_process_target_attr): Likewise.
14386         (aarch64_override_options_internal): Likewise.
14388 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14390         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14391         New function.
14392         (aarch64_can_inline_p): Likewise.
14393         (TARGET_CAN_INLINE_P): Define.
14395 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14397         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14398         Remove static.  Handle OPT_mgeneral_regs_only,
14399         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14400         OPT_momit_leaf_frame_pointer.
14401         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14402         (aarch64_attr_opt_type): New enum.
14403         (aarch64_attribute_info): New struct.
14404         (aarch64_handle_attr_arch): New function.
14405         (aarch64_handle_attr_cpu): Likewise.
14406         (aarch64_handle_attr_tune): Likewise.
14407         (aarch64_handle_attr_isa_flags): Likewise.
14408         (aarch64_attributes): New table.
14409         (aarch64_process_one_target_attr): New function.
14410         (num_occurences_in_str): Likewise.
14411         (aarch64_process_target_attr): Likewise.
14412         (aarch64_option_valid_attribute_p): Likewise.
14413         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14414         * config/aarch64/aarch64-protos.h: Include input.h
14415         (aarch64_handle_option): Declare prototype.
14417 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14419         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14420         * config/aarch64/aarch64.c: Include target-globals.h
14421         (aarch64_previous_fndecl): New variable.
14422         (aarch64_set_current_function): New function.
14423         (TARGET_SET_CURRENT_FUNCTION): Define.
14425 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14427         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14428         (explicit_arch): Likewise.
14429         (x_aarch64_isa_flags): Likewise.
14430         (mgeneral-regs-only): Mark as Save.
14431         (mfix-cortex-a53-835769): Likewise.
14432         (mcmodel=): Likewise.
14433         (mstrict-align): Likewise.
14434         (momit-leaf-frame-pointer): Likewise.
14435         (mtls-dialect): Likewise.
14436         (master=): Likewise.
14437         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14438         (aarch64_isa_flags): Remove extern declaration.
14439         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14440         to indicate success or failure.
14441         (aarch64_validate_march): Likewise.
14442         (aarch64_validate_mtune): Likewise.
14443         (aarch64_isa_flags): Delete.
14444         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14445         instead of aarch64_isa_flags.
14446         (aarch64_get_tune_cpu): New function.
14447         (aarch64_get_arch): Likewise.
14448         (aarch64_override_options): Use above and set up explicit_tune_core
14449         and explicit_arch.
14450         (aarch64_print_extension): Move earlier in file.  Add isa_flags
14451         argument and use that instead of the global aarch64_isa_flags.
14452         (aarch64_option_save): New function.
14453         (aarch64_option_restore): Likewise.
14454         (aarch64_option_print): Likewise.
14455         (aarch64_declare_function_name): Likewise.
14456         (aarch64_start_file): Delete.
14457         (TARGET_ASM_FILE_START): Do not define.
14458         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14459         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14460         Declare prototype.
14462 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14464         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14465         flag_omit_leaf_frame_pointer to 2.
14467 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14469         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14470         define to 0 or 1.
14471         (TARGET_FIX_ERR_A53_835769): New macro.
14472         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14473         handling of opts->x_aarch64_fix_a53_err835769.
14474         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
14475         than aarch64_fix_a53_err835769.
14476         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
14477         * config/aarch64/aarch64-linux.h: Likewise.
14479 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
14481         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
14482         ix86_expand_int_movcc as boolean.
14484 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14486         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
14487         (aarch64_cpu_string): Likewise.
14488         (aarch64_tune_string): Likewise.
14489         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
14490         (aarch64_parse_extension): Return aarch64_parse_opt_result.
14491         Add extra argument to put result into.
14492         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
14493         (aarch64_parse_cpu): Add arguments to put results into. Return
14494         aarch64_parse_opt_result.
14495         (aarch64_parse_tune): Likewise.
14496         (aarch64_override_options_after_change_1): New function.
14497         (aarch64_override_options_internal): New function.
14498         (aarch64_validate_mcpu): Likewise.
14499         (aarch64_validate_march): Likewise.
14500         (aarch64_validate_mtune): Likewise.
14501         (aarch64_override_options): Update to reflect above changes.
14502         Move some logic into aarch64_override_options_internal.
14503         Initialize target_option_default_node and target_option_current_node.
14504         (aarch64_override_options_after_change): Move logic into
14505         aarch64_override_options_after_change_1 and call it with global_options.
14506         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
14507         flag values from that.
14509 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14511         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14512         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14513         * config/aarch64/aarch64.c (struct processor): Add arch field.
14514         (all_architectures): Handle above, move above all_cores.
14515         (all_cores): Handle above.
14516         (aarch64_parse_arch): Handle above changes.
14517         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14518         above.  Update comments.
14519         (armv8.1-a): Likewise.
14520         * config/aarch64/aarch64-cores.def: Update according to above.
14521         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14522         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14523         aarch64_arch_driver_info.
14525 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14527         * config/aarch64/aarch64.c (struct processor): Add ident field.
14528         Rename core sched_core.
14529         (all_cores): Handle above changes.
14530         (all_architectures): Likewise.
14531         (aarch64_parse_arch): Likewise.
14532         (aarch64_override_options): Likewise.
14534 2015-08-04  Richard Biener  <rguenther@suse.de>
14536         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14537         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14538         comparisons embedded in [VEC_]COND_EXPRs.
14540 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
14542         * tree-if-conv.c: Fix various typos in comments.
14543         * tree-vect-stmts.c: Likewise.
14545 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14547         PR tree-optimization/67043
14548         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14549         preheader after hoisting invariant in it.
14550         (find_defs): Force recomputation of all luids.
14552 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
14554         * config/rs6000/htm.md (tabort.): Restrict the source operand to
14555         using a base register.
14557 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
14559         * main.c (main): Pass in NULL for toplev's external_timer.
14560         * timevar.c: Include coretypes.h.
14561         (class timer::named_items): New.
14562         (timer::named_items::named_items): New.
14563         (timer::named_items::~named_items): New.
14564         (timer::named_items::push): New.
14565         (timer::named_items::pop): New.
14566         (timer::named_items::print): New.
14567         (timer::timer): Initialize field "m_jit_client_items".
14568         (timer::~timer): New.
14569         (timer::push): Move bulk of implementation to...
14570         (timer::push_internal): ...here.  New function.
14571         (timer::pop): Move bulk of implementation to...
14572         (timer::pop_internal): ...here.  New function.
14573         (timer::push_client_item): New.
14574         (timer::pop_client_item): New.
14575         (timer::print_row): New function, taken from timer::print.
14576         (timer::print): Print "GCC items" header if we also have client
14577         items.  Move row-printing to timer::print_row.  Print any client
14578         items.
14579         (timer::get_topmost_item_name): New method.
14580         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14581         (TV_JIT_CLIENT_CODE): New.
14582         * timevar.h (timer::push_client_item): New declaration.
14583         (timer::pop_client_item): New declaration.
14584         (timer::get_topmost_item_name): New method.
14585         (timer::push_internal): New declaration.
14586         (timer::pop_internal): New declaration.
14587         (timer::print_row): New declaration.
14588         (timer::named_items): New declaration.
14589         (timer::m_jit_client_items): New field.
14590         (timer): Add friend class named_items.
14591         (auto_timevar::auto_timevar): Add timer param.
14592         (auto_timevar::~auto_timevar): Use field "m_timer".
14593         (auto_timevar::m_timer): New field.
14594         * toplev.c (initialize_rtl): Add g_timer as param when
14595         constructing auto_timevar instance.
14596         (toplev::toplev): Add "external_timer" param, and use it to
14597         initialize the "g_timer" global if non-NULL.
14598         (toplev::~toplev): If this created "g_timer", delete it.
14599         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14600         with "external_timer" timer *.
14602 2015-08-03  Alexander Basov <coohpt@gmail.com>
14604         PR middle-end/64744
14605         PR middle-end/48470
14606         PR middle-end/43404
14607         * cfgexpand.c (expand_one_var): Add check if stack is going to
14608         be used in naked function.
14609         * expr.c (expand_expr_addr_expr_1): Remove excess checking
14610         whether expression should not reside in MEM.
14611         * function.c (use_register_for_decl): Do not use registers for
14612         non-register things (volatile, float, BLKMode) in naked functions.
14614 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
14616         PR target/67060
14617         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14618         Adjust splits to match new pattern.
14620 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14622         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14623         (VEC_M): Likewise.
14624         (VEC_N): Likewise.
14625         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14626         point in VSX registers.
14628         * config/rs6000/constraints.md (wb constraint): Document unused
14629         w<x> constraint.
14630         (we constraint): Likewise.
14631         (wo constraint): Likewise.
14632         (wp constraint): New constraint for IEEE 128-bit floating point in
14633         VSX registers.
14634         (wq constraint): Likewise.
14636         * config/rs6000/predicates.md (easy_fp_constant): Add support for
14637         IEEE 128-bit floating point in VSX registers.
14638         (easy_scalar_constant): Likewise.
14640         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14641         constraints (wp, wq) for IEEE 128-bit floating point in VSX
14642         registers.
14643         (rs6000_init_hard_regno_mode_ok): Likewise.
14645         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14646         floating point in VSX registers.
14647         (VSX_L): Likewise.
14648         (VSX_M): Likewise.
14649         (VSX_M2): Likewise.
14650         (VSm): Likewise.
14651         (VSs): Likewise.
14652         (VSr): Likewise.
14653         (VSa): Likewise.
14654         (VSv): Likewise.
14655         (vsx_le_permute_<mode>): Add support to properly swap bytes for
14656         IEEE 128-bit floating point in VSX registers on little endian.
14657         (vsx_le_undo_permute_<mode>): Likewise.
14658         (vsx_le_perm_load_<mode>): Likewise.
14659         (vsx_le_perm_store_<mode>): Likewise.
14660         (splitters for IEEE 128-bit fp moves): Likewise.
14662         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14663         wq constraints.
14665         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14666         floating point in VSX registers.
14667         (VM2): Likewise.
14669         * doc/md.text (Machine Constraints): Document wp and wq
14670         constraints on PowerPC.
14672 2015-08-03  Jeff Law  <law@redhat.com>
14674         PR middle-end/66314
14675         PR gcov-profile/66899
14676         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14677         iterate over the jump threading paths when an element in the
14678         jump threading paths array is eliminated.
14680 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
14682         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14684 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
14686         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14687         is_use_properly_guarded the variable def_preds.  Free its
14688         contents before returning.
14689         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14690         (is_use_properly_guarded): Replace local variable def_preds with
14691         a parameter.  Adjust accordingly.  Only update *def_preds if it's
14692         the empty vector.
14694 2015-08-03  Richard Biener  <rguenther@suse.de>
14696         * genmatch.c (simplify::for_subst_vec): New member.
14697         (binary_ok): New helper for for lowering.
14698         (lower_for): Delay substituting operators into result expressions
14699         if we can merge the results eventually again.
14700         (capture_info::walk_result): Adjust for user_id appearing as
14701         result expression operator.
14702         (expr::gen_transform): Likewise.
14703         (dt_simplify::gen_1): Likewise.
14704         (dt_simplify::gen): Pass not substituted operators to tail
14705         functions or initialize local variable with it.
14706         (decision_tree::gen): Adjust function signature.
14707         * match.pd: Fix tests against global code and add default
14708         cases to switch stmts.
14710 2015-08-03  Richard Biener  <rguenther@suse.de>
14712         * genmatch.c (dt_simplify::gen): Create captures array
14713         with an initializer.
14715 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14717         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14718         the host compiler is affected by placement new aliasing bug.
14719         * configure: Regenerate.
14720         * Makefile.in (ALIASING_FLAGS): New variable.
14721         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14723 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14725         PR target/66731
14726         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14727         (negmulsf3_vfp): Likewise.
14728         (muldf3negdf_vfp): Disable for -frounding-math.
14729         (mulsf3negsf_vfp): Likewise.
14730         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14731         fix MULT cost with -frounding-math.
14733 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14735         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14736         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14737         explicit.  Prefer to add the flag whenever possible.
14738         (noce_process_if_block): Try noce_try_store_flag_constants before
14739         noce_try_cmove.
14741 2015-08-03  Richard Biener  <rguenther@suse.de>
14743         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14744         New hash-map to record equivalent transforms.
14745         (dt_node::analyze): Populate the equivalent transforms hash-map.
14746         (dt_simplify::info): Add reference to hash-map entry.
14747         (dt_simplify::gen): If we have split out a function for the
14748         transform, generate a call to it.
14749         (sinfo_hashmap_traits::hash): New function.
14750         (compare_op): New helper function for ...
14751         (sinfo_hashmap_traits::equal_keys): ... this new function.
14752         (decision_tree::gen): Split out common equivalent transforms
14753         into functions.
14755 2015-08-03  Richard Biener  <rguenther@suse.de>
14757         * gimple-fold.c (fold_gimple_assign): Remove folding of
14758         the comparison in COND_EXPRs.
14760 2015-08-03  Richard Biener  <rguenther@suse.de>
14762         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14763         on the rhs of assignments first simplify the embedded
14764         GENERIC condition.
14766 2015-08-03  Richard Biener  <rguenther@suse.de>
14768         PR tree-optimization/66917
14769         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14770         field.
14771         (DR_VECT_AUX): New macro.
14772         (set_dr_misalignment): Adjust.
14773         (dr_misalignment): Likewise.
14774         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14775         Compute whether the base is at least element aligned.
14776         * tree-vect-stmts.c (ensure_base_align): Adjust.
14777         (vectorizable_store): If the base is not element aligned
14778         preserve alignment of the original access if misalignment is unknown.
14779         (vectorizable_load): Likewise.
14781 2015-08-02  Martin Sebor  <msebor@redhat.com>
14783         * c-family/c.opt (-Wframe-address): New warning option.
14784         * doc/invoke.texi (Wframe-address): Document it.
14785         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14786         Clarify possible effects of calling the functions with non-zero
14787         arguments and mention -Wframe-address.
14788         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14790 2015-08-01  Michael Collison  <michael.collison@linaro.org
14791             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14793         * config/arm/arm.md (*arm_smin_cmp): New pattern.
14794         (*arm_umin_cmp): Likewise.
14796 2015-08-01  Caroline Tice  <cmtice@google.com>
14798         PR 66521
14799         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14800         global variables.
14801         (vtbl_find_mangled_name):  New function.
14802         (vtbl_register_mangled_name):  New function.
14803         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
14804         mangled name in mangled name vectors.
14805         (find_or_create_vtbl_map_node):  Ditto.
14806         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
14807         update recursion_depth on function entry; pass it to every recursive
14808         call; automatically exit if depth > 25 (give up looking at that point).
14809         (verify_bb_vtables):  Initialize recursion_depth and pass it to
14810         var_is_used_for_virtual_call_p.
14811         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14812         global variable decls.
14813         (vtbl_register_mangled_name): New extern function decl.
14815 2015-08-01  Tom de Vries  <tom@codesourcery.com>
14817         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14818         function.
14819         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14820         Declare.
14821         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14822         operation_no_trapping_overflow.  Allow non-overflow operations.
14823         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14824         operations.
14826 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14828         PR target/67049
14829         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14831 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14833         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14834         Enable for TARGET_32BIT.
14835         (*if_move_neg): Likewise.
14837 2015-07-31  Nick Clifton  <nickc@redhat.com>
14839         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14840         Returns true for __model__.
14841         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14843 2015-07-31  Alan Modra  <amodra@gmail.com>
14845         PR target/66870
14846         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14847         (rs6000_emit_prologue): Set it.
14848         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14850 2015-07-31  Richard Biener  <rguenther@suse.de>
14852         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14853         -> X == (C1 ^ C2) which is already implemented in match.pd.
14854         Remove redundant dispatching to fold_relational_const.
14855         Move unordered self and NaN compares ...
14856         * match.pd: ... as patterns here.  Remove some stray captures
14857         and add a comment.
14859 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
14861         * config/i386/i386.c
14862         (bdesc_special_args): Convert mask type from signed to unsigned for
14863         masked builtins.
14864         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14865         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14866         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14867         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14868         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14869         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14870         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14871         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14872         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14873         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14874         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14875         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14876         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14877         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14878         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14879         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14880         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14881         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14882         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14883         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14884         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14885         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14886         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14887         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14888         * config/i386/i386-builtin-types.def
14889         (V16QI_FTYPE_V16SI): Remove.
14890         (V8DF_FTYPE_V8SI): Ditto.
14891         (V8HI_FTYPE_V8DI): Ditto.
14892         (V8SI_FTYPE_V8DI): Ditto.
14893         (V8SF_FTYPE_V8DF): Ditto.
14894         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14895         (V16HI_FTYPE_V16SI): Ditto.
14896         (V16SF_FTYPE_V16HI): Ditto.
14897         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14898         (V16SF_FTYPE_V16SI): Ditto.
14899         (V4DI_FTYPE_V4DI): Ditto.
14900         (V16SI_FTYPE_V16SF): Ditto.
14901         (V16SF_FTYPE_FLOAT): Ditto.
14902         (V8DF_FTYPE_DOUBLE): Ditto.
14903         (V8DI_FTYPE_INT64): Ditto.
14904         (V8DI_FTYPE_V4DI): Ditto.
14905         (V16QI_FTYPE_V8DI): Ditto.
14906         (UINT_FTYPE_V4SF): Ditto.
14907         (UINT64_FTYPE_V4SF): Ditto.
14908         (UINT_FTYPE_V2DF): Ditto.
14909         (UINT64_FTYPE_V2DF): Ditto.
14910         (V16SI_FTYPE_V16SI): Ditto.
14911         (V8DI_FTYPE_V8DI): Ditto.
14912         (V16SI_FTYPE_PV4SI): Ditto.
14913         (V16SF_FTYPE_PV4SF): Ditto.
14914         (V8DI_FTYPE_PV2DI): Ditto.
14915         (V8DF_FTYPE_PV2DF): Ditto.
14916         (V4DI_FTYPE_PV2DI): Ditto.
14917         (V4DF_FTYPE_PV2DF): Ditto.
14918         (V16SI_FTYPE_PV2SI): Ditto.
14919         (V16SF_FTYPE_PV2SF): Ditto.
14920         (V8DI_FTYPE_PV4DI): Ditto.
14921         (V8DF_FTYPE_PV4DF): Ditto.
14922         (V8SF_FTYPE_FLOAT): Ditto.
14923         (V4SF_FTYPE_FLOAT): Ditto.
14924         (V4DF_FTYPE_DOUBLE): Ditto.
14925         (V8SF_FTYPE_PV4SF): Ditto.
14926         (V8SI_FTYPE_PV4SI): Ditto.
14927         (V4SI_FTYPE_PV2SI): Ditto.
14928         (V8SF_FTYPE_PV2SF): Ditto.
14929         (V8SI_FTYPE_PV2SI): Ditto.
14930         (V16SF_FTYPE_PV8SF): Ditto.
14931         (V16SI_FTYPE_PV8SI): Ditto.
14932         (V8DI_FTYPE_V8SF): Ditto.
14933         (V4DI_FTYPE_V4SF): Ditto.
14934         (V2DI_FTYPE_V4SF): Ditto.
14935         (V64QI_FTYPE_QI): Ditto.
14936         (V32HI_FTYPE_HI): Ditto.
14937         (V8UHI_FTYPE_V8UHI): Ditto.
14938         (V16UHI_FTYPE_V16UHI): Ditto.
14939         (V32UHI_FTYPE_V32UHI): Ditto.
14940         (V2UDI_FTYPE_V2UDI): Ditto.
14941         (V4UDI_FTYPE_V4UDI): Ditto.
14942         (V8UDI_FTYPE_V8UDI): Ditto.
14943         (V4USI_FTYPE_V4USI): Ditto.
14944         (V8USI_FTYPE_V8USI): Ditto.
14945         (V16USI_FTYPE_V16USI): Ditto.
14946         (V2DF_FTYPE_V2DF_UINT64): Ditto.
14947         (V2DI_FTYPE_V2DF_V2DF): Ditto.
14948         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14949         (V8DF_FTYPE_V8DF_V8DI): Ditto.
14950         (V4SF_FTYPE_V4SF_UINT64): Ditto.
14951         (V4SI_FTYPE_V4SF_V4SF): Ditto.
14952         (V16SF_FTYPE_V16SF_V16SI): Ditto.
14953         (V64QI_FTYPE_V32HI_V32HI): Ditto.
14954         (V32HI_FTYPE_V16SI_V16SI): Ditto.
14955         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14956         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14957         (V32HI_FTYPE_V64QI_V64QI): Ditto.
14958         (V32HI_FTYPE_V32HI_V32HI): Ditto.
14959         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14960         (V16SI_FTYPE_V16SI_V4SI): Ditto.
14961         (V16SI_FTYPE_V16SI_V16SI): Ditto.
14962         (V16SI_FTYPE_V32HI_V32HI): Ditto.
14963         (V16SI_FTYPE_V16SI_SI): Ditto.
14964         (V8DI_FTYPE_V8DI_V8DI): Ditto.
14965         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14966         (V8DI_FTYPE_V16SI_V16SI): Ditto.
14967         (V8DI_FTYPE_V8DI_V2DI): Ditto.
14968         (QI_FTYPE_QI): Ditto.
14969         (SI_FTYPE_SI): Ditto.
14970         (DI_FTYPE_DI): Ditto.
14971         (QI_FTYPE_QI_QI): Ditto.
14972         (QI_FTYPE_QI_INT): Ditto.
14973         (HI_FTYPE_HI_INT): Ditto.
14974         (SI_FTYPE_SI_INT): Ditto.
14975         (DI_FTYPE_DI_INT): Ditto.
14976         (HI_FTYPE_V16QI_V16QI): Ditto.
14977         (SI_FTYPE_V32QI_V32QI): Ditto.
14978         (DI_FTYPE_V64QI_V64QI): Ditto.
14979         (QI_FTYPE_V8HI_V8HI): Ditto.
14980         (HI_FTYPE_V16HI_V16HI): Ditto.
14981         (SI_FTYPE_V32HI_V32HI): Ditto.
14982         (QI_FTYPE_V4SI_V4SI): Ditto.
14983         (QI_FTYPE_V8SI_V8SI): Ditto.
14984         (QI_FTYPE_V2DI_V2DI): Ditto.
14985         (QI_FTYPE_V4DI_V4DI): Ditto.
14986         (QI_FTYPE_V8DI_V8DI): Ditto.
14987         (HI_FTYPE_V16SI_V16SI): Ditto.
14988         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14989         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14990         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14991         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14992         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14993         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14994         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14995         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14996         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14997         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14998         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14999         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
15000         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
15001         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
15002         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
15003         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
15004         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
15005         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
15006         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
15007         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
15008         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
15009         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
15010         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
15011         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
15012         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
15013         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
15014         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
15015         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
15016         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
15017         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
15018         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
15019         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
15020         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
15021         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
15022         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
15023         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
15024         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
15025         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
15026         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
15027         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
15028         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
15029         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
15030         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
15031         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
15032         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
15033         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
15034         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
15035         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
15036         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
15037         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
15038         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
15039         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
15040         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
15041         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
15042         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
15043         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
15044         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
15045         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
15046         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
15047         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
15048         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
15049         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
15050         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
15051         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
15052         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
15053         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
15054         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
15055         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
15056         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
15057         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
15058         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
15059         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
15060         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
15061         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
15062         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
15063         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
15064         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
15065         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
15066         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
15067         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
15068         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
15069         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
15070         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
15071         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
15072         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
15073         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
15074         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
15075         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
15076         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
15077         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
15078         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
15079         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
15080         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
15081         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
15082         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
15083         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
15084         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
15085         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
15086         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
15087         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
15088         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
15089         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
15090         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
15091         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
15092         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
15093         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
15094         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
15095         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
15096         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
15097         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
15098         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
15099         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
15100         (HI_FTYPE_HI): Ditto.
15101         (HI_FTYPE_V16QI): Ditto.
15102         (SI_FTYPE_V32QI): Ditto.
15103         (DI_FTYPE_V64QI): Ditto.
15104         (QI_FTYPE_V8HI): Ditto.
15105         (HI_FTYPE_V16HI): Ditto.
15106         (SI_FTYPE_V32HI): Ditto.
15107         (QI_FTYPE_V4SI): Ditto.
15108         (QI_FTYPE_V8SI): Ditto.
15109         (HI_FTYPE_V16SI): Ditto.
15110         (QI_FTYPE_V2DI): Ditto.
15111         (QI_FTYPE_V4DI): Ditto.
15112         (QI_FTYPE_V8DI): Ditto.
15113         (V16QI_FTYPE_HI): Ditto.
15114         (V32QI_FTYPE_SI): Ditto.
15115         (V64QI_FTYPE_DI): Ditto.
15116         (V8HI_FTYPE_QI): Ditto.
15117         (V16HI_FTYPE_HI): Ditto.
15118         (V32HI_FTYPE_SI): Ditto.
15119         (V4SI_FTYPE_QI): Ditto.
15120         (V4SI_FTYPE_HI): Ditto.
15121         (V8SI_FTYPE_QI): Ditto.
15122         (V8SI_FTYPE_HI): Ditto.
15123         (V2DI_FTYPE_QI): Ditto.
15124         (V4DI_FTYPE_QI): Ditto.
15125         (HI_FTYPE_HI_HI): Ditto.
15126         (SI_FTYPE_SI_SI): Ditto.
15127         (DI_FTYPE_DI_DI): Ditto.
15128         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
15129         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
15130         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
15131         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
15132         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
15133         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
15134         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
15135         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
15136         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
15137         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
15138         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
15139         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
15140         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
15141         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
15142         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
15143         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
15144         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
15145         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
15146         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
15147         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
15148         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
15149         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
15150         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
15151         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
15152         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
15153         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
15154         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
15155         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
15156         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
15157         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
15158         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
15159         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
15160         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
15161         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
15162         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
15163         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
15164         (V16SI_FTYPE_HI): Ditto.
15165         (V8DI_FTYPE_QI): Ditto.
15166         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
15167         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
15168         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
15169         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
15170         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
15171         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
15172         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
15173         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
15174         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
15175         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
15176         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
15177         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
15178         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
15179         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
15180         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
15181         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
15182         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
15183         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
15184         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
15185         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
15186         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
15187         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
15188         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
15189         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
15190         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
15191         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
15192         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
15193         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
15194         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
15195         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
15196         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
15197         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
15198         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
15199         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
15200         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
15201         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
15202         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
15203         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
15204         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
15205         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
15206         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
15207         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
15208         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
15209         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
15210         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
15211         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
15212         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
15213         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
15214         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
15215         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
15216         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
15217         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
15218         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
15219         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
15220         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
15221         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
15222         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
15223         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
15224         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
15225         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
15226         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
15227         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
15228         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
15229         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
15230         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
15231         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
15232         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
15233         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
15234         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
15235         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
15236         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
15237         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
15238         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
15239         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
15240         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
15241         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
15242         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
15243         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
15244         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
15245         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
15246         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
15247         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
15248         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
15249         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
15250         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
15251         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
15252         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
15253         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
15254         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
15255         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
15256         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
15257         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
15258         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
15259         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
15260         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
15261         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
15262         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
15263         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
15264         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
15265         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
15266         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
15267         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
15268         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
15269         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
15270         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
15271         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
15272         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
15273         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
15274         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
15275         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
15276         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
15277         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
15278         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
15279         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
15280         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
15281         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
15282         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
15283         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
15284         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
15285         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
15286         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
15287         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
15288         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
15289         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
15290         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
15291         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
15292         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
15293         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
15294         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
15295         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
15296         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
15297         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
15298         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
15299         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
15300         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
15301         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
15302         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
15303         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
15304         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
15305         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
15306         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
15307         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
15308         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
15309         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
15310         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
15311         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
15312         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
15313         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
15314         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
15315         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
15316         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
15317         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
15318         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
15319         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
15320         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
15321         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
15322         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
15323         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
15324         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
15325         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
15326         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
15327         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
15328         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
15329         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
15330         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
15331         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
15332         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
15333         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
15334         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
15335         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
15336         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
15337         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
15338         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
15339         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
15340         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
15341         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
15342         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
15343         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
15344         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
15345         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
15346         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
15347         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
15348         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
15349         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
15350         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
15351         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
15352         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
15353         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
15354         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
15355         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
15356         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
15357         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
15358         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
15359         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
15360         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
15361         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
15362         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
15363         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
15364         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
15365         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
15366         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
15367         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
15368         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
15369         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
15370         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
15371         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
15372         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
15373         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
15374         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
15375         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
15376         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15377         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15378         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15379         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15380         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15381         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15382         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15383         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15384         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15385         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15386         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15387         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15388         (QI_FTYPE_V8DF_INT_QI): Ditto.
15389         (QI_FTYPE_V4DF_INT_QI): Ditto.
15390         (QI_FTYPE_V2DF_INT_QI): Ditto.
15391         (HI_FTYPE_V16SF_INT_HI): Ditto.
15392         (QI_FTYPE_V8SF_INT_QI): Ditto.
15393         (QI_FTYPE_V4SF_INT_QI): Ditto.
15394         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15396 2015-07-31  Richard Biener  <rguenther@suse.de>
15398         * gimple-fold.c (fold_gimple_assign): Remove folding of
15399         GIMPLE_BINARY_RHS.
15401 2015-07-31  Tom de Vries  <tom@codesourcery.com>
15403         PR tree-optimization/66846
15404         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15405         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15406         (expand_omp_target) [ENABLE_CHECKING]: Same.
15407         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15408         cfun if !LOOPS_NEED_FIXUP.
15409         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
15410         that omp_for already has its own loop struct.
15411         * tree-parloops.c (create_phi_for_local_result)
15412         (create_call_for_reduction): Handle simple latch bb.
15413         (create_parallel_loop): Add simple latch bb to preserve
15414         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
15415         (gen_parallel_loop): Remove call to cancel_loop_tree.
15416         (parallelize_loops): Skip loops that are inner loops of parallelized
15417         loops.
15418         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15419         verify_loop_structure.
15421 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15423         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15424         * config/v850/v850.md (RV_REGNUM): New constants.
15425         * config/v850/v850.c (v850_libcall_value): New functions.
15426         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15427         (TARGET_LIBCALL_VALUE): Define.
15429 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
15431         * rtl.h (lowpart_subreg): Move in file.
15432         * loop-iv.c (lowpart_subreg): Move to...
15433         * simplify-rtx.c (lowpart_subreg): ...here.
15434           (simplify_binary_operation_1): Use lowpart_subreg instead of
15435           simplify_gen_subreg.
15436         * expr.c (expand_expr_real_2): Ditto.
15437         * emit-rtl.c (gen_lowpart_common): Ditto.
15438         * combine.c (gen_lowpart_for_combine): Ditto.
15439         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15440           expand_debug_source_expr): Ditto.
15442 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
15444         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15445         (expand_builtin_atomic_clear): Remove support for atomic_clear
15446         pattern.
15448 2015-07-30  Richard Biener  <rguenther@suse.de>
15450         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15451         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15452         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
15453         redundant operand canonicalization.
15455 2015-07-30  David Sherwood  <david.sherwood@arm.com>
15457         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15458         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15459         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15460         * config/arm/arm.c (neon_valid_immediate): Likewise.
15461         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15462         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15463         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15464         (expand_vec_perm_vpshufb2_vpermq): Likewise.
15465         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15466         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15467         * config/i386/sse.md
15468         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15469         (*ssse3_palignr<mode>_perm): Likewise.
15470         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
15471         * config/spu/spu.c (arith_immediate_p): Likewise.
15472         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15473         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
15475 2015-07-30  Richard Biener  <rguenther@suse.de>
15477         * genmatch.c (decision_tree::gen_gimple): Merge with ...
15478         (decision_tree::gen_generic): ... this into ...
15479         (decision_tree::gen): ... this.
15480         (main): Adjust callers.
15482 2015-07-30  Richard Biener  <rguenther@suse.de>
15484         * genmatch.c (verbose): New global.
15485         (warning_at): Add overload with source_location.
15486         (capture_info::capture_info): Add bool whether generating gimple
15487         or generic.  Add gimple member.
15488         (capture_info::cinfo): Add capture member.
15489         (capture_info::walk_match): Record capture.  Warn on
15490         non-captured leafs.
15491         (capture_info::walk_c_expr): Add more fragments captures cannot
15492         escape through.  Warn on escaped captures.
15493         (dt_simplify::gen_1): Warn on operands we force to have no
15494         side-effects.
15495         (main): Initialize verbose.
15496         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
15498 2015-07-30  Richard Biener  <rguenther@suse.de>
15500         PR middle-end/67053
15501         * match.pd: Allow both operands to independently have conversion
15502         when simplifying compares of addresses.
15504 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
15506         PR target/66217
15507         PR target/67045
15508         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15509         around those cases that need one.
15511 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
15513         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15515 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
15517         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15518         New.  Copied from config/i386/gnu-user.h.
15519         (ASM_COMMENT_START): Likewise.
15520         (DBX_REGISTER_NUMBER): Likewise.
15522 2015-07-29  Richard Biener  <rguenther@suse.de>
15524         * gimple-fold.c (fold_gimple_cond): Remove.
15525         (fold_stmt_1): Do not call it.
15527 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
15529         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15530         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15532         * config/aarch64/aarch64-modes.def: Add HFmode.
15534         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15535         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15537         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15538         aarch64_promoted_type): New.
15540         (aarch64_float_const_representable_p): Disable HFmode.
15541         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15542         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15543         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15545         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15546         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15548         * config/aarch64/iterators.md (GPF_F16): New.
15550 2015-07-29  Richard Biener  <rguenther@suse.de>
15552         * match.pd: Merge address comparison patterns and make them
15553         handle some more cases.
15555 2015-07-29  Richard Biener  <rguenther@suse.de>
15557         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15558         (parser::parse_capture): Add bool argument on whether to reject
15559         unknown captures.
15560         (parser::parse_expr): Adjust.
15561         (parser::parse_op): Likewise.
15562         (parser::parse_pattern): Likewise.
15564 2015-07-29  Richard Biener  <rguenther@suse.de>
15566         * gimple-fold.c (has_use_on_stmt): New function.
15567         (replace_stmt_with_simplification): Use it to allow
15568         abnormals originally referenced in the stmt.
15569         (fold_stmt_1): Canonicalize operand order.
15571 2015-07-28  David Sherwood  <david.sherwood@arm.com>
15573         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15574         GET_MODE_INNER unconditionally.
15575         * config/spu/spu.c (arith_immediate_p): Likewise.
15576         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15577         * expmed.c (synth_mult): Remove check for VOIDmode result from
15578         GET_MODE_INNER.
15579         (expand_mult_const): Likewise.
15580         * fold-const.c (fold_binary_loc): Replace call to element_precision
15581         with call to GET_MODE_PRECISION.
15582         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15583         m->name.
15584         (emit_mode_inner): Likewise.
15585         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15586         result check.
15587         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15588         (GET_MODE_UNIT_PRECISION): Likewise.
15589         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15590         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15591         * stor-layout.c (bitwise_type_for_mode): Update assert.
15592         (element_precision): Remove.
15594 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15596         * target-insns.def (reload_load_address): New targetm instruction
15597         pattern.
15598         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15600 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15602         * target-insns.def (atomic_test_and_set): New targetm instruction
15603         pattern.
15604         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15605         HAVE_*/gen_* interface.
15607 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15609         * target-insns.def (can_extend, ptr_extend): New targetm instruction
15610         patterns.
15611         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15612         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15613         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15614         * rtlanal.c (nonzero_bits1): Likewise.
15615         (num_sign_bit_copies1): Likewise.
15617 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15619         * target-insns.def (eh_return): New targetm instruction pattern.
15620         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15621         interface.
15622         * function.c (thread_prologue_and_epilogue_insns): Remove
15623         preprocessor condition.
15625 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15627         * target-insns.def (indirect_jump): New targetm instruction pattern.
15628         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15629         interface.
15631 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15633         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15634         instead of nonimmediate_operand.  Remove C condiition.
15636 2015-07-28  Richard Biener  <rguenther@suse.de>
15638         * match.pd: Add more simplification of address comparisons.
15640 2015-07-28  Richard Biener  <rguenther@suse.de>
15642         * match.pd: Re-order two cases in comparison with max/min
15643         value simplification to make it apply for bools.
15645 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15647         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15648         Handle simple SIGN_EXTEND or ZERO_EXTEND.
15649         (aarch64_rtx_costs): Properly strip extend or extract before
15650         passing down to rtx costs again.
15652 2015-07-28  Nick Clifton  <nickc@redhat.com>
15654         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15655         Optimizes the case where -mes0 is active and a constant symbolic
15656         address is used.
15657         * config/rl78/rl78-protos.h: Prototype the new function.
15658         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15660 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15662         * tree-parloops.c (reduc_stmt_res): New function.
15663         (initialize_reductions, add_field_for_reduction)
15664         (create_phi_for_local_result, create_loads_for_reductions)
15665         (create_stores_for_reduction, build_new_reduction): Handle case that
15666         reduc_stmt is a phi.
15667         (gather_scalar_reductions): Allow double_reduc reductions.
15669 2015-07-28  Richard Biener  <rguenther@suse.de>
15671         * fold-const.c (fold_comparison): Remove equality folding
15672         of decl addresses ...
15673         * match.pd: ... here and merge with existing pattern.
15675 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15677         PR tree-optimization/66828
15678         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15679         from int64_t to uint64_t.
15681 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15683         * opts-common.c (read_cmdline_option): List DriverOnly enum values
15684         as valid only in the error message of the driver, not in the
15685         messages of the language compilers.
15687 2015-07-27  Tom de Vries  <tom@codesourcery.com>
15689         * tree-parloops.c (gather_scalar_reductions): Simplify function
15690         structure.
15692 2015-07-27  Marek Polacek  <polacek@redhat.com>
15694         * ipa-devirt.c (types_same_for_odr): Fix typo.
15696 2015-07-27  Jason Merrill  <jason@redhat.com>
15698         PR debug/66468
15699         * dwarf2out.c (gen_inlined_subroutine_die): Check
15700         cgraph_function_possibly_inlined_p.
15702 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15704         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15705         Place integer variant first.
15706         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15708 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15710         PR/63870
15711         * config/arm/arm-builtins.c (enum arm_builtins):
15712         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15713         (ARM_BUILTIN_NEON_BASE): Rename macro to....
15714         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15715         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15716         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15718 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15720         PR/63870
15721         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15722         Add qualifier_lane_index.
15723         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15724         (arm_getlane_qualifiers): Use qualifier_lane_index.
15725         (arm_lanemac_qualifiers): Rename to...
15726         (arm_mac_n_qualifiers): ...this.
15727         (LANEMAC_QUALIFIERS): Rename to...
15728         (MAC_N_QUALIFIERS): ...this.
15729         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15730         (arm_setlane_qualifiers): Use qualifier_lane_index.
15731         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15732         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15733         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15734         (arm_expand_neon_builtin): Handle qualifier_lane_index.
15736         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15737         * config/arm/arm.c (bounds_check): Likewise, improve error message.
15738         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15739         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15740         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15741         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15742         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15743         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15744         qualifiers to TERNOP_IMM.
15745         (vdup_lane): Change qualifiers to GETLANE.
15746         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15747         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15748         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15749         vqdmlsl_n): Change qualifiers to MAC_N.
15751         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15752         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15753         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15754         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15755         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15756         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15757         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15758         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15759         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15760         Remove call to neon_lane_bounds.
15762 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15764         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15765         Place integer variant first.
15767 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
15769         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15770         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15771         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15772         for armv6kz targets.
15773         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15774         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15775         (FL_FOR_ARCH6ZK): Remove.
15776         (FL_FOR_ARCH6KZ): New.
15777         (arm_arch6zk): New declaration.
15778         * config/arm/arm-tables.opt: Regenerate.
15779         * config/arm/arm.c (arm_arch6kz): New.
15780         (arm_option_override): Set arm_arch6kz.
15781         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15782         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15783         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15785 2015-07-27  Marek Polacek  <polacek@redhat.com>
15787         PR c++/66555
15788         PR c/54979
15789         * doc/invoke.texi: Document -Wtautological-compare.
15791 2015-07-27  Richard Biener  <rguenther@suse.de>
15793         * genmatch.c (decision_tree::gen_gimple): Split out large
15794         subtrees into separate functions.
15795         (decision_tree::gen_generic): Likewise.
15797 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
15799         * config/alpha/alpha.c: Use SUBREG_P predicate.
15800         * config/alpha/predicates.md: Ditto.
15802 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15804         * config.host (s390*-*-*): Include driver-native.c only when
15805         building with s390* as host *and* target.
15807 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
15809         PR target/66930
15810         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15811         T bit register modified_between_p check.
15813 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15815         * config/i386/i386.c: Use SUBREG_P predicate.
15816         * config/i386/i386.md: Ditto.
15817         * config/i386/sse.md: Ditto.
15818         * config/i386/predicates.md: Ditto.
15820 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15822         PR target/67004
15823         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15824         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15826 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15828         * Makefile.in: Remove use of TREEBROWSER.
15829         * config.in: Regenerated.
15830         * configure: Regenerated.
15831         * configure.ac: Remove definition of TREEBROWSER.
15832         * tree-browser.c: Removed.
15833         * tree-browser.def: Removed.
15835 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15837         * graphite-scop-detection.c: Include gimple-pretty-print.h.
15838         (stmt_simple_for_scop_p): Print when a stmt is not handled in
15839         Graphite.
15840         (scopdet_basic_block_info): Print when a loop or bb cannot be
15841         represented in Graphite.
15843 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15845         PR target/66648
15846         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15847         execution guard when min_size is less than size_needed.
15849 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15851         * doc/install.texi: Document supported versions of ISL.
15853 2015-07-25  Jeff Law  <law@redhat.com>
15855         Revert:
15856         PR lto/66752
15857         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15858         unable to find X NE 0 in the tables, return X as the simplified
15859         condition.
15860         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15861         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15862         to VISISTED_BBS.  */
15863         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15864         after removing the control flow statement and unnecessary edges.
15866 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
15868         Revert:
15869         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15871         PR rtl-optimization/64164
15872         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15873         * tree-ssa-copyrename.c: Removed.
15874         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15875         -ftree-coalesce-vars.
15876         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15877         * common.opt (ftree-copyrename): Ignore.
15878         (ftree-coalesce-inlined-vars): Likewise.
15879         * doc/invoke.texi: Remove the ignored options above.
15880         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15881         * tree-ssa-coalesce.h: ... here.
15882         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15883         headers required by it.
15884         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15885         across variables when flag_tree_coalesce_vars.  Check register
15886         use and promoted modes to allow coalescing.  Moved to
15887         tree-ssa-coalesce.c.
15888         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15889         with its member functions to tree-ssa-coalesce.c.
15890         (var_map_base_init): Likewise.  Renamed to
15891         compute_samebase_partition_bases.
15892         (partition_view_normal): Drop want_bases parameter.
15893         (partition_view_bitmap): Likewise.
15894         * tree-ssa-live.h: Adjust declarations.
15895         * tree-ssa-coalesce.c: Include explow.h.
15896         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15897         default defs at the entry point.
15898         (dump_part_var_map): New.
15899         (compute_optimized_partition_bases): New, called by...
15900         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15901         of compute_samebase_partition_bases.  Adjust.
15902         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15903         * cfgexpand.c (leader_merge): New.
15904         (get_rtl_for_parm_ssa_default_def): New.
15905         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15906         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15907         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15908         redundant MEM attr setting.
15909         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15910         from...
15911         (expand_one_stack_var): ... this.  New wrapper to check and
15912         skip already expanded SSA partitions.
15913         (record_alignment_for_reg_var): New, factored out of...
15914         (expand_one_var): ... this.
15915         (expand_one_ssa_partition): New.
15916         (adjust_one_expanded_partition_var): New.
15917         (expand_one_register_var): Check and skip already expanded SSA
15918         partitions.
15919         (expand_used_vars): Don't create DECLs for anonymous SSA
15920         names.  Expand all SSA partitions, then adjust all SSA names.
15921         (pass::execute): Replace the loops that set
15922         SA.partition_to_pseudo from partition leaders and cleared
15923         DECL_RTL for multi-location variables, and that which used to
15924         rename vars and set attrs, with one that clears DECL_RTL and
15925         checks that PARMs and RESULTs default_defs match DECL_RTL.
15926         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15927         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15928         * explow.c (promote_ssa_mode): New.
15929         * explow.h (promote_ssa_mode): Declare.
15930         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15931         * function.c: Include cfgexpand.h.
15932         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15933         (use_register_for_parm_decl): Wrapper for the above to
15934         special-case the result_ptr.
15935         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15936         (split_complex_args): Take assign_parm_data_all argument.
15937         Pass it to rtl_for_parm.  Set up rtl and context for split
15938         args.
15939         (assign_parms_augmented_arg_list): Adjust.
15940         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15941         multiple locations.  Recognize split complex args.
15942         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15943         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15944         (assign_parm_setup_block): Prefer SSA-assigned location.
15945         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15946         if stack_parm is NULL.
15947         (assign_parm_setup_stack): Prefer SSA-assigned location.
15948         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15949         rtl before testing for pointer bounds.  Special-case result_ptr.
15950         (expand_function_start): Maybe reset DECL_RTL of result.
15951         Prefer SSA-assigned location for result and static chain.
15952         Factor out DECL_RESULT and SET_DECL_RTL.
15953         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15954         anonymous SSA names.  Use promote_ssa_mode.
15955         (get_temp_reg): Likewise.
15956         (remove_ssa_form): Adjust.
15957         * stor-layout.c (layout_decl): Don't set mem attributes of
15958         non-MEMs.
15959         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15960         and get its reg_usage for reg invalidation.
15961         (compute_bb_dataflow): Pass it insn.
15962         (emit_notes_in_bb): Likewise.
15964 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15966         * config/i386/i386.c (ix86_va_start): Remove
15967         unneeded !TARGET_64BIT check.
15968         (ix86_gimplify_va_arg): Ditto.
15970 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15972         * graphite-sese-to-poly.c (build_poly_scop): Always call
15973         rewrite_commutative_reductions_out_of_ssa.
15975 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15977         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15978         flag_associative_math to FLOAT_TYPE_P.  Honour
15979         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15981 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15983         PR c++/64079
15984         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15985         and "%qD" in warning_at instead of "%q+D" in warning.
15987 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15989         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15990         (ix86_function_abi): Cleanup.
15992 2015-07-24  Michael Darling  <darlingm@gmail.com>
15994         PR other/66259
15995         * acinclude.m4: Reflects renaming of configure.in to configure.ac
15996         * configure: Likewise
15997         * configure.ac: Likewise
15998         * doc/install.texi: Likewise
15999         * doc/tm.texi: Likewise
16000         * doc/tm.texi.in: Likewise
16002 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16004         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
16005         manually swapping values.
16006         * cse.c (fold_rtx): Likewise.
16007         * lra-eliminations.c (form_sum): Likewise.
16009 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
16011         PR target/64003
16012         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
16013         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
16014         (*jcc_1, *jcc_2, jump, simple_return_internal)
16015         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
16016         Set length_nobnd attribute instead of length attribute.
16017         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
16018         (length_nobnd): Remove attribute.
16019         (length): Remove length_nobnd processing.
16021 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
16023         * gimplify.c (omp_default_clause): New function.  Reorganize flow
16024         for clarity. Broken out of ...
16025         (omp_notice_variable): ... here.
16027 2015-07-24  Gary Funck  <gary@intrepid.com>
16029         PR middle-end/66984
16030         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
16031         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
16033 2015-07-24  Tom de Vries  <tom@codesourcery.com>
16035         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
16036         exit-first loop transform.
16038 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
16040         PR 66714
16041         * tree-cfg.c (struct replace_decls_d): New struct.
16042         (replace_block_vars_by_duplicates_1): New function.
16043         (replace_block_vars_by_duplicates): Use it to replace the decls
16044         in the value exprs by duplicates.
16046 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16048         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
16049         -shared, -symbolic, -rdynamic.
16051 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16053         PR target/65711
16054         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
16055         -dynamic-linker within %{!static %{!shared, and -rdynamic within
16056         %{!static.
16058 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
16060         PR ipa/66566
16061         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
16062         edge summary is available.
16064 2015-07-24  Richard Biener  <rguenther@suse.de>
16066         * genmatch.c (struct dt_node): Add statistic fields.
16067         (dt_node::analyze): New method.
16068         (decision_tree::gen_gimple): Call analyze on the root node
16069         and print statistics to stderr.
16070         (decision_tree::gen_generic): Likewise.
16072 2015-07-24  Richard Biener  <rguenther@suse.de>
16074         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
16075         against the highest or lowest possible integer ...
16076         * match.pd: ... as patterns here.
16078 2015-07-24  Richard Biener  <rguenther@suse.de>
16080         * genmatch.c (struct capture_info): Add same_as field.
16081         (capture_info::capture_info): Initialize same_as.
16082         (capture_info::walk_match): Compute same_as.
16083         (capture_info::walk_result): Compute stuff for the leader.
16084         (capture_info::walk_c_expr): Likewise.
16085         (dt_simplify::gen_1): Only look at leaders when deciding
16086         to force no side-effects or emit side-effects of omitted operands.
16088 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16090         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
16091         reg note to the GPR -> FPR save instructions.
16093 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16095         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
16096         cheaper.
16097         (s390_expand_insv): Don't generate risbg pattern for constant zero
16098         sources.
16099         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
16100         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
16101         splitters.
16103 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16105         * config/s390/s390.c (s390_reorg): Clean up handling of processors
16106         with
16107         -mtune=
16108         (s390_issue_rate): Likewise.
16109         (s390_sched_reorder): Likewise.
16110         (s390_sched_variable_issue): Likewise.
16111         (s390_loop_unroll_adjust): Likewise.
16112         (s390_option_override):  Likewise.
16114 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16116         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
16117         processor capabilities with -march=native.
16118         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
16119         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
16120         (S390_TARGET_BITS_STRING): Macro to simplify specs.
16122 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16124         * config/s390/s390.c (s390_issue_rate): Handle
16125         PROCESSOR_2094_Z9_EC.
16126         (s390_option_override): Likewise.
16127         (s390_adjust_priority): Likewise.
16129 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16131         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
16132         when cross compiling.
16134 2015-07-24  Richard Biener  <rguenther@suse.de>
16136         * fold-const.c (maybe_canonicalize_comparison_1): Move
16137         A code CST canonicalization ...
16138         * match.pd: ... to a pattern here.
16140 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
16142         Revert:
16143         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
16144         PR target/63521
16145         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16146         (HONOR_REG_ALLOC_ORDER): Define.
16148 2015-07-24  Richard Biener  <rguenther@suse.de>
16150         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
16151         * fold-const.c (fold_comparison): Move parameter does not
16152         alias &local simplification ...
16153         * match.pd: ... as a pattern here.
16155 2015-07-24  Richard Biener  <rguenther@suse.de>
16157         * gimple-fold.c (replace_stmt_with_simplification): Special-case
16158         valueizing call operands.
16159         * gimple-match-head.c (maybe_push_res_to_seq): Take
16160         number of call arguments from ops array.
16161         (do_valueize): New function.
16162         (gimple_simplify): Return true if valueization changed
16163         any operand even if the result didn't simplify further.
16165 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16167         PR middle-end/25530
16168         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
16170 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16172         PR middle-end/25529
16173         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
16175 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16177         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
16178         instruction.
16180 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16182         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
16183         clean up.
16185 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
16187         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
16188         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
16189         targets here.
16190         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
16191         ms_va_list_type_node initialization.
16193 2015-07-23  Jeff Law  <law@redhat.com>
16195         PR lto/66752
16196         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16197         unable to find X NE 0 in the tables, return X as the simplified
16198         condition.
16199         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16200         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16201         to VISISTED_BBS.  */
16202         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16203         after removing the control flow statement and unnecessary edges.
16205 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16207         * tree-pass.h (get_current_pass_name): Removed.
16209 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
16211         PR rtl-optimization/64164
16212         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16213         * tree-ssa-copyrename.c: Removed.
16214         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16215         -ftree-coalesce-vars.
16216         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16217         * common.opt (ftree-copyrename): Ignore.
16218         (ftree-coalesce-inlined-vars): Likewise.
16219         * doc/invoke.texi: Remove the ignored options above.
16220         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16221         * tree-ssa-coalesce.h: ... here.
16222         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16223         headers required by it.
16224         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16225         across variables when flag_tree_coalesce_vars.  Check register
16226         use and promoted modes to allow coalescing.  Moved to
16227         tree-ssa-coalesce.c.
16228         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16229         with its member functions to tree-ssa-coalesce.c.
16230         (var_map_base_init): Likewise.  Renamed to
16231         compute_samebase_partition_bases.
16232         (partition_view_normal): Drop want_bases parameter.
16233         (partition_view_bitmap): Likewise.
16234         * tree-ssa-live.h: Adjust declarations.
16235         * tree-ssa-coalesce.c: Include explow.h.
16236         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16237         default defs at the entry point.
16238         (dump_part_var_map): New.
16239         (compute_optimized_partition_bases): New, called by...
16240         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16241         of compute_samebase_partition_bases.  Adjust.
16242         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16243         * cfgexpand.c (leader_merge): New.
16244         (get_rtl_for_parm_ssa_default_def): New.
16245         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16246         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16247         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16248         redundant MEM attr setting.
16249         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16250         from...
16251         (expand_one_stack_var): ... this.  New wrapper to check and
16252         skip already expanded SSA partitions.
16253         (record_alignment_for_reg_var): New, factored out of...
16254         (expand_one_var): ... this.
16255         (expand_one_ssa_partition): New.
16256         (adjust_one_expanded_partition_var): New.
16257         (expand_one_register_var): Check and skip already expanded SSA
16258         partitions.
16259         (expand_used_vars): Don't create DECLs for anonymous SSA
16260         names.  Expand all SSA partitions, then adjust all SSA names.
16261         (pass::execute): Replace the loops that set
16262         SA.partition_to_pseudo from partition leaders and cleared
16263         DECL_RTL for multi-location variables, and that which used to
16264         rename vars and set attrs, with one that clears DECL_RTL and
16265         checks that PARMs and RESULTs default_defs match DECL_RTL.
16266         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16267         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16268         * explow.c (promote_ssa_mode): New.
16269         * explow.h (promote_ssa_mode): Declare.
16270         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16271         * function.c: Include cfgexpand.h.
16272         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16273         (use_register_for_parm_decl): Wrapper for the above to
16274         special-case the result_ptr.
16275         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16276         (split_complex_args): Take assign_parm_data_all argument.
16277         Pass it to rtl_for_parm.  Set up rtl and context for split
16278         args.
16279         (assign_parms_augmented_arg_list): Adjust.
16280         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16281         multiple locations.  Recognize split complex args.
16282         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16283         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16284         (assign_parm_setup_block): Prefer SSA-assigned location.
16285         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16286         if stack_parm is NULL.
16287         (assign_parm_setup_stack): Prefer SSA-assigned location.
16288         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16289         rtl before testing for pointer bounds.  Special-case result_ptr.
16290         (expand_function_start): Maybe reset DECL_RTL of result.
16291         Prefer SSA-assigned location for result and static chain.
16292         Factor out DECL_RESULT and SET_DECL_RTL.
16293         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16294         anonymous SSA names.  Use promote_ssa_mode.
16295         (get_temp_reg): Likewise.
16296         (remove_ssa_form): Adjust.
16297         * stor-layout.c (layout_decl): Don't set mem attributes of
16298         non-MEMs.
16299         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16300         and get its reg_usage for reg invalidation.
16301         (compute_bb_dataflow): Pass it insn.
16302         (emit_notes_in_bb): Likewise.
16304 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
16306         PR target/66217
16307         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
16308         prototype.
16309         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
16310         (rs6000_emit_2insn_and): Handle dot forms.
16311         * config/rs6000/rs6000.md (and<mode>3): Adjust.
16312         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
16313         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
16315 2015-07-23  Richard Biener  <rguenther@suse.de>
16317         * generic-match-head.c: Include cgraph.h.
16318         * gimple-match-head.c: Likewise.
16319         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
16320         SSA names.
16321         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
16322         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
16323         pattern.
16325 2015-07-23  Richard Biener  <rguenther@suse.de>
16327         * gimple-fold.c (fold_gimple_cond): Do not require folding
16328         results to pass valid_gimple_rhs_p.
16329         * tree-cfg.h (fold_cond_expr_cond): Remove.
16330         * tree-cfg.c (fold_cond_expr_cond): Likewise.
16331         (make_edges): Do not call it.
16332         * tree-inline.c (tree_function_versioning): Likewise.
16334 2015-07-23  Tom de Vries  <tom@codesourcery.com>
16336         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
16337         vect_force_simple_reduction.
16338         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
16339         (vect_is_simple_reduction_1): Add and handle
16340         need_wrapping_integral_overflow parameter.
16341         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
16342         need_wrapping_integral_overflow parameter.
16343         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
16344         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
16345         decl.
16347 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
16349         PR tree-optimization/66926,66951
16350         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
16351         INNER_LOOP and fix up condition for renaming virtual operands.
16353 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16355         * combine.c (try_combine): Use std::swap instead of manually
16356         swapping.
16358 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
16360         * config/mips/i6400.md: New file.
16361         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
16362         (mips64r6): Likewise.
16363         (i6400): Define.
16364         * config/mips/mips-tables.opt: Regenerate.
16365         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
16366         (mips_issue_rate): Add support for i6400.
16367         (mips_multipass_dfa_lookahead): Likewise.
16368         * config/mips/mips.h (TUNE_I6400): Define.
16369         * config/mips/mips.md: Include i6400.md.
16370         (processor): Add i6400.
16371         * doc/invoke.texi (-march=@var{arch}): Add i6400.
16373 2015-07-23  Richard Biener  <rguenther@suse.de>
16375         PR middle-end/66916
16376         * match.pd: Guard widen and sign-change comparison simplification
16377         with single_use.
16379 2015-07-23  Richard Biener  <rguenther@suse.de>
16381         PR tree-optimization/66945
16382         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16383         ::before_dom_children): Force the propagators idea of
16384         non-executable edges to materialize, not what the folder
16385         chooses.
16387 2015-07-23  Richard Biener  <rguenther@suse.de>
16389         * gimple.h (gimple_cond_make_false): Use 0 != 0.
16390         (gimple_cond_make_true): Use 1 != 0.
16392 2015-07-22  DJ Delorie  <dj@redhat.com>
16394         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16395         slashes.
16397         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16398         (ashrhi3): Likewise.
16399         (lshrhi3): Likewise.
16400         (movhi): Take advantage of zero-extend to load small constants.
16401         (movpsi): Likewise.
16402         (and<mode>3): Likewise.
16403         (zero_extendqihi2): Likewise.
16404         (zero_extendqisi2): New.
16405         * config/msp430/constraints.md (N,O): New.
16406         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16408 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
16410         PR target/66954
16411         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16412         to enum feature_priority and feature_list.
16413         (fold_builtin_cpu): Add F_AES to enum processor_features
16414         and isa_names_table.
16416 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
16418         PR driver/66737
16419         * config/i386/linux-common.h (MPX_SPEC): Use linker option
16420         for 64bit target only.
16422 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
16424         * config/nvptx/nvptx.c: Expand some comments.
16426 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
16428         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16429         (cortex_a53_advsimd): ...This.
16431 2015-07-22  Richard Biener  <rguenther@suse.de>
16433         * genmatch.c (expr::gen_transform): Clarify error message
16434         and display location.
16436 2015-07-22  Richard Biener  <rguenther@suse.de>
16438         * genmatch.c (struct operand): Add location member.
16439         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16440         constructors.
16441         (struct simplify): Remove match_location and result_location
16442         members.
16443         (elsehwere): Adjust.
16445 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
16447         * config/mips/m5100.md: New file.
16448         * config/mips/mips-cpus.def (m5100, m5101): Define.
16449         * config/mips/mips-tables.opt: Regenerate.
16450         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16451         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16452         -march=m5101 to -mips32r5.
16453         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16454         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16455         !-msoft-float.
16456         * config/mips/mips.md: Include m5100.md.
16457         (processor): Add m5100.
16458         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16460 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
16462         * config/mips/mips-cpus.def (interaptiv): Define.
16463         * config/mips/mips-tables.opt: Regenerate.
16464         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16465         -mips32r2.
16466         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16467         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16469 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
16471         PR target/63521
16472         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16473         (HONOR_REG_ALLOC_ORDER): Define.
16475 2015-07-22  Richard Biener  <rguenther@suse.de>
16477         PR tree-optimization/66952
16478         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
16479         blocks we end up executing unconditionally reset all SSA
16480         info such as range and alignment.
16481         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
16482         * tree-ssanames.c (reset_flow_sensitive_info): New function.
16484 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
16486         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
16487         typo in attribute.
16489 2015-07-22  Richard Biener  <rguenther@suse.de>
16491         * genmatch.c (parser::parse_result): Properly handle
16492         match with result operands and conditions.
16494 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
16496         PR target/63870
16497         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16498         Add qualifier_struct_load_store_lane_index.
16499         (aarch64_types_loadstruct_lane_qualifiers): Use
16500         qualifier_struct_load_store_lane_index for lane index argument for
16501         last argument.
16502         (aarch64_types_storestruct_lane_qualifiers): Ditto.
16503         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16504         (aarch64_simd_expand_args): Add new argument describing mode of
16505         builtin. Check lane bounds for arguments with
16506         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16507         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
16508         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16509         (aarch64_simd_expand_builtin): Handle arguments with
16510         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16511         aarch64_simd_expand_args.
16512         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16513         vst[234]_lane with BUILTIN_VALLDIF.
16514         * config/aarch64/aarch64-simd.md:
16515         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16516         endianness reversal on lane index.
16517         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16518         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16519         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16520         (vec_store_lanesci_lane<mode>): Ditto.
16521         (vec_store_lanesxi_lane<mode>): Ditto.
16522         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16523         reversal of lane index.
16524         (aarch64_ld3_lane<mode>): Ditto.
16525         (aarch64_ld4_lane<mode>): Ditto.
16526         (aarch64_st2_lane<mode>): Ditto.
16527         (aarch64_st3_lane<mode>): Ditto.
16528         (aarch64_st4_lane<mode>): Ditto.
16529         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16530         to qmode. Add new mode parameter. Update uses.
16531         (__LD3_LANE_FUNC): Ditto.
16532         (__LD4_LANE_FUNC): Ditto.
16533         (__ST2_LANE_FUNC): Ditto.
16534         (__ST3_LANE_FUNC): Ditto.
16535         (__ST4_LANE_FUNC): Ditto.
16537 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
16539         * doc/invoke.texi (Language Independent Options): Rename node to
16540         Diagnostic Message Formatting Options.
16542 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
16544         PR ipa/66424.
16545         * lra-remat.c (operand_to_remat): Prevent using insns with input
16546         subregs processed separately by IRA.
16548 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
16550         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16551         straight loops.
16552         (single_imm_use): Check for iterator node.
16553         (num_imm_uses): Likewise.
16554         * tree-ssa-operands.c (has_zero_uses_1): Delete.
16555         (single_imm_use_1): Check for iterator node.
16557 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
16558             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16560         * configure.ac: Add check for new options in isl-0.15.
16561         * config.in, configure: Rebuilt.
16562         * graphite-blocking.c: Include <isl/constraint.h>
16563         * graphite-interchange.c,  graphite-poly.c: Likewise.
16564         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16565         * graphite.c: Likewise.
16566         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16567         <isl/union_set.h>.
16568         * graphite-dependences.c: Include <isl/constraint.h>.
16569         (max_number_of_out_dimensions): Returns isl_stat.
16570         (extend_schedule_1): Likewise
16571         (extend_schedule): Corresponding changes.
16572         * graphite-optimize-isl.c: Include <isl/constraint.h> and
16573         <isl/union_set.h>.
16574         (getSingleMap): Change return type of isl_stat.
16575         (optimize_isl): Conditionally use
16576         isl_options_set_schedule_serialize_sccs.
16577         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16578         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16580 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
16582         PR target/66956
16583         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16584         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16586 2015-07-21  Richard Biener  <rguenther@suse.de>
16588         PR tree-optimization/66948
16589         * genmatch.c (capture_info::walk_match): Also recurse to
16590         captures.  Properly compute expr state from captures of
16591         captures.
16592         * match.pd: Add single-use guards to
16593         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16595 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16597         * config/nvptx/mkoffload.c (process): Add static destructor call.
16599 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16601         PR middle-end/66915
16602         * match.pd (A - B -> A + (-B)): Don't allow folding
16603         when type if a fixed-point type.
16605 2015-07-20  DJ Delorie  <dj@redhat.com>
16607         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16608         (iorqi3_real): Likewise for set1.
16610 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
16612         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16613         for !TARGET_64BIT.
16615 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
16617         * graphite-isl-ast-to-gimple.c:
16618         Refactor so that each function can access 'region'. This will help
16619         maintain a parameter rename_map within a region.
16621 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16623         * config/rs6000/rs6000.md (*lt0_disi): New.
16625 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16627         PR target/66217
16628         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
16629         "available letters" comment.
16630         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16631         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16632         and_2rld_operand):  Delete.
16633         (and_operand): Adjust.
16634         (rotate_mask_operator): New.
16635         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16636         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16637         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16638         extract_ME): Delete.
16639         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16640         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16641         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16642         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16643         rs6000_emit_2insn_and): New.
16644         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16645         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16646         includes_rldic_lshift_p, includes_rldicr_lshift_p,
16647         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16648         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16649         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16650         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16651         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16652         rs6000_emit_2insn_and): New.
16653         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16654         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16655         handling.
16656         <NOT>: Don't fall through to next case.
16657         <AND>: Handle the various rotate-and-mask cases directly.
16658         <IOR>: Always cost as one insn.
16659         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16660         (and<mode>3): Adjust expander for the new patterns.
16661         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16662         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16663         (*and<mode>3_imm_dot_shifted): New.
16664         (*and<mode>3_mask): Delete, rewrite as ...
16665         (and<mode>3_mask): ... New.
16666         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16667         (andsi3_internal0_nomc): Delete.
16668         (*andsi3_internal6): Delete.
16669         (*and<mode>3_2insn): New.
16670         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16671         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16672         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16673         *insvdi_internal3): Delete.
16674         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16675         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16676         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16677         *ior<mode>_mask): New.
16678         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16679         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16680         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16681         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16682         Delete.
16683         (ashr<mode>3): Delete expander.
16684         (*ashr<mode>3): Rename to ...
16685         (ashr<mode>3): ... This.
16686         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16687         (*rotldi3_internal4, *rotldi3_internal5 and split,
16688         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16689         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16690         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16691         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16692         (splitter for loading a mask): Adjust.
16693         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16695 2015-07-20  Marek Polacek  <polacek@redhat.com>
16697         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16698         output_add_clobbers, output_added_clobbers_hard_reg_p,
16699         gen_rtx_scratch): Remove declarations.
16701 2015-07-20  Marek Polacek  <polacek@redhat.com>
16703         PR c++/55095
16704         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16706 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16708         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16709         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16711 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16713         * combine.c (combine_simplify_rtx): Move simplification step
16714         before various transformations/substitutions.
16716 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
16718         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16719         (struct int_traits): Likewise.
16721 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16723         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16724         function to vmsdbgout_function_decl.
16726 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16728         PR target/66922
16729         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16730         from misaligned positions.
16731         (ix86_expand_pinsr): Reject insertions to misaligned positions.
16733 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
16735         PR middle-end/46851
16736         PR middle-end/60340
16737         * Makefile.in: Removed omega.o.
16738         * common.opt: Document flag fcheck-data-deps as deprecated.
16739         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16740         its associated params: omega-max-vars, omega-max-geqs,
16741         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16742         omega-max-keys, omega-eliminate-redundant-constraints.
16743         * doc/loop.texi: Remove all the section on Omega.
16744         * graphite-blocking.c: Include missing params.h: it used to be
16745         included through tree-data-ref.h and omega.h.
16746         * graphite-isl-ast-to-gimple.c: Same.
16747         * graphite-optimize-isl.c: Same.
16748         * graphite-sese-to-poly.c: Same.
16749         * graphite.c: Same.
16750         * omega.c: Remove.
16751         * omega.h: Remove.
16752         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16753         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16754         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16755         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16756         * passes.def: Remove pass_check_data_deps.
16757         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16758         (dump_conflict_function): Same.
16759         (dump_subscript): Same.
16760         (print_direction_vector): Same.
16761         (print_dir_vectors): Same.
16762         (print_lambda_vector): Same.
16763         (print_dist_vectors): Same.
16764         (dump_data_dependence_relation): Same.
16765         (dump_data_dependence_relations): Same.
16766         (dump_dist_dir_vectors): Same.
16767         (dump_ddrs): Same.
16768         (init_omega_eq_with_af): Removed.
16769         (omega_extract_distance_vectors): Removed.
16770         (omega_setup_subscript): Removed.
16771         (init_omega_for_ddr_1): Removed.
16772         (init_omega_for_ddr): Removed.
16773         (ddr_consistent_p): Removed.
16774         (compute_affine_dependence): Do not use omega to check data
16775         dependences.
16776         (compute_data_dependences_for_bb): Removed.
16777         (analyze_all_data_dependences): Removed.
16778         (tree_check_data_deps): Removed.
16779         * tree-data-ref.h: Do not include omega.h.
16780         (compute_data_dependences_for_bb): Removed.
16781         (tree_check_data_deps): Removed.
16782         * tree-ssa-loop.c (pass_check_data_deps): Removed.
16783         (make_pass_check_data_deps): Removed.
16784         * tree-ssa-phiopt.c: Include params.h.
16785         * tree-vect-data-refs.c: Same.
16786         * tree-vect-slp.c: Same.
16788 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16790         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16791         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
16792         (mem->fpreg splitters): Ditto.
16793         (general_operand->nonimmediate_operand splitter): Use explicit modes.
16794         Disable DFmode for TARGET_64BIT.
16796 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
16798         PR target/66906
16799         * config/i386/i386.c (ix86_expand_prologue): Replicate static
16800         chain on the stack.
16802 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16804         * config/nvptx/mkoffload.c (process): Constify host data.
16805         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16806         Constify host data.
16807         (generate_host_descr_file): Likewise.
16809 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
16810             Sebastian Pop  <s.pop@samsung.com>
16812         PR middle-end/61929
16813         * graphite-dependences.c (add_pdr_constraints): Renamed
16814         pdr->extent to pdr->subscript_sizes.
16815         * graphite-interchange.c (build_linearized_memory_access): Add
16816         back all gcc_assert's that the "isl_int to isl_val conversion"
16817         patch has removed.  Refactored.
16818         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16819         * graphite-poly.c (new_poly_dr): Same.
16820         (free_poly_dr): Same.
16821         * graphite-poly.h (struct poly_dr): Same.
16822         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16823         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16824         * graphite-scop-detection.h: Fix space.
16825         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16826         back all gcc_assert's removed by a previous patch.
16827         (wrap): Remove the_isl_ctx global variable that the same patch has
16828         added.
16829         (build_loop_iteration_domains): Same.
16830         (add_param_constraints): Same.
16831         (pdr_add_data_dimensions): Same.  Refactored.
16832         (build_poly_dr): Renamed extent to subscript_sizes.
16834 2015-07-17  Marek Polacek  <polacek@redhat.com>
16836         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16837         * match.pd: ... here.
16839 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16841         * config/nvptx/mkoffload.c (process): Constify target data.
16842         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16843         Constify target data.
16844         (generate_target_offloadend_file): Likewise.
16846 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
16848         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16849         to allow renaming of PHI arguments on edges incoming from outer
16850         loop header, add corresponding check before start PHI iterator.
16851         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16852         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16853         with true force_vectorize.  Set-up dominator for outer loop too.
16854         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16855         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16856         was marked with force_vectorize and has restricted cfg.
16857         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16858         inner loop.
16859         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16860         do peeling for outer loops.
16862 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
16863             Matthias Klose  <doko@ubuntu.com>
16865         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16866         build-sysroot, sysroot from the `Miscenalleous configure options' to
16867         the `Directories' section and strip trailing `/' from with_sysroot.
16868         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16869         * configure: Regenerated.
16871 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16873         PR target/66824
16874         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16875         (TARGET_HARD_DF_REGS): Ditto.
16876         (TARGET_HARD_XF_REGS): Ditto.
16877         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16878         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16879         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16880         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16881         (*movsf_internal): Add alternatives 16 and 17. Enable
16882         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16884 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16886         PR rtl-optimization/66891
16887         * calls.c (expand_call): Wrap precompute_register_parameters with
16888         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16890 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
16892         * config/nvptx/mkoffload.c (process): Constify mapping variables.
16893         Define target data struct and initialize it.
16895 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
16897         PR rtl-optimization/66626
16898         * ira.h (emit-rtl.h): Include.
16899         (non_spilled_static_chain_regno_p): New.
16900         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16901         unless it is non spilled static chain pseudo.
16902         (assign_hard_rego): Spill memory profitable allocno unless it is
16903         non spilled static chain pseudo.
16904         (allocno_spill_priority_compare): Put non spilled static chain
16905         pseudo at the end of sorted array.
16906         (improve_allocation): Do nothing if we have static chain and
16907         non-local goto.
16908         (allocno__priority_compare_func): Put non spilled static chain
16909         pseudo at the beginning of sorted array.
16910         (move_spill_restore): Ignore non spilled static chain pseudo.
16911         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16912         to non spilled static chain pseudo.
16913         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16914         pseudo at the beginning of sorted array.
16915         (spill_for): Spill non spilled static chain pseudo last.
16916         * lra-constraints.c (lra_constraints): Remove static chain pseudo
16917         check for equivalence.
16919 2015-07-16  Martin Liska  <mliska@suse.cz>
16921         PR ipa/66896.
16922         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16923         dst_ctx if it does not exist.
16925 2015-07-16  Martin Liska  <mliska@suse.cz>
16927         * hash-set.h (remove): New function.
16928         (iterator): New iteration class for hash_set.
16930 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16932         * genattrtab.c (make_canonical): Add a file_location parameter.
16933         Use fatal_at rather than fatal.
16934         (get_attr_value): Likewise.  Update call to make_canonical.
16935         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16936         (make_internal_attr): Update calls accordingly.
16938 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16940         * read-md.h (message_with_line, error_with_line): Delete.
16941         * read-md.c (message_with_line, error_with_line): Delete.
16942         * gensupport.h: Include read-md.h.
16943         (md_rtx_info): New structure.
16944         (read_md_rtx): Use it.  Return a bool success value.
16945         * gensupport.c (read_md_rtx): Likewise.
16946         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16947         (main): Update after interface changes.
16948         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16949         (main): Update after interface changes.
16950         * genattrtab.c (insn_code_number): Delete.
16951         (optimize_attrs): Add a max_insn_code parameter and use it instead
16952         of insn_code_number.
16953         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16954         Use *_at rather than *_with_line functions.
16955         (gen_insn): Likewise.
16956         (gen_delay): Likewise.
16957         (gen_insn_reserv): Likewise.
16958         (gen_bypass): Take an md_rtx_info rather than an rtx.
16959         (main): Update after interface changes.  Use a local max_insn_code
16960         variable instead of insn_code_number.
16961         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16962         an rtx.  Use fatal_at rather than fatal.
16963         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16964         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16965         (gen_absence_set, gen_final_absence_set, gen_automaton)
16966         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16967         (main): Update after interface changes.
16968         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16969         and code number.
16970         (main): Update after interface changes.
16971         * genconditions.c (main): Use new read_md_rtx interface.
16972         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16973         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16974         (main): Update after interface changes.
16975         * genemit.c (insn_code_number, insn_index_number): Delete.
16976         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16977         Use fatal_at rather than fatal.
16978         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
16979         rather than fatal.
16980         (gen_split): Likewise.
16981         (main): Update after interface changes.
16982         * genextract.c (line_no): Delete.
16983         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16984         Update call to walk_rtx.
16985         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
16986         rather than message_with_line.
16987         (walk_rtx): Add an md_rtx_info argument.  Update call to
16988         VEC_safe_set_locstr.
16989         (main): Update after interface changes.
16990         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16991         and lineno.  Use error_at rather than separate message_with_line
16992         calls and have_error assignments.
16993         (main): Update after interface changes.
16994         * genmddump.c (main): Use new read_md_rtx interface.
16995         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16996         (main): Update after interface changes.
16997         * genoutput.c (next_code_number): Delete.
16998         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16999         (gen_peephole, gen_expand, gen_split): Likewise.
17000         (note_constraint): Likewise.  Use *_at rather than *_with_line
17001         functions.
17002         (main): Update after interface changes.
17003         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
17004         rtx and lineno.
17005         (main): Update after interface changes.
17006         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
17007         than an rtx and lineno.
17008         (process_define_constraint): Likewise.
17009         (process_define_register_constraint): Likewise.
17010         (main): Update after interface changes.
17011         * genrecog.c (next_insn_code, pattern_lineno): Delete.
17012         (validate_pattern): Replace top-level rtx with an md_rtx_info.
17013         Use *_at rather than *_with_line functions.
17014         (match_pattern_2): Likewise.
17015         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
17016         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
17017         Use *_at rather than *_with_line functions.
17018         * gentarget-def.c (add_insn): New function.
17019         (main): Use it.  Use new read_md_rtx interface.
17021 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17023         * gensupport.h (compute_test_codes): Take a file_location rather
17024         than a line number.
17025         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
17026         rather than *_with_line functions.
17027         (process_define_predicate): Update call to compute_test_codes.
17028         * genpreds.c (validate_exp): Take a file_location rather than a
17029         line number.  Use *_at functions rather than *_with_line functions.
17030         (process_define_predicate): Update call to validate_exp.
17031         (constraint_data): Replace lineno field with a file_location.
17032         (add_constraint): Take a file_location rather than a line number.
17033         Use *_at functions rather than *_with_line functions.  Fix error
17034         message for address constraints.  Update after changes to
17035         validate_exp, constraint_data and compute_test_codes.
17036         (process_define_constraint): Update accordingly.
17037         (process_define_register_constraint): Likewise.
17039 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17041         * genoutput.c (data): Use a file_location to record the source
17042         position.
17043         (nothing): Delete.
17044         (idata, idata_end): Remove initialization.
17045         (constraint_data): Replace lineno with a file_location.
17046         (output_insn_data): Update after changes to data.
17047         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
17048         (scan_operands): Likewise, using *_at rather than *_with_line
17049         functions.
17050         (process_template): Likewise.
17051         (validate_insn_alternatives): Likewise.
17052         (validate_insn_operands): Likewise.
17053         (validate_optab_operands): Likewise.
17054         (init_insn_for_nothing): Initialize idata and idata_end.
17055         (note_constraint): Update after changes to constraint_data,
17056         using at rather than with_line functions.
17057         (mdep_constraint_len): Take a file_location rather than a
17058         line number.  Use at rather than with_line functions.
17060 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17062         * read-md.h (fatal_at): Declare.
17063         * read-md.c (fatal_at): New function.
17064         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
17065         to record the source position.
17066         (check_attr_test): Take a file_location instead of a line number.
17067         Use fatal_at instead of fatal.
17068         (check_attr_value): Update after above changes, using "at"
17069         rather than "with_line" reporting functions.
17070         (convert_set_attr_alternative): Likewise.
17071         (gen_attr): Likewise.
17072         (check_defs): Likewise.  Don't assign to read_md_filename.
17073         (gen_insn): Update initialization after above changes.
17074         (gen_delay): Likewise.
17075         (write_insn_cases): Print the filename for a define_peephole.
17076         (gen_insn_reserv): Take a line number as argument and update
17077         the call to check_attr_test.
17078         (main): Pass a line number to gen_insn_reserv.
17080 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17082         * read-md.h (file_location): New structure.
17083         (directive_handler_t): Take a file_location rather than a line number.
17084         (message_at, error_at): Declare.
17085         (read_skip_construct): Delete.
17086         * read-md.c (message_with_line_1): Replace with...
17087         (message_at_1): ...this new function.
17088         (message_at, error_at): New functions.
17089         (message_with_line, error_with_line): Update to use message_at_1.
17090         (handle_enum): Take a file_location rather than a line number
17091         and use error_at for error reporting.
17092         (handle_include): Likewise.
17093         (read_skip_construct): Likewise.  Make static.
17094         (handle_file): Update after above changes.  Pass a file_location
17095         rather than a line number to handle_directive.
17096         * gensupport.c (queue_elem): Replace separate filename and lineno
17097         with a file_location.
17098         (queue_pattern): Replace filename and lineno arguments with a
17099         file_location.  Update after change to queue_elem.
17100         (process_define_predicate): Replace lineno argument with a
17101         file_location and use error_at for error reporting.  Update
17102         after above changes.
17103         (process_rtx): Likewise.
17104         (subst_pattern_match): Likewise.
17105         (get_alternatives_number): Likewise.
17106         (alter_predicate_for_insn): Likewise.
17107         (rtx_handle_directive): Likewise.
17108         (is_predicable): Update after above changes, using error_at rather
17109         than error_with_line.
17110         (has_subst_attribute): Likewise.
17111         (identify_predicable_attribute): Likewise.
17112         (alter_attrs_for_subst_insn): Likewise.
17113         (process_one_cond_exec): Likewise.
17114         (process_substs_on_one_elem): Likewise.
17115         (process_define_subst): Likewise.
17116         (check_define_attr_duplicates): Likewise.
17117         (read_md_rtx): Update after change to queue_elem.
17119 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17121         * genoutput.c (next_index_number): Delete.
17122         (data): Remove index_number.
17123         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
17124         (main): Remove manipulation of next_index_number.
17126 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
17128         * genattrtab.c (check_attr_value): Remove handling of null attrs.
17129         (make_canonical): Likewise.
17131 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
17133         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
17134         instead of adjust_address_nv.
17135         (restore_stack_nonlocal): Likewise.
17136         (nonlocal_goto): Likewise.
17138 2015-07-16  Tom de Vries  <tom@codesourcery.com>
17140         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
17141         not have a corresponding loop header phi.
17143 2015-07-16  Tom de Vries  <tom@codesourcery.com>
17145         * tree-parloops.c (create_loads_for_reductions): Handle case that
17146         reduction is unused.
17148 2015-07-16  Richard Biener  <rguenther@suse.de>
17150         PR tree-optimization/66894
17151         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
17152         about deriving NE_EXPR from truncated values.
17154 2015-07-16  Martin Liska  <mliska@suse.cz>
17156         * alloc-pool.h
17157         (object_allocator): Add new class.
17158         (pool_allocator::initialize): Use the underlying class.
17159         (pool_allocator::allocate): Likewise.
17160         (pool_allocator::remove): Likewise.
17161         (operator new): A new generic allocator.
17162         * asan.c (struct asan_mem_ref): Remove unused members.
17163         (asan_mem_ref_new): Replace new operator with
17164         object_allocator::allocate.
17165         (free_mem_ref_resources): Change deallocation.
17166         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
17167         with object_allocator.
17168         * config/sh/sh.c (add_constant): Replace new operator with
17169         object_allocator::allocate.
17170         (sh_reorg): Change call to a release method.
17171         * cselib.c (struct elt_list): Remove unused members.
17172         (new_elt_list): Replace new operator with
17173         object_allocator::allocate.
17174         (new_elt_loc_list): Likewise.
17175         (new_cselib_val): Likewise.
17176         (unchain_one_elt_list): Change delete operator with remove method.
17177         (unchain_one_elt_loc_list): Likewise.
17178         (unchain_one_value): Likewise.
17179         (cselib_finish): Release newly added static allocators.
17180         * cselib.h (struct cselib_val): Remove unused members.
17181         (struct elt_loc_list): Likewise.
17182         * df-problems.c (df_chain_alloc): Replace pool_allocator with
17183         object_allocator.
17184         * df-scan.c (struct df_scan_problem_data): Likewise.
17185         (df_scan_alloc): Likewise.
17186         * df.h (struct dataflow): Likewise.
17187         * dse.c (struct read_info_type): Likewise.
17188         (struct insn_info_type): Likewise.
17189         (struct dse_bb_info_type): Likewise.
17190         (struct group_info): Likewise.
17191         (struct deferred_change): Likewise.
17192         (get_group_info): Likewise.
17193         (delete_dead_store_insn): Likewise.
17194         (free_read_records): Likewise.
17195         (replace_read): Likewise.
17196         (check_mem_read_rtx): Likewise.
17197         (scan_insn): Likewise.
17198         (dse_step1): Likewise.
17199         (dse_step7): Likewise.
17200         * et-forest.c (struct et_occ): Remove unused members.
17201         (et_new_occ): Use allocate instead of new operator.
17202         (et_new_tree): Likewise.
17203         (et_free_tree): Call release method explicitly.
17204         (et_free_tree_force): Likewise.
17205         (et_free_pools): Likewise.
17206         (et_split): Use remove instead of delete operator.
17207         * et-forest.h (struct et_node): Remove unused members.
17208         * ipa-cp.c: Change pool_allocator to object_allocator.
17209         * ipa-inline-analysis.c: Likewise.
17210         * ipa-profile.c: Likewise.
17211         * ipa-prop.c: Likewise.
17212         * ipa-prop.h: Likewise.
17213         * ira-build.c (initiate_cost_vectors): Cast return value.
17214         (ira_allocate_cost_vector): Likewise.
17215         * ira-color.c (struct update_cost_record): Remove unused members.
17216         * lra-int.h (struct lra_live_range): Likewise.
17217         (struct lra_copy): Likewise.
17218         (struct lra_insn_reg): Likewise.
17219         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
17220         * lra.c (new_insn_reg): Replace new operator with allocate method.
17221         (free_insn_regs): Same for operator delete.
17222         (finish_insn_regs): Release new static allocator.
17223         (finish_insn_recog_data): Likewise.
17224         (lra_free_copies): Replace delete operator with remove method.
17225         (lra_create_copy): Replace operator new with allocate method.
17226         (invalidate_insn_data_regno_info): Same for remove method.
17227         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
17228         (free_debug_insn_changes): Replace delete operator with remove method.
17229         (replace_oldest_value_reg): Replace operator new with allocate method.
17230         (pass_cprop_hardreg::execute): Release new static variable.
17231         * sched-deps.c (sched_deps_init): Change pool_allocator to
17232         object_allocator.
17233         * sel-sched-ir.c: Likewise.
17234         * sel-sched-ir.h: Likewise.
17235         * stmt.c (expand_case): Likewise.
17236         (expand_sjlj_dispatch_table): Likewise.
17237         * tree-sra.c (struct access): Remove unused members.
17238         (struct assign_link): Likewise.
17239         (sra_deinitialize): Release newly added static pools.
17240         (create_access_1):Replace operator new with allocate method.
17241         (build_accesses_from_assign): Likewise.
17242         (create_artificial_child_access): Likewise.
17243         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
17244         pool_allocator to object_allocator.
17245         * tree-ssa-pre.c: Likewise.
17246         * tree-ssa-reassoc.c: Likewise.
17247         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
17248         * tree-ssa-strlen.c: Likewise.
17249         * tree-ssa-structalias.c: Likewise.
17250         * var-tracking.c (onepart_pool_allocate): New function.
17251         (unshare_variable): Use the newly added function.
17252         (variable_merge_over_cur): Likewise.
17253         (variable_from_dropped): Likewise.
17254         (variable_was_changed): Likewise.
17255         (set_slot_part): Likewise.
17256         (emit_notes_for_differences_1): Likewise.
17257         (vt_finalize): Release newly added static pools.
17259 2015-07-16  Martin Jambor  <mjambor@suse.cz>
17261         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
17262         all uses.  Fix two typos in its general comment.
17263         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
17265 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
17267         * config/i386/linux-common.h (LINK_MPX): New.
17268         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
17269         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
17270         indicating '-z bndplt' support by linker.
17271         * configure: Regenerate.
17272         * config.in: Regenerate.
17274 2015-07-16  Richard Biener  <rguenther@suse.de>
17276         * fold-const.c (fold_widened_comparison): Remove.
17277         (fold_sign_changed_comparison): Likewise.
17278         (fold_comparison): Move widened and sign-changed comparison
17279         simplification ...
17280         * match.pd: ... to patterns here.
17281         * generic-match-head.c: Include target.h.
17282         * gimple-match-head.c: Likewise.
17284 2015-07-16  Richard Biener  <rguenther@suse.de>
17286         * tree-ssa-dom.c (dom_valueize): New function.
17287         (record_temporary_equivalences): Also record equivalences
17288         for dominating stmts that have uses of equivalences we are
17289         about to record.
17291 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
17293         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
17294         add_autoinc_candidates.
17295         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
17296         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
17297         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
17298         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
17299         Call new function.
17300         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
17301         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
17302         Remove parameter struct iv*.  Call add_autoinc_candidates here.
17303         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
17304         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
17305         Call new function.
17306         (find_iv_candidates): Call new functions.
17308 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
17310         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
17311         uninitialized-variable warning.
17313 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
17315         PR target/65249
17316         * config/sh/sh.md (movdi): Split simple reg move to two movsi
17317         when the destination is R0.
17319 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
17321         PR target/66866
17322         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
17323         * config/i386/i386.c (ix86_expand_pextr): New function.
17324         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
17325         for non-lowpart subregs.
17326         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
17327         (insv<mode>): Use SWI248 mode iterator.
17328         (insv<mode>_1): Ditto.
17330 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17331             Sebastian Pop  <s.pop@samsung.com>
17333         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
17334         iterator to use_stmt.
17336 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17337             Sebastian Pop <s.pop@samsung.com>
17339         * graphite-scop-detection.c (build_scops_1): Discard scops for
17340         which entry==exit.
17342 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17343             Sebastian Pop <s.pop@samsung.com>
17345         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
17346         case of a return statement in scop.
17348 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
17349             Sebastian Pop <s.pop@samsung.com>
17351         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
17352         INTEGER_TYPE parameters.
17353         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
17354         VECTOR_CST in scan_tree_for_params.
17355         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
17357 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17359         * gimple-pretty-print.h: Don't include pretty-print.h.
17360         * tree-streamer.h: Don't include lto-streamer.h.
17361         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
17362         * gimple-streamer-in.c: Remove redundant includes.
17363         * gimple-streamer-out.c: Likewise.
17364         * ipa-devirt.c: Likewise.
17365         * ipa-icf.c: Likewise.
17366         * ipa-inline-analysis.c: Likewise.
17367         * ipa-polymorphic-call.c: Likewise.
17368         * ipa-profile.c: Likewise.
17369         * ipa-prop.c: Likewise.
17370         * ipa-pure-const.c: Likewise.
17371         * lto-cgraph.c: Likewise.
17372         * lto-streamer-in.c: Likewise.
17373         * lto-streamer-out.c: Likewise.
17374         * lto-streamer.c: Likewise.
17375         * tree-streamer-in.c: Likewise.
17376         * tree-streamer-out.c: Likewise.
17377         * tree-streamer.c: Likewise.
17379 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
17381         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17382         include input.h.
17383         * opts.c: Remove multiline #include comment.
17385 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
17387         * config/nvptx/mkoffload.c (process): Add C++ protection to
17388         emitted code.
17390 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17392         PR target/66854
17393         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17394         null before IEEE 128-bit floating point support patch.
17396 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17398         * simplify-rtx.c (simplify_ternary_operation): Add simplification
17399         for (!c) != {0,...,0} ? a : b for vector modes.
17401 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
17402             Martin Jambor  <mjambor@suse.cz>
17404         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17405         struct func_body_info* instead of struct ipa_node_params*, expecting
17406         fbi->info to be filled in.  Replace throughout.  Adjust call to
17407         ipa_load_from_parm_agg.
17408         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17409         instead of struct ipa_node_params*.  Adjust calls to other functions
17410         so that they pass either fbi or fbi->info.
17411         (set_switch_stmt_execution_predicate): Likewise.
17412         (will_be_nonconstant_predicate): Likewise.
17413         (compute_bb_predicates): Likewise.
17414         (estimate_function_body_sizes): Move asserts earlier.  Fill in
17415         struct func_body_info, replace parms_info with fbi.info.  Adjust
17416         calls to functions that now accept struct func_body_info.
17417         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17418         (struct func_body_info): Likewise.
17419         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17420         remove static.  Adjust callers.
17421         (ipa_load_from_parm_agg): Remove.
17422         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17423         (func_body_info): Likewise.
17424         (ipa_load_from_parm_agg): Adjust prototype.
17426 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17428         * gensupport.c (rtx_handle_directive): Adjust.
17429         * read-rtl.c (apply_iterators): Take vector to add rtxs to
17430         instead of expr list rtx.
17431         (add_define_attr_for_define_subst): Likewise.
17432         (add_define_subst_attr): Likewise.
17433         (read_subst_mapping): Likewise.
17434         (read_rtx): Likewise.
17435         * rtl.h (read_rtx): Adjust.
17437 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17439         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17441 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17443         PR target/58066
17444         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17445         (*tls_local_dynamic_base_64_<mode>): Ditto.
17446         (*tls_local_dynamic_base_64_largepic): Ditto.
17447         (tls_global_dynamic_64_<mode>): Update expander pattern.
17448         (tls_local_dynamic_base_64_<mode>): Ditto.
17450 2015-07-15  Richard Biener  <rguenther@suse.de>
17452         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17453         and bool_var == 1 -> bool_var simplifications ...
17454         * match.pd: ... to patterns here.  Factor out negate_expr_p
17455         cases from the A - B -> A + (-B) patterns as negate_expr_p
17456         predicate and add a -(A + B) -> (-B) - A pattern.
17458 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
17460         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17462 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17463             Robert Suchanek  <robert.suchanek@imgtec.com>
17465         * config/mips/mips.c (mips_int_mask): New enum.
17466         (mips_shadow_set): Likewise.
17467         (int_mask): New variable.
17468         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17469         (machine_function): Add int_mask and use_shadow_register_set.
17470         (mips_attribute_table): Add attribute handlers for interrupt and
17471         use_shadow_register_set.
17472         (mips_interrupt_mask): New static function.
17473         (mips_handle_interrupt_attr): Likewise.
17474         (mips_handle_use_shadow_register_set_attr): Likewise.
17475         (mips_use_shadow_register_set): Change return type to enum
17476         mips_shadow_set.  Add argument handling for use_shadow_register_set
17477         attribute.
17478         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
17479         compare with mips_shadow_set enum.
17480         (mips_compute_frame_info): Add interrupt mask and
17481         use_shadow_register_set to per-function information structure.
17482         Add a stack slot for EPC unconditionally.
17483         (mips_expand_prologue): Compare use_shadow_register_set value
17484         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
17485         masked interrupt register but in EIC mode use K0 and save Cause in K0.
17486         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
17487         copying the stack pointer from the shadow register set.
17488         * config/mips/mips.h (SR_IM0): New define.
17489         * config/mips/mips.md (mips_rdpgpr): Rename to...
17490         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
17491         * doc/extend.texi (Declaring Attributes of Functions): Document
17492         optional arguments for interrupt and use_shadow_register_set
17493         attributes.
17495 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
17497         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
17498         interrupt attribute.
17499         (mips_expand_prologue): Disable the floating point unit in an ISR.
17500         * config/mips/mips.h (SR_COP1): New define.
17502 2015-07-15  Richard Biener  <rguenther@suse.de>
17504         * genmatch.c (parser::peek, parser::peek_ident): Add argument
17505         to tell how many tokens to peek ahead (default 1).
17506         (parser::eat_token, parser::eat_ident): Return token consumed.
17507         (parser::parse_result): Parse new switch statement.
17508         * match.pd: Use case statements where appropriate.
17510 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17512         PR rtl-optimization/58066
17513         * calls.c (expand_call): Precompute register parameters before stack
17514         alignment is performed.
17516 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17518         PR rtl-optimization/66838
17519         * postreload.c (reload_cse_move2add): Also process
17520         CALL_INSN_FUNCTION_USAGE when resetting information of
17521         call-clobbered registers.
17523 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17524             Cesar Philippidis  <cesar@codesourcery.com>
17525             Chung-Lin Tang  <cltang@codesourcery.com>
17527         * config/nios2/constraints.md (U, v): New constraints.
17528         * config/nios2/predicates.md (rdprs_dcache_operand): New.
17529         (ldstex_memory_operand): New.
17530         * config/nios2/sync.md: New file.
17531         * config/nios2/nios2.md (unspecv): Add new builtin function
17532         UNSPECV codes.
17533         (rdprs, flushd, flushda, wrpie, eni): New patterns.
17534         (top-level): Include sync.md.
17535         * config/nios2/nios2.c (N2_FTYPES): Add function types for
17536         new builtins.
17537         (N2_BUILTINS): Add arch field setting, add new builtins.
17538         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17539         for arch field.
17540         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17541         Also handle ldex/stex/ldsex/stsex builtins.
17542         (nios2_expand_rdprs_builtin): New function.
17543         (nios2_expand_cache_builtin): New function.
17544         (nios2_expand_wrpie_builtin): New function.
17545         (nios2_expand_eni_builtin): New function.
17546         (nios2_expand_builtin): Add arch field handling and new builtin
17547         cases.
17548         * doc/extend.texi (Altera Nios II Built-in Functions): Document
17549         new builtins.
17550         * doc/md.texi (Machine Constraints): Document U and v constraints.
17552 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17553             Cesar Philippidis  <cesar@codesourcery.com>
17554             Chung-Lin Tang  <cltang@codesourcery.com>
17556         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17557         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17558         callee_save_reg_size and uses_anonymous_args fields.
17559         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17560         (nios2_create_cfa_notes): New function.
17561         (nios2_adjust_stack): New function for adjusting stack.
17562         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17563         Use nios2_adjust_stack.
17564         (nios2_expand_epilogue): Likewise.
17565         (nios2_expand_return): New function.
17566         (nios2_can_use_return_insn): Update for CDX pop.n usage.
17567         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17568         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17569         * config/nios2/nios2.md (return): Use nios2_expand_return.
17571 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17572             Cesar Philippidis  <cesar@codesourcery.com>
17573             Chung-Lin Tang  <cltang@codesourcery.com>
17575         * config/nios2/predicates.md (pop_operation): New.
17576         (ldwm_operation, stwm_operation): New.
17577         (nios2_hard_register_operand): New.
17578         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17579         (ldstwm_operation_p): Declare.
17580         (gen_ldstwm_peep): Declare.
17581         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17582         (base_reg_adjustment_p): New.
17583         (pop_operation_p): New.
17584         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17585         (nios2_ldstwm_regset_p): New.
17586         (ldstwm_operation_p): New.
17587         (gen_ldst): New.
17588         (nios2_ldst_parallel): New.
17589         (struct ldswm_operand): Declare.
17590         (compare_ldstwm_operands): New.
17591         (can_use_cdx_ldstw): New.
17592         (gen_ldstwm_peep): New.
17593         * config/nios2/nios2-ldstwm.sml: New.
17594         * config/nios2/nios2.md: Include ldstwm.md.
17595         * config/nios2/ldstwm.md: Generated.
17597 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17598             Cesar Philippidis  <cesar@codesourcery.com>
17599             Chung-Lin Tang  <cltang@codesourcery.com>
17601         * config/nios2/nios2.h (LABEL_ALIGN): Define.
17602         (REG_ALLOC_ORDER): Define.
17603         (ADJUST_REG_ALLOC_ORDER): Define.
17604         (HONOR_REG_ALLOC_ORDER): Define.
17605         (CDX_REG_P): Define.
17606         (ANDCLEAR_INT): Define.
17607         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17608         (nios2_label_align): Declare.
17609         (nios2_cdx_narrow_form_p): Declare.
17610         (nios2_adjust_reg_alloc_order): Declare.
17611         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17612         operation.
17613         (nios2_large_unspec_reloc_p): New function, split from...
17614         (nios2_legitimate_pic_operand_p): ...here.
17615         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17616         (nios2_print_operand_punct_valid_p): New.
17617         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
17618         (split_mem_address): New.
17619         (split_alu_insn): New.
17620         (cdxreg): New.
17621         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17622         (enum nios2_add_insn_kind): New.
17623         (nios2_add_insn_names, nios2_add_insn_narrow): New.
17624         (nios2_add_insn_classify): New.
17625         (nios2_add_insn_asm): New.
17626         (nios2_cdx_narrow_form_p): New.
17627         (label_align, min_labelno, max_labelno): New.
17628         (nios2_reorg): New.
17629         (nios2_label_align): New.
17630         (nios2_adjust_reg_alloc_order): New.
17631         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17632         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17633         * config/nios2/constraints.md (P): New constraint.
17634         * config/nios2/predicates.md (const_and_operand): New.
17635         (and_operand): New.
17636         (stack_memory_operand): New.
17637         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17638         (length): Update to use nios2_cdx_narrow_form_p().
17639         (type): Add new insn type values.
17640         (control, alu, st, ld, shift): Update insn reservations with
17641         new insn type values.
17642         (*high, *lo_sum): Define new insn patterns for constant generation.
17643         (movqi_internal, movhi_internal, movsi_internal): Reduce
17644         alternatives, update asm template to handle CDX variants, update
17645         type attributes.
17646         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17647         template, update type attributes.
17648         (extendhisi2, extendqi<mode>2): Likewise.
17649         (addsi3): Change to use function for asm string.
17650         (subsi3): Add CDX notation to asm template, update type attributes.
17651         (negsi3, one_cmplsi3): Likewise.
17652         (andsi3): New pattern, specialized from logical patterns.
17653         (<code>si3): Remove and case, combine alternatives, update asm
17654         template.
17655         (<shift_op>si3): Add CDX notation, update type attributes.
17656         (rotrsi3): Update type attribute.
17657         (*merge, extzv, insv): New insn patterns.
17658         (return): Change to define_expand.
17659         (simple_return): Add CDX notation, update type attributes.
17660         (indirect_jump): Add CDX notation.
17661         (jump): Update asm cases, update length attribute expression.
17662         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17663         (nios2_cbranch): Update asm cases and length attribute expression
17664         to handle CDX variants.
17665         (nios2_cmp<code>): Update asm template.
17666         (nop): Add CDX notation, update type attributes.
17667         (trap): Add CDX notation.
17668         (ctrapsi4): Update asm cases and length attribute expression to
17669         handle CDX variant.
17670         * doc/md.texi (Machine Constraints): Document P constraint.
17672 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17673             Cesar Philippidis  <cesar@codesourcery.com>
17674             Chung-Lin Tang  <cltang@codesourcery.com>
17676         * config/nios2/nios2.h (SMALL_INT12): New macro.
17677         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17678         (nios2_valid_addr_expr_p): Use it.
17679         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17680         with implicit "io" instructions on R2.
17681         * config/nios2/constraints.md (w): New constraint.
17682         * config/nios2/predicates.md (ldstio_memory_operand): New.
17683         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17684         operand predicate and constraint.
17685         (ld<bh>io_signed, st<bhw>io>): Likewise.
17686         * doc/md.texi (Machine Constraints): Document w constraint.
17688 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17689             Cesar Philippidis  <cesar@codesourcery.com>
17690             Chung-Lin Tang  <cltang@codesourcery.com>
17692         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17693         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17694         Nios II architecture level.
17695         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17696         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17697         (OPTION_DEFAULT_SPECS): Define.
17698         (ASM_SPEC): Add -march= spec strings.
17699         * config/nios2/nios2.c (nios2_option_override): Check for
17700         conflicts involving new options.
17701         * config.gcc (nios2*-*-*): Support --with-arch=.
17702         * doc/invoke.texi (Option Summary, Nios II Options): Document
17703         -march=, -mbmx, and -mcdx.
17705 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
17707         PR rtl-optimization/66626
17708         * lra-constraints.c (lra_constraints): Prevent equivalence
17709         substitution for static chain pseudo in functions with nonlocal
17710         goto.
17712 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17714         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17715         (nios2_emit_stack_limit_check): Add size parameter.  Handle
17716         -fstack-limit-symbol as well as -fstack-limit-register.
17717         (nios2_expand_prologue): Emit only a single stack limit check,
17718         even if multiple stack adjustments are required.
17719         (nios2_option_override): Diagnose unsupported combination of -fpic
17720         and -stack-limit-symbol.
17722 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
17724         * Makefile.in (top_srcdir): New.
17725         * configure.ac: Use AM_ZLIB.
17726         * configure: Regeneated.
17728 2015-07-14  Matthias Klose  <doko@ubuntu.com>
17730         PR target/66840
17731         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17733 2015-07-14  Richard Biener  <rguenther@suse.de>
17735         PR tree-optimization/66863
17736         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17737         what we record for conversion use stmt lhs inequalities.
17739 2015-07-14  Richard Biener  <rguenther@suse.de>
17741         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17742         (decision_tree::gen_gimple): Likewise.
17744 2015-07-14  Tom de Vries  <tom@codesourcery.com>
17746         * gcc.c (greater_than_spec_func): Declare forward.
17747         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17748         -ftree-parallelize-loops={0,1}.
17749         (static_spec_functions): Add greater_than_spec_func function with name
17750         "gt".
17751         (greater_than_spec_func): New function.
17753 2015-07-14  Richard Biener  <rguenther@suse.de>
17755         * tree-ssa-dom.c (record_temporary_equivalences): Merge
17756         wideing type conversion case from record_equivalences_from_incoming_edge
17757         and use record_equality to record equivalences.
17758         (record_equivalences_from_incoming_edge): Call
17759         record_temporary_equivalences.
17761 2015-07-14  Richard Biener  <rguenther@suse.de>
17763         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17764         (struct if_expr): New.
17765         (struct with_expr): Likewise.
17766         (is_a_helper): Add helpers for if_expr and with_expr.
17767         (struct simplify): Add simplify_kind enum and member.  Remove
17768         ifexpr_vec member.
17769         (simplify::simplify): Adjust.
17770         (lower_commutative): Adjust.
17771         (lower_opt_convert): Likewise.
17772         (lower_cond): Likewise.
17773         (replace_id): Handle with_expr and if_expr.
17774         (lower_for): Adjust.
17775         (dt_simplify::gen_1): New recursive worker, split out from ...
17776         (dt_simplify::gen): ... here.  Deal with if and with expansion
17777         recursively.
17778         (capture_info::capture_info): Take context argument
17779         (capture_info::walk_result): Only analyze specific result.
17780         (parser::parse_result): New function.
17781         (parser::parse_simplify): Adjust to parse ifs with then end
17782         else case.
17783         (parser::parse_if): Simplify.
17784         (parser::parse_pattern): Pass down simplify kind.
17785         * match.pd: Convert if structure to new syntax.
17787 2015-07-13  Marek Polacek  <polacek@redhat.com>
17789         * rtl.c (rtx_equal_p_cb): Fix typo.
17791 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
17793         * omega.h: Don't include config.h, don't include params.h again if
17794         omega.h has already been included.
17795         * graphite-poly.h: Include sese.h.
17796         * graphite.c: Don't include sese.h, remove needless includes and
17797         minimize includes outside #ifdef HAVE_isl block.
17798         * graphite-blocking.c: Don't include sese.h, remove needless includes,
17799         and wrap entire file in #ifdef HAVE_isl
17800         * graphite-dependences.c: Likewise.
17801         * graphite-interchange.c: Likewise.
17802         * graphite-isl-ast-to-gimple.c: Likewise.
17803         * graphite-optimize-isl.c: Likewise.
17804         * graphite-poly.c: Likewise.
17805         * graphite-scop-detection.c: Likewise.
17806         * graphite-sese-to-poly.c: Likewise.
17808 2015-07-13  Tom de Vries  <tom@codesourcery.com>
17810         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17812 2015-07-13  Renlin Li  <renlin.li@arm.com>
17814         PR rtl/66556
17815         * simplify-rtx.c (simplify_const_relational_operation): Add
17816         side_effects_p checks.
17818 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
17820         * bitmap.h: Fix double word typos.
17821         * builtins.c: Same.
17822         * calls.c: Same.
17823         * cfgloopmanip.c: Same.
17824         * cgraph.c: Same.
17825         * cgraph.h: Same.
17826         * cgraphclones.c: Same.
17827         * combine.c: Same.
17828         * config/aarch64/aarch64-protos.h: Same.
17829         * config/aarch64/aarch64.c: Same.
17830         * config/aarch64/aarch64.md: Same.
17831         * config/arm/arm.md: Same.
17832         * config/arm/arm1020e.md: Same.
17833         * config/arm/arm1026ejs.md: Same.
17834         * config/arm/arm926ejs.md: Same.
17835         * config/arm/fa526.md: Same.
17836         * config/arm/fa606te.md: Same.
17837         * config/arm/fa626te.md: Same.
17838         * config/arm/fa726te.md: Same.
17839         * config/arm/fmp626.md: Same.
17840         * config/darwin.c: Same.
17841         * config/epiphany/epiphany.c: Same.
17842         * config/frv/frv.c: Same.
17843         * config/ft32/ft32.c: Same.
17844         * config/gnu-user.h: Same.
17845         * config/h8300/constraints.md: Same.
17846         * config/i386/i386.c: Same.
17847         * config/i386/i386.md: Same.
17848         * config/iq2000/iq2000.md: Same.
17849         * config/mips/mips.c: Same.
17850         * config/mmix/mmix.md: Same.
17851         * config/moxie/moxie.c: Same.
17852         * config/nds32/nds32.md: Same.
17853         * config/pa/pa.h: Same.
17854         * config/rs6000/aix.h: Same.
17855         * config/rs6000/rs6000.h: Same.
17856         * config/sh/sh.c: Same.
17857         * config/tilegx/tilegx.md: Same.
17858         * config/tilepro/gen-mul-tables.cc: Same.
17859         * cse.c: Same.
17860         * dbxout.c: Same.
17861         * doc/invoke.texi: Same.
17862         * dse.c: Same.
17863         * dwarf2out.c: Same.
17864         * final.c: Same.
17865         * gcc.c: Same.
17866         * genmatch.c: Same.
17867         * gimplify.c: Same.
17868         * hash-table.h: Same.
17869         * internal-fn.c: Same.
17870         * ipa-cp.c: Same.
17871         * ipa-devirt.c: Same.
17872         * ipa-icf.c: Same.
17873         * ipa-icf.h: Same.
17874         * ipa-profile.c: Same.
17875         * ipa-prop.c: Same.
17876         * ipa-prop.h: Same.
17877         * ira.c: Same.
17878         * omp-low.c: Same.
17879         * reg-stack.c: Same.
17880         * regcprop.c: Same.
17881         * reorg.c: Same.
17882         * rtl.h: Same.
17883         * sbitmap.h: Same.
17884         * tree-eh.c: Same.
17885         * tree-inline.c: Same.
17886         * tree-sra.c: Same.
17887         * tree-ssa-dom.c: Same.
17888         * tree-ssa-loop-ivopts.c: Same.
17889         * tree-ssa-structalias.c: Same.
17890         * tree-ssa-tail-merge.c: Same.
17891         * tree-ssa-ter.c: Same.
17892         * tree-ssa-threadupdate.c: Same.
17893         * tree-ssa-uninit.c: Same.
17894         * tree-ssanames.c: Same.
17895         * tree-vect-loop-manip.c: Same.
17896         * tree-vrp.c: Same.
17897         * tree.c: Same.
17898         * valtrack.c: Same.
17899         * vec.h: Same.
17901 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17903         PR middle-end/66726
17904         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17905         tree_ssa_phiopt_worker): Call it.
17907 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17909         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17910         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17911         REG_EQUAL note.
17913 2015-07-11  Marek Polacek  <polacek@redhat.com>
17915         PR middle-end/66353
17916         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17917         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17918         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17919         rather than bb_has_abnormal_call_pred.
17920         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17921         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17922         rather than bb_has_abnormal_call_pred.
17924 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
17926         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17927         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17928         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17929         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17930         v850_legitimate_address_p): New functions.
17931         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17933 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
17935         PR target/66819
17936         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17937         indirect sibcall with register arguments if register available
17938         for argument passing.
17939         (init_cumulative_args): Set cfun->machine->arg_reg_available
17940         to (cum->nregs > 0) or to true if function has a variable
17941         argument list.
17942         (function_arg_advance_32): Set cfun->machine->arg_reg_available
17943         to false if cum->nregs <= 0.
17944         * config/i386/i386.h (machine_function): Add arg_reg_available.
17946 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17948         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17949         and gen_higpart instead of gen_rtx_SUBREG.
17950         * config/i386/i386.md
17951         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17952         (read-modify peephole2): Use gen_lowpart instead of
17953         gen_rtx_SUBREG for operand 5.
17955 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17957         * config/tilepro/gen-mul-tables.cc (main): Change include list for
17958         generated files.
17959         * config/tilepro/mul-tables.c: Regenerate.
17960         * config/tilegx/mul-tables.c: Regenerate.
17962 2015-07-10  Richard Biener  <rguenther@suse.de>
17964         * fold-const.c (distribute_bit_expr): Remove.
17965         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17966         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17967         to A & (B | C) and simplifying A << C1 << C2 to ...
17968         * match.pd: ... patterns here.
17970 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
17972         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17973         Mark mem as READONLY and NOTRAP for PIC symbol.
17975 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17977         * gimple-predict.h: New file.
17978         (gimple_predict_predictor, gimple_predict_set_predictor,
17979         gimple_predict_outcome, gimple_predict_set_outcome,
17980         gimple_build_predict): Relocate here.
17981         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17982         gimple_predict_outcome, gimple_predict_set_outcome): Move to
17983         gimple-predict.h.
17984         * gimple.c (gimple_build_predict): Move to gimple-predict.h
17985         * basic-block.h: Don't include cfghooks.h.
17986         * backend.h: Don't include predict.h.
17987         * cfghooks.h: Include predict.h.
17988         * gimple-pretty-print.c: Include gimple-predict.h.
17989         * gimplify.c: Likwise.
17990         * predict.c: Adjust includes.
17991         * tree-inline.c: Likewise.
17992         * asan.c: Likewise.
17993         * auto-inc-dec.c: Likewise.
17994         * auto-profile.c: Likewise.
17995         * bb-reorder.c: Likewise.
17996         * builtins.c: Likewise.
17997         * caller-save.c: Likewise.
17998         * calls.c: Likewise.
17999         * cfganal.c: Likewise.
18000         * cfgbuild.c: Likewise.
18001         * cfg.c: Likewise.
18002         * cfgcleanup.c: Likewise.
18003         * cfgexpand.c: Likewise.
18004         * cfghooks.c: Likewise.
18005         * cfgloopanal.c: Likewise.
18006         * cfgloop.c: Likewise.
18007         * cfgloopmanip.c: Likewise.
18008         * cfgrtl.c: Likewise.
18009         * cgraph.c: Likewise.
18010         * cgraphunit.c: Likewise.
18011         * combine.c: Likewise.
18012         * cprop.c: Likewise.
18013         * cse.c: Likewise.
18014         * dce.c: Likewise.
18015         * dojump.c: Likewise.
18016         * dse.c: Likewise.
18017         * except.c: Likewise.
18018         * expmed.c: Likewise.
18019         * expr.c: Likewise.
18020         * final.c: Likewise.
18021         * fold-const.c: Likewise.
18022         * function.c: Likewise.
18023         * fwprop.c: Likewise.
18024         * gcc-plugin.h: Likewise.
18025         * gcse.c: Likewise.
18026         * genattrtab.c: Likewise.
18027         * genemit.c: Likewise.
18028         * gengtype.c: Likewise.
18029         * genopinit.c: Likewise.
18030         * genoutput.c: Likewise.
18031         * genpreds.c: Likewise.
18032         * genrecog.c: Likewise.
18033         * gimple-fold.c: Likewise.
18034         * gimple-iterator.c: Likewise.
18035         * gimple-ssa-isolate-paths.c: Likewise.
18036         * gimple-ssa-strength-reduction.c: Likewise.
18037         * graph.c: Likewise.
18038         * graphite-blocking.c: Likewise.
18039         * graphite.c: Likewise.
18040         * graphite-dependences.c: Likewise.
18041         * graphite-interchange.c: Likewise.
18042         * graphite-isl-ast-to-gimple.c: Likewise.
18043         * graphite-optimize-isl.c: Likewise.
18044         * graphite-poly.c: Likewise.
18045         * graphite-scop-detection.c: Likewise.
18046         * graphite-sese-to-poly.c: Likewise.
18047         * haifa-sched.c: Likewise.
18048         * ifcvt.c: Likewise.
18049         * internal-fn.c: Likewise.
18050         * ipa-cp.c: Likewise.
18051         * ipa-profile.c: Likewise.
18052         * ipa-split.c: Likewise.
18053         * ipa-utils.c: Likewise.
18054         * ira-build.c: Likewise.
18055         * ira-color.c: Likewise.
18056         * ira-conflicts.c: Likewise.
18057         * ira-costs.c: Likewise.
18058         * ira-emit.c: Likewise.
18059         * ira-lives.c: Likewise.
18060         * jump.c: Likewise.
18061         * loop-doloop.c: Likewise.
18062         * loop-init.c: Likewise.
18063         * loop-invariant.c: Likewise.
18064         * loop-unroll.c: Likewise.
18065         * lower-subreg.c: Likewise.
18066         * lra-assigns.c: Likewise.
18067         * lra.c: Likewise.
18068         * lra-coalesce.c: Likewise.
18069         * lra-constraints.c: Likewise.
18070         * lra-lives.c: Likewise.
18071         * lto-cgraph.c: Likewise.
18072         * lto-streamer-in.c: Likewise.
18073         * mode-switching.c: Likewise.
18074         * modulo-sched.c: Likewise.
18075         * omp-low.c: Likewise.
18076         * optabs.c: Likewise.
18077         * passes.c: Likewise.
18078         * postreload.c: Likewise.
18079         * postreload-gcse.c: Likewise.
18080         * profile.c: Likewise.
18081         * recog.c: Likewise.
18082         * regstat.c: Likewise.
18083         * reload1.c: Likewise.
18084         * reorg.c: Likewise.
18085         * rtlanal.c: Likewise.
18086         * sched-ebb.c: Likewise.
18087         * sel-sched-ir.c: Likewise.
18088         * sese.c: Likewise.
18089         * shrink-wrap.c: Likewise.
18090         * simplify-rtx.c: Likewise.
18091         * stmt.c: Likewise.
18092         * store-motion.c: Likewise.
18093         * tracer.c: Likewise.
18094         * trans-mem.c: Likewise.
18095         * tree-call-cdce.c: Likewise.
18096         * tree-cfg.c: Likewise.
18097         * tree-cfgcleanup.c: Likewise.
18098         * tree-chkp.c: Likewise.
18099         * tree-complex.c: Likewise.
18100         * tree-eh.c: Likewise.
18101         * tree-if-conv.c: Likewise.
18102         * tree-loop-distribution.c: Likewise.
18103         * tree-outof-ssa.c: Likewise.
18104         * tree-parloops.c: Likewise.
18105         * tree-predcom.c: Likewise.
18106         * tree-pretty-print.c: Likewise.
18107         * tree-profile.c: Likewise.
18108         * tree-sra.c: Likewise.
18109         * tree-ssa.c: Likewise.
18110         * tree-ssa-coalesce.c: Likewise.
18111         * tree-ssa-dce.c: Likewise.
18112         * tree-ssa-dom.c: Likewise.
18113         * tree-ssa-forwprop.c: Likewise.
18114         * tree-ssa-ifcombine.c: Likewise.
18115         * tree-ssa-loop-ch.c: Likewise.
18116         * tree-ssa-loop-im.c: Likewise.
18117         * tree-ssa-loop-ivcanon.c: Likewise.
18118         * tree-ssa-loop-ivopts.c: Likewise.
18119         * tree-ssa-loop-manip.c: Likewise.
18120         * tree-ssa-loop-prefetch.c: Likewise.
18121         * tree-ssa-loop-unswitch.c: Likewise.
18122         * tree-ssa-math-opts.c: Likewise.
18123         * tree-ssa-phiopt.c: Likewise.
18124         * tree-ssa-pre.c: Likewise.
18125         * tree-ssa-reassoc.c: Likewise.
18126         * tree-ssa-sink.c: Likewise.
18127         * tree-ssa-tail-merge.c: Likewise.
18128         * tree-ssa-threadedge.c: Likewise.
18129         * tree-ssa-threadupdate.c: Likewise.
18130         * tree-switch-conversion.c: Likewise.
18131         * tree-tailcall.c: Likewise.
18132         * tree-vect-data-refs.c: Likewise.
18133         * tree-vect-loop.c: Likewise.
18134         * tree-vect-loop-manip.c: Likewise.
18135         * tree-vectorizer.c: Likewise.
18136         * tree-vrp.c: Likewise.
18137         * ubsan.c: Likewise.
18138         * value-prof.c: Likewise.
18139         * varasm.c: Likewise.
18140         * var-tracking.c: Likewise.
18141         * config/aarch64/aarch64-builtins.c: Likewise.
18142         * config/aarch64/aarch64.c: Likewise.
18143         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18144         * config/alpha/alpha.c: Likewise.
18145         * config/arc/arc.c: Likewise.
18146         * config/arm/arm.c: Likewise.
18147         * config/avr/avr.c: Likewise.
18148         * config/bfin/bfin.c: Likewise.
18149         * config/c6x/c6x.c: Likewise.
18150         * config/cr16/cr16.c: Likewise.
18151         * config/cris/cris.c: Likewise.
18152         * config/darwin.c: Likewise.
18153         * config/darwin-c.c: Likewise.
18154         * config/epiphany/epiphany.c: Likewise.
18155         * config/epiphany/mode-switch-use.c: Likewise.
18156         * config/epiphany/resolve-sw-modes.c: Likewise.
18157         * config/fr30/fr30.c: Likewise.
18158         * config/frv/frv.c: Likewise.
18159         * config/ft32/ft32.c: Likewise.
18160         * config/h8300/h8300.c: Likewise.
18161         * config/i386/i386.c: Likewise.
18162         * config/i386/winnt.c: Likewise.
18163         * config/ia64/ia64.c: Likewise.
18164         * config/iq2000/iq2000.c: Likewise.
18165         * config/lm32/lm32.c: Likewise.
18166         * config/m32c/m32c.c: Likewise.
18167         * config/m32r/m32r.c: Likewise.
18168         * config/m68k/m68k.c: Likewise.
18169         * config/mcore/mcore.c: Likewise.
18170         * config/mep/mep.c: Likewise.
18171         * config/microblaze/microblaze.c: Likewise.
18172         * config/mips/mips.c: Likewise.
18173         * config/mmix/mmix.c: Likewise.
18174         * config/mn10300/mn10300.c: Likewise.
18175         * config/moxie/moxie.c: Likewise.
18176         * config/msp430/msp430.c: Likewise.
18177         * config/nds32/nds32.c: Likewise.
18178         * config/nds32/nds32-cost.c: Likewise.
18179         * config/nds32/nds32-fp-as-gp.c: Likewise.
18180         * config/nds32/nds32-intrinsic.c: Likewise.
18181         * config/nds32/nds32-isr.c: Likewise.
18182         * config/nds32/nds32-md-auxiliary.c: Likewise.
18183         * config/nds32/nds32-memory-manipulation.c: Likewise.
18184         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18185         * config/nds32/nds32-predicates.c: Likewise.
18186         * config/nios2/nios2.c: Likewise.
18187         * config/nvptx/nvptx.c: Likewise.
18188         * config/pa/pa.c: Likewise.
18189         * config/pdp11/pdp11.c: Likewise.
18190         * config/rl78/rl78.c: Likewise.
18191         * config/rs6000/rs6000.c: Likewise.
18192         * config/rx/rx.c: Likewise.
18193         * config/s390/s390.c: Likewise.
18194         * config/sh/sh.c: Likewise.
18195         * config/sh/sh-mem.cc: Likewise.
18196         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18197         * config/sh/sh_treg_combine.cc: Likewise.
18198         * config/sparc/sparc.c: Likewise.
18199         * config/spu/spu.c: Likewise.
18200         * config/stormy16/stormy16.c: Likewise.
18201         * config/tilegx/tilegx.c: Likewise.
18202         * config/tilepro/tilepro.c: Likewise.
18203         * config/v850/v850.c: Likewise.
18204         * config/vax/vax.c: Likewise.
18205         * config/visium/visium.c: Likewise.
18206         * config/xtensa/xtensa.c: Likewise.
18208 2015-07-10  Richard Biener  <rguenther@suse.de>
18210         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
18211         (decision_tree::gen_gimple): Likewise.
18212         (decision_tree::gen_generic): Likewise.
18214 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
18216         PR target/66813
18217         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
18218         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
18220 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
18222         PR middle-end/66820
18223         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
18224         or ORT_TASK contexts.
18225         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
18226         is non-zero.
18228 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18230         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
18231         above function.
18233 2015-07-10  Tom de Vries  <tom@codesourcery.com>
18235         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
18236         insert nit + 1 bound.
18238 2015-07-10  Richard Biener  <rguenther@suse.de>
18240         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
18241         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
18242         (if_convertible_loop_p_1): For this always compute bb predicates.
18243         (if_convertible_loop_p): And free them.
18245 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18247         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
18248         in dump message.
18250 2015-07-10  Richard Biener  <rguenther@suse.de>
18252         PR tree-optimization/66823
18253         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
18254         inverted predicate.
18256 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
18258         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
18259         to handle mips[32|64]r3 and mips[32|64]r5.
18261 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
18263         PR middle-end/66633
18264         * tree-nested.c (get_static_chain): Or in a flag into
18265         info->static_chain_added.
18266         (get_frame_field, get_nonlocal_debug_decl): Likewise.
18267         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
18268         2015-07-01 changes.
18269         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
18270         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
18271         add it to clauses.
18273         PR tree-optimization/66718
18274         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
18275         field.
18276         (vect_simd_lane_linear): New function.
18277         (vectorizable_simd_clone_call): Support using linear arguments for
18278         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
18280 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18282         PR target/66821
18283         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
18285 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
18287         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
18288         Use machine mode, not enum machine_mode in the prototype.
18290         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
18291         classify 128-bit floating point support.
18292         (FLOAT128_IBM_P): Likewise.
18293         (FLOAT128_VECTOR_P): Likewise.
18294         (FLOAT128_2REG_P): Likewise.
18295         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
18296         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
18297         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
18298         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
18300         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
18301         tests against TFmode/TDmode, since those modes do not use VSX
18302         addresses.
18303         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
18304         support.
18305         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
18306         tests against TFmode, etc.
18307         (invalid_e500_subreg): Add tests against IFmode/KFmode.
18308         (reg_offset_addressing_ok_p): Likewise.
18309         (rs6000_legitimate_offset_address_p): Likewise.
18310         (rs6000_legitimize_address): Likewise.
18311         (rs6000_legitimize_reload_address): Likewise.
18312         (rs6000_legitimate_address_p): Clean up tests against TFmode and
18313         TDmode to use the new helper macros, which will include IFmode and
18314         KFmode.
18315         (rs6000_emit_move): Likewise.
18316         (rs6000_darwin64_record_arg_recurse): Likewise.
18317         (print_operand): Likewise.
18318         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
18319         that uses a single vector register as a vector and not as a
18320         floating point register in terms of the calling sequence.
18321         (rs6000_discover_homogeneous_aggregate): Likewise.
18322         (rs6000_return_in_memory): Likewise.
18323         (init_cumulative_args): Likewise.
18324         (rs6000_function_arg_boundary): Likewise.
18325         (rs6000_function_arg_advance_1): Likewise.
18326         (rs6000_function_arg): Likewise.
18327         (rs6000_pass_by_reference): Likewise.
18328         (rs6000_gimplify_va_arg): Likewise.
18329         (rs6000_secondary_reload_memory): Use machine_mode not enum
18330         machine mode.
18331         (rs6000_split_multireg_move): Use new helper macros.
18332         (spe_func_has_64bit_regs_p): Likewise.
18333         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
18334         (output_toc): Use new helper macros.
18335         (rs6000_register_move_cost): Likewise.
18336         (rs6000_function_value): Add IEEE 128-bit floating point calling
18337         sequence support.
18338         (rs6000_libcall_value): Likewise.
18339         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
18340         floating point support.
18341         (rs6000_vector_mode_supported_p): Likewise.
18343 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
18345         PR rtl-optimization/66782
18346         * lra-int.h (struct lra_insn_recog_data): Add comment about
18347         clobbered hard regs for arg_hard_regs.
18348         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
18349         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
18350         Add condition for processing used hard regs.
18351         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
18352         Process clobbered hard regs.
18354 2015-07-09  Michael Matz  <matz@suse.de>
18356         * genmatch.c (fprintf_indent): New function.
18357         (operand::gen_transform): Add indent parameter.
18358         (expr::gen_transform, c_expr::gen_transform,
18359         capture::gen_transform): Ditto and use fprintf_indent.
18360         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
18361         (dt_operand::gen, dt_operand::gen_predicate,
18362         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
18363         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
18364         (decision_tree::gen_gimple): Adjust calls and indent generated
18365         code.
18366         (decision_tree::gen_generic): Ditto.
18367         (write_predicate): Ditto.
18369 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18371         PR target/66814
18372         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
18373         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
18374         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
18375         {GENERAL,SSE,MMX}_REG_P where appropriate.
18377 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18379         * lto-streamer.h: Don't include target.h and alloc-pool.h.
18380         * builtins.c: Adjust includes.
18381         * gimple.c: Likewise.
18382         * ipa-icf.c: Likewise.
18383         * lto-opts.c: Likewise.
18384         * ipa-reference.c: Likewise.
18385         * lto-section-out.c: Likewise.
18386         * lto-streamer-in.c: Likewise.
18387         * lto-streamer-out.c: Likewise.
18388         * opts-global.c: Likewise.
18389         * symtab.c: Likewise.
18390         * tree-chkp.c: Likewise.
18391         * tree-ssa-live.c: Likewise.
18392         * tree-streamer-in.c: Likewise.
18393         * tree-streamer-out.c: Likewise.
18394         * config/darwin.c: Likewise.
18395         * config/i386/winnt.c: Likewise.
18397 2015-07-09  Richard Biener  <rguenther@suse.de>
18399         * genmatch.c (struct expr): Add force_single_use flag.
18400         (expr::expr): Add copy constructor.
18401         (capture_info::walk_match): Gather force_single_use captures.
18402         (expr::gen_transform): Use possibly NULLified sequence.
18403         (dt_simplify::gen): Apply single-use restrictions by NULLifying
18404         seq if any constrained expr is not single-use.
18405         (parser::parse_expr): Refactor to allow multiple flags.  Handle
18406         's' flag to force an expression have a single-use if the pattern
18407         simplifies to more than one statement.
18408         * match.pd: Convert most single_use conditionals to :s flags.
18410 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18412         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18413         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18414         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18416 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
18418         * flags.h: Don't include flag-types.h or options.h.
18419         * opts-common.c: Adjust includes.
18420         * opts-global.c: Likewise.
18421         * common/config/epiphany/epiphany-common.c: Likewise.
18423 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18425         PR target/66818
18426         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18427         for IA MCU.
18429 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
18431         PR target/66817
18432         * config/i386/i386.c (ix86_return_in_memory): Return true
18433         if int_size_in_bytes returns negative for IA MCU.
18435 2015-07-09  Marek Polacek  <polacek@redhat.com>
18437         PR tree-optimization/66718
18438         * Makefile.in (OBJS): Add gimple-laddress.o.
18439         * passes.def: Schedule pass_laddress.
18440         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18441         * tree-pass.h (make_pass_laddress): Declare.
18442         * gimple-laddress.c: New file.
18444 2015-07-09  Richard Biener  <rguenther@suse.de>
18446         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18448 2015-07-09  Richard Biener  <rguenther@suse.de>
18450         PR tree-optimization/66807
18451         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18453 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
18455         * function.c (stack_protect_epilogue): Use if rather than switch for
18456         check targetm.have_stack_protect_test.
18458 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18460         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18461         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18462         * config/arc/arc.h: Likewise.
18463         * config/arm/arm.h: Likewise.
18464         * config/bfin/bfin.h: Likewise.
18465         * config/epiphany/epiphany.h: Likewise.
18466         * config/frv/frv.h: Likewise.
18467         * config/ia64/ia64.h: Likewise.
18468         * config/iq2000/iq2000.h: Likewise.
18469         * config/lm32/lm32.h: Likewise.
18470         * config/m32r/m32r.h: Likewise.
18471         * config/mcore/mcore.h: Likewise.
18472         * config/mep/mep.h: Likewise.
18473         * config/microblaze/microblaze.h: Likewise.
18474         * config/mips/mips.h: Likewise.
18475         * config/mmix/mmix.h: Likewise.
18476         * config/mn10300/mn10300.h: Likewise.
18477         * config/nds32/nds32.h: Likewise.
18478         * config/nios2/nios2.h: Likewise.
18479         * config/pa/pa.h: Likewise.
18480         * config/rl78/rl78.h: Likewise.
18481         * config/sh/sh.h: Likewise.
18482         * config/sparc/sparc.h: Likewise.
18483         * config/stormy16/stormy16.h: Likewise.
18484         * config/tilegx/tilegx.h: Likewise.
18485         * config/tilepro/tilepro.h: Likewise.
18486         * config/v850/v850.h: Likewise.
18487         * config/xtensa/xtensa.h: Likewise.
18488         * doc/tm.texi: Regenerate.
18489         * doc/tm.texi.in: Adjust.
18490         * combine.c (simplify_set): Likewise.
18491         (simplify_comparison): Likewise.
18492         * expr.c (store_constructor): Likewise.
18493         * internal-fn.c (expand_arith_overflow): Likewise.
18494         * reload.c (push_reload): Likewise.
18495         (find_reloads): Likewise.
18496         (find_reloads_subreg_address): Likewise.
18497         * reload1.c (eliminate_regs_1): Likewise.
18498         * rtlanal.c (nonzero_bits1): Likewise.
18499         (num_sign_bit_copies1): Likewise.
18500         * simplify-rtx.c (simplify_truncation): Likewise.
18502 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18504         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
18505         of AUTO_INC_DEC with the preprocessor.
18506         * combine.c (combine_instructions): Likewise.
18507         (can_combine_p): Likewise.
18508         (try_combine): Likewise.
18509         * emit-rtl.c (try_split): Likewise.
18510         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18511         * lower-subreg.c (resolve_simple_move): Likewise.
18512         * lra.c (update_inc_notes): Likewise.
18513         * recog.c (asm_operand_ok): Likewise.
18514         (constrain_operands): Likewise.
18515         * regrename.c (scan_rtx_address): Likewise.
18516         * reload.c (update_auto_inc_notes): Likewise.
18517         (reg_inc_found_and_valid_p): Likewise.
18518         * reload1.c (reload): Likewise.
18519         (emit_input_reload_insns): Likewise.
18520         (delete_output_reload): Likewise.
18521         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18522         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18524 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18526         * rtl.h: Always define AUTO_INC_DEC.
18527         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18528         * combine.c (combine_instructions): Likewise.
18529         (can_combine_p): Likewise.
18530         (try_combine): Likewise.
18531         * emit-rtl.c (try_split): Likewise.
18532         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18533         * lower-subreg.c (resolve_simple_move): Likewise.
18534         * lra.c (update_inc_notes): Likewise.
18535         * recog.c (asm_operand_ok): Likewise.
18536         (constrain_operands): Likewise.
18537         * regrename.c (scan_rtx_address): Likewise.
18538         * reload.c (update_auto_inc_notes): Likewise.
18539         (find_equiv_reg): Likewise.
18540         * reload1.c (reload): Likewise.
18541         (reload_as_needed): Likewise.
18542         (choose_reload_regs): Likewise.
18543         (emit_input_reload_insns): Likewise.
18544         (delete_output_reload): Likewise.
18545         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18546         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18548 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18550         * combine.c (can_combine_def_p): Don't check the value of
18551         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18552         (combinable_i3pat): Likewise.
18553         (mark_used_regs_combine): Likewise.
18554         * regrename.c (rename_chains): Likewise.
18555         * reload.c (find_reloads_address): Likewise.
18556         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18558 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18560         * combine.c (update_rsp_from_reg_equal): Don't check if
18561         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18562         (reg_nonzero_bits_for_combine): Likewise.
18563         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18564         1.
18565         * config/frv/frv.h: Likewise.
18566         * config/lm32/lm32.h: Likewise.
18567         * config/mep/mep.h: Likewise.
18568         * config/mips/mips.h: Likewise.
18569         * config/rs6000/rs6000.h: Likewise.
18570         * config/sh/sh.h: Likewise.
18571         * config/tilegx/tilegx.h (enum reg_class): Likewise.
18572         * config/tilepro/tilepro.h: Likewise.
18573         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18574         * doc/tm.texi: Regenerate.
18575         * doc/tm.texi.in: Adjust.
18576         * rtlanal.c (nonzero_bits1): Likewise.
18578 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18580         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18581         with the preprocessor.
18582         (combine_instructions): Likewise.
18583         (try_combine): Likewise.
18584         (subst): Likewise.
18585         (distribute_notes): Likewise.
18587 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18589         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18590         defined.
18591         (simplify_set): Likewise.
18592         * cse.c (cse_insn): Likewise.
18593         * fold-const.c (fold_single_bit_test): Likewise.
18594         (fold_unary_loc): Likewise.
18595         * postreload.c (reload_cse_simplify_set): Likewise.
18596         (reload_cse_simplify_operands): Likewise.
18598 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
18600         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18601         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18603 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18605         PR target/66746
18606         * config/i386/x86intrin.h: Include <adxintrin.h> even if
18607         __iamcu__ is defined.
18609 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18611         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18613 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
18615         PR target/66523
18616         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18617         names from preservation.
18619 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18621         PR target/66806
18622         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18623         change for IAMCU.
18624         (function_arg_advance_32): Don't pass vectors in registers for
18625         IAMCU.
18626         (function_arg_32): Likewise.
18627         (ix86_return_in_memory): Don't return vectors in registers for
18628         IAMCU.
18630 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
18632         PR middle-end/66334
18633         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18634         hard regno live at the start of BB with incoming abnormal edges.
18635         * lra-lives.c (process_bb_lives): Ditto.
18637 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
18639         PR libgomp/65099
18640         * config/nvptx/mkoffload.c (main): Create an offload image only in
18641         64-bit configurations.
18643 2015-07-08  Martin Liska  <mliska@suse.cz>
18645         PR bootstrap/66744
18646         * tree-sra.c (create_access_1): Call ctor without brackets.
18647         (create_artificial_child_access): Likewise.
18649 2015-07-08  Richard Biener  <rguenther@suse.de>
18651         PR tree-optimization/66793
18652         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18653         Properly split the block after stmts ending it.
18655 2015-07-08  Richard Biener  <rguenther@suse.de>
18657         PR tree-optimization/66794
18658         * passes.c (execute_function_todo): Assert that post-dominators
18659         are not computed.
18660         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18661         Free post-dominators.
18663 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18665         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18666         with early exit.
18668 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18670         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18671         more than or equal 8 and less than 32 when optimizing for size.
18673 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18675         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18676         COSTS_N_INSNS (1) and increment it appropriately throughout the
18677         function.
18679 2015-07-08  Richard Biener  <rguenther@suse.de>
18681         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18683 2015-07-08  Alan Modra  <amodra@gmail.com>
18685         * target.def (rtx_costs): Remove "code" param, add "mode".
18686         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18687         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
18688         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18689         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
18690         call.  Track mode when given in rtx.
18691         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
18692         (default_address_cost): Pass Pmode to rtx_cost.
18693         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18694         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18695         with NULL set.
18696         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
18697         (notreg_cost): Add mode param.  Use it.
18698         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
18699         mode param and pass to set_src_cost.  Update all calls.
18700         (hash_scan_set): Formatting.
18701         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18702         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18703         * hooks.h: Ditto.
18704         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18705         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18706         emit_store_flag): Update set_src_cost and rtx_cost calls.
18707         * auto-inc-dec.c (attempt_change): Likewise.
18708         * calls.c (precompute_register_parameters): Likewise.
18709         * combine.c (expand_compound_operation, make_extraction,
18710         force_to_mode, distribute_and_simplify_rtx): Likewise.
18711         * dojump.c (prefer_and_bit_test): Likewise.
18712         * dse.c (find_shift_sequence): Likewise.
18713         * expr.c (compress_float_constant): Likewise.
18714         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18715         * ifcvt.c (noce_try_sign_mask): Likewise.
18716         * loop-doloop.c (doloop_optimize): Likewise.
18717         * loop-invariant.c (create_new_invariant): Likewise.
18718         * lower-subreg.c (shift_cost, compute_costs): Likewise.
18719         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18720         lshift_cheap_p): Likewise.
18721         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18722         try_replace_in_use, reload_cse_move2add): Likewise.
18723         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18724         Likewise.
18725         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18726         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18727         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18728         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18729         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18730         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
18731         to rtx_cost calls.
18732         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18733         * config/arc/arc.c (arc_rtx_costs): Likewise.
18734         * config/arm/arm.c (arm_rtx_costs): Likewise.
18735         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18736         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18737         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18738         * config/cris/cris.c (cris_rtx_costs): Likewise.
18739         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18740         * config/frv/frv.c (frv_rtx_costs): Likewise.
18741         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18742         * config/i386/i386.c (ix86_rtx_costs): Likewise.
18743         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18744         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18745         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18746         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18747         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18748         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18749         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18750         * config/mep/mep.c (mep_rtx_cost): Likewise.
18751         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18752         * config/mips/mips.c (mips_rtx_costs): Likewise.
18753         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18754         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18755         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18756         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18757         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18758         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18759         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18760         * config/pa/pa.c (hppa_rtx_costs): Likewise.
18761         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18762         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18763         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18764         * config/s390/s390.c (s390_rtx_costs): Likewise.
18765         * config/sh/sh.c (sh_rtx_costs): Likewise.
18766         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18767         * config/spu/spu.c (spu_rtx_costs): Likewise.
18768         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18769         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18770         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18771         * config/v850/v850.c (v850_rtx_costs): Likewise.
18772         * config/vax/vax.c (vax_rtx_costs): Likewise.
18773         * config/visium/visium.c (visium_rtx_costs): Likewise.
18774         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18775         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18776         "code" param, and pass as outer_code to first rtx_cost call.  Pass
18777         mode to rtx_cost calls.
18778         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18779         calls.
18780         (aarch64_rtx_costs_wrapper): Update.
18781         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18782         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18783         rtx_cost calls.
18784         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18785         and rtx_cost calls.
18786         (avr_operand_rtx_cost): Similarly.
18787         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18788         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18789         * config/mips/mips.c (mips_stack_address_p): Comment typo.
18790         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18791         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18792         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18793         rtx_cost.
18794         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18795         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18796         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18797         * doc/tm.texi: Regenerate.
18799 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
18801         * tree-core.h: Include symtab.h.
18802         * rtl.h: Include hard-reg-set.h but not flags.h.
18803         (HARD_CONST): Remove condition compilation involving HARD_CONST since
18804         hard-reg-set.h is always included.
18805         * regs.h: Don't include hard-reg-set.h or rtl.h.
18806         * cfg.h: Include dominance.h.
18807         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18808         * backend.h: New.  Aggregate commonly used backend header files.
18809         * gimple-ssa.h: Don't include tree-hasher.h.
18810         * ssa.h: New.  Aggregate commonly used SSA header files.
18811         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18812         * sel-sched-ir.h: Flatten includes.
18813         * lra-int.h: Flatten completely.
18814         * sel-sched-dump.h: Flatten includes.
18815         * ira-int.h: Flatten includes.
18816         * gimple-streamer.h: Remove all includes.
18817         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18818         * resource.h: Flatten hard-reg-set.h and df.h.
18819         * sched-int.h: Flatten insn-arrt.h and df.h.
18820         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18821         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18822         * genattrtab.c (write_header): Adjust generated includes.
18823         * genautomata.c (main): Likewise.
18824         * genconditions.c (write-header): Likewise.
18825         * genemit.c (main): Likewise.
18826         * gengtype.c (open_base_files): Likewise.
18827         * genopinit.c (main): Likewise.
18828         * genoutput.c (output_prologue): Likewise.
18829         * genpeep.c (main): Likewise.
18830         * genpreds.c (write_insn_preds_c): Likewise.
18831         * genrecog.c (write_header): Likewise.
18832         * alias.c: Adjust includes.
18833         * asan.c: Likewise.
18834         * attribs.c: Likewise.
18835         * auto-inc-dec.c: Likewise.
18836         * auto-profile.c: Likewise.
18837         * bb-reorder.c: Likewise.
18838         * bt-load.c: Likewise.
18839         * builtins.c: Likewise.
18840         * caller-save.c: Likewise.
18841         * calls.c: Likewise.
18842         * ccmp.c: Likewise.
18843         * cfg.c: Likewise.
18844         * cfganal.c: Likewise.
18845         * cfgbuild.c: Likewise.
18846         * cfgcleanup.c: Likewise.
18847         * cfgexpand.c: Likewise.
18848         * cfghooks.c: Likewise.
18849         * cfgloop.c: Likewise.
18850         * cfgloopanal.c: Likewise.
18851         * cfgloopmanip.c: Likewise.
18852         * cfgrtl.c: Likewise.
18853         * cgraph.c: Likewise.
18854         * cgraphbuild.c: Likewise.
18855         * cgraphclones.c: Likewise.
18856         * cgraphunit.c: Likewise.
18857         * cilk-common.c: Likewise.
18858         * combine-stack-adj.c: Likewise.
18859         * combine.c: Likewise.
18860         * compare-elim.c: Likewise.
18861         * convert.c: Likewise.
18862         * coverage.c: Likewise.
18863         * cppbuiltin.c: Likewise.
18864         * cprop.c: Likewise.
18865         * cse.c: Likewise.
18866         * cselib.c: Likewise.
18867         * data-streamer-in.c: Likewise.
18868         * data-streamer-out.c: Likewise.
18869         * data-streamer.c: Likewise.
18870         * dbxout.c: Likewise.
18871         * dce.c: Likewise.
18872         * ddg.c: Likewise.
18873         * debug.c: Likewise.
18874         * df-core.c: Likewise.
18875         * df-problems.c: Likewise.
18876         * df-scan.c: Likewise.
18877         * dfp.c: Likewise.
18878         * dojump.c: Likewise.
18879         * dominance.c: Likewise.
18880         * domwalk.c: Likewise.
18881         * double-int.c: Likewise.
18882         * dse.c: Likewise.
18883         * dumpfile.c: Likewise.
18884         * dwarf2asm.c: Likewise.
18885         * dwarf2cfi.c: Likewise.
18886         * dwarf2out.c: Likewise.
18887         * emit-rtl.c: Likewise.
18888         * et-forest.c: Likewise.
18889         * except.c: Likewise.
18890         * explow.c: Likewise.
18891         * expmed.c: Likewise.
18892         * expr.c: Likewise.
18893         * final.c: Likewise.
18894         * fixed-value.c: Likewise.
18895         * fold-const.c: Likewise.
18896         * function.c: Likewise.
18897         * fwprop.c: Likewise.
18898         * gcc-plugin.h: Likewise.
18899         * gcse-common.c: Likewise.
18900         * gcse.c: Likewise.
18901         * generic-match-head.c: Likewise.
18902         * ggc-page.c: Likewise.
18903         * gimple-builder.c: Likewise.
18904         * gimple-expr.c: Likewise.
18905         * gimple-fold.c: Likewise.
18906         * gimple-iterator.c: Likewise.
18907         * gimple-low.c: Likewise.
18908         * gimple-match-head.c: Likewise.
18909         * gimple-pretty-print.c: Likewise.
18910         * gimple-ssa-isolate-paths.c: Likewise.
18911         * gimple-ssa-strength-reduction.c: Likewise.
18912         * gimple-streamer-in.c: Likewise.
18913         * gimple-streamer-out.c: Likewise.
18914         * gimple-walk.c: Likewise.
18915         * gimple.c: Likewise.
18916         * gimplify-me.c: Likewise.
18917         * gimplify.c: Likewise.
18918         * godump.c: Likewise.
18919         * graph.c: Likewise.
18920         * graphite-blocking.c: Likewise.
18921         * graphite-dependences.c: Likewise.
18922         * graphite-interchange.c: Likewise.
18923         * graphite-isl-ast-to-gimple.c: Likewise.
18924         * graphite-optimize-isl.c: Likewise.
18925         * graphite-poly.c: Likewise.
18926         * graphite-scop-detection.c: Likewise.
18927         * graphite-sese-to-poly.c: Likewise.
18928         * graphite.c: Likewise.
18929         * haifa-sched.c: Likewise.
18930         * hw-doloop.c: Likewise.
18931         * ifcvt.c: Likewise.
18932         * init-regs.c: Likewise.
18933         * internal-fn.c: Likewise.
18934         * ipa-chkp.c: Likewise.
18935         * ipa-comdats.c: Likewise.
18936         * ipa-cp.c: Likewise.
18937         * ipa-devirt.c: Likewise.
18938         * ipa-icf-gimple.c: Likewise.
18939         * ipa-icf.c: Likewise.
18940         * ipa-inline-analysis.c: Likewise.
18941         * ipa-inline-transform.c: Likewise.
18942         * ipa-inline.c: Likewise.
18943         * ipa-polymorphic-call.c: Likewise.
18944         * ipa-profile.c: Likewise.
18945         * ipa-prop.c: Likewise.
18946         * ipa-pure-const.c: Likewise.
18947         * ipa-ref.c: Likewise.
18948         * ipa-reference.c: Likewise.
18949         * ipa-split.c: Likewise.
18950         * ipa-utils.c: Likewise.
18951         * ipa-visibility.c: Likewise.
18952         * ipa.c: Likewise.
18953         * ira-build.c: Likewise.
18954         * ira-color.c: Likewise.
18955         * ira-conflicts.c: Likewise.
18956         * ira-costs.c: Likewise.
18957         * ira-emit.c: Likewise.
18958         * ira-lives.c: Likewise.
18959         * ira.c: Likewise.
18960         * jump.c: Likewise.
18961         * langhooks.c: Likewise.
18962         * lcm.c: Likewise.
18963         * loop-doloop.c: Likewise.
18964         * loop-init.c: Likewise.
18965         * loop-invariant.c: Likewise.
18966         * loop-iv.c: Likewise.
18967         * loop-unroll.c: Likewise.
18968         * lower-subreg.c: Likewise.
18969         * lra-assigns.c: Likewise.
18970         * lra-coalesce.c: Likewise.
18971         * lra-constraints.c: Likewise.
18972         * lra-eliminations.c: Likewise.
18973         * lra-lives.c: Likewise.
18974         * lra-remat.c: Likewise.
18975         * lra-spills.c: Likewise.
18976         * lra.c: Likewise.
18977         * lto-cgraph.c: Likewise.
18978         * lto-compress.c: Likewise.
18979         * lto-opts.c: Likewise.
18980         * lto-section-in.c: Likewise.
18981         * lto-section-out.c: Likewise.
18982         * lto-streamer-in.c: Likewise.
18983         * lto-streamer-out.c: Likewise.
18984         * lto-streamer.c: Likewise.
18985         * mcf.c: Likewise.
18986         * mode-switching.c: Likewise.
18987         * modulo-sched.c: Likewise.
18988         * omega.c: Likewise.
18989         * omp-low.c: Likewise.
18990         * optabs.c: Likewise.
18991         * opts-global.c: Likewise.
18992         * passes.c: Likewise.
18993         * plugin.c: Likewise.
18994         * postreload-gcse.c: Likewise.
18995         * postreload.c: Likewise.
18996         * predict.c: Likewise.
18997         * print-rtl.c: Likewise.
18998         * print-tree.c: Likewise.
18999         * profile.c: Likewise.
19000         * real.c: Likewise.
19001         * realmpfr.c: Likewise.
19002         * recog.c: Likewise.
19003         * ree.c: Likewise.
19004         * reg-stack.c: Likewise.
19005         * regcprop.c: Likewise.
19006         * reginfo.c: Likewise.
19007         * regrename.c: Likewise.
19008         * regstat.c: Likewise.
19009         * reload.c: Likewise.
19010         * reload1.c: Likewise.
19011         * reorg.c: Likewise.
19012         * resource.c: Likewise.
19013         * rtl-chkp.c: Likewise.
19014         * rtlanal.c: Likewise.
19015         * rtlhooks.c: Likewise.
19016         * sanopt.c: Likewise.
19017         * sched-deps.c: Likewise.
19018         * sched-ebb.c: Likewise.
19019         * sched-rgn.c: Likewise.
19020         * sched-vis.c: Likewise.
19021         * sdbout.c: Likewise.
19022         * sel-sched-dump.c: Likewise.
19023         * sel-sched-ir.c: Likewise.
19024         * sel-sched.c: Likewise.
19025         * sese.c: Likewise.
19026         * shrink-wrap.c: Likewise.
19027         * simplify-rtx.c: Likewise.
19028         * stack-ptr-mod.c: Likewise.
19029         * stmt.c: Likewise.
19030         * stor-layout.c: Likewise.
19031         * store-motion.c: Likewise.
19032         * stringpool.c: Likewise.
19033         * symtab.c: Likewise.
19034         * target-globals.c: Likewise.
19035         * targhooks.c: Likewise.
19036         * toplev.c: Likewise.
19037         * tracer.c: Likewise.
19038         * trans-mem.c: Likewise.
19039         * tree-affine.c: Likewise.
19040         * tree-browser.c: Likewise.
19041         * tree-call-cdce.c: Likewise.
19042         * tree-cfg.c: Likewise.
19043         * tree-cfgcleanup.c: Likewise.
19044         * tree-chkp-opt.c: Likewise.
19045         * tree-chkp.c: Likewise.
19046         * tree-chrec.c: Likewise.
19047         * tree-complex.c: Likewise.
19048         * tree-data-ref.c: Likewise.
19049         * tree-dfa.c: Likewise.
19050         * tree-diagnostic.c: Likewise.
19051         * tree-dump.c: Likewise.
19052         * tree-eh.c: Likewise.
19053         * tree-emutls.c: Likewise.
19054         * tree-if-conv.c: Likewise.
19055         * tree-inline.c: Likewise.
19056         * tree-into-ssa.c: Likewise.
19057         * tree-iterator.c: Likewise.
19058         * tree-loop-distribution.c: Likewise.
19059         * tree-nested.c: Likewise.
19060         * tree-nrv.c: Likewise.
19061         * tree-object-size.c: Likewise.
19062         * tree-outof-ssa.c: Likewise.
19063         * tree-parloops.c: Likewise.
19064         * tree-phinodes.c: Likewise.
19065         * tree-predcom.c: Likewise.
19066         * tree-pretty-print.c: Likewise.
19067         * tree-profile.c: Likewise.
19068         * tree-scalar-evolution.c: Likewise.
19069         * tree-sra.c: Likewise.
19070         * tree-ssa-address.c: Likewise.
19071         * tree-ssa-alias.c: Likewise.
19072         * tree-ssa-ccp.c: Likewise.
19073         * tree-ssa-coalesce.c: Likewise.
19074         * tree-ssa-copy.c: Likewise.
19075         * tree-ssa-copyrename.c: Likewise.
19076         * tree-ssa-dce.c: Likewise.
19077         * tree-ssa-dom.c: Likewise.
19078         * tree-ssa-dse.c: Likewise.
19079         * tree-ssa-forwprop.c: Likewise.
19080         * tree-ssa-ifcombine.c: Likewise.
19081         * tree-ssa-live.c: Likewise.
19082         * tree-ssa-loop-ch.c: Likewise.
19083         * tree-ssa-loop-im.c: Likewise.
19084         * tree-ssa-loop-ivcanon.c: Likewise.
19085         * tree-ssa-loop-ivopts.c: Likewise.
19086         * tree-ssa-loop-manip.c: Likewise.
19087         * tree-ssa-loop-niter.c: Likewise.
19088         * tree-ssa-loop-prefetch.c: Likewise.
19089         * tree-ssa-loop-unswitch.c: Likewise.
19090         * tree-ssa-loop.c: Likewise.
19091         * tree-ssa-math-opts.c: Likewise.
19092         * tree-ssa-operands.c: Likewise.
19093         * tree-ssa-phiopt.c: Likewise.
19094         * tree-ssa-phiprop.c: Likewise.
19095         * tree-ssa-pre.c: Likewise.
19096         * tree-ssa-propagate.c: Likewise.
19097         * tree-ssa-reassoc.c: Likewise.
19098         * tree-ssa-sccvn.c: Likewise.
19099         * tree-ssa-scopedtables.c: Likewise.
19100         * tree-ssa-sink.c: Likewise.
19101         * tree-ssa-strlen.c: Likewise.
19102         * tree-ssa-structalias.c: Likewise.
19103         * tree-ssa-tail-merge.c: Likewise.
19104         * tree-ssa-ter.c: Likewise.
19105         * tree-ssa-threadedge.c: Likewise.
19106         * tree-ssa-threadupdate.c: Likewise.
19107         * tree-ssa-uncprop.c: Likewise.
19108         * tree-ssa-uninit.c: Likewise.
19109         * tree-ssa.c: Likewise.
19110         * tree-ssanames.c: Likewise.
19111         * tree-stdarg.c: Likewise.
19112         * tree-streamer-in.c: Likewise.
19113         * tree-streamer-out.c: Likewise.
19114         * tree-streamer.c: Likewise.
19115         * tree-switch-conversion.c: Likewise.
19116         * tree-tailcall.c: Likewise.
19117         * tree-vect-data-refs.c: Likewise.
19118         * tree-vect-generic.c: Likewise.
19119         * tree-vect-loop-manip.c: Likewise.
19120         * tree-vect-loop.c: Likewise.
19121         * tree-vect-patterns.c: Likewise.
19122         * tree-vect-slp.c: Likewise.
19123         * tree-vect-stmts.c: Likewise.
19124         * tree-vectorizer.c: Likewise.
19125         * tree-vrp.c: Likewise.
19126         * tree.c: Likewise.
19127         * tsan.c: Likewise.
19128         * ubsan.c: Likewise.
19129         * valtrack.c: Likewise.
19130         * value-prof.c: Likewise.
19131         * var-tracking.c: Likewise.
19132         * varasm.c: Likewise.
19133         * varpool.c: Likewise.
19134         * vmsdbgout.c: Likewise.
19135         * vtable-verify.c: Likewise.
19136         * web.c: Likewise.
19137         * wide-int.cc: Likewise.
19138         * xcoffout.c: Likewise.
19139         * config/aarch64/aarch64-builtins.c: Likewise.
19140         * config/aarch64/aarch64.c: Likewise.
19141         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19142         * config/alpha/alpha.c: Likewise.
19143         * config/arc/arc.c: Likewise.
19144         * config/arm/aarch-common.c: Likewise.
19145         * config/arm/arm-builtins.c: Likewise.
19146         * config/arm/arm-c.c: Likewise.
19147         * config/arm/arm.c: Likewise.
19148         * config/avr/avr-c.c: Likewise.
19149         * config/avr/avr-log.c: Likewise.
19150         * config/avr/avr.c: Likewise.
19151         * config/bfin/bfin.c: Likewise.
19152         * config/c6x/c6x.c: Likewise.
19153         * config/cr16/cr16.c: Likewise.
19154         * config/cris/cris.c: Likewise.
19155         * config/darwin-c.c: Likewise.
19156         * config/darwin.c: Likewise.
19157         * config/epiphany/epiphany.c: Likewise.
19158         * config/epiphany/mode-switch-use.c: Likewise.
19159         * config/epiphany/resolve-sw-modes.c: Likewise.
19160         * config/fr30/fr30.c: Likewise.
19161         * config/frv/frv.c: Likewise.
19162         * config/ft32/ft32.c: Likewise.
19163         * config/h8300/h8300.c: Likewise.
19164         * config/i386/i386-c.c: Likewise.
19165         * config/i386/i386.c: Likewise.
19166         * config/i386/msformat-c.c: Likewise.
19167         * config/i386/winnt-cxx.c: Likewise.
19168         * config/i386/winnt-stubs.c: Likewise.
19169         * config/i386/winnt.c: Likewise.
19170         * config/ia64/ia64-c.c: Likewise.
19171         * config/ia64/ia64.c: Likewise.
19172         * config/iq2000/iq2000.c: Likewise.
19173         * config/lm32/lm32.c: Likewise.
19174         * config/m32c/m32c-pragma.c: Likewise.
19175         * config/m32c/m32c.c: Likewise.
19176         * config/m32r/m32r.c: Likewise.
19177         * config/m68k/m68k.c: Likewise.
19178         * config/mcore/mcore.c: Likewise.
19179         * config/mep/mep-pragma.c: Likewise.
19180         * config/mep/mep.c: Likewise.
19181         * config/microblaze/microblaze-c.c: Likewise.
19182         * config/microblaze/microblaze.c: Likewise.
19183         * config/mips/mips.c: Likewise.
19184         * config/mmix/mmix.c: Likewise.
19185         * config/mn10300/mn10300.c: Likewise.
19186         * config/moxie/moxie.c: Likewise.
19187         * config/msp430/msp430-c.c: Likewise.
19188         * config/msp430/msp430.c: Likewise.
19189         * config/nds32/nds32-cost.c: Likewise.
19190         * config/nds32/nds32-fp-as-gp.c: Likewise.
19191         * config/nds32/nds32-intrinsic.c: Likewise.
19192         * config/nds32/nds32-isr.c: Likewise.
19193         * config/nds32/nds32-md-auxiliary.c: Likewise.
19194         * config/nds32/nds32-memory-manipulation.c: Likewise.
19195         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19196         * config/nds32/nds32-predicates.c: Likewise.
19197         * config/nds32/nds32.c: Likewise.
19198         * config/nios2/nios2.c: Likewise.
19199         * config/nvptx/nvptx.c: Likewise.
19200         * config/pa/pa.c: Likewise.
19201         * config/pdp11/pdp11.c: Likewise.
19202         * config/rl78/rl78-c.c: Likewise.
19203         * config/rl78/rl78.c: Likewise.
19204         * config/rs6000/rs6000-c.c: Likewise.
19205         * config/rs6000/rs6000.c: Likewise.
19206         * config/rx/rx.c: Likewise.
19207         * config/s390/s390-c.c: Likewise.
19208         * config/s390/s390.c: Likewise.
19209         * config/sh/sh-c.c: Likewise.
19210         * config/sh/sh-mem.cc: Likewise.
19211         * config/sh/sh.c: Likewise.
19212         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19213         * config/sh/sh_treg_combine.cc: Likewise.
19214         * config/sol2-c.c: Likewise.
19215         * config/sol2-cxx.c: Likewise.
19216         * config/sol2-stubs.c: Likewise.
19217         * config/sol2.c: Likewise.
19218         * config/sparc/sparc-c.c: Likewise.
19219         * config/sparc/sparc.c: Likewise.
19220         * config/spu/spu-c.c: Likewise.
19221         * config/spu/spu.c: Likewise.
19222         * config/stormy16/stormy16.c: Likewise.
19223         * config/tilegx/mul-tables.c: Likewise.
19224         * config/tilegx/tilegx-c.c: Likewise.
19225         * config/tilegx/tilegx.c: Likewise.
19226         * config/tilepro/mul-tables.c: Likewise.
19227         * config/tilepro/tilepro-c.c: Likewise.
19228         * config/tilepro/tilepro.c: Likewise.
19229         * config/v850/v850-c.c: Likewise.
19230         * config/v850/v850.c: Likewise.
19231         * config/vax/vax.c: Likewise.
19232         * config/visium/visium.c: Likewise.
19233         * config/vms/vms-c.c: Likewise.
19234         * config/vms/vms.c: Likewise.
19235         * config/vxworks.c: Likewise.
19236         * config/xtensa/xtensa.c: Likewise.
19238 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
19240         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
19241         Remove operand constraints.  Change operand 2 predicate to
19242         nonmemory operand.  Limit const_int values to mode bitsize.  Only
19243         allow const_int values less than 32 when optimizing for size.
19244         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
19245         Remove operand constraints.
19246         (*bt<mode>): Use SImode for const_int values less than 32.
19247         (regmode): Remove mode attribute.
19249 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
19251         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19252         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
19253           moxie_legitimate_address_p): New functions.
19254           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19256 2015-07-07  Tom de Vries  <tom@codesourcery.com>
19258         PR tree-optimization/66642
19259         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
19260         header comment.  Rename split_edge variable to edge_at_split.  Split
19261         exit edge to create new loop exit bb.  Insert loop exit phis in new
19262         loop exit bb.
19264 2015-07-07  Tom de Vries  <tom@codesourcery.com>
19266         * tree-cfg.c (get_virtual_phi): New function.
19267         * tree-cfg.h (get_virtual_phi): Declare.
19268         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
19269         (rewrite_virtuals_into_loop_closed_ssa): New function.
19270         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
19271         Declare.
19272         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
19273         (transform_to_exit_first_loop_alt): Use
19274         rewrite_virtuals_into_loop_closed_ssa.
19276 2015-07-07  Richard Biener  <rguenther@suse.de>
19278         * fold-const.c (fold_binary_loc): Move
19279         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
19280         * match.pd: ... here.
19281         Add (X * C1) % C2 -> 0 simplification pattern derived from
19282         extract_muldiv_1.
19284 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
19286         PR target/66780
19287         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
19288         change for target/65249.
19290 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
19292         * symtab.c (address_matters_1): Fix typo in comment above.
19293         (can_increase_alignment_p): Likewise.
19295 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19297         * function.c (free_after_compilation): Clear PROP_cfg in
19298         f->curr_properties.
19300 2015-07-07  Richard Biener  <rguenther@suse.de>
19302         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
19303         add which use to.
19304         (add_control_edge): Remove excessive vertical space in dumping.
19305         (process_ssa_edge_worklist): Simulate at most one statement and
19306         return whether we did.  Do not simulate PHIs if they are in a
19307         BB not yet simulated.
19308         (ssa_propagate): Adjust to always drain the BB worklist whenever
19309         a BB is available there, likewise the VARYING edges list before
19310         the interesting edge list.
19312 2015-07-07  Christian Bruel  <christian.bruel@st.com>
19314         PR target/52144
19315         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
19317 2015-07-07  Richard Biener  <rguenther@suse.de>
19319         PR middle-end/66739
19320         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
19321         A - B.
19323 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19325         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
19326         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
19327         Copy operand 0 to a temporary if !ext_register_operand.  Remove
19328         ancient extract_bit_field workaround.
19329         (insv<mode>_1): Rename from mov<mode>_insv_1.
19330         (*insvqi): Rename from *movqi_insv_2.
19331         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
19332         for renamed insvsi_1.
19333         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
19335 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
19337         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
19338         call to nvptx_reorg_subreg.
19340 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
19342         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
19343         * graphite-dependencies.c, graphite-interchange.c,
19344         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
19345         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
19346         Likewise.
19348 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
19350         * match.pd: Remove element_mode inside HONOR_*.
19351         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
19352         (~X | X -> -1, ~X ^ X -> -1): Merge.
19353         * tree.c (build_each_one_cst): New function.
19354         * tree.h (build_each_one_cst): Likewise.
19356 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19358         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19359         PROCESSOR_IAMCU.
19361 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
19363         * config.gcc <mips*-*-*>: Add fused-madd.opt.
19364         * config/mips/mips.opt (mfused-madd): Remove.
19365         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
19366         * config/mips/mips.h (TARGET_MIPS8000): New.
19367         (ISA_HAS_FP_MADD4_MSUB4): Remove.
19368         (ISA_HAS_FP_MADDF_MSUBF): Remove.
19369         (ISA_HAS_FP_MADD3_MSUB3): Remove.
19370         (ISA_HAS_NMADD4_NMSUB4): Remove.
19371         (ISA_HAS_NMADD3_NMSUB3): Remove.
19372         (ISA_HAS_FUSED_MADD4): New.
19373         (ISA_HAS_UNFUSED_MADD4): New.
19374         (ISA_HAS_FUSED_MADDF): New.
19375         (ISA_HAS_FUSED_MADD3): New.
19376         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19377         (*fma<mode>4_madd3) New.
19378         (*fma<mode>4_madd4) New.
19379         (*fma<mode>4_maddf) New.
19380         (fms<mode>4) New.
19381         (*fms<mode>4_msub3) New.
19382         (*fms<mode>4_msub4) New.
19383         (fnma<mode>4) New.
19384         (*fnma<mode>4_nmadd3) New.
19385         (*fnma<mode>4_nmadd4) New.
19386         (fnms<mode>4) New.
19387         (*fnms<mode>4_nmsub3) New.
19388         (*fnms<mode>4_nmsub4) New.
19389         (*madd4<mode>) Modify to be unfused only.
19390         (*msub4<mode>) Modify to be unfused only.
19391         (*nmadd4<mode>) Modify to be unfused only.
19392         (*nmsub4<mode>) Modify to be unfused only.
19393         (*madd3<mode>) Remove.
19394         (*msub3<mode>) Remove.
19395         (*nmadd3<mode>) Remove.
19396         (*nmsub3<mode>) Remove.
19397         (*nmadd3<mode>_fastmath) Remove.
19398         (*nmsub3<mode>_fastmath) Remove.
19399         (*nmadd4<mode>_fastmath) Update condition.
19400         (*nmsub4<mode>_fastmath) Update condition.
19402 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19404         PR target/65956
19405         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19406         alignment attribute, exploring one level down for records and arrays.
19408 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
19410         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
19411         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
19412         Copy operand 1 to a temporary if !ext_register_operand.  Remove
19413         ancient extract_bit_field workaround.
19414         (*extv<mode>): Rename from *mov<mode>_extv_1.
19415         (*extvqi): Rename from *movqi_extv_1.
19416         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
19417         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
19418         to a temporary if !ext_register_operand.  Remove ancient
19419         extract_bit_field workaround.
19420         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19421         (*extzvqi): Rename from *movqi_extzv_2.
19422         (*testqi_ext_3): Remove modes from const_int_operand predicated
19423         operands.  Add "n" constraint.
19424         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19425         operand.  Add "J" constraint.
19426         (*btsq, *btrq, *btcq peephole2s): Remove mode from
19427         const_0_to_63 predicated operand.
19428         (regmode): New insn attribute.
19429         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
19430         to nonmemory_operand.  Use regmode insn attribute.
19431         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19432         (*jcc_bt<mode>_mask): Remove mode from operand 3.
19433         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19434         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19435         operands.  Use "N" constraint instead of "n".
19437 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
19439         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19441 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19443         PR target/66749
19444         * config/i386/i386.c (iamcu_cost): New.
19445         (m_IAMCU): Likewise.
19446         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19447         (processor_target_table): Add an entry for "iamcu".
19448         (processor_alias_table): Likewise.
19449         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19450         (ix86_adjust_cost): Likewise.
19451         (ia32_multipass_dfa_lookahead): Likewise.
19452         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19453         * config/i386/x86-tune.def: Updated for m_IAMCU.
19455 2015-07-06  Richard Biener  <rguenther@suse.de>
19457         PR tree-optimization/66772
19458         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19459         values are available in the PHI node BB when there are
19460         still unexecutable edges.
19462 2015-07-06  Richard Biener  <rguenther@suse.de>
19464         PR tree-optimization/66767
19465         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19466         Make sure to build the alignment test on a SSA name without
19467         final alignment info valid only if the alignment test
19468         evaluates to true.
19470 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
19472         PR target/66620
19473         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
19474         loop start when inserting LSETUP.
19476 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
19478         PR target/53383
19479         * config/i386/i386.c (ix86_option_override_internal): Allow
19480         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
19482 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19484         * read-md.c (decimal_string): Rename to ...
19485         (md_decimal_string): ... this.
19486         (handle_enum): Reflect this.
19488 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19490         PR target/66731
19491         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
19493 2015-07-06  Richard Biener  <rguenther@suse.de>
19495         PR middle-end/66759
19496         * match.pd: Add missing constraint of y to REAL_CST in
19497         REAL_CST - x CMP y to y - CST CMP x simplification.
19499 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
19501         PR tree-optimization/66757
19502         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
19504 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
19505             Sandra Loosemore <sandra@codesourcery.com>
19507         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
19508         Delete extern declaration.
19509         (gprel_constant_p): Add extern declaration.
19510         * config/nios2/constraints.md ("S"): Use gprel_constant_p
19511         instead of nios2_symbol_ref_in_small_data_p.
19512         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19513         (nios2_symbol_ref_in_small_data_p): Make static.
19514         (gprel_constant_p): Make non-static.
19516 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19518         * doc/fragments.texi (Target Fragment): Convert debian.org
19519         link to use https.
19520         * doc/install.texi (Configuration): Ditto.
19522 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
19524         PR tree-optimization/66718
19525         * tree-vect-stmts.c (vectorizable_call): Replace uses of
19526         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19528         PR tree-optimization/66718
19529         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19530         vectorizable_load, vectorizable_condition): Move vectype,
19531         nunits, ncopies computation after checking what kind of statement
19532         stmt is.
19534 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19536         * target-insns.def (extv, extzv, insv): New targetm instruction
19537         patterns.
19538         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19539         interface.
19540         * recog.c (simplify_while_replacing): Likewise.
19542 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19544         * target-insns.def (doloop_begin, doloop_end): New targetm
19545         instruction patterns.
19546         * loop-init.c: Include target.h.
19547         (pass_loop2::gate): Use the new targetm patterns instead of
19548         HAVE_*/gen_* interface.
19549         (pass_rtl_doloop::gate): Likewise.
19550         (pass_rtl_doloop::execute): Remove preprocessor condition.
19551         * hw-doloop.c: Build unconditionally.
19552         * loop-doloop.c: Likewise.
19553         (doloop_optimize): Use the new targetm patterns instead of
19554         HAVE_*/gen_* interface.
19555         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19556         * modulo-sched.c (doloop_register_get): Likewise.
19558 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19560         * target-insns.def (clear_cache): New targetm instruction pattern.
19561         * builtins.c (expand_builtin___clear_cache): Use it instead of
19562         HAVE_*/gen_* interface.
19564 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19566         * target-insns.def (allocate_stack, check_stack, probe_stack)
19567         (probe_stack_address, split_stack_prologue, split_stack_space_check):
19568         New targetm instruction patterns.
19569         * explow.c (allocate_dynamic_stack_space): Use them instead of
19570         HAVE_*/gen_* interface.
19571         (emit_stack_probe): Likewise.
19572         (probe_stack_range): Likewise.
19573         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19575 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19577         * target-insns.def (stack_protect_set, stack_protect_test): New
19578         targetm instruction patterns.
19579         * cfgexpand.c (stack_protect_prologue): Use them instead of
19580         HAVE_*/gen_* interface.
19581         * function.c (stack_protect_epilogue): Likewise.
19583 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19585         * expr.h (gen_move_insn_uncast): Delete.
19586         * expr.c (gen_move_insn_uncast): Delete.
19588 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19590         * target-insns.def (restore_stack_block, restore_stack_function)
19591         (restore_stack_nonlocal, save_stack_block, save_stack_function)
19592         (save_stack_nonlocal): New targetm instruction patterns.
19593         * builtins.c (expand_builtin_apply): Use them instead of
19594         HAVE_*/gen_* interface.
19595         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19597 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19599         * target-insns.def (trap): New targetm instruction pattern.
19600         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19601         interface.
19602         * explow.c (allocate_dynamic_stack_space): Likewise.
19603         * ifcvt.c (find_if_header): Likewise.
19605 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19607         * target-insns.def (prefetch): New targetm instruction pattern.
19608         * tree-ssa-loop-prefetch.c: Include targeth.
19609         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19610         of HAVE_*/gen_* interface.
19611         * builtins.c (expand_builtin_prefetch): Likewise.
19612         * toplev.c (process_options): Likewise.
19614 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19616         * target-insns.def (untyped_call, untyped_return): New targetm
19617         instruction patterns.
19618         * builtins.c (expand_builtin_apply): Use them instead of
19619         HAVE_*/gen_* interface.
19620         (result_vector): Define unconditionally.
19622 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19624         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19625         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19626         (nonlocal_goto_receiver): New targetm instruction patterns.
19627         * builtins.c (expand_builtin_setjmp_setup): Use them instead
19628         of HAVE_*/gen_* interface.
19629         (expand_builtin_setjmp_receiver): Likewise.
19630         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19631         * except.c (expand_dw2_landing_pad_for_region): Likewise.
19633 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19635         * target.def: Add code_for_* hooks.
19636         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19637         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19638         * target-insns.def (casesi, tablejump): New targetm instruction
19639         patterns.
19640         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19641         (do_tablejump): Likewise.
19642         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19643         (expand_sjlj_dispatch_table): Likewise.
19644         * targhooks.c (default_case_values_threshold): Likewise.
19646 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
19648         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19649         Use rtx_insn * instead of rtx.
19650         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19651         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19652         (nios2_call_tls_get_addr): Likewise.
19653         (nios2_emit_expensive_div): Likewise.
19654         (nios2_emit_move_sequence): Change return type to bool.
19655         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19656         Change return type to bool.
19658 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19660         PR target/66747
19661         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19663 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
19665         PR target/66114
19666         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19667         of register_operand.  Remove constraint.
19669 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
19671         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19672         the first argument.
19674 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
19676         * attribs.c (decl_attributes): Guard inform with the return value
19677         of the preceding warning.
19679 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19681         * doc/invoke.texi (moverride): Move to correct section.
19683 2015-07-03  Richard Biener  <rguenther@suse.de>
19685         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19686         Copy from tree.c
19687         (dt_operand::gen_gimple_expr): After valueizing operands
19688         re-canonicalize operand order for commutative tree codes.
19690 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
19692         PR target/66746.
19693         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19694         is defined.
19695         (__crc32w): Likewise.
19696         (__crc32d): Likewise.
19697         (__rdpmc): Likewise.
19698         (__rdtscp): Likewise.
19699         (_rdpmc): Likewise.
19700         (_rdtscp): Likewise.
19701         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19702         is defined.
19704 2015-07-03  Richard Biener  <rguenther@suse.de>
19706         * fold-const.c (fold_mathfn_compare): Remove.
19707         (fold_inf_compare): Likewise.
19708         (fold_comparison): Move floating point comparison simplifications...
19709         * match.pd: ... to patterns here.  Introduce simple_comparisons
19710         operator list and use it for patterns formerly in fold_comparison.
19712 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19714         PR tree-optimization/66119
19715         * toplev.c (process_options): Don't set up default values for
19716         the sra_max_scalarization_size_{speed,size} parameters.
19717         * tree-sra (analyze_all_variable_accesses): If no values
19718         have been set for the sra_max_scalarization_size_{speed,size}
19719         parameters, call get_move_ratio to get target defaults.
19721 2015-07-03  Richard Biener  <rguenther@suse.de>
19723         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19724         * match.pd: ... here.
19726 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
19728         PR target/37072
19729         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19730         is not actually the default on FreeBSD.
19732 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19734         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19735         definition.
19736         (CMPGE_8HI): Likewise.
19737         (CMPGE_4SI): Likewise.
19738         (CMPGE_2DI): Likewise.
19739         (CMPGE_U16QI): Likewise.
19740         (CMPGE_U8HI): Likewise.
19741         (CMPGE_U4SI): Likewise.
19742         (CMPGE_U2DI): Likewise.
19743         (CMPLE_16QI): Likewise.
19744         (CMPLE_8HI): Likewise.
19745         (CMPLE_4SI): Likewise.
19746         (CMPLE_2DI): Likewise.
19747         (CMPLE_U16QI): Likewise.
19748         (CMPLE_U8HI): Likewise.
19749         (CMPLE_U4SI): Likewise.
19750         (CMPLE_U2DI): Likewise.
19751         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19752         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19753         ALTIVEC_BUILTIN_VEC_CMPLE.
19754         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19755         floating-point vector modes.
19756         (vector_nlt<mode>): New define_expand.
19757         (vector_nltu<mode>): Likewise.
19758         (vector_ngt<mode>): Likewise.
19759         (vector_ngtu<mode>): Likewise.
19761 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19763         PR rtl-optimization/66706
19764         * combine.c (make_compound_operation): If an AND of SUBREG of
19765         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19767 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
19769         * tree-pass.h (make_pass_ch_vect): New.
19770         * passes.def: Add pass_ch_vect just before pass_if_conversion.
19772         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19773         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19774         make_pass_ch_vect): New.
19775         (pass_ch): Extend ch_base.
19777         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19778         (ch_base::copy_headers): ...here.
19780 2015-07-02  Richard Biener  <rguenther@suse.de>
19782         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19783         * fold-const.c (get_pointer_modulus_and_residue): Remove.
19784         (fold_binary_loc): Implement (T)ptr & CST in terms of
19785         get_pointer_alignment_1.
19786         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19787         Make sure to build the alignment test on a SSA name without
19788         final alignment info valid only after the prologue.
19790 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
19792         * config/cris/cris.md ("epilogue"): Remove condition.
19793         ("prologue"): Ditto.
19795 2015-07-02  Richard Biener  <rguenther@suse.de>
19797         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19798         parameter to record a condition that is false.
19799         (record_conditions): When recording an extra NE_EXPR that is
19800         true also record a EQ_EXPR that is false.
19802 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
19804         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19805         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19806         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
19807         (set_iv, find_interesting_uses_address, add_candidate_1): New
19808         argument to alloc_iv.
19809         (find_interesting_uses_op, find_interesting_uses_cond): Don't
19810         duplicate struct iv.
19811         (free_loop_data): Don't free struct iv explicitly.
19812         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19814 2015-07-01  DJ Delorie  <dj@redhat.com>
19816         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19817         (LIB_SPEC): Add.
19818         (SUPPORTS_DISCRIMINATOR): Define.
19820 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19822         PR bootstrap/66685
19823         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19824         there are no CALLs in the same pattern.
19826 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19828         PR rtl-optimization/61047
19829         * rtlanal.c (get_initial_register_offset): New function.
19830         (rtx_addr_can_trap_p_1): Check offsets of stack references.
19832 2015-07-01  Richard Biener  <rguenther@suse.de>
19834         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19835         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19836         ~X CMP C -> X CMP' ~C to ...
19837         * match.pd: ... patterns here.
19839 2015-07-01  Nick Clifton  <nickc@redhat.com>
19841         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19842         a 16-bit value into a 20-bit memory slot.
19844 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19846         * doc/sourcebuild.texi (AArch64-specific attributes): Document
19847         "aarch64_tiny", "aarch64_small", "aarch64_large",
19848         "aarch64_little_endian", "aarch64_big_endian".
19850 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19852         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19853         Document "aarch64_small_fpic".
19855 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19857         * configure.ac: Add check for aarch64 assembler -fpic relocation
19858         modifier support.
19859         * configure: Regenerate.
19860         * config.in: Regenerate.
19861         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19862         to -fPIC if not support of -fpic relocation modifier in assembler.
19864 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19866         PR bootstrap/66685
19867         * rtl.c (classify_insn): Handle returns in PARALLELs.
19869 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
19871         PR middle-end/66633
19872         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19873         to true if the function is nested and if not optimizing.
19874         (convert_local_omp_clauses): Initialize need_frame to true if the
19875         function contains nested functions and if not optimizing.
19877 2015-07-01  Richard Biener  <rguenther@suse.de>
19879         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19880         (X & Y) ^ Y -> ~X & Y transforms to ...
19881         * match.pd: ... here.
19883 2015-07-01  Richard Biener <rguenther@suse.de>
19885         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19886         of converts to avoid uninteresting noise from the conversion
19887         simplifying patterns.
19889 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
19891         * config/c6x/c6x.c (try_rename_operands): Do not depend on
19892         gcc_assert evaluating its argument for side-effect.
19894 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19896         PR target/64833
19897         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19898         flag_pic is set.
19900 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19902         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19903         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19904         (hash_scc): Add this_ref_p and ref_p parameters and pass them
19905         to the inner DFS walk.
19907 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19909         * target-insns.def (jump): New targetm instruction pattern.
19910         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19911         instead of gen_jump.
19912         (fix_up_crossing_landing_pad): Likewise.
19913         (add_labels_and_missing_jumps): Likewise.
19914         (fix_crossing_conditional_branches): Likewise.
19915         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19916         (force_nonfallthru_and_redirect): Likewise.
19917         * cse.c (cse_insn): Likewise.
19918         * expmed.c (expand_divmod): Likewise.
19919         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19920         * haifa-sched.c (init_before_recovery): Likewise.
19921         (sched_create_recovery_edges): Likewise.
19922         * ifcvt.c (find_cond_trap): Likewise.
19923         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19924         (expand_float, expand_fix): Likewise.
19925         * stmt.c (emit_jump): Likewise.
19927 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19929         * defaults.h (HAVE_load_multiple, gen_load_multiple)
19930         (HAVE_store_multiple, gen_store_multiple): Delete.
19931         * target-insns.def (load_multiple, store_multiple): New targetm
19932         instruction patterns.
19933         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19934         of HAVE_*/gen_* interface.
19936 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19938         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19939         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19940         (gen_mem_signal_fence): Delete.
19941         * target-insns.def (mem_signal_fence, mem_thread_fence)
19942         (memory_barrier): New targetm instruction patterns.
19943         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19944         interface.
19945         (expand_mem_signal_fence): Likewise.
19947 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19949         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19950         * target-insns.def (epilogue, prologue, sibcall_prologue): New
19951         targetm instruction patterns.
19952         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19953         interface.
19954         * calls.c (expand_call): Likewise.
19955         * cfgrtl.c (cfg_layout_finalize): Likewise.
19956         * df-scan.c (df_get_entry_block_def_set): Likewise.
19957         (df_get_exit_block_use_set): Likewise.
19958         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19959         * final.c (final_start_function): Likewise.
19960         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19961         (reposition_prologue_and_epilogue_notes): Likewise.
19962         * reorg.c (find_end_label): Likewise.
19963         * toplev.c (process_options): Likewise.
19965 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
19967         * typed-splay-tree.h: New file.
19969 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
19971         PR debug/66691
19972         * lra-int.h (lra_substitute_pseudo): Add a parameter.
19973         (lra_substitute_pseudo_within_insn): Ditto.
19974         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
19975         of constant.
19976         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
19977         to lra_substitute_pseudo.
19978         * lra-lives.c (process_bb_lives): Add an argument to
19979         lra_substitute_pseudo_within_insn call.
19980         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19981         argument to lra_substitute_pseudo and
19982         lra_substitute_pseudo_within_insn calls.
19983         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19985 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19987         * configure: Regenerated.
19989 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19991         * config.gcc: Support i[34567]86-*-elfiamcu target.
19992         * config/i386/iamcu.h: New.
19993         * config/i386/i386.opt: Add -miamcu.
19994         * doc/invoke.texi: Document -miamcu.
19995         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
19996         off x87/MMX/SSE/AVX codegen for -miamcu.
19997         * config/i386/i386-c.c (ix86_target_macros_internal): Define
19998         __iamcu/__iamcu__ for -miamcu.
19999         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
20000         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
20001         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
20002         * config/i386/i386.c (ix86_option_override_internal): Ignore and
20003         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
20004         MCU by default.  Default long double to 64-bit for Intel MCU.
20005         Turn on -freg-struct-return for Intel MCU.  Issue an error when
20006         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
20007         AVX is turned on.
20008         (function_arg_advance_32): Pass value whose size is no larger
20009         than 8 bytes in registers for Intel MCU.
20010         (function_arg_32): Likewise.
20011         (ix86_return_in_memory): Return value whose size is no larger
20012         than 8 bytes in registers for Intel MCU.
20013         (iamcu_alignment): New function.
20014         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
20015         true.
20016         (ix86_local_alignment): Don't increase alignment for Intel MCU.
20017         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
20018         true.
20020 2015-06-30  Marek Polacek  <polacek@redhat.com>
20022         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
20023         both operands of the resulting expression.
20025         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
20026         the final expression with the operand's type and then convert
20027         it to the type of the expression.
20029 2015-06-30  Richard Biener  <rguenther@suse.de>
20031         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
20032         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
20033         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
20034         * match.pd: ... to patterns here.
20036 2015-06-30  Richard Biener  <rguenther@suse.de>
20038         PR tree-optimization/66704
20039         * tree-vect-data-refs.c (vect_setup_realignment): Use
20040         make_ssa_name for non-SSA name source.
20042 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
20044         PR middle-end/66702
20045         * omp-low.c (simd_clone_adjust): Handle addressable linear
20046         or uniform parameters or non-gimple type uniform parameters.
20048 2015-06-30  Richard Biener  <rguenther@suse.de>
20050         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
20051         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
20052         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
20053         * match.pd: ... here.
20054         Add a few cases of A - B -> A + (-B) when B "easily" negates.
20055         Move (x & y) | x -> x and friends before
20056         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
20058 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
20060         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
20061         -mfix-ut699 is not specified.
20062         (leon3_load): Rename into...
20063         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
20064         is specified.
20066 2015-06-30  Marek Polacek  <polacek@redhat.com>
20068         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
20069         * match.pd: ... here.
20071 2015-06-30  Richard Biener  <rguenther@suse.de>
20073         * target-insns.def (canonicalize_funcptr_for_compare): Add.
20074         * fold-const.c (build_range_check): Replace uses of
20075         HAVE_canonicalize_funcptr_for_compare.
20076         (fold_widened_comparison): Likewise.
20077         (fold_sign_changed_comparison): Likewise.
20078         * dojump.c: Include "target.h".
20079         (do_compare_and_jump): Replace uses of
20080         HAVE_canonicalize_funcptr_for_compare and
20081         gen_canonicalize_funcptr_for_compare.
20082         * expr.c (do_store_flag): Likewise.
20084 2015-06-30  Tom de Vries  <tom@codesourcery.com>
20086         PR tree-optimization/66652
20087         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
20088         max_loop_iterations to determine if nit + 1 overflows.
20090 2015-06-30  Richard Biener  <rguenther@suse.de>
20092         * tree-vrp.c (register_edge_assert_for_2): Also register
20093         asserts for dominating conversion results.
20095 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
20097         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
20098         field in struct iv.
20100 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
20102         PR target/66509
20103         * configure.ac: Fix filds and fildq test for 64-bit.
20104         * configure: Regenerated.
20106 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
20108         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
20109         (nvptx_reorg): Here.  Keep the non-subreg pieces.
20111 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
20113         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
20114         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20116 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
20118         * config/i386/i386.md (*jcc_1): Use %! in asm template.
20119         Set attribute "length_nobnd" instead of "length".
20120         (*jcc_2): Ditto.
20121         (jump): Ditto.
20122         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
20124 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
20126         * config/nios2/nios2.c (nios2_delegitimize_address): Make
20127         assert less restrictive.
20129 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20131         PR fortran/66605
20132         * cgraphunit.c (cgraph_node::finalize_function): Do not call
20133         do_warn_unused_parameter.
20134         * function.c (do_warn_unused_parameter): Move from here.
20135         * function.h (do_warn_unused_parameter): Do not declare.
20137 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20139         PR target/65697
20140         * gcc.target/arm/armv-sync-comp-swap.c: New.
20141         * gcc.target/arm/armv-sync-op-acquire.c: New.
20142         * gcc.target/arm/armv-sync-op-full.c: New.
20143         * gcc.target/arm/armv-sync-op-release.c: New.
20145 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20147         PR target/65697
20148         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
20149         initial acquire barrier with final barrier.
20151 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20153         PR target/65697
20154         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
20155         initial acquire barrier with final barrier.
20157 2015-06-29  Richard Henderson  <rth@redhat.com>
20159         * config/i386/constraints.md (Bf): New constraint.
20160         * config/i386/i386-c.c (ix86_target_macros): Define
20161         __GCC_ASM_FLAG_OUTPUTS__.
20162         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
20163         as flags outputs.
20164         * doc/extend.texi (FlagOutputOperands): Document them.
20166 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
20168         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
20169         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
20170         unspec name.
20171         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
20172         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
20173         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
20174         (aarch64_symbol_context): Ditto.
20175         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
20176         and use new pattern name.
20177         (aarch64_expand_mov_immediate): Ditto.
20178         (aarch64_print_operand): Ditto.
20179         (aarch64_classify_tls_symbol): Ditto.
20181 2015-06-29  Marek Polacek  <polacek@redhat.com>
20182             Marc Glisse  <marc.glisse@inria.fr>
20184         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
20185         * match.pd: ... pattern here.
20187 2015-06-29  Tom de Vries  <tom@codesourcery.com>
20189         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
20190         function structure.
20192 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
20194         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
20195         feature description, split out the native option, add a link to
20196         the feature documentation, rearrange and slightly rewrite text.
20197         (Aarch64 options, -mcpu): Likewise.
20198         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
20199         +rdma implies Adv. SIMD.
20201 2015-06-29  Marek Polacek  <polacek@redhat.com>
20203         PR c/66322
20204         * function.c (stack_protect_epilogue): Remove a cast to int.
20205         * doc/invoke.texi: Update -Wswitch-bool description.
20207 2015-06-29  Richard Biener  <rguenther@suse.de>
20209         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
20210         * fold-const.c (fold_binary_loc): Move &A - &B simplification
20211         via ptr_difference_const ...
20212         * match.pd: ... here.
20213         When matching (X ^ Y) == Y also match with swapped operands.
20215 2015-06-29  Richard Biener  <rguenther@suse.de>
20217         * lto-streamer.h (LTO_major_version): Bump to 5.
20219 2015-06-29  Richard Biener  <rguenther@suse.de>
20221         PR tree-optimization/66677
20222         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
20223         STMT_VINFO_VEC_STMT clobbering less strict.
20225 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
20227         PR middle-end/64130
20228         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
20229         division, compute max and min when value ranges for dividend and
20230         divisor are available.
20232 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
20233             Sandra Loosemore <sandra@codesourcery.com>
20235         * regrename.h (regrename_do_replace): Change to return bool.
20236         * regrename.c (rename_chains): Check return value of
20237         regname_do_replace.
20238         (regrename_do_replace): Re-validate the modified insns and
20239         return bool status.
20240         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
20241         Update to match rename_chains changes.
20242         * config/c6x/c6x.c (try_rename_operands): Assert that
20243         regrename_do_replace returns true.
20245 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
20247         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
20248         operand 2 here.  Use copy_addr_to_reg to copy non-index
20249         register operand 2 to a temporary.
20250         (<mode>_stx): Ditto for operand 1.
20251         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
20252         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
20253         (ix86_store_bounds): Ditto.
20255 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
20257         * print-tree.c (print_node) [TREE_VEC]: Print its length.
20259 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
20261         * gimple.c (gimple_call_set_fndecl): Remove.
20262         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
20263         build1_loc directly instead of build_fold_addr_expr_loc.
20265 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
20267         * hash-map.h (hash_map::traverse): Use the definition of the
20268         Key typedef rather than the typedef itself.
20270 2015-06-26  Martin Jambor  <mjambor@suse.cz>
20272         PR debug/66301
20273         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
20274         NULL instead of calling dump_enabled_p.
20276 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20278         * config/aarch64/aarch64.opt: (override): New.
20279         * doc/invoke.texi (override): Document.
20280         * config/aarch64/aarch64.c (aarch64_flag_desc): New
20281         (aarch64_fusible_pairs): Likewise.
20282         (aarch64_tuning_flags): Likewise.
20283         (aarch64_tuning_override_function): Likewise.
20284         (aarch64_tuning_override_functions): Likewise.
20285         (aarch64_parse_one_option_token): Likewise.
20286         (aarch64_parse_boolean_options): Likewise.
20287         (aarch64_parse_fuse_string): Likewise.
20288         (aarch64_parse_tune_string): Likewise.
20289         (aarch64_parse_one_override_token): Likewise.
20290         (aarch64_parse_override_string): Likewise.
20291         (aarch64_override_options): Parse the -override string if it
20292         is present.
20294 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20296         * config/aarch64/aarch64-protos.h (tune_params): Remove
20297         const from members.
20298         (aarch64_tune_params): Remove const, change to no longer be
20299         a pointer.
20300         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
20301         change to no longer be a pointer, initialize to generic_tunings.
20302         (aarch64_min_divisions_for_recip_mul): Change dereference of
20303         aarch64_tune_params to member access.
20304         (aarch64_reassociation_width): Likewise.
20305         (aarch64_rtx_mult_cost): Likewise.
20306         (aarch64_address_cost): Likewise.
20307         (aarch64_branch_cost): Likewise.
20308         (aarch64_rtx_costs): Likewise.
20309         (aarch64_register_move_cost): Likewise.
20310         (aarch64_memory_move_cost): Likewise.
20311         (aarch64_sched_issue_rate): Likewise.
20312         (aarch64_builtin_vectorization_cost): Likewise.
20313         (aarch64_override_options): Take a copy of the selected tuning
20314         struct in to aarch64_tune_params, rather than just setting
20315         a pointer, change dereferences of aarch64_tune_params to member
20316         accesses.
20317         (aarch64_override_options_after_change): Change dereferences of
20318         aarch64_tune_params to member access.
20319         (aarch64_macro_fusion_p): Likewise.
20320         (aarch_macro_fusion_pair_p): Likewise.
20321         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
20323 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20325         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
20326         (aarch64_tune_flags): Likewise.
20327         (AARCH64_TUNE_FMA_STEERING): Likewise.
20328         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
20329         to AARCH64_FL_USE_FMA_STEERING_PASS.
20330         (cortex-a57.cortex-a53): Likewise.
20331         (cortex-a72): Use cortexa72_tunings.
20332         (cortex-a72.cortex-a53): Likewise.
20333         (exynos-m1): Likewise.
20334         * config/aarch64/aarch64-protos.h (tune_params): Add
20335         a field: extra_tuning_flags.
20336         * config/aarch64/aarch64-tuning-flags.def: New.
20337         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
20338         (aarch64_extra_tuning_flags): Likewise.
20339         (aarch64_tune_params): Declare here.
20340         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
20341         (cortexa53_tunings): Likewise.
20342         (cortexa57_tunings): Likewise.
20343         (thunderx_tunings): Likewise.
20344         (xgene1_tunings): Likewise.
20345         (cortexa72_tunings): New.
20346         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
20347          (gate): Check against aarch64_tune_params.
20348         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
20349         aarch64-protos.h.
20351 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20353         * config/aarch64/aarch64-fusion-pairs.def: New.
20354         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
20355         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
20356         aarch64_fusion_pairs.
20357         (AARCH64_FUSE_MOV_MOVK): Likewise.
20358         (AARCH64_FUSE_ADRP_ADD): Likewise.
20359         (AARCH64_FUSE_MOVK_MOVK): Likewise.
20360         (AARCH64_FUSE_ADRP_LDR): Likewise.
20361         (AARCH64_FUSE_CMP_BRANCH): Likewise.
20363 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20365         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
20366         SYMBOL_SMALL_GOT_28K.
20367         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
20368         relocation modifiers.
20369         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
20370         (ldr_got_small_28k_<mode>): New.
20371         (ldr_got_small_28k_sidi): New.
20372         * config/aarch64/iterators.md (got_modifier): New mode iterator.
20373         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
20374         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
20375         SYMBOL_SMALL_GOT_28K.
20376         (aarch64_rtx_costs): Add costs for new instruction sequences.
20377         (initialize_aarch64_code_model): Initialize new model.
20378         (aarch64_classify_symbol): Recognize new model and new symbol classification.
20379         (aarch64_asm_preferred_eh_data_format): Support new model.
20380         (aarch64_load_symref_appropriately): Generate new instruction
20381         sequences for -fpic.
20382         (TARGET_USE_PSEUDO_PIC_REG): New definition.
20383         (aarch64_use_pseudo_pic_reg): New function.
20385 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
20387         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20388         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20389         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20390         (aarch64_expand_mov_immediate): Ditto.
20391         (aarch64_print_operand): Ditto.
20392         (aarch64_classify_symbol): Ditto.
20394 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
20396         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20398 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
20400         PR bootstrap/66638
20401         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20402         assertion failed.  Remove assertion itself.
20404 2015-06-26  Richard Biener  <rguenther@suse.de>
20406         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20407         and -A CMP CST -> A CMP -CST which is redundant with a pattern
20408         in match.pd.
20409         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20410         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20411         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20412         * match.pd: ... patterns here.
20414 2015-06-26  Marek Polacek  <polacek@redhat.com>
20416         * match.pd ((x | y) & ~(x & y) -> x ^ y,
20417         (x | y) & (~x ^ y) -> x & y): New patterns.
20419 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
20421         * rtl.h (emit): Add an optional boolean parameter to control
20422         whether barriers are emitted.
20423         * emit-rtl.c (emit): Likewise.
20424         * gensupport.c (get_emit_function): Return null rather than "emit".
20425         * genemit.c (gen_emit_seq): Handle the null return value.
20426         Don't emit barriers after the final instruction in the sequence.
20427         * gentarget-def.c (main): Don't emit barriers after the instruction.
20429 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20431         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20432         TARGET_UNIFIED_ASM.
20434 2015-06-26  Richard Biener  <rguenther@suse.de>
20436         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20438 2015-06-26  Richard Biener  <rguenther@suse.de>
20440         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20441         irrespective on whether the inner operation has a single use
20442         of both off are constant.
20444 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
20445             Segher Boessenkool  <segher@kernel.crashing.org>
20447         PR target/66412
20448         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20449         before doing PUT_MODE or PUT_CODE on operands to avoid
20450         in-place RTX modification.
20452 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20454         * gentarget-def.c (def_target_insn): Cast return of strtol to
20455         unsigned int.
20457 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20459         * gimple.h (gimple_call_set_fn): Move inline function.
20460         * gimple.c (gimple_call_set_fn): Relocate here.
20462 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
20464         PR target/65979
20465         PR target/66611
20466         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20467         the replacement insn will work.
20469 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20471         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
20472         by default.
20474 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20476         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
20477         * cgraph.h: Include ipa-ref.h and plugin-api.h.
20478         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
20479         (symtab_node::address_can_be_compared_p): Move function.
20480         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
20481         definition here.
20482         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
20483         * auto-profile.c: Likewise.
20484         * bb-reorder.c: Likewise.
20485         * builtins.c: Likewise.
20486         * calls.c: Likewise.
20487         * cfgexpand.c: Likewise.
20488         * cgraphbuild.c: Likewise.
20489         * cgraphclones.c: Likewise.
20490         * cgraphunit.c: Likewise.
20491         * combine.c: Likewise.
20492         * coverage.c: Likewise.
20493         * data-streamer-in.c: Likewise.
20494         * data-streamer-out.c: Likewise.
20495         * data-streamer.c: Likewise.
20496         * dbxout.c: Likewise.
20497         * dwarf2out.c: Likewise.
20498         * except.c: Likewise.
20499         * expr.c: Likewise.
20500         * final.c: Likewise.
20501         * fold-const.c: Likewise.
20502         * ggc-page.c: Likewise.
20503         * gimple-fold.c: Likewise.
20504         * gimple-iterator.c: Likewise.
20505         * gimple-pretty-print.c: Likewise.
20506         * gimple-streamer-in.c: Likewise.
20507         * gimple-streamer-out.c: Likewise.
20508         * gimple.c: Likewise.
20509         * gimplify.c: Likewise.
20510         * ipa-chkp.c: Likewise.
20511         * ipa-comdats.c: Likewise.
20512         * ipa-cp.c: Likewise.
20513         * ipa-devirt.c: Likewise.
20514         * ipa-icf-gimple.c: Likewise.
20515         * ipa-icf.c: Likewise.
20516         * ipa-inline-analysis.c: Likewise.
20517         * ipa-inline-transform.c: Likewise.
20518         * ipa-inline.c: Likewise.
20519         * ipa-polymorphic-call.c: Likewise.
20520         * ipa-profile.c: Likewise.
20521         * ipa-prop.c: Likewise.
20522         * ipa-pure-const.c: Likewise.
20523         * ipa-ref.c: Likewise.
20524         * ipa-reference.c: Likewise.
20525         * ipa-split.c: Likewise.
20526         * ipa-utils.c: Likewise.
20527         * ipa-visibility.c: Likewise.
20528         * ipa.c: Likewise.
20529         * langhooks.c: Likewise.
20530         * lto-cgraph.c: Likewise.
20531         * lto-compress.c: Likewise.
20532         * lto-opts.c: Likewise.
20533         * lto-section-in.c: Likewise.
20534         * lto-section-out.c: Likewise.
20535         * lto-streamer-in.c: Likewise.
20536         * lto-streamer-out.c: Likewise.
20537         * lto-streamer.c: Likewise.
20538         * omp-low.c: Likewise.
20539         * opts-global.c: Likewise.
20540         * passes.c: Likewise.
20541         * predict.c: Likewise.
20542         * print-tree.c: Likewise.
20543         * profile.c: Likewise.
20544         * ree.c: Likewise.
20545         * sanopt.c: Likewise.
20546         * stor-layout.c: Likewise.
20547         * symtab.c: Likewise.
20548         * toplev.c: Likewise.
20549         * trans-mem.c: Likewise.
20550         * tree-cfg.c: Likewise.
20551         * tree-chkp.c: Likewise.
20552         * tree-eh.c: Likewise.
20553         * tree-emutls.c: Likewise.
20554         * tree-inline.c: Likewise.
20555         * tree-nested.c: Likewise.
20556         * tree-parloops.c: Likewise.
20557         * tree-pretty-print.c: Likewise.
20558         * tree-profile.c: Likewise.
20559         * tree-sra.c: Likewise.
20560         * tree-ssa-alias.c: Likewise.
20561         * tree-ssa-live.c: Likewise.
20562         * tree-ssa-loop-ivcanon.c: Likewise.
20563         * tree-ssa-loop-ivopts.c: Likewise.
20564         * tree-ssa-pre.c: Likewise.
20565         * tree-ssa-sccvn.c: Likewise.
20566         * tree-ssa-strlen.c: Likewise.
20567         * tree-ssa-structalias.c: Likewise.
20568         * tree-streamer-in.c: Likewise.
20569         * tree-streamer-out.c: Likewise.
20570         * tree-streamer.c: Likewise.
20571         * tree-switch-conversion.c: Likewise.
20572         * tree-tailcall.c: Likewise.
20573         * tree-vect-data-refs.c: Likewise.
20574         * tree-vect-stmts.c: Likewise.
20575         * tree-vectorizer.c: Likewise.
20576         * tree.c: Likewise.
20577         * tsan.c: Likewise.
20578         * ubsan.c: Likewise.
20579         * value-prof.c: Likewise.
20580         * varasm.c: Likewise.
20581         * varpool.c: Likewise.
20582         * config/arm/arm.c: Likewise.
20583         * config/bfin/bfin.c: Likewise.
20584         * config/c6x/c6x.c: Likewise.
20585         * config/cris/cris.c: Likewise.
20586         * config/darwin-c.c: Likewise.
20587         * config/darwin.c: Likewise.
20588         * config/i386/i386.c: Likewise.
20589         * config/i386/winnt.c: Likewise.
20590         * config/microblaze/microblaze.c: Likewise.
20591         * config/mips/mips.c: Likewise.
20592         * config/rs6000/rs6000.c: Likewise.
20593         * config/rx/rx.c: Likewise.
20594         * config/s390/s390.c: Likewise.
20595         * config/tilegx/mul-tables.c: Likewise.
20597 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20599         * config/aarch64/aarch64.c, config/alpha/alpha.c,
20600         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20601         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20602         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20603         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20604         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20605         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20606         config/microblaze/microblaze.c, config/mips/mips.c,
20607         config/mmix/mmix.c, config/mn10300/mn10300.c,
20608         config/moxie/moxie.c, config/msp430/msp430.c,
20609         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20610         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20611         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20612         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20613         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20614         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20615         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20616         target-def.h include.
20617         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
20619 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20621         * Makefile.in (TARGET_DEF): Add target-insns.def.
20622         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20623         (build/gentarget-def.o): New rule.
20624         (genprogrtl): Add target-def.
20625         * target-insns.def, gentarget-def.c: New files.
20626         * target.def: Add targetm.have_* and targetm.gen_* hooks,
20627         based on the contents of target-insns.def.
20628         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20629         (HAVE_return, gen_return): Delete.
20630         * target-def.h: Include insn-target-def.h.
20631         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20632         instead of direct calls.  Rely on them to do the appropriate assertions.
20633         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
20634         (convert_jumps_to_returns): Use targetm interface instead of
20635         direct calls.
20636         (thread_prologue_and_epilogue_insns): Likewise.
20637         * reorg.c (find_end_label, dbr_schedule): Likewise.
20638         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20639         * shrink-wrap.c (convert_to_simple_return): Likewise.
20640         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20642 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20644         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20645         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20646         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20647         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20648         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20649         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20650         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20651         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20652         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20653         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20654         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20655         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20656         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20657         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20658         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20659         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20660         includes to end.
20662 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20664         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20665         (unbounded_int_hashmap_traits::key_type): Likewise.
20666         * hash-map.h (hash_map): Get the key type from the traits.
20667         * hash-traits.h (default_hash_traits): By default, inherit from the
20668         template parameter.
20669         * alias.c (alias_set_traits): Delete.
20670         (alias_set_entry_d::children): Use alias_set_hash as the first
20671         template parameter.
20672         (record_alias_subset): Update accordingly.
20673         * except.c (tree_hash_traits): Delete.
20674         (type_to_runtime_map): Use tree_hash as the first template parameter.
20675         (init_eh): Update accordingly.
20676         * genmatch.c (capture_id_map_hasher): Delete.
20677         (cid_map_t): Use nofree_string_hash as first template parameter.
20678         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20679         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20680         Use symbol_compare_hash as the first template parameter in
20681         subdivide_hash_map.
20682         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20683         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20684         template parameter.
20685         * passes.c (pass_registry_hasher): Delete.
20686         (name_to_pass_map): Use nofree_string_hash as the first template
20687         parameter.
20688         (register_pass_name): Update accordingly.
20689         * sanopt.c (sanopt_tree_map_traits): Delete.
20690         (sanopt_tree_triplet_map_traits): Delete.
20691         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20692         template parameter.
20693         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20694         the first template parameter.
20695         * sese.c (rename_map_hasher): Delete.
20696         (rename_map_type): Use tree_ssa_name_hash as the first template
20697         parameter.
20698         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20699         (function_summary::m_map): Use map_hash as the first template
20700         parameter.
20701         (function_summary::release): Update accordingly.
20702         * tree-if-conv.c (phi_args_hash_traits): Delete.
20703         (predicate_scalar_phi): Use tree_operand_hash as the first template
20704         parameter to phi_arg_map.
20705         * tree-inline.h (dependence_hasher): Delete.
20706         (copy_body_data::dependence_map): Use dependence_hash as the first
20707         template parameter.
20708         * tree-inline.c (remap_dependence_clique): Update accordingly.
20709         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20710         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20711         parameter.
20712         (addr_stridxptr): Update accordingly.
20713         * value-prof.c (profile_id_traits): Delete.
20714         (cgraph_node_map): Use profile_id_hash as the first template
20715         parameter.
20716         (init_node_map): Update accordingly.
20717         * config/alpha/alpha.c (string_traits): Delete.
20718         (machine_function::links): Use nofree_string_hash as the first
20719         template parameter.
20720         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20721         * config/m32c/m32c.c (pragma_traits): Delete.
20722         (pragma_htab): Use nofree_string_hash as the first template parameter.
20723         (m32c_note_pragma_address): Update accordingly.
20724         * config/mep/mep.c (pragma_traits): Delete.
20725         (pragma_htab): Use nofree_string_hash as the first template parameter.
20726         (mep_note_pragma_flag): Update accordingly.
20727         * config/mips/mips.c (mips16_flip_traits): Delete.
20728         (mflip_mips16_htab): Use nofree_string_hash as the first template
20729         parameter.
20730         (mflip_mips16_use_mips16_p): Update accordingly.
20731         (local_alias_traits): Delete.
20732         (mips16_local_aliases): Use nofree_string_hash as the first template
20733         parameter.
20734         (mips16_local_alias): Update accordingly.
20736 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20738         * hash-map-traits.h (default_hashmap_traits): Delete.
20740 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20742         * hash-map-traits.h (unbounded_hashmap_traits): New class.
20743         (unbounded_int_hashmap_traits): Likewise.
20744         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20746 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20748         * ipa-icf.h (symbol_compare_hash): New class.
20749         (symbol_compare_hashmap_traits): Use it.
20750         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20751         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20752         (mem_alloc_description::reverse_mem_map_t): Remove redundant
20753         default_hashmap_traits.
20754         * sanopt.c (sanopt_tree_triplet_hash): New class.
20755         (sanopt_tree_triplet_map_traits): Use it.
20757 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20759         * gengtype-parse.c (require_template_declaration): Allow '+' in
20760         template parameters.  Consolidate cases.
20761         * hash-traits.h (int_hash): New class.
20762         * alias.c (alias_set_hash): New structure.
20763         (alias_set_traits): Use it.
20764         * symbol-summary.h (function_summary::map_hash): New class.
20765         (function_summary::summary_hashmap_traits): Use it.
20766         * tree-inline.h (dependence_hash): New class.
20767         (dependence_hasher): Use it.
20768         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20769         * value-prof.c (profile_id_hash): New class.
20770         (profile_id_traits): Use it.
20772 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20774         * config/mips/mips.c (mips16_flip_traits): Use it.
20775         (local_alias_traits, mips16_local_aliases): Convert from a map of
20776         rtxes to a map of symbol names.
20777         (mips16_local_alias): Update accordingly.
20779 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20781         * hash-traits.h (string_hash, nofree_string_hash): New classes.
20782         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20783         * passes.c (pass_registry_hasher): Likewise.
20784         * config/alpha/alpha.c (string_traits): Likewise.
20785         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20786         * config/m32c/m32c.c (pragma_traits): Likewise.
20787         * config/mep/mep.c (pragma_traits): Likewise.
20789 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20791         * tree-hash-traits.h (tree_hash): New class.
20792         * except.c: Include tree-hash-traits.h.
20793         (tree_hash_traits): Use tree_hash.
20795 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20797         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20798         * sese.c: Include tree-hash-traits.h.
20799         (rename_map_hasher): Use tree_ssa_name_hasher.
20801 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20803         * tree-hash-traits.h (tree_decl_hash): New class.
20804         * tree-ssa-strlen.c: Include tree-hash-traits.h.
20805         (stridxlist_hash_traits): Use tree_decl_hash.
20807 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20809         * tree-hash-traits.h: New file.
20810         (tree_operand_hash): New class.
20811         * sanopt.c: Include tree-hash-traits.h.
20812         (sanopt_tree_map_traits): Use tree_operand_hash.
20813         * tree-if-conv.c: Include tree-hash-traits.h.
20814         (phi_args_hash_traits): Use tree_operand_hash.
20815         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20816         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20818 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20820         * hash-map-traits.h: Include hash-traits.h.
20821         (simple_hashmap_traits): New class.
20822         * mem-stats.h (hash_map): Change the default traits to
20823         simple_hashmap_traits<default_hash_traits<Key> >.
20825 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20827         * hash-table.h: Update comments.
20829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20831         * hash-traits.h (default_hash_traits): New structure.
20832         * hash-set.h (default_hashset_traits): Delete.
20833         (hash_set): Use default_hash_traits<Key> instead of
20834         default_hashset_traits.  Delete hash_entry type and use Key directly.
20835         * ipa-devirt.c (pair_traits): Delete.
20836         (default_hash_traits <type_pair>): Override.
20837         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20838         (odr_types_equivalent_p, add_type_duplicate): Likewise.
20840 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20842         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20844 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20846         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20847         (has_is_empty, is_empty_helper): Delete.
20848         (has_mark_deleted, mark_deleted_helper): Delete.
20849         (has_mark_empty, mark_empty_helper): Delete.
20850         (hash_table::is_deleted): Call the Descriptor unconditionally.
20851         (hash_table::is_empty): Likewise.
20852         (hash_table::mark_deleted): Likewise.
20853         (hash_table::mark_empty): Likewise.
20855 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20857         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
20858         redundant typedefs and members.
20859         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
20860         redundant typedefs.
20861         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20862         * ipa-devirt.c (odr_name_hasher): Likewise.
20863         (polymorphic_call_target_hasher): Likewise.
20864         * ira-costs.c (cost_classes_hasher): Likewise.
20865         * statistics.c (stats_counter_hasher): Likewise.
20866         * trans-mem.c (log_entry_hasher): Likewise.
20867         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20868         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20869         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20870         * var-tracking.c (variable_hasher): Likewise.
20871         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20872         Remove redundant typedefs and members.
20874 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20876         * hash-traits.h (ggc_cache_hasher): Rename to...
20877         (ggc_cache_remove): ...this and remove typedefs.
20878         (ggc_cache_ptr_hash): New class.
20879         * hash-table.h: Update commentary.
20880         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20881         rather than ggc_cache_hasher.
20882         (const_wide_int_hasher, reg_attr_hasher): Likewise.
20883         (const_double_hasher, const_fixed_hasher): Likewise.
20884         * function.c (insn_cache_hasher): Likewise.
20885         * trans-mem.c (tm_wrapper_hasher): Likewise.
20886         * tree.h (tree_decl_map_cache_hasher): Likewise.
20887         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20888         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20889         * ubsan.c (tree_type_map_cache_hasher): Likewise.
20890         * varasm.c (tm_clone_hasher): Likewise.
20891         * config/i386/i386.c (dllimport_hasher): Likewise.
20892         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20893         (tree_hasher): Likewise.
20895 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20897         * hash-traits.h (ggc_hasher): Rename to...
20898         (ggc_remover): ...this and remove typedefs.
20899         (ggc_cache_hasher): Update accordingly.  Add typedefs.
20900         (ggc_ptr_hash): New class.
20901         * hash-table.h: Update comment.
20902         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20903         ggc_hasher.
20904         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20905         (tree_descriptor_hasher): Likewise.
20906         * cgraph.c (function_version_hasher): Likewise.
20907         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20908         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20909         (dw_loc_list_hasher, addr_hasher): Likewise.
20910         * function.h (used_type_hasher): Likewise.
20911         * function.c (temp_address_hasher): Likewise.
20912         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20913         * libfuncs.h (libfunc_hasher): Likewise.
20914         * lto-streamer.h (decl_state_hasher): Likewise.
20915         * optabs.c (libfunc_decl_hasher): Likewise.
20916         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20917         * varasm.c (section_hasher, object_block_hasher): Likewise.
20918         (const_rtx_desc_hasher): Likewise.
20919         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20920         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20922 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20924         * hash-traits.h (free_ptr_hash): New class.
20925         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20926         rather than typed_free_remove.  Remove redudant typedefs.
20927         (external_ref_hasher): Likewise.
20928         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20929         (ehspec_hasher): Likewise.
20930         * ggc-common.c (saving_hasher): Likewise.
20931         * gimplify.c (gimplify_hasher): Likewise.
20932         * haifa-sched.c (delay_i2_hasher): Likewise.
20933         * loop-invariant.c (invariant_expr_hasher): Likewise.
20934         * loop-iv.c (biv_entry_hasher): Likewise.
20935         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20936         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20937         * tree-cfg.c (locus_discrim_hasher): Likewise.
20938         * tree-eh.c (finally_tree_hasher): Likewise.
20939         * tree-into-ssa.c (var_info_hasher): Likewise.
20940         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20941         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20942         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20943         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20944         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20945         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20946         (shared_bitmap_hasher): Likewise.
20947         * tree-ssa-threadupdate.c (redirection_data): Likewise.
20948         * tree-vectorizer.h (peel_info_hasher): Likewise.
20949         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20950         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20952 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20954         * hash-table.h: Update comments.
20955         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20956         (nofree_ptr_hash): New class.
20957         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20958         than typed_noop_remove.  Remove redudant typedefs.
20959         * attribs.c (attribute_hasher): Likewise.
20960         * cfg.c (bb_copy_hasher): Likewise.
20961         * cselib.c (cselib_hasher): Likewise.
20962         * dse.c (invariant_group_base_hasher): Likewise.
20963         * dwarf2cfi.c (trace_info_hasher): Likewise.
20964         * dwarf2out.c (macinfo_entry_hasher): Likewise.
20965         (comdat_type_hasher, loc_list_hasher): Likewise.
20966         * gcse.c (pre_ldst_expr_hasher): Likewise.
20967         * genmatch.c (id_base): Likewise.
20968         * genrecog.c (test_pattern_hasher): Likewise.
20969         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20970         * haifa-sched.c (delay_i1_hasher): Likewise.
20971         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20972         * ipa-icf.h (congruence_class_group_hash): Likewise.
20973         * ipa-profile.c (histogram_hash): Likewise.
20974         * ira-color.c (allocno_hard_regs_hasher): Likewise.
20975         * lto-streamer.h (string_slot_hasher): Likewise.
20976         * lto-streamer.c (tree_entry_hasher): Likewise.
20977         * plugin.c (event_hasher): Likewise.
20978         * postreload-gcse.c (expr_hasher): Likewise.
20979         * store-motion.c (st_expr_hasher): Likewise.
20980         * tree-sra.c (uid_decl_hasher): Likewise.
20981         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20982         (ssa_name_var_hash): Likewise.
20983         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20984         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20985         * tree-ssa-pre.c (pre_expr_d): Likewise.
20986         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20987         * vtable-verify.h (registration_hasher): Likewise.
20988         * vtable-verify.c (vtbl_map_hasher): Likewise.
20989         * config/arm/arm.c (libcall_hasher): Likewise.
20990         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20991         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20992         * config/sol2.c (comdat_entry_hasher): Likewise.
20993         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20994         (print_fold_checksum, fold_checksum_tree): Likewise.
20995         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20996         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20997         (fold_build_call_array_loc): Likewise.
20998         * tree-ssa-ccp.c (gimple_htab): Likewise.
20999         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
21000         rather than pointer_type.
21002 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21004         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
21005         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
21007 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21009         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
21010         (ggc_hasher::ggc_mx): Likewise.
21011         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
21012         that duplicate ggc_hasher ones.
21014 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21016         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
21017         (gt_cleare_cache): Check here for deleted and empty entries.
21018         Replace handle_cache_entry with a call to keep_cache_entry.
21019         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
21020         (ggc_cache_hasher::keep_cache_entry): New function.
21021         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
21022         (tm_wrapper_hasher::keep_cache_entry): New function.
21023         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
21024         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21025         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
21026         (type_cache_hasher::keep_cache_entry): New function.
21027         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
21028         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
21029         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
21030         (tree_type_map_cache_hasher::keep_cache_entry): New function.
21031         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
21032         (tm_clone_hasher::keep_cache_entry): New function.
21033         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
21034         (dllimport_hasher::keep_cache_entry): New function.
21036 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21038         * hash-table.h: Include hash-traits.h.
21039         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
21040         (ggc_cache_hasher): Move to...
21041         * hash-traits.h: ...this new file.
21043 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21045         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
21046         struct cl_optimization.
21047         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
21048         * tree.c (make_node_stat): Allocate cl_optimization struct.
21049         (copy_node_stat): Allocate and copy cl_optimization struct.
21051 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21053         * function.h (struct incoming_args): Move struct.
21054         (pass_by_reference, reference_callee_copied): Remove prototypes.
21055         * emit-rtl.h (struct incoming_args): Relocate struct here.
21056         * calls.h (pass_by_reference, reference_callee_copied): Relocate
21057         prototypes here.
21058         * function.c (pass_by_reference, reference_callee_copied): Move.
21059         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
21060         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
21061         * ipa-chkp.c: Include calls.h.
21063 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
21065         * alias.h (alias_set_type): Move typedef.
21066         * coretypes.h (alias_set_type): Relocate typedef here.
21067         * rtl.h: Don't include alias.h.
21069 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
21071         * cgraph.h (cgraph_rtl_info): Move to rtl.h
21072         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
21073         and instance.
21074         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
21075         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
21076         doesn't exist.
21077         * calls.c: Include hard-reg-set.h before rtl.h.
21078         * ira.c: Likewise.
21080 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21081             Vladimir Makarov  <vmakarov@redhat.com>
21083         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
21084         Add assert.
21086 2015-06-25  Richard Biener  <rguenther@suse.de>
21088         * fold-const.c (fold_binary_loc): Move simplification of
21089         (X <<>> C1) & C2 ...
21090         * match.pd: ... here.
21092 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
21094         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
21096 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
21098         * match.pd: Add patterns for vec_conds between 1 and 0.
21100 2015-06-25  Richard Biener  <rguenther@suse.de>
21102         * tree-vect-stmts.c (vectorizable_conversion): Do not set
21103         STMT_VINFO_VEC_STMT for SLP.
21104         (vectorizable_store): Likewise.
21105         (vectorizable_load): Likewise.
21106         (vect_transform_stmt): Catch SLP vectorization clobbering
21107         STMT_VINFO_VEC_STMT.
21109 2015-06-25  Richard Biener  <rguenther@suse.de>
21111         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
21112         dumping.
21113         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
21114         cleanup resulting dead code and parameters.
21115         (vect_transform_slp_perm_load): Adjust.
21117 2015-06-25  Nick Clifton  <nickc@redhat.com>
21119         * config/bfin/bfin.c (bfin_expand_prologue): Set
21120         current_function_static_stack_size if flag_stack_usage_info is set.
21121         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
21122         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
21123         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21124         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
21126 2015-06-25  Tom de Vries  <tom@codesourcery.com>
21128         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
21129         comment that the generated IV is unsigned.
21131 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21133         PR target/29693
21134         * config/arm/arm.c (arm_dbx_register_number): Return
21135         DWARF_FRAME_REGISTERS by default.
21137 2015-06-25  Tom de Vries  <tom@codesourcery.com>
21139         * dominance.c (calculate_dominance_info): Fix verify_dominators call
21140         argument.  Call verify_dominator when reusing dominator info.
21142 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
21144         PR target/66563
21145         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
21146         an additional element of the unspec vector.  Modify indices
21147         of operands.
21148         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
21149         * config/sh/sh.c (prepare_move_operands): Pass incremented
21150         const_int to gen_GOTaddr2picreg.
21151         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
21153 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21155         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
21156         Condition on TARGET_FLOAT.
21158 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21160         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
21161         and (no)crypto.
21163 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
21165         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
21167         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
21168         aarch64_err_no_fpadvsimd.
21170         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
21171         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
21172         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
21173         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
21174         Turn error into assert, test TARGET_FLOAT.
21175         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
21176         TARGET_FLOAT.
21178 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
21180         PR debug/66482
21181         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
21183 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
21185         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
21187 2015-06-24  Renlin Li <renlin.li@arm.com>
21189         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
21190         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
21192 2015-06-24  Richard Biener  <rguenther@suse.de>
21194         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
21195         (main): Likewise.
21196         (lower_opt_convert): Support lowering of conditional view_convert.
21197         (parser::parse_operation): Likewise.
21198         (parser::parse_for): Likewise.
21200 2015-06-24  Renlin Li  <renlin.li@arm.com>
21202         * varasm.c (emit_local): Use unsigned int for align variable.
21204 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21206         PR target/63408
21207         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
21208         for negative numbers.
21210 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21212         PR rtl-optimization/66306
21213         * reload.c (find_reloads): Swap the match_dup info for
21214         commutative operands.
21216 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21218         * config/s390/vx-builtins.md
21219         ("vec_scatter_element<mode>_<non_vec_int>")
21220         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
21221         attribute with bhfgq.
21223 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21225         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
21227 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21229         * config/s390/s390-builtin-types.def: Add flag to indicate the
21230         options under which the function type is needed.
21231         * config/s390/s390-builtins.def: Add flag to indicate the options
21232         under which the builtin is enabled.
21233         * config/s390/s390-builtins.h: Add flags parameter to macro
21234         definitions.
21235         (bflags_for_builtin): New function.
21236         (flags_for_builtin): Renamed to ...
21237         (opflags_for_builtin): ... this.
21238         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
21239         flags_for_builtin to bflags_for_builtin and
21240         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
21241         * config/s390/s390.c: Add initialization of bflags_builtin and
21242         opflags_builtin arrays.
21243         Remove code for flags_builtin.
21244         (s390_init_builtins): Only create builtin function types if one of
21245         their flags is active.
21246         Only create builtins if all of their flags are active.
21247         (s390_expand_builtin): Rename flags_for_builtin to
21248         opflags_for_builtin.
21250 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21252         * config/s390/vecintrin.h: Remove internal builtins.
21254 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21256         * config/s390/s390.c (s390_secondary_reload): Fix check for
21257         GENERAL_REGS register class.
21259 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21261         * config/s390/s390.c (s390_support_vector_misalignment): Call
21262         default implementation for !TARGET_VX.
21264 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21266         * config/s390/s390.c (s390_legitimate_constant_p): Add
21267         TARGET_VX check.
21269 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21271         * config/s390/s390.c (s390_vector_abi): New variable definition.
21272         (s390_check_type_for_vector_abi): New function.
21273         (TARGET_ASM_FILE_END): New macro definition.
21274         (s390_asm_file_end): New function.
21275         (s390_function_arg): Call s390_check_type_for_vector_abi.
21276         (s390_gimplify_va_arg): Likewise.
21277         * configure: Regenerate.
21278         * configure.ac: Check for .gnu_attribute Binutils feature.
21280 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
21282         PR target/65803
21283         * config/bfin/bfin.c (hwloop_optimize): Initialize
21284         JUMP_LABEL for newly created jump.
21286 2015-06-23  Tristan Gingold  <gingold@adacore.com>
21288         * collect-utils.c (collect_wait): Unlink the response file here
21289         instead of...
21290         (do_wait): ...here.
21291         (utils_cleanup): ...and here.
21293 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
21295         * df-scan.c: Don't include target-def.h.
21296         * targhooks.c: Likewise.
21297         * config/arm/arm-c.c: Likewise.
21298         * config/i386/i386-c.c: Likewise.
21299         * config/nds32/nds32-cost.c: Likewise.
21300         * config/nds32/nds32-fp-as-gp.c: Likewise.
21301         * config/nds32/nds32-intrinsic.c: Likewise.
21302         * config/nds32/nds32-isr.c: Likewise.
21303         * config/nds32/nds32-md-auxiliary.c: Likewise.
21304         * config/nds32/nds32-memory-manipulation.c: Likewise.
21305         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21306         * config/nds32/nds32-predicates.c: Likewise.
21308 2015-06-23  Richard Biener  <rguenther@suse.de>
21310         PR tree-optimization/66636
21311         * tree-vect-stmts.c (vectorizable_store): Properly compute the
21312         def type for further defs for strided stores.
21314 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
21316         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
21317         conditional selects.
21318         (setcc_int<mode>, setcc_float<mode>): Reformat.
21320 2015-06-23  Marek Polacek  <polacek@redhat.com>
21322         * match.pd ((x + y) - (x | y) -> x & y,
21323         (x + y) - (x & y) -> x | y): New patterns.
21325 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
21327         PR 65711
21328         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
21329         '-dynamic-linker' within %{!shared: ...}.
21331 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
21333         PR target/66560
21334         * config/i386/predicates.md (addsub_vm_operator): New predicate.
21335         (addsub_vs_operator): Ditto.
21336         (addsub_vs_parallel): Ditto.
21337         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
21338         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
21339         Put minus RTX before plus and adjust vec_merge selector.
21340         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
21341         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
21342         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
21343         (addsub vec_merge splitters): New combiner splitters.
21344         (addsub vec_select/vec_concat splitters): Ditto.
21346 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
21348         PR tree-optimization/66449
21349         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
21350         POINTER_PLUS_EXPR for pointers.
21352 2015-06-23  Alan Modra  <amodra@gmail.com>
21354         * rtlanal.c (commutative_operand_precedence): Correct comments.
21355         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
21356         declaration.  Return an int.  Distinguish REG,REG return from
21357         others.
21358         (struct simplify_plus_minus_op_data): Make local to function.
21359         (simplify_plus_minus): Don't set canonicalized if merely sorting
21360         registers.  Avoid packing ops if nothing changes.  White space fixes.
21362 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
21364         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
21365         -fdump-ada-spec is passed but not if -fsyntax-only is.
21367 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
21369         PR bootstrap/63740
21370         * lra-lives.c (process_bb_lives): Check insn copying the same
21371         reload pseudo and don't create a copy for it.
21373 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21375         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
21376         for cond_stmt.
21378 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21380         * builtins.def (DEF_GOMP_BUILTIN): Test
21381         'flag_tree_parallelize_loops > 1' instead of
21382         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
21384 2015-06-22  Tom de Vries  <tom@codesourcery.com>
21386         * dominance.c (calculate_dominance_info): Verify dominators if
21387         early-out.
21389 2015-06-22  Marek Polacek  <polacek@redhat.com>
21391         * match.pd ((x ^ y) ^ (x | y) -> x & y,
21392         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21393         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21394         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21396 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
21398         PR target/65871
21399         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21400         cost of embedded comparison.
21402 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21404         PR target/65914
21405         * config/rs6000/predicates.md (altivec_register_operand): Permit
21406         virtual stack registers.
21407         (vsx_register_operand): Likewise.
21408         (vfloat_operand): Likewise.
21409         (vint_operand): Likewise.
21410         (vlogical_operand): Likewise.
21412 2015-06-22  Richard Biener  <rguenther@suse.de>
21414         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21415         and single_scalar_iteration_cost members.
21416         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21417         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21418         (vect_get_single_scalar_iteration_cost): Remove.
21419         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21420         Use LOOP_VINFO_SCALAR_ITERATION_COST.
21421         * tree-vect-loop.c (destroy_loop_vec_info): Free
21422         scalar_cost_vec.
21423         (vect_get_single_scalar_iteration_cost): Compute result into
21424         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21425         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
21426         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21427         (vect_estimate_min_profitable_iters): Use them.
21429 2015-06-22  Christian Bruel  <christian.bruel@st.com>
21431         PR target/52144
21432         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21433         (TARGET_INSERT_ATTRIBUTES): Define.
21434         (thumb_flipper): New var.
21435         * config/arm/arm.opt (-mflip-thumb): New switch.
21437 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21438             Martin Liska  <mliska@suse.cz>
21440         PR ipa/65908
21441         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21442         construction of arg_types.
21443         (sem_function::sem_function): Likewise.
21444         (sem_function::~sem_function): Remove destruction of arg_types.
21445         (sem_function::compatible_parm_types_p): New function.
21446         (sem_function::equals_wpa): Reorg matching of return values
21447         and parameter types.
21448         (sem_function::equals_private): Reorg mathcing of argument types.
21449         (sem_function::parse_tree_args): Remove.
21450         * ipa-icf.h (init_wpa): Do not call it.
21451         (parse_tree_args): Remove.
21452         (compatible_parm_types_p): Declare.
21453         (result_type): Remove.
21454         (arg_types): Remove.
21456 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
21458         PR ipa/66351
21459         * ipa-polymorphic-call.c
21460         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21461         initializing alias oracle; fix formating; set base_alias_set if it
21462         is known.
21464 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
21466         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21467         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21468         (find_inc): Likewise.
21469         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21470         swapping.
21471         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21472         * df-scan.c (df_swap_refs): Remove.
21473         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
21474         * dominance.c (link_roots): Use std::swap instead of manually swapping.
21475         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
21476         * fold-const.c (fold_relational_const): Likewise.
21477         * genattrtab.c (simplify_test_exp): Likewise.
21478         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
21479         gimple_simplify): Likewise.
21480         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
21481         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
21482         * ipa-devirt.c (add_type_duplicate): Likewise.
21483         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
21484         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
21485         * lra.c (lra_create_copy): Likewise.
21486         * lto-streamer-out.c (DFS::DFS): Likewise.
21487         * modulo-sched.c (get_sched_window): Likewise.
21488         * omega.c (omega_pretty_print_problem): Likewise.
21489         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
21490         * reload1.c (reloads_unique_chain_p): Likewise.
21491         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
21492         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
21493         use std::swap.
21494         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
21495         manually swapping.
21496         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
21497         predicate_mem_writes): Likewise.
21498         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
21499         * tree-predcom.c (combine_chains): Likewise.
21500         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
21501         refs_may_alias_p_1): Likewise.
21502         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
21503         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21504         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
21505         number_of_iterations_cond): Likewise.
21506         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21507         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
21508         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21509         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21510         * tree-vrp.c (extract_range_from_binary_expr_1,
21511         extract_range_from_unary_expr_1): Likewise.
21513 2015-06-20  Marek Polacek  <polacek@redhat.com>
21515         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21517 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
21519         PR target/66591
21520         * config/sh/sh.c (prepare_move_operands): Replace subreg
21521         index term with R0 for base and index addressing.
21523 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
21525         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21526         op1 is an fp zero.
21527         (movsf_aarch64): Change condition from register_operand to
21528         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
21529         load1.  Change type for alternative 7 to store1.
21530         (movdf_aarch64): Likewise.
21532 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
21534         * config/vax/vax.md: Adjust sign/zero extend patterns to
21535         handle SUBREGs in operands[1].
21537 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21539         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21540         of manually swapping.
21541         (expand_vec_perm_interleave2): Likewise.
21543 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
21545         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21546         reuse bounds created for abnormal ssa names.
21548 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
21550         * config/nvptx/nvptx.md (allocate_stack): Rename to...
21551         (allocate_stack_<mode>): ... this, and add :P on both
21552         match_operand and unspec.
21553         (allocate_stack): New expander.
21555 2015-06-19  Christian Bruel  <christian.bruel@st.com>
21557         PR target/66541
21558         PR target/52144
21559         * config/arm/arm.c (arm_set_current_function): Handle
21560         explicit default options.
21562 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21564         * config/i386/i386.md (*movsicc_noc_zext): New insn.
21565         (zero-extended cmove with mem peephole2): New pattern.
21566         (cmove with mem peephole2): Merge patterns.
21568 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21570         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21572 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
21574         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21575         * config/mips/mips.md (*madd4<mode>): Ditto.
21576         (*nmadd3<mode>) Ditto.
21577         (*nmadd4<mode>_fastmath): Ditto.
21578         (*nmadd3<mode>_fastmath): Ditto.
21579         (*nmsub4<mode>): Ditto.
21580         (*nmsub3<mode>): Ditto.
21581         (*nmsub4<mode>_fastmath): Ditto.
21582         (*nmsub3<mode>_fastmath): Ditto.
21584 2015-06-18  Michael Matz  <matz@suse.de>
21586         PR middle-end/66253
21587         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21588         grouped strided stores.
21589         (vectorizable_load): Don't use the DR from first_stmt in
21590         the non-SLP grouped strided case.
21592 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21594         PR target/66569
21595         * function.c (assign_bounds): Add arguments assign_regs,
21596         assign_special, assign_bt.
21597         (assign_parms): For vararg functions handle bounds in BT
21598         and special slots after incoming vararg bounds.
21600 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21602         PR middle-end/66568
21603         * cfgexpand.c (expand_return): Handle missing bounds.
21604         (expand_gimple_stmt_1): Likewise.
21605         * tree-chkp.c (chkp_expand_zero_bounds): New.
21606         * tree-chkp.h (chkp_expand_zero_bounds): New.
21608 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21610         PR middle-end/66567
21611         * ipa-chkp.c (chkp_maybe_create_clone): Require
21612         functions to be instrumentable.
21613         * tree-chkp.c (chkp_replace_function_pointer): Use
21614         chkp_instrumentable_p instead of attribute check.
21616 2015-06-18  Richard Biener  <rguenther@suse.de>
21618         PR tree-optimization/66510
21619         * tree-vect-stmts.c (vectorizable_load): Properly compute the
21620         number of vector loads for SLP permuted loads.
21621         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21622         check the stride for loop vectorization.
21623         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21624         vectorization factor.
21625         (vect_analyze_group_access): If the group size is not a power
21626         of two require a epilogue loop.
21627         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21628         compute and optimizing and alias test pruning after final
21629         vectorization factor computation.
21630         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21631         vector alignment.
21632         (vect_transform_slp_perm_load): Properly compute the original
21633         number of vector load stmts.
21635 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21637         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21638         "unlikely character , in @var" warning.
21640 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
21642         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21643         (ix86_function_arg_advance): Ditto.
21644         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
21646 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21648         * function.h (struct rtl_data): Remove struct and accessor macros.
21649         * emit-rtl.h (struct rtl_data): Relocate to here.
21650         * Makefile.in (GTFILES): Add emit-rtl.h.
21651         * df-core.c: Include emit-rtl.h.
21652         * genattrtab.c: Likewise.
21653         * genconditions.c: Likewise.
21654         * genpreds.c: Likewise.
21655         * genrecog.c: Likewise.
21656         * regcprop.c: Likewise.
21657         * resource.c: Likewise.
21658         * sched-rgn.c: Likewise.
21659         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21660         * config/i386/winnt.c: Likewise.
21662 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
21664         PR middle-end/66429
21665         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21666         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
21667         and has_force_vectorize_loops flags from cfun into
21668         child_cfun.
21669         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21670         if simduid is non-NULL.
21671         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21672         * passes.def (pass_simduid_cleanup): Add new pass after loop
21673         passes.
21674         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21675         indirection from htab argument's type.
21676         (shrink_simd_arrays): New function.
21677         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
21678         Don't call adjust_simduid_builtins if there are no loops.
21679         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21680         (pass_simduid_cleanup::execute): New method.
21681         (make_pass_simduid_cleanup): New function.
21683 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
21685         * tree-core.h (tree_target_option): Make opts field a pointer to a
21686         cl_target_option instead of an instance of the struct.
21687         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21688         the structure.
21689         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21690         TARGET_OPTION_NODE.
21691         (copy_node_stat): Allocate and copy struct cl_target_option.
21693 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21695         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21696         Remove conditional exposure of prototypes.
21697         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21698         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
21699         definitions in tree.h with functions.
21700         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21701         anon_aggrname_p.
21702         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21704 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
21706         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21707         (*cmp<mode>_signed): ... this.
21708         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21709         (*cmp<mode>_unsigned): ... this.  Remove %b.
21711 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21713         * coretypes.h: Include input.h and as-a.h.
21714         * rtl.h: Include input.h and as-a.h for generator files.
21715         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21716         * vec.c: Don't include diagnostic-core.h.
21717         * alias.c: Do not include input.h, line-map.h or is-a.h.
21718         * asan.c: Likewise.
21719         * attribs.c: Likewise.
21720         * auto-inc-dec.c: Likewise.
21721         * auto-profile.c: Likewise.
21722         * bb-reorder.c: Likewise.
21723         * bt-load.c: Likewise.
21724         * builtins.c: Likewise.
21725         * caller-save.c: Likewise.
21726         * calls.c: Likewise.
21727         * ccmp.c: Likewise.
21728         * cfg.c: Likewise.
21729         * cfganal.c: Likewise.
21730         * cfgbuild.c: Likewise.
21731         * cfgcleanup.c: Likewise.
21732         * cfgexpand.c: Likewise.
21733         * cfghooks.c: Likewise.
21734         * cfgloop.c: Likewise.
21735         * cfgloop.h: Likewise.
21736         * cfgloopanal.c: Likewise.
21737         * cfgloopmanip.c: Likewise.
21738         * cfgrtl.c: Likewise.
21739         * cgraph.c: Likewise.
21740         * cgraphbuild.c: Likewise.
21741         * cgraphclones.c: Likewise.
21742         * cgraphunit.c: Likewise.
21743         * cilk-common.c: Likewise.
21744         * combine-stack-adj.c: Likewise.
21745         * combine.c: Likewise.
21746         * compare-elim.c: Likewise.
21747         * convert.c: Likewise.
21748         * coverage.c: Likewise.
21749         * cppbuiltin.c: Likewise.
21750         * cprop.c: Likewise.
21751         * cse.c: Likewise.
21752         * cselib.c: Likewise.
21753         * data-streamer-in.c: Likewise.
21754         * data-streamer-out.c: Likewise.
21755         * data-streamer.c: Likewise.
21756         * dbxout.c: Likewise.
21757         * dce.c: Likewise.
21758         * ddg.c: Likewise.
21759         * debug.c: Likewise.
21760         * df-core.c: Likewise.
21761         * df-problems.c: Likewise.
21762         * df-scan.c: Likewise.
21763         * df.h: Likewise.
21764         * dfp.c: Likewise.
21765         * diagnostic-core.h: Likewise.
21766         * diagnostic.c: Likewise.
21767         * dojump.c: Likewise.
21768         * dominance.c: Likewise.
21769         * domwalk.c: Likewise.
21770         * double-int.c: Likewise.
21771         * dse.c: Likewise.
21772         * dumpfile.c: Likewise.
21773         * dumpfile.h: Likewise.
21774         * dwarf2asm.c: Likewise.
21775         * dwarf2cfi.c: Likewise.
21776         * dwarf2out.c: Likewise.
21777         * emit-rtl.c: Likewise.
21778         * et-forest.c: Likewise.
21779         * except.c: Likewise.
21780         * explow.c: Likewise.
21781         * expmed.c: Likewise.
21782         * expr.c: Likewise.
21783         * final.c: Likewise.
21784         * fixed-value.c: Likewise.
21785         * fold-const.c: Likewise.
21786         * function.c: Likewise.
21787         * fwprop.c: Likewise.
21788         * gcc-plugin.h: Likewise.
21789         * gcse.c: Likewise.
21790         * generic-match-head.c: Likewise.
21791         * ggc-page.c: Likewise.
21792         * gimple-builder.c: Likewise.
21793         * gimple-expr.c: Likewise.
21794         * gimple-fold.c: Likewise.
21795         * gimple-iterator.c: Likewise.
21796         * gimple-low.c: Likewise.
21797         * gimple-match-head.c: Likewise.
21798         * gimple-pretty-print.c: Likewise.
21799         * gimple-ssa-isolate-paths.c: Likewise.
21800         * gimple-ssa-strength-reduction.c: Likewise.
21801         * gimple-streamer-in.c: Likewise.
21802         * gimple-streamer-out.c: Likewise.
21803         * gimple-streamer.h: Likewise.
21804         * gimple-walk.c: Likewise.
21805         * gimple.c: Likewise.
21806         * gimplify-me.c: Likewise.
21807         * gimplify.c: Likewise.
21808         * godump.c: Likewise.
21809         * graph.c: Likewise.
21810         * graphite-blocking.c: Likewise.
21811         * graphite-dependences.c: Likewise.
21812         * graphite-interchange.c: Likewise.
21813         * graphite-isl-ast-to-gimple.c: Likewise.
21814         * graphite-optimize-isl.c: Likewise.
21815         * graphite-poly.c: Likewise.
21816         * graphite-scop-detection.c: Likewise.
21817         * graphite-sese-to-poly.c: Likewise.
21818         * graphite.c: Likewise.
21819         * haifa-sched.c: Likewise.
21820         * hw-doloop.c: Likewise.
21821         * ifcvt.c: Likewise.
21822         * init-regs.c: Likewise.
21823         * input.c: Likewise.
21824         * internal-fn.c: Likewise.
21825         * ipa-chkp.c: Likewise.
21826         * ipa-comdats.c: Likewise.
21827         * ipa-cp.c: Likewise.
21828         * ipa-devirt.c: Likewise.
21829         * ipa-icf-gimple.c: Likewise.
21830         * ipa-icf.c: Likewise.
21831         * ipa-inline-analysis.c: Likewise.
21832         * ipa-inline-transform.c: Likewise.
21833         * ipa-inline.c: Likewise.
21834         * ipa-polymorphic-call.c: Likewise.
21835         * ipa-profile.c: Likewise.
21836         * ipa-prop.c: Likewise.
21837         * ipa-pure-const.c: Likewise.
21838         * ipa-ref.c: Likewise.
21839         * ipa-reference.c: Likewise.
21840         * ipa-split.c: Likewise.
21841         * ipa-utils.c: Likewise.
21842         * ipa-visibility.c: Likewise.
21843         * ipa.c: Likewise.
21844         * ira-build.c: Likewise.
21845         * ira-color.c: Likewise.
21846         * ira-conflicts.c: Likewise.
21847         * ira-costs.c: Likewise.
21848         * ira-emit.c: Likewise.
21849         * ira-lives.c: Likewise.
21850         * ira.c: Likewise.
21851         * jump.c: Likewise.
21852         * langhooks.c: Likewise.
21853         * lcm.c: Likewise.
21854         * loop-doloop.c: Likewise.
21855         * loop-init.c: Likewise.
21856         * loop-invariant.c: Likewise.
21857         * loop-iv.c: Likewise.
21858         * loop-unroll.c: Likewise.
21859         * lower-subreg.c: Likewise.
21860         * lra-assigns.c: Likewise.
21861         * lra-coalesce.c: Likewise.
21862         * lra-constraints.c: Likewise.
21863         * lra-eliminations.c: Likewise.
21864         * lra-lives.c: Likewise.
21865         * lra-remat.c: Likewise.
21866         * lra-spills.c: Likewise.
21867         * lra.c: Likewise.
21868         * lto-cgraph.c: Likewise.
21869         * lto-compress.c: Likewise.
21870         * lto-opts.c: Likewise.
21871         * lto-section-in.c: Likewise.
21872         * lto-section-out.c: Likewise.
21873         * lto-streamer-in.c: Likewise.
21874         * lto-streamer-out.c: Likewise.
21875         * lto-streamer.c: Likewise.
21876         * mcf.c: Likewise.
21877         * mode-switching.c: Likewise.
21878         * modulo-sched.c: Likewise.
21879         * omega.c: Likewise.
21880         * omp-low.c: Likewise.
21881         * optabs.c: Likewise.
21882         * opts-global.c: Likewise.
21883         * opts.h: Likewise.
21884         * passes.c: Likewise.
21885         * plugin.c: Likewise.
21886         * postreload-gcse.c: Likewise.
21887         * postreload.c: Likewise.
21888         * predict.c: Likewise.
21889         * pretty-print.h: Likewise.
21890         * print-rtl.c: Likewise.
21891         * print-tree.c: Likewise.
21892         * profile.c: Likewise.
21893         * real.c: Likewise.
21894         * realmpfr.c: Likewise.
21895         * recog.c: Likewise.
21896         * ree.c: Likewise.
21897         * reg-stack.c: Likewise.
21898         * regcprop.c: Likewise.
21899         * reginfo.c: Likewise.
21900         * regrename.c: Likewise.
21901         * regstat.c: Likewise.
21902         * reload.c: Likewise.
21903         * reload1.c: Likewise.
21904         * reorg.c: Likewise.
21905         * resource.c: Likewise.
21906         * rtl-chkp.c: Likewise.
21907         * rtl-error.c: Likewise.
21908         * rtlanal.c: Likewise.
21909         * rtlhooks.c: Likewise.
21910         * sanopt.c: Likewise.
21911         * sched-deps.c: Likewise.
21912         * sched-ebb.c: Likewise.
21913         * sched-rgn.c: Likewise.
21914         * sched-vis.c: Likewise.
21915         * sdbout.c: Likewise.
21916         * sel-sched-dump.c: Likewise.
21917         * sel-sched-ir.c: Likewise.
21918         * sel-sched.c: Likewise.
21919         * sese.c: Likewise.
21920         * shrink-wrap.c: Likewise.
21921         * simplify-rtx.c: Likewise.
21922         * stack-ptr-mod.c: Likewise.
21923         * statistics.c: Likewise.
21924         * stmt.c: Likewise.
21925         * stor-layout.c: Likewise.
21926         * store-motion.c: Likewise.
21927         * streamer-hooks.c: Likewise.
21928         * stringpool.c: Likewise.
21929         * symtab.c: Likewise.
21930         * target-globals.c: Likewise.
21931         * targhooks.c: Likewise.
21932         * toplev.c: Likewise.
21933         * tracer.c: Likewise.
21934         * trans-mem.c: Likewise.
21935         * tree-affine.c: Likewise.
21936         * tree-browser.c: Likewise.
21937         * tree-call-cdce.c: Likewise.
21938         * tree-cfg.c: Likewise.
21939         * tree-cfgcleanup.c: Likewise.
21940         * tree-chkp-opt.c: Likewise.
21941         * tree-chkp.c: Likewise.
21942         * tree-chrec.c: Likewise.
21943         * tree-complex.c: Likewise.
21944         * tree-data-ref.c: Likewise.
21945         * tree-dfa.c: Likewise.
21946         * tree-diagnostic.c: Likewise.
21947         * tree-dump.c: Likewise.
21948         * tree-eh.c: Likewise.
21949         * tree-emutls.c: Likewise.
21950         * tree-if-conv.c: Likewise.
21951         * tree-inline.c: Likewise.
21952         * tree-into-ssa.c: Likewise.
21953         * tree-iterator.c: Likewise.
21954         * tree-loop-distribution.c: Likewise.
21955         * tree-nested.c: Likewise.
21956         * tree-nrv.c: Likewise.
21957         * tree-object-size.c: Likewise.
21958         * tree-outof-ssa.c: Likewise.
21959         * tree-parloops.c: Likewise.
21960         * tree-phinodes.c: Likewise.
21961         * tree-predcom.c: Likewise.
21962         * tree-pretty-print.c: Likewise.
21963         * tree-profile.c: Likewise.
21964         * tree-scalar-evolution.c: Likewise.
21965         * tree-sra.c: Likewise.
21966         * tree-ssa-address.c: Likewise.
21967         * tree-ssa-alias.c: Likewise.
21968         * tree-ssa-ccp.c: Likewise.
21969         * tree-ssa-coalesce.c: Likewise.
21970         * tree-ssa-copy.c: Likewise.
21971         * tree-ssa-copyrename.c: Likewise.
21972         * tree-ssa-dce.c: Likewise.
21973         * tree-ssa-dom.c: Likewise.
21974         * tree-ssa-dse.c: Likewise.
21975         * tree-ssa-forwprop.c: Likewise.
21976         * tree-ssa-ifcombine.c: Likewise.
21977         * tree-ssa-live.c: Likewise.
21978         * tree-ssa-loop-ch.c: Likewise.
21979         * tree-ssa-loop-im.c: Likewise.
21980         * tree-ssa-loop-ivcanon.c: Likewise.
21981         * tree-ssa-loop-ivopts.c: Likewise.
21982         * tree-ssa-loop-manip.c: Likewise.
21983         * tree-ssa-loop-niter.c: Likewise.
21984         * tree-ssa-loop-prefetch.c: Likewise.
21985         * tree-ssa-loop-unswitch.c: Likewise.
21986         * tree-ssa-loop.c: Likewise.
21987         * tree-ssa-math-opts.c: Likewise.
21988         * tree-ssa-operands.c: Likewise.
21989         * tree-ssa-phiopt.c: Likewise.
21990         * tree-ssa-phiprop.c: Likewise.
21991         * tree-ssa-pre.c: Likewise.
21992         * tree-ssa-propagate.c: Likewise.
21993         * tree-ssa-reassoc.c: Likewise.
21994         * tree-ssa-sccvn.c: Likewise.
21995         * tree-ssa-scopedtables.c: Likewise.
21996         * tree-ssa-sink.c: Likewise.
21997         * tree-ssa-strlen.c: Likewise.
21998         * tree-ssa-structalias.c: Likewise.
21999         * tree-ssa-tail-merge.c: Likewise.
22000         * tree-ssa-ter.c: Likewise.
22001         * tree-ssa-threadedge.c: Likewise.
22002         * tree-ssa-threadupdate.c: Likewise.
22003         * tree-ssa-uncprop.c: Likewise.
22004         * tree-ssa-uninit.c: Likewise.
22005         * tree-ssa.c: Likewise.
22006         * tree-ssanames.c: Likewise.
22007         * tree-stdarg.c: Likewise.
22008         * tree-streamer-in.c: Likewise.
22009         * tree-streamer-out.c: Likewise.
22010         * tree-streamer.c: Likewise.
22011         * tree-switch-conversion.c: Likewise.
22012         * tree-tailcall.c: Likewise.
22013         * tree-vect-data-refs.c: Likewise.
22014         * tree-vect-generic.c: Likewise.
22015         * tree-vect-loop-manip.c: Likewise.
22016         * tree-vect-loop.c: Likewise.
22017         * tree-vect-patterns.c: Likewise.
22018         * tree-vect-slp.c: Likewise.
22019         * tree-vect-stmts.c: Likewise.
22020         * tree-vectorizer.c: Likewise.
22021         * tree-vrp.c: Likewise.
22022         * tree.c: Likewise.
22023         * tsan.c: Likewise.
22024         * ubsan.c: Likewise.
22025         * valtrack.c: Likewise.
22026         * value-prof.c: Likewise.
22027         * var-tracking.c: Likewise.
22028         * varasm.c: Likewise.
22029         * varpool.c: Likewise.
22030         * vmsdbgout.c: Likewise.
22031         * vtable-verify.c: Likewise.
22032         * web.c: Likewise.
22033         * wide-int.cc: Likewise.
22034         * xcoffout.c: Likewise.
22035         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
22036         * common/common-targhooks.c: Likewise.
22037         * config/aarch64/aarch64-builtins.c: Likewise.
22038         * config/aarch64/aarch64.c: Likewise.
22039         * config/alpha/alpha.c: Likewise.
22040         * config/arc/arc.c: Likewise.
22041         * config/arm/aarch-common.c: Likewise.
22042         * config/arm/arm-builtins.c: Likewise.
22043         * config/arm/arm-c.c: Likewise.
22044         * config/arm/arm.c: Likewise.
22045         * config/avr/avr-c.c: Likewise.
22046         * config/avr/avr-log.c: Likewise.
22047         * config/avr/avr.c: Likewise.
22048         * config/bfin/bfin.c: Likewise.
22049         * config/c6x/c6x.c: Likewise.
22050         * config/cr16/cr16.c: Likewise.
22051         * config/cris/cris.c: Likewise.
22052         * config/darwin-c.c: Likewise.
22053         * config/darwin.c: Likewise.
22054         * config/default-c.c: Likewise.
22055         * config/epiphany/epiphany.c: Likewise.
22056         * config/epiphany/mode-switch-use.c: Likewise.
22057         * config/epiphany/resolve-sw-modes.c: Likewise.
22058         * config/fr30/fr30.c: Likewise.
22059         * config/frv/frv.c: Likewise.
22060         * config/ft32/ft32.c: Likewise.
22061         * config/glibc-c.c: Likewise.
22062         * config/h8300/h8300.c: Likewise.
22063         * config/i386/i386-c.c: Likewise.
22064         * config/i386/i386.c: Likewise.
22065         * config/i386/msformat-c.c: Likewise.
22066         * config/i386/winnt-cxx.c: Likewise.
22067         * config/i386/winnt-stubs.c: Likewise.
22068         * config/i386/winnt.c: Likewise.
22069         * config/ia64/ia64-c.c: Likewise.
22070         * config/ia64/ia64.c: Likewise.
22071         * config/iq2000/iq2000.c: Likewise.
22072         * config/lm32/lm32.c: Likewise.
22073         * config/m32c/m32c-pragma.c: Likewise.
22074         * config/m32c/m32c.c: Likewise.
22075         * config/m32r/m32r.c: Likewise.
22076         * config/m68k/m68k.c: Likewise.
22077         * config/mcore/mcore.c: Likewise.
22078         * config/mep/mep-pragma.c: Likewise.
22079         * config/mep/mep.c: Likewise.
22080         * config/microblaze/microblaze-c.c: Likewise.
22081         * config/microblaze/microblaze.c: Likewise.
22082         * config/mips/mips.c: Likewise.
22083         * config/mmix/mmix.c: Likewise.
22084         * config/mn10300/mn10300.c: Likewise.
22085         * config/moxie/moxie.c: Likewise.
22086         * config/msp430/msp430-c.c: Likewise.
22087         * config/msp430/msp430.c: Likewise.
22088         * config/nds32/nds32-cost.c: Likewise.
22089         * config/nds32/nds32-fp-as-gp.c: Likewise.
22090         * config/nds32/nds32-intrinsic.c: Likewise.
22091         * config/nds32/nds32-isr.c: Likewise.
22092         * config/nds32/nds32-md-auxiliary.c: Likewise.
22093         * config/nds32/nds32-memory-manipulation.c: Likewise.
22094         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22095         * config/nds32/nds32-predicates.c: Likewise.
22096         * config/nds32/nds32.c: Likewise.
22097         * config/nios2/nios2.c: Likewise.
22098         * config/nvptx/nvptx.c: Likewise.
22099         * config/pa/pa.c: Likewise.
22100         * config/pdp11/pdp11.c: Likewise.
22101         * config/rl78/rl78-c.c: Likewise.
22102         * config/rl78/rl78.c: Likewise.
22103         * config/rs6000/rs6000-c.c: Likewise.
22104         * config/rs6000/rs6000.c: Likewise.
22105         * config/rx/rx.c: Likewise.
22106         * config/s390/s390-c.c: Likewise.
22107         * config/s390/s390.c: Likewise.
22108         * config/sh/sh-c.c: Likewise.
22109         * config/sh/sh-mem.cc: Likewise.
22110         * config/sh/sh.c: Likewise.
22111         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22112         * config/sh/sh_treg_combine.cc: Likewise.
22113         * config/sol2-c.c: Likewise.
22114         * config/sol2-cxx.c: Likewise.
22115         * config/sol2-stubs.c: Likewise.
22116         * config/sol2.c: Likewise.
22117         * config/sparc/sparc-c.c: Likewise.
22118         * config/sparc/sparc.c: Likewise.
22119         * config/spu/spu-c.c: Likewise.
22120         * config/spu/spu.c: Likewise.
22121         * config/stormy16/stormy16.c: Likewise.
22122         * config/tilegx/mul-tables.c: Likewise.
22123         * config/tilegx/tilegx-c.c: Likewise.
22124         * config/tilegx/tilegx.c: Likewise.
22125         * config/tilepro/mul-tables.c: Likewise.
22126         * config/tilepro/tilepro-c.c: Likewise.
22127         * config/tilepro/tilepro.c: Likewise.
22128         * config/v850/v850-c.c: Likewise.
22129         * config/v850/v850.c: Likewise.
22130         * config/vax/vax.c: Likewise.
22131         * config/visium/visium.c: Likewise.
22132         * config/vms/vms-c.c: Likewise.
22133         * config/vms/vms.c: Likewise.
22134         * config/vxworks.c: Likewise.
22135         * config/winnt-c.c: Likewise.
22136         * config/xtensa/xtensa.c: Likewise.
22138 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
22140         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
22141         function.
22142         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
22144 2015-06-17  Richard Biener  <rguenther@suse.de>
22146         PR tree-optimization/66251
22147         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
22148         stmts for SLP strided stores.
22150         Revert
22151         2015-05-22  Richard Biener  <rguenther@suse.de>
22153         PR tree-optimization/66251
22154         * tree-vect-stmts.c (vectorizable_conversion): Properly
22155         set STMT_VINFO_VEC_STMT even for the SLP case.
22157         2015-05-26  Michael Matz  <matz@suse.de>
22159         PR middle-end/66251
22160         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
22161         STMT_VINFO_VEC_STMT, also with SLP.
22163 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
22165         PR target/56766
22166         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
22167         (*avx_addsubv4df3_1s): Ditto.
22168         (*sse3_addsubv2df3_1): Ditto.
22169         (*sse3_addsubv2df3_1s): Ditto.
22170         (*avx_addsubv8sf3_1): Ditto.
22171         (*avx_addsubv8sf3_1s): Ditto.
22172         (*sse3_addsubv4sf3_1): Ditto.
22173         (*sse3_addsubv4sf3_1s): Ditto.
22175 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
22177         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
22178         (SYSROOT_SUFFIX_SPEC): Update.
22179         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
22180         (STARTFILE_PREFIX_SPEC): Update.
22181         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
22182         (MULTILIB_REQUIRED): New.
22183         (MULTILIB_OSDIRNAMES): New.
22184         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
22185         (MULTILIB_REQUIRED): New.
22186         (MULTILIB_OSDIRNAMES): New.
22188 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
22190         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
22191         * config/aarch64/aarch64-options-extensions.def: Update "fP",
22192         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
22193         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
22194         (AARCH64_FL_PAN): New.
22195         (AARCH64_FL_LOR): New.
22196         (AARCH64_FL_RDMA): New.
22197         (AARCH64_FL_FOR_ARCH8_1): New.
22198         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
22199         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
22201 2015-06-16  Martin Liska  <mliska@suse.cz>
22203         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
22204         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
22205         guard.
22207 2015-06-16  Richard Biener  <rguenther@suse.de>
22209         * tree-vect-stmts.c (vectorizable_store): Adjust.
22210         (vectorizable_load): Likewise.
22211         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22212         Simplify.
22213         (vect_create_data_ref_ptr): Likewise.
22214         (bump_vector_ptr): Adjust.
22216 2015-06-16  Richard Biener  <rguenther@suse.de>
22218         * tree-vect-stmts.c (vectorizable_load): Properly start loads
22219         with the first element if this is grouped loads.
22221 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
22223         * config/arm/arm-protos.h (struct tune_params): Rename
22224         log_op_non_sc to log_op_non_short_circuit, and rename enum
22225         values to expand SC to SHORT_CIRCUIT.
22226         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
22227         to LOG_OP_NON_SHORT_CIRCUIT.
22228         (arm_fastmul_tune):Likewise
22229         (arm_strongarm_tune): Likewise.
22230         (arm_xscale_tune): Likewise.
22231         (arm_9e_tune): Likewise.
22232         (arm_marvell_pj4_tune): Likewise.
22233         (arm_v6t2_tune): Likewise.
22234         (arm_cortex_tune): Likewise.
22235         (arm_cortex_a8_tune): Likewise.
22236         (arm_cortex_a7_tune): Likewise.
22237         (arm_cortex_a15_tune): Likewise.
22238         (arm_cortex_a53_tune): Likewise.
22239         (arm_cortex_a57_tune): Likewise.
22240         (arm_xgene1_tune): Likewise.
22241         (arm_cortex_a5_tune): Likewise.
22242         (arm_cortex_a9_tune): Likewise.
22243         (arm_cortex_a12_tune): Likewise.
22244         (arm_v7m_tune): Likewise.
22245         (arm_cortex_m7_tune): Likewise.
22246         (arm_v6m_tune): Likewise.
22247         (arm_fa726te_tune): Likewise.
22249 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
22251         * altivec.md: Delete UNSPEC_VMLADDUHM.
22252         (mulv4si3_p8): New pattern.
22253         (mulv4si3): Use it for POWER8.
22254         (mulv8hi3): Use vmladduhm with zero addend.
22255         (altivec_vmladduhm): Descriptive RTL.
22257 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
22259         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
22260         to use neon_move instead of mov_imm.
22261         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
22262         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
22264         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
22265         aarch64_float_const_zero_rtx_p check before TFmode check.
22266         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
22267         an fp zero.
22268         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
22269         code and attributes to match.  Change condition from register_operand
22270         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
22271         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
22272         to store2.
22274 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
22276         PR debug/66535
22277         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
22278         there is no parent.
22280 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
22282         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
22283         HOST_WIDE_INT parameter.
22285 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
22287         PR ipa/66181
22288         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
22289         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
22290         TYPE_NO_FORCE_BLK.
22291         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
22293 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
22295         * rtl.h (classify_insn): Declare.
22296         * emit-rtl.c (classify_insn): Move to...
22297         * rtl.c: ...here and add generator support.
22298         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
22299         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
22300         * genemit.c (gen_emit_seq): New function.
22301         (gen_expand, gen_split): Use it.
22303 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
22305         * tree.c (make_vector_stat): Fix comment to state that the
22306         function returns a VECTOR_CST.
22308 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
22310         * gensupport.h (add_implicit_parallel): Declare.
22311         * genrecog.c (add_implicit_parallel): Move to...
22312         * gensupport.c (add_implicit_parallel): ...here.
22313         (process_one_cond_exec): Use it.
22314         * genemit.c (gen_insn): Likewise.
22316 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
22318         PR bootstrap/66448
22319         * passes.c (rest_of_decl_compilation): Do not register globals for
22320         early debug if they are declared in built-ins.
22322 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
22324         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
22326 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22328         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
22329         manually swapping.
22330         (noce_try_cmove_arith): Likewise.
22331         (noce_get_alt_condition): Likewise.
22333 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22335         * common/config/i386/i386-common.c
22336         (OPTION_MASK_ISA_MWAITX_SET): New.
22337         (ix86_handle_option): Handle mwaitx.
22338         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
22339         (x86_64-*-*): Likewise.
22340         * config/i386/mwaitxintrin.h: New header.
22341         * config/i386/cpuid.h (bit_MWAITX):  Define.
22342         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22343         MWAITX support.
22344         * config/i386/i386.opt (mwaitx): New.
22345         * config/i386/i386-builtin-types.def
22346         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
22347         * config/i386/i386-c.c: Define __MWAITX__ if needed.
22348         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
22349         (PTA_MWAITX): New.
22350         (ix86_option_override_internal): Handle new option.
22351         (processor_alias_table): Added PTA_MWAITX.
22352         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
22353         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
22354         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
22355         IX86_BUILTIN_MONITORX  built-ins.
22356         * config/i386/i386.h (TARGET_MWAITX): New.
22357         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
22358         UNSPEC_MONITORX.
22359         (mwaitx):  New pattern.
22360         (monitorx_<mode>): New pattern.
22361         * config/i386/x86intrin.h: Include mwaitxintrin.h.
22362         * doc/extend.texi: Document monitorx and mwaitx builtins.
22363         * doc/invoke.texi: Document -mmwaitx option.
22365 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
22367         * emit-rtl.c (need_atomic_barrier_p): Mask model with
22368         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
22370 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22372         * dbxout.c (xcoff_debug_hooks): Provide a function for
22373         register_main_translation_unit hook.
22375 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
22377         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22378         variants cases from switch.
22379         (rs6000_post_atomic_barrier): Same.
22380         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22381         (rs6000_expand_atomic_exchange): Same.
22382         (rs6000_expand_atomic_op): Same.
22383         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22384         SYNC variants cases from switch.
22385         (atomic_load): Same.
22386         (atomic_store): Same.
22388 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
22390         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22391         CONST_INT for goto.
22393 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
22395         PR bootstrap/66448
22396         * dwarf2out.c (check_die): Check for common duplicate attributes.
22397         (add_location_or_const_value_attribute): Do not add duplicate
22398         attributes.
22399         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22400         time around.
22401         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22402         (gen_type_die_with_usage): Call check_die.
22403         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22405 2015-06-11  Jason Merrill  <jason@redhat.com>
22407         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22408         dies.
22410 2015-06-11  Marek Polacek  <polacek@redhat.com>
22412         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22414 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
22416         PR bootstrap/66252
22417         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22418         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22419         (*addx_extend_sp32): Fix pasto.
22420         (*subx_extend): Rename into...
22421         (*subx_extend_sp32): ...this.
22422         (*adddi3_extend_sp32): Add earlyclobber.
22423         (*subdi3_insn_sp32): Likewise.
22424         (*subdi3_extend_sp32): Likewise.
22425         (*and_not_di_sp32): Likewise.
22426         (*or_not_di_sp32): Likewise.
22427         (*xor_not_di_sp32): Likewise.
22428         (*negdi2_sp32): Likewise.
22429         (*one_cmpldi2_sp32): Likewise.
22431 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
22433         * debug.h (struct gcc_debug_hooks): Add a
22434         register_main_translation_unit hook.
22435         * debug.c (do_nothing_debug_hooks): Provide a function for this
22436         new hook.
22437         * dbxout.c (dbx_debug_hooks): Likewise.
22438         * sdbout.c (sdb_debug_hooks): Likewise.
22439         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22440         * dwarf2out.c (main_translation_unit): New global variable.
22441         (dwarf2out_register_main_translation_unit): New function
22442         implementing the new hook.
22443         (dwarf2_debug_hooks): Assign
22444         dwarf2out_register_main_translation_unit to this new hook.
22445         (dwarf2out_init): Associate any main translation unit to
22446         comp_unit_die ().
22448 2015-06-11  Marek Polacek  <polacek@redhat.com>
22450         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22452 2015-06-11  Marek Polacek  <polacek@redhat.com>
22454         * match.pd: Use single_use throughout.
22456 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22458         * config/arm/arm.c (arm_option_params_internal): When optimising
22459         for speed set max_insns_skipped when arm_restrict_it.
22461 2015-06-11  Christian Bruel  <christian.bruel@st.com>
22463         PR target/52144
22464         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22465          macros in ...
22466         (arm_cpu_builtins): New function.
22467         (arm_pragma_target_parse): Call arm_cpu_builtins.
22468         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22469         (arm_register_target_pragmas): Likewise.
22470         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
22471          Call arm_register_target_pragmas.
22472         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
22473         (arm_pragma_target_parse): Likewise.
22475 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22477         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
22478         of the second operand.
22480 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
22482         PR target/66473
22483         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
22484         to prepare mask operand for AVX512 modes.
22486 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22488         PR target/66474
22489         * doc/md.texi (Machine Constraints): Document that on the PowerPC
22490         if you use a constraint that targets a VSX register, you must use
22491         %x<n> in the template.
22493 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
22495         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
22496         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
22497         (define_insn "trap"): New definition.
22499 2015-06-10  Richard Biener  <rguenther@suse.de>
22501         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
22502         out from ...
22503         (vect_supported_load_permutation_p): ... here.  Handle
22504         supportable permutations in reductions.
22505         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
22506         for vectorizing strided group loads.
22508 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
22510         PR target/66470
22511         * config/i386/i386.c (ix86_split_long_move): For collisions
22512         involving direct tls segment refs, move the UNSPEC_TP possibly
22513         wrapped in ZERO_EXTEND out of the address for lea, to each of
22514         the memory loads.
22516 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22518         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22519         dmb sy. Adjust tabs.
22521 2015-06-10  Tom de Vries  <tom@codesourcery.com>
22523         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22525 2015-06-10  Martin Liska  <mliska@suse.cz>
22527         PR bootstrap/66471
22528         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22529         all enum values in mem_alloc_origin.
22530         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22531         name.
22532         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22533         * bitmap.c (bitmap_register): Likewise.
22534         (dump_bitmap_statistics): Likewise.
22535         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22536         (ggc_record_overhead): Likewise.
22537         * hash-map.h: Likewise.
22538         * hash-set.h: Likewise.
22539         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22540         * hash-table.h: Likewise.
22541         * vec.c (vec_prefix::register_overhead): Likewise.
22542         (vec_prefix::release_overhead): Likewise.
22543         (dump_vec_loc_statistics): Likewise.
22545 2015-06-09  Christian Bruel  <christian.bruel@st.com>
22547         PR target/52144
22548         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22549         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22550         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22551         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22552         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22553         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22554         (arm_valid_target_attribute_p): Likewise.
22555         (arm_set_current_function, arm_can_inline_p): Likewise.
22556         (arm_valid_target_attribute_rec): Likewise.
22557         (arm_previous_fndecl): New variable.
22558         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22559         (TARGET_CAN_INLINE_P): Define.
22560         (arm_asm_trampoline_template): Emit mode.
22561         (arm_file_start): Don't set unified syntax.
22562         (arm_declare_function_name): Set unified syntax and mode.
22563         (arm_option_override): Init target_option_default_node.
22564         and target_option_current_node.
22565         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22566         (*call_symbol): Likewise.
22567         * doc/extend.texi: Document ARM/Thumb target attribute.
22568         * doc/invoke.texi: Likewise.
22570 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22572         Revert:
22573         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22574         PR rtl-optimization/64164
22575         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22576         * tree-ssa-copyrename.c: Removed.
22577         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22578         -ftree-coalesce-vars.
22579         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22580         * common.opt (ftree-copyrename): Ignore.
22581         (ftree-coalesce-inlined-vars): Likewise.
22582         * doc/invoke.texi: Remove the ignored options above.
22583         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22584         * tree-ssa-coalesce.h: ... here.
22585         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22586         headers required by it.
22587         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22588         across variables when flag_tree_coalesce_vars.  Check register
22589         use and promoted modes to allow coalescing.  Moved to
22590         tree-ssa-coalesce.c.
22591         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22592         with its member functions to tree-ssa-coalesce.c.
22593         (var_map_base_init): Likewise.  Renamed to
22594         compute_samebase_partition_bases.
22595         (partition_view_normal): Drop want_bases parameter.
22596         (partition_view_bitmap): Likewise.
22597         * tree-ssa-live.h: Adjust declarations.
22598         * tree-ssa-coalesce.c: Include explow.h.
22599         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22600         default defs at the entry point.
22601         (dump_part_var_map): New.
22602         (compute_optimized_partition_bases): New, called by...
22603         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22604         of compute_samebase_partition_bases.  Adjust.
22605         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22606         * cfgexpand.c (leader_merge): New.
22607         (get_rtl_for_parm_ssa_default_def): New.
22608         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22609         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22610         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22611         redundant MEM attr setting.
22612         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22613         from...
22614         (expand_one_stack_var): ... this.  New wrapper to check and
22615         skip already expanded SSA partitions.
22616         (record_alignment_for_reg_var): New, factored out of...
22617         (expand_one_var): ... this.
22618         (expand_one_ssa_partition): New.
22619         (adjust_one_expanded_partition_var): New.
22620         (expand_one_register_var): Check and skip already expanded SSA
22621         partitions.
22622         (expand_used_vars): Don't create DECLs for anonymous SSA
22623         names.  Expand all SSA partitions, then adjust all SSA names.
22624         (pass::execute): Replace the loops that set
22625         SA.partition_to_pseudo from partition leaders and cleared
22626         DECL_RTL for multi-location variables, and that which used to
22627         rename vars and set attrs, with one that clears DECL_RTL and
22628         checks that PARMs and RESULTs default_defs match DECL_RTL.
22629         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22630         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22631         * explow.c (promote_ssa_mode): New.
22632         * explow.h (promote_ssa_mode): Declare.
22633         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22634         * function.c: Include cfgexpand.h.
22635         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22636         (use_register_for_parm_decl): Wrapper for the above to
22637         special-case the result_ptr.
22638         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22639         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22640         multiple locations.
22641         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22642         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22643         (assign_parm_setup_block): Prefer SSA-assigned location.
22644         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22645         if stack_parm is NULL.
22646         (assign_parm_setup_stack): Prefer SSA-assigned location.
22647         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22648         rtl before testing for pointer bounds.  Special-case result_ptr.
22649         (expand_function_start): Maybe reset DECL_RTL of result.
22650         Prefer SSA-assigned location for result and static chain.
22651         Factor out DECL_RESULT and SET_DECL_RTL.
22652         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22653         anonymous SSA names.  Use promote_ssa_mode.
22654         (get_temp_reg): Likewise.
22655         (remove_ssa_form): Adjust.
22656         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22657         and get its reg_usage for reg invalidation.
22658         (compute_bb_dataflow): Pass it insn.
22659         (emit_notes_in_bb): Likewise.
22660         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22661         fail assert on conversion between unsigned types.
22663 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22665         PR tree-optimization/65460
22666         * omp-low.c (expand_omp_target): Set parallelized_function on
22667         cgraph_node for child_fn.
22669 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22671         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22672         parallelized_function before add_new_function.
22674 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
22676         * gcc-plugin.h: Move decls to plugin.h and include it.
22677         * plugin.h: Relocate decls from gcc-plugin.h
22678         * ggc-page.c: Include required header files.
22679         * passes.c: Likewise.
22680         * cgraphunit.c: Likewise.
22682 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22684         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22686 2015-06-09  Jason Merrill  <jason@redhat.com>
22688         PR bootstrap/66448
22689         * toplev.c (check_global_declaration): Don't warn about a clone.
22691 2015-06-09  Marek Polacek  <polacek@redhat.com>
22693         PR tree-optimization/66299
22694         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22695         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22696         patterns.
22698 2015-06-09  Richard Biener  <rguenther@suse.de>
22700         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22701         (vect_analyze_slp_instance): Instead do not falsely drop
22702         load permutations.
22704 2015-06-09  Richard Biener  <rguenther@suse.de>
22706         PR middle-end/66423
22707         * match.pd: Handle A % (unsigned)(1 << B).
22709 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
22711         * varasm.c (output_object_block_htab): Remove.
22712         (output_object_block_compare): New.
22713         (output_object_blocks): Sort named object_blocks before outputting
22714         them.
22716 2015-06-09  Richard Biener  <rguenther@suse.de>
22718         PR tree-optimization/66419
22719         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22720         consider GROUP_GAP when detecting a perfect subchain.
22722 2015-06-09  Nick Clifton  <nickc@redhat.com>
22724         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22725         place read only data in the .frodata section.
22727 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
22729         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22730         (atomic_store<mode>): Likewise.
22732 2015-06-09  Richard Biener  <rguenther@suse.de>
22734         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22736 2015-06-09  Richard Biener  <rguenther@suse.de>
22738         PR middle-end/66413
22739         * tree-inline.c (insert_init_debug_bind): Unshare value.
22741 2015-06-09  Richard Biener  <rguenther@suse.de>
22743         PR tree-optimization/66396
22744         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22745         Rename virtual operands.
22747 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22749         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22750         always return false.
22752 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22754         PR rtl-optimization/64164
22755         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22756         * tree-ssa-copyrename.c: Removed.
22757         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22758         -ftree-coalesce-vars.
22759         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22760         * common.opt (ftree-copyrename): Ignore.
22761         (ftree-coalesce-inlined-vars): Likewise.
22762         * doc/invoke.texi: Remove the ignored options above.
22763         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22764         * tree-ssa-coalesce.h: ... here.
22765         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22766         headers required by it.
22767         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22768         across variables when flag_tree_coalesce_vars.  Check register
22769         use and promoted modes to allow coalescing.  Moved to
22770         tree-ssa-coalesce.c.
22771         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22772         with its member functions to tree-ssa-coalesce.c.
22773         (var_map_base_init): Likewise.  Renamed to
22774         compute_samebase_partition_bases.
22775         (partition_view_normal): Drop want_bases parameter.
22776         (partition_view_bitmap): Likewise.
22777         * tree-ssa-live.h: Adjust declarations.
22778         * tree-ssa-coalesce.c: Include explow.h.
22779         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22780         default defs at the entry point.
22781         (dump_part_var_map): New.
22782         (compute_optimized_partition_bases): New, called by...
22783         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22784         of compute_samebase_partition_bases.  Adjust.
22785         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22786         * cfgexpand.c (leader_merge): New.
22787         (get_rtl_for_parm_ssa_default_def): New.
22788         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22789         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22790         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22791         redundant MEM attr setting.
22792         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22793         from...
22794         (expand_one_stack_var): ... this.  New wrapper to check and
22795         skip already expanded SSA partitions.
22796         (record_alignment_for_reg_var): New, factored out of...
22797         (expand_one_var): ... this.
22798         (expand_one_ssa_partition): New.
22799         (adjust_one_expanded_partition_var): New.
22800         (expand_one_register_var): Check and skip already expanded SSA
22801         partitions.
22802         (expand_used_vars): Don't create DECLs for anonymous SSA
22803         names.  Expand all SSA partitions, then adjust all SSA names.
22804         (pass::execute): Replace the loops that set
22805         SA.partition_to_pseudo from partition leaders and cleared
22806         DECL_RTL for multi-location variables, and that which used to
22807         rename vars and set attrs, with one that clears DECL_RTL and
22808         checks that PARMs and RESULTs default_defs match DECL_RTL.
22809         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22810         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22811         * explow.c (promote_ssa_mode): New.
22812         * explow.h (promote_ssa_mode): Declare.
22813         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22814         * function.c: Include cfgexpand.h.
22815         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22816         (use_register_for_parm_decl): Wrapper for the above to
22817         special-case the result_ptr.
22818         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22819         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22820         multiple locations.
22821         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22822         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22823         (assign_parm_setup_block): Prefer SSA-assigned location.
22824         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22825         if stack_parm is NULL.
22826         (assign_parm_setup_stack): Prefer SSA-assigned location.
22827         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22828         rtl before testing for pointer bounds.  Special-case result_ptr.
22829         (expand_function_start): Maybe reset DECL_RTL of result.
22830         Prefer SSA-assigned location for result and static chain.
22831         Factor out DECL_RESULT and SET_DECL_RTL.
22832         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22833         anonymous SSA names.  Use promote_ssa_mode.
22834         (get_temp_reg): Likewise.
22835         (remove_ssa_form): Adjust.
22836         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22837         and get its reg_usage for reg invalidation.
22838         (compute_bb_dataflow): Pass it insn.
22839         (emit_notes_in_bb): Likewise.
22840         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22841         fail assert on conversion between unsigned types.
22843 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22845         PR debug/58315
22846         * tree-inline.c (reset_debug_binding): New.
22847         (reset_debug_bindings): Likewise.
22848         (expand_call_inline): Call it.
22850 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22852         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22853         TYPE_STRING_FLAG.
22855 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22857         * lto-streamer-out.c (lto_output_location): Stream
22858         reserved locations correctly.
22859         * lto-streamer-in.c (lto_output_location): Likewise.
22861 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
22863         * coretypes.h: Include hash-table.h and hash-set.h for host files.
22864         * ggc.h: Don't include statistics.h>
22865         * hash-map.h: Remove all includes.
22866         * hash-set.h: Likewise.
22867         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22868         the include list. Remove <new>.
22869         * inchash.h: Remove all includes.
22870         * mem-stats.h: Likewise.
22871         * vec.h: No special processing for generators or ggc.
22872         * alias.c : Adjust include files.
22873         * alloc-pool.c : Likewise.
22874         * alloc-pool.h : Likewise.
22875         * asan.c : Likewise.
22876         * attribs.c : Likewise.
22877         * auto-inc-dec.c : Likewise.
22878         * auto-profile.c : Likewise.
22879         * bb-reorder.c : Likewise.
22880         * bitmap.c : Likewise.
22881         * bitmap.h : Likewise.
22882         * bt-load.c : Likewise.
22883         * builtins.c : Likewise.
22884         * caller-save.c : Likewise.
22885         * calls.c : Likewise.
22886         * ccmp.c : Likewise.
22887         * cfg.c : Likewise.
22888         * cfganal.c : Likewise.
22889         * cfgbuild.c : Likewise.
22890         * cfgcleanup.c : Likewise.
22891         * cfgexpand.c : Likewise.
22892         * cfghooks.c : Likewise.
22893         * cfgloop.c : Likewise.
22894         * cfgloop.h : Likewise.
22895         * cfgloopanal.c : Likewise.
22896         * cfgloopmanip.c : Likewise.
22897         * cfgrtl.c : Likewise.
22898         * cgraph.c : Likewise.
22899         * cgraphbuild.c : Likewise.
22900         * cgraphclones.c : Likewise.
22901         * cgraphunit.c : Likewise.
22902         * cilk-common.c : Likewise.
22903         * combine-stack-adj.c : Likewise.
22904         * combine.c : Likewise.
22905         * compare-elim.c : Likewise.
22906         * context.c : Likewise.
22907         * convert.c : Likewise.
22908         * coverage.c : Likewise.
22909         * cppbuiltin.c : Likewise.
22910         * cprop.c : Likewise.
22911         * cse.c : Likewise.
22912         * cselib.c : Likewise.
22913         * data-streamer-in.c : Likewise.
22914         * data-streamer-out.c : Likewise.
22915         * data-streamer.c : Likewise.
22916         * data-streamer.h : Likewise.
22917         * dbxout.c : Likewise.
22918         * dce.c : Likewise.
22919         * ddg.c : Likewise.
22920         * debug.c : Likewise.
22921         * df-core.c : Likewise.
22922         * df-problems.c : Likewise.
22923         * df-scan.c : Likewise.
22924         * df.h : Likewise.
22925         * dfp.c : Likewise.
22926         * dojump.c : Likewise.
22927         * dominance.c : Likewise.
22928         * domwalk.c : Likewise.
22929         * double-int.c : Likewise.
22930         * dse.c : Likewise.
22931         * dumpfile.c : Likewise.
22932         * dwarf2asm.c : Likewise.
22933         * dwarf2cfi.c : Likewise.
22934         * dwarf2out.c : Likewise.
22935         * emit-rtl.c : Likewise.
22936         * et-forest.c : Likewise.
22937         * except.c : Likewise.
22938         * except.h : Likewise.
22939         * explow.c : Likewise.
22940         * expmed.c : Likewise.
22941         * expr.c : Likewise.
22942         * final.c : Likewise.
22943         * fixed-value.c : Likewise.
22944         * fold-const.c : Likewise.
22945         * function.c : Likewise.
22946         * fwprop.c : Likewise.
22947         * gcc-plugin.h : Likewise.
22948         * gcc.c : Likewise.
22949         * gcse-common.c : Likewise.
22950         * gcse.c : Likewise.
22951         * genattrtab.c : Likewise.
22952         * genautomata.c : Likewise.
22953         * genconditions.c : Likewise.
22954         * genemit.c : Likewise.
22955         * generic-match-head.c : Likewise.
22956         * genextract.c : Likewise.
22957         * gengtype-state.c : Likewise.
22958         * gengtype.c : Likewise.
22959         * genhooks.c : Likewise.
22960         * genmatch.c : Likewise.
22961         * genmodes.c : Likewise.
22962         * genrecog.c : Likewise.
22963         * gensupport.c : Likewise.
22964         * ggc-common.c : Likewise.
22965         * ggc-internal.h : Likewise.
22966         * ggc-none.c : Likewise.
22967         * ggc-page.c : Likewise.
22968         * gimple-builder.c : Likewise.
22969         * gimple-expr.c : Likewise.
22970         * gimple-fold.c : Likewise.
22971         * gimple-iterator.c : Likewise.
22972         * gimple-low.c : Likewise.
22973         * gimple-match-head.c : Likewise.
22974         * gimple-pretty-print.c : Likewise.
22975         * gimple-ssa-isolate-paths.c : Likewise.
22976         * gimple-ssa-strength-reduction.c : Likewise.
22977         * gimple-ssa.h : Likewise.
22978         * gimple-streamer-in.c : Likewise.
22979         * gimple-streamer-out.c : Likewise.
22980         * gimple-streamer.h : Likewise.
22981         * gimple-walk.c : Likewise.
22982         * gimple.c : Likewise.
22983         * gimplify-me.c : Likewise.
22984         * gimplify.c : Likewise.
22985         * godump.c : Likewise.
22986         * graph.c : Likewise.
22987         * graphds.c : Likewise.
22988         * graphite-blocking.c : Likewise.
22989         * graphite-dependences.c : Likewise.
22990         * graphite-interchange.c : Likewise.
22991         * graphite-isl-ast-to-gimple.c : Likewise.
22992         * graphite-optimize-isl.c : Likewise.
22993         * graphite-poly.c : Likewise.
22994         * graphite-scop-detection.c : Likewise.
22995         * graphite-sese-to-poly.c : Likewise.
22996         * graphite.c : Likewise.
22997         * haifa-sched.c : Likewise.
22998         * hard-reg-set.h : Likewise.
22999         * hw-doloop.c : Likewise.
23000         * ifcvt.c : Likewise.
23001         * inchash.c : Likewise.
23002         * incpath.c : Likewise.
23003         * init-regs.c : Likewise.
23004         * input.c : Likewise.
23005         * internal-fn.c : Likewise.
23006         * ipa-chkp.c : Likewise.
23007         * ipa-comdats.c : Likewise.
23008         * ipa-cp.c : Likewise.
23009         * ipa-devirt.c : Likewise.
23010         * ipa-icf-gimple.c : Likewise.
23011         * ipa-icf.c : Likewise.
23012         * ipa-inline-analysis.c : Likewise.
23013         * ipa-inline-transform.c : Likewise.
23014         * ipa-inline.c : Likewise.
23015         * ipa-polymorphic-call.c : Likewise.
23016         * ipa-profile.c : Likewise.
23017         * ipa-prop.c : Likewise.
23018         * ipa-pure-const.c : Likewise.
23019         * ipa-ref.c : Likewise.
23020         * ipa-reference.c : Likewise.
23021         * ipa-split.c : Likewise.
23022         * ipa-utils.c : Likewise.
23023         * ipa-visibility.c : Likewise.
23024         * ipa.c : Likewise.
23025         * ira-build.c : Likewise.
23026         * ira-color.c : Likewise.
23027         * ira-conflicts.c : Likewise.
23028         * ira-costs.c : Likewise.
23029         * ira-emit.c : Likewise.
23030         * ira-lives.c : Likewise.
23031         * ira.c : Likewise.
23032         * jump.c : Likewise.
23033         * langhooks.c : Likewise.
23034         * lcm.c : Likewise.
23035         * libfuncs.h : Likewise.
23036         * lists.c : Likewise.
23037         * loop-doloop.c : Likewise.
23038         * loop-init.c : Likewise.
23039         * loop-invariant.c : Likewise.
23040         * loop-iv.c : Likewise.
23041         * loop-unroll.c : Likewise.
23042         * lower-subreg.c : Likewise.
23043         * lra-assigns.c : Likewise.
23044         * lra-coalesce.c : Likewise.
23045         * lra-constraints.c : Likewise.
23046         * lra-eliminations.c : Likewise.
23047         * lra-lives.c : Likewise.
23048         * lra-remat.c : Likewise.
23049         * lra-spills.c : Likewise.
23050         * lra.c : Likewise.
23051         * lto-cgraph.c : Likewise.
23052         * lto-compress.c : Likewise.
23053         * lto-opts.c : Likewise.
23054         * lto-section-in.c : Likewise.
23055         * lto-section-out.c : Likewise.
23056         * lto-streamer-in.c : Likewise.
23057         * lto-streamer-out.c : Likewise.
23058         * lto-streamer.c : Likewise.
23059         * lto-streamer.h : Likewise.
23060         * mcf.c : Likewise.
23061         * mode-switching.c : Likewise.
23062         * modulo-sched.c : Likewise.
23063         * omega.c : Likewise.
23064         * omp-low.c : Likewise.
23065         * optabs.c : Likewise.
23066         * opts-global.c : Likewise.
23067         * opts.h : Likewise.
23068         * passes.c : Likewise.
23069         * plugin.c : Likewise.
23070         * postreload-gcse.c : Likewise.
23071         * postreload.c : Likewise.
23072         * predict.c : Likewise.
23073         * print-rtl.c : Likewise.
23074         * print-tree.c : Likewise.
23075         * profile.c : Likewise.
23076         * read-md.c : Likewise.
23077         * read-md.h : Likewise.
23078         * read-rtl.c : Likewise.
23079         * real.c : Likewise.
23080         * realmpfr.c : Likewise.
23081         * recog.c : Likewise.
23082         * ree.c : Likewise.
23083         * reg-stack.c : Likewise.
23084         * regcprop.c : Likewise.
23085         * reginfo.c : Likewise.
23086         * regrename.c : Likewise.
23087         * regstat.c : Likewise.
23088         * reload.c : Likewise.
23089         * reload1.c : Likewise.
23090         * reorg.c : Likewise.
23091         * resource.c : Likewise.
23092         * rtl-chkp.c : Likewise.
23093         * rtl.c : Likewise.
23094         * rtl.h : Likewise.
23095         * rtlanal.c : Likewise.
23096         * rtlhash.c : Likewise.
23097         * rtlhash.h : Likewise.
23098         * rtlhooks.c : Likewise.
23099         * sanopt.c : Likewise.
23100         * sched-deps.c : Likewise.
23101         * sched-ebb.c : Likewise.
23102         * sched-rgn.c : Likewise.
23103         * sched-vis.c : Likewise.
23104         * sdbout.c : Likewise.
23105         * sel-sched-dump.c : Likewise.
23106         * sel-sched-ir.c : Likewise.
23107         * sel-sched-ir.h : Likewise.
23108         * sel-sched.c : Likewise.
23109         * sese.c : Likewise.
23110         * shrink-wrap.c : Likewise.
23111         * shrink-wrap.h : Likewise.
23112         * simplify-rtx.c : Likewise.
23113         * stack-ptr-mod.c : Likewise.
23114         * statistics.c : Likewise.
23115         * stmt.c : Likewise.
23116         * stor-layout.c : Likewise.
23117         * store-motion.c : Likewise.
23118         * stringpool.c : Likewise.
23119         * symtab.c : Likewise.
23120         * target-globals.c : Likewise.
23121         * targhooks.c : Likewise.
23122         * tlink.c : Likewise.
23123         * toplev.c : Likewise.
23124         * tracer.c : Likewise.
23125         * trans-mem.c : Likewise.
23126         * tree-affine.c : Likewise.
23127         * tree-affine.h : Likewise.
23128         * tree-browser.c : Likewise.
23129         * tree-call-cdce.c : Likewise.
23130         * tree-cfg.c : Likewise.
23131         * tree-cfgcleanup.c : Likewise.
23132         * tree-chkp-opt.c : Likewise.
23133         * tree-chkp.c : Likewise.
23134         * tree-chrec.c : Likewise.
23135         * tree-complex.c : Likewise.
23136         * tree-data-ref.c : Likewise.
23137         * tree-dfa.c : Likewise.
23138         * tree-diagnostic.c : Likewise.
23139         * tree-dump.c : Likewise.
23140         * tree-eh.c : Likewise.
23141         * tree-eh.h : Likewise.
23142         * tree-emutls.c : Likewise.
23143         * tree-hasher.h : Likewise.
23144         * tree-if-conv.c : Likewise.
23145         * tree-inline.c : Likewise.
23146         * tree-inline.h : Likewise.
23147         * tree-into-ssa.c : Likewise.
23148         * tree-iterator.c : Likewise.
23149         * tree-loop-distribution.c : Likewise.
23150         * tree-nested.c : Likewise.
23151         * tree-nrv.c : Likewise.
23152         * tree-object-size.c : Likewise.
23153         * tree-outof-ssa.c : Likewise.
23154         * tree-parloops.c : Likewise.
23155         * tree-phinodes.c : Likewise.
23156         * tree-predcom.c : Likewise.
23157         * tree-pretty-print.c : Likewise.
23158         * tree-profile.c : Likewise.
23159         * tree-scalar-evolution.c : Likewise.
23160         * tree-sra.c : Likewise.
23161         * tree-ssa-address.c : Likewise.
23162         * tree-ssa-alias.c : Likewise.
23163         * tree-ssa-ccp.c : Likewise.
23164         * tree-ssa-coalesce.c : Likewise.
23165         * tree-ssa-copy.c : Likewise.
23166         * tree-ssa-copyrename.c : Likewise.
23167         * tree-ssa-dce.c : Likewise.
23168         * tree-ssa-dom.c : Likewise.
23169         * tree-ssa-dse.c : Likewise.
23170         * tree-ssa-forwprop.c : Likewise.
23171         * tree-ssa-ifcombine.c : Likewise.
23172         * tree-ssa-live.c : Likewise.
23173         * tree-ssa-loop-ch.c : Likewise.
23174         * tree-ssa-loop-im.c : Likewise.
23175         * tree-ssa-loop-ivcanon.c : Likewise.
23176         * tree-ssa-loop-ivopts.c : Likewise.
23177         * tree-ssa-loop-manip.c : Likewise.
23178         * tree-ssa-loop-niter.c : Likewise.
23179         * tree-ssa-loop-prefetch.c : Likewise.
23180         * tree-ssa-loop-unswitch.c : Likewise.
23181         * tree-ssa-loop.c : Likewise.
23182         * tree-ssa-math-opts.c : Likewise.
23183         * tree-ssa-operands.c : Likewise.
23184         * tree-ssa-phiopt.c : Likewise.
23185         * tree-ssa-phiprop.c : Likewise.
23186         * tree-ssa-pre.c : Likewise.
23187         * tree-ssa-propagate.c : Likewise.
23188         * tree-ssa-reassoc.c : Likewise.
23189         * tree-ssa-sccvn.c : Likewise.
23190         * tree-ssa-scopedtables.c : Likewise.
23191         * tree-ssa-sink.c : Likewise.
23192         * tree-ssa-strlen.c : Likewise.
23193         * tree-ssa-structalias.c : Likewise.
23194         * tree-ssa-tail-merge.c : Likewise.
23195         * tree-ssa-ter.c : Likewise.
23196         * tree-ssa-threadedge.c : Likewise.
23197         * tree-ssa-threadupdate.c : Likewise.
23198         * tree-ssa-uncprop.c : Likewise.
23199         * tree-ssa-uninit.c : Likewise.
23200         * tree-ssa.c : Likewise.
23201         * tree-ssanames.c : Likewise.
23202         * tree-stdarg.c : Likewise.
23203         * tree-streamer-in.c : Likewise.
23204         * tree-streamer-out.c : Likewise.
23205         * tree-streamer.c : Likewise.
23206         * tree-streamer.h : Likewise.
23207         * tree-switch-conversion.c : Likewise.
23208         * tree-tailcall.c : Likewise.
23209         * tree-vect-data-refs.c : Likewise.
23210         * tree-vect-generic.c : Likewise.
23211         * tree-vect-loop-manip.c : Likewise.
23212         * tree-vect-loop.c : Likewise.
23213         * tree-vect-patterns.c : Likewise.
23214         * tree-vect-slp.c : Likewise.
23215         * tree-vect-stmts.c : Likewise.
23216         * tree-vectorizer.c : Likewise.
23217         * tree-vectorizer.h : Likewise.
23218         * tree-vrp.c : Likewise.
23219         * tree.c : Likewise.
23220         * tsan.c : Likewise.
23221         * ubsan.c : Likewise.
23222         * valtrack.c : Likewise.
23223         * valtrack.h : Likewise.
23224         * value-prof.c : Likewise.
23225         * var-tracking.c : Likewise.
23226         * varasm.c : Likewise.
23227         * varpool.c : Likewise.
23228         * vec.c: Likewise.
23229         * vmsdbgout.c : Likewise.
23230         * vtable-verify.c : Likewise.
23231         * vtable-verify.h : Likewise.
23232         * web.c : Likewise.
23233         * wide-int.cc : Likewise.
23234         * xcoffout.c : Likewise.
23235         * config/aarch64/aarch64-builtins.c : Likewise.
23236         * config/aarch64/aarch64.c : Likewise.
23237         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
23238         * config/alpha/alpha.c : Likewise.
23239         * config/arc/arc.c : Likewise.
23240         * config/arm/aarch-common.c : Likewise.
23241         * config/arm/arm-builtins.c : Likewise.
23242         * config/arm/arm-c.c : Likewise.
23243         * config/arm/arm.c : Likewise.
23244         * config/avr/avr-c.c : Likewise.
23245         * config/avr/avr-log.c : Likewise.
23246         * config/avr/avr.c : Likewise.
23247         * config/bfin/bfin.c : Likewise.
23248         * config/c6x/c6x.c : Likewise.
23249         * config/cr16/cr16.c : Likewise.
23250         * config/cris/cris.c : Likewise.
23251         * config/darwin-c.c : Likewise.
23252         * config/darwin.c : Likewise.
23253         * config/default-c.c : Likewise.
23254         * config/epiphany/epiphany.c : Likewise.
23255         * config/epiphany/mode-switch-use.c : Likewise.
23256         * config/epiphany/resolve-sw-modes.c : Likewise.
23257         * config/fr30/fr30.c : Likewise.
23258         * config/frv/frv.c : Likewise.
23259         * config/ft32/ft32.c : Likewise.
23260         * config/glibc-c.c : Likewise.
23261         * config/h8300/h8300.c : Likewise.
23262         * config/i386/i386-c.c : Likewise.
23263         * config/i386/i386.c : Likewise.
23264         * config/i386/msformat-c.c : Likewise.
23265         * config/i386/winnt-cxx.c : Likewise.
23266         * config/i386/winnt-stubs.c : Likewise.
23267         * config/i386/winnt.c : Likewise.
23268         * config/ia64/ia64-c.c : Likewise.
23269         * config/ia64/ia64.c : Likewise.
23270         * config/iq2000/iq2000.c : Likewise.
23271         * config/lm32/lm32.c : Likewise.
23272         * config/m32c/m32c-pragma.c : Likewise.
23273         * config/m32c/m32c.c : Likewise.
23274         * config/m32r/m32r.c : Likewise.
23275         * config/m68k/m68k.c : Likewise.
23276         * config/mcore/mcore.c : Likewise.
23277         * config/mep/mep-pragma.c : Likewise.
23278         * config/mep/mep.c : Likewise.
23279         * config/microblaze/microblaze-c.c : Likewise.
23280         * config/microblaze/microblaze.c : Likewise.
23281         * config/mips/mips.c : Likewise.
23282         * config/mmix/mmix.c : Likewise.
23283         * config/mn10300/mn10300.c : Likewise.
23284         * config/moxie/moxie.c : Likewise.
23285         * config/msp430/msp430-c.c : Likewise.
23286         * config/msp430/msp430.c : Likewise.
23287         * config/nds32/nds32-cost.c : Likewise.
23288         * config/nds32/nds32-fp-as-gp.c : Likewise.
23289         * config/nds32/nds32-intrinsic.c : Likewise.
23290         * config/nds32/nds32-isr.c : Likewise.
23291         * config/nds32/nds32-md-auxiliary.c : Likewise.
23292         * config/nds32/nds32-memory-manipulation.c : Likewise.
23293         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
23294         * config/nds32/nds32-predicates.c : Likewise.
23295         * config/nds32/nds32.c : Likewise.
23296         * config/nios2/nios2.c : Likewise.
23297         * config/nvptx/nvptx.c : Likewise.
23298         * config/pa/pa.c : Likewise.
23299         * config/pdp11/pdp11.c : Likewise.
23300         * config/rl78/rl78-c.c : Likewise.
23301         * config/rl78/rl78.c : Likewise.
23302         * config/rs6000/rs6000-c.c : Likewise.
23303         * config/rs6000/rs6000.c : Likewise.
23304         * config/rx/rx.c : Likewise.
23305         * config/s390/s390-c.c : Likewise.
23306         * config/s390/s390.c : Likewise.
23307         * config/sh/sh-c.c : Likewise.
23308         * config/sh/sh-mem.cc : Likewise.
23309         * config/sh/sh.c : Likewise.
23310         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
23311         * config/sh/sh_treg_combine.cc : Likewise.
23312         * config/sol2-c.c : Likewise.
23313         * config/sol2-cxx.c : Likewise.
23314         * config/sol2-stubs.c : Likewise.
23315         * config/sol2.c : Likewise.
23316         * config/sparc/sparc-c.c : Likewise.
23317         * config/sparc/sparc.c : Likewise.
23318         * config/spu/spu-c.c : Likewise.
23319         * config/spu/spu.c : Likewise.
23320         * config/stormy16/stormy16.c : Likewise.
23321         * config/tilegx/mul-tables.c : Likewise.
23322         * config/tilegx/tilegx-c.c : Likewise.
23323         * config/tilegx/tilegx.c : Likewise.
23324         * config/tilepro/mul-tables.c : Likewise.
23325         * config/tilepro/tilepro-c.c : Likewise.
23326         * config/tilepro/tilepro.c : Likewise.
23327         * config/v850/v850-c.c : Likewise.
23328         * config/v850/v850.c : Likewise.
23329         * config/vax/vax.c : Likewise.
23330         * config/visium/visium.c : Likewise.
23331         * config/vms/vms-c.c : Likewise.
23332         * config/vms/vms.c : Likewise.
23333         * config/vxworks.c : Likewise.
23334         * config/winnt-c.c : Likewise.
23335         * config/xtensa/xtensa.c : Likewise.
23337 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
23339         PR lto/65378
23340         * ipa-utils.h (warn_types_mismatch): Update prototype.
23341         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
23342         parameters.
23343         (type_mismatch_p): New function.
23344         (warn_types_mismatch): Reorg to work better on non-C++ types.
23345         (odr_types_equivalent_p): Add loc1/loc2 parameters.
23346         (add_type_duplicate): Update.
23348 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23350         PR rtl-optimization/66444
23351         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
23352         call_used_regs.
23354 2015-06-08  Richard Biener  <rguenther@suse.de>
23356         PR tree-optimization/66422
23357         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
23358         block after inserted gcc_unreachable.
23360 2015-06-08  Nick Clifton  <nickc@redhat.com>
23362         * config/rx/rx.c (rx_function_value): Do not promote vector types.
23363         (rx_promote_function_mode): Likewise.
23364         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
23366 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
23368         * genattrtab.c (insn_alternatives): Change type from int *
23369         to uint64_t *.
23370         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
23371         (get_attr_value): Change type of num_alt to uint64_t.
23372         (compute_alternative_mask): Change return type from
23373         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
23374         (make_alternative_compare, mk_attr_alt): Change argument type
23375         from int to uint64_t.
23376         (simplify_test_exp): Change type of i from int to uint64_t.
23377         Shift ((uint64_t) 1) instead of 1 up.
23378         (main): Adjust oballocvec first argument from int to uint64_t.
23379         Shift ((uint64_t) 1) instead of 1 up.
23381 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
23383         PR other/65366
23384         * gdbhooks.py: Import sys.
23385         (intptr): New function.  Replace int(...) by intptr(...).
23387 2015-06-08  Richard Biener  <rguenther@suse.de>
23389         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23390         adjustment for gaps at the end of a SLP load group properly.
23391         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23392         all permutations we can generate.
23393         (vect_transform_slp_perm_load): Use the correct group-size.
23395 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
23397         * genmatch.c (expr::gen_transform): For conditions, guess the type
23398         from the second operand.
23400 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23402         PR tree-optimization/66442
23403         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23404         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23405         if the loop latch is not a singleton.  Use
23406         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23408 2015-06-08  Marek Polacek  <polacek@redhat.com>
23410         PR sanitizer/66452
23411         * toplev.c (check_global_declaration): Don't warn about artificial
23412         decls.
23414 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23416         PR tree-optimization/66436
23417         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23418         dump file.
23419         * gimplify.c: Add tree-dump.h include.
23420         (gimplify_function_tree): Dump function to gimple dump file.
23421         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23422         dump file.
23424 2015-06-08  Tom de Vries  <tom@codesourcery.com>
23426         PR tree-optimization/66435
23427         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23428         function.
23430 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
23432         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23433         of ptr_type_node to not be ptr_to_node.
23434         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23435         TREE_TYPE of pointers.
23436         * gimple-expr.c (useless_type_conversion): Reorder the check for
23437         function pointers and TYPE_CANONICAL.
23439 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
23441         PR bootstrap/66319
23442         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23443         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23444         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23445         later.
23446         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23447         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23448         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23449         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23450         and non iso if unix2003.
23452 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
23454         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23456 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
23458         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23459         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23460         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23461         except.c, final.c, function.c, gcse-common.c, genemit.c,
23462         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23463         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23464         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23465         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23466         more derived ones.
23468 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
23470         * combine.c (combine_split_insns): Remove cast.
23471         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
23472         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
23473         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
23474         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
23475         * genemit.c (gen_split): Change return type of generated functions to
23476         rtx_insn.
23477         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
23478         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
23479         gen_peephole2_* functions.
23480         (print_subroutine, main): Likewise.
23481         * recog.c (peephole2_optimize): Remove cast.
23482         (peep2_next_insn): Promote return type to rtx_insn.
23483         * recog.h (peep2_next_insn): Fix prototype.
23484         * rtl.h (try_split, split_insns): Likewise.
23486 2015-06-06  DJ Delorie  <dj@redhat.com>
23488         * config/msp430/msp430.c (msp430_asm_integer): Support addition
23489         and subtraction too.
23491 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
23493         PR target/66410
23494         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
23495         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
23496         instead of Snd.  Disparage Sid/z alternative with '^'.
23498 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
23500         * dwarf2out.c: Remove deferred_locations*.
23501         (dwarf2_debug_hooks): Add early_finish hook.
23502         Remove global_decl hook.
23503         Add early_global_decl and late_global_decl hook.
23504         New global early_dwarf.
23505         New structure set_early_dwarf.
23506         (output_die): Indicate whether a DIE was generated early
23507         when generating assembly with -dA.
23508         (struct limbo_die_struct): Document created_for field.
23509         Remove file_table_last_lookup.
23510         (remove_AT): Return TRUE if successful.
23511         (remove_child_TAG): Clear die_parent.
23512         (reparent_child): New function abstracted from...
23513         (splice_child_die): ...here.
23514         (new_die): ICE if a DIE ends up in limbo too late.
23515         (check_die): New.
23516         (defer_location): Remove.
23517         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23518         (fill_variable_array_bounds): New.
23519         (decl_start_label): Call fill_variable_array_bounds.
23520         (gen_formal_parameter_die): Rewrite to reuse previously generated
23521         DIEs.
23522         (gen_subprogram_die): Same.
23523         (gen_variable_die): Same.
23524         (gen_const_die): Same.
23525         (gen_label_die): Same.
23526         (gen_lexical_block_die): Same.
23527         (decl_will_get_specification_p): New.
23528         (local_function_static): New.
23529         (gen_struct_or_union_type_die): Fill in variable-length fields.
23530         (gen_typedef_die): Fill in variable-length typedefs.
23531         (gen_tagged_type_die): Gracefully return on error_mark_node.
23532         Handle re-entrancy.
23533         (gen_type_die_with_usage): Handle variable-length types.
23534         Remove duplicate code for ARRAY_TYPE case.
23535         (process_scope_var): Only process imported modules during early
23536         dwarf.
23537         (dwarf2out_early_global_decl): New.
23538         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23539         (dwarf2out_type_decl): Set early_dwarf while calling
23540         dwarf2out_decl.
23541         (dwarf2out_decl): Verify that we did not recreate a previously
23542         generated DIE.
23543         Do not return on DECL_EXTERNALs in VAR_DECLs.
23544         Abstract some code to local_function_static.
23545         (lookup_filename): Remove use of file_table_last_lookup.
23546         Gracefully exit on missing file_name.
23547         (dwarf2out_finish): Verify limbo list.
23548         Remove deferred_locations_list use.
23549         Move deferred_asm_name and limbo flushing to...
23550         (dwarf2out_early_finish): ...here.  New.
23551         (dwarf2out_c_finalize): Remove set of deferred_location_list,
23552         deferred_asm_name, and file_table_last_lookup.
23553         * cgraph.h (referred_to_p): Add default argument.
23554         * cgraphunit.c (referred_to_p): Add and handle include_self
23555         argument.
23556         (analyze_functions): Add first_time argument.
23557         Call check_global_declaration for all symbols.
23558         Call late_global_decl for nodes for moribund nodes.
23559         (finalize_compilation_unit): Add new argument to
23560         analyze_functions.
23561         Call early_global_decl for functions.
23562         Call early_finish debug hook.
23563         * dbxout.c (dbxout_early_global_decl): New.
23564         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
23565         (dbx_debug_hooks): Add new hooks.
23566         (xcoff_debug_hooks): Same.
23567         * debug.c (do_nothing_debug_hooks): Add early_finish field.
23568         Add early and late debug hooks.
23569         Remove global_decl hook.
23570         * debug.h (struct gcc_debug_hooks): Add early_finish,
23571         early_global_decl, and late_global_decl fields.
23572         Remove global_decl field.
23573         Document gcc_debug_hooks.
23574         * gengtype.c (output_typename): Remove.
23575         * godump.c (go_early_global_decl): New.
23576         (go_late_global_decl): New.
23577         (go_global_decl): Remove.
23578         (dump_go_spec_init): Remove global_decl.  Add
23579         {early,late}_global_decl.
23580         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23581         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23582         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23583         (write_global_declarations): Remove.
23584         (global_decl_processing): New.
23585         * langhooks.h (struct lang_hooks_for_decls): Remove
23586         final_write_globals field.
23587         Add post_compilation_parsing_cleanups field.
23588         * passes.c (rest_of_decl_compilation): Call early_global_decl.
23589         * sdbout.c: Add early and late_global_decl hooks.  Remove
23590         sdbout_global_decl hook.
23591         Add early_finish field for sdb_debug_hooks.
23592         (sdbout_global_decl): Remove.
23593         (sdbout_early_global_decl): New.
23594         (sdbout_late_global_decl): New.
23595         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23596         * toplev.c (check_global_declaration): Rename from
23597         check_global_declaration_1.
23598         Adapt to use symtab infrastructure.
23599         (check_global_declarations): Remove.
23600         (emit_debug_global_declarations): Remove.
23601         (compile_file): Remove call to final_write_globals langhook.
23602         Run the actual compilation process.
23603         Perform any post compilation parser cleanups.
23604         Generate late debug info.
23605         * toplev.h (check_global_declaration): New.
23606         (check_global_declaration_1): Remove.
23607         (check_global_declarations): Remove.
23608         (write_global_declarations): Remove.
23609         (emit_debug_global_declarations): Remove.
23610         (global_decl_processing): New.
23611         * tree-core.h (struct tree_block): Add DIE field.
23612         * tree.h (BLOCK_DIE): New.
23613         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23614         throughout.
23615         (vmsdbgout_early_global_decl): New.
23616         (vmsdbgout_late_global_decl): New.
23617         Add early_finish debug hook field to vmsdbg_debug_hooks.
23618         Remove vmsdbgout_decl to vmsdbgout_function_decl.
23619         Add early and late_global_decl debug hooks.
23621 2015-06-05  Julian Brown  <julian@codesourcery.com>
23622             Sandra Loosemore  <sandra@codesourcery.com>
23624         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23625         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23626         to print-sysroot-suffix.sh script.
23628 2015-06-05  Tom de Vries  <tom@codesourcery.com>
23630         merge from gomp4 branch:
23631         2015-05-28  Tom de Vries  <tom@codesourcery.com>
23633         PR tree-optimization/65443
23634         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23635         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23636         (try_transform_to_exit_first_loop_alt): New function.
23637         (transform_to_exit_first_loop): Use
23638         try_transform_to_exit_first_loop_alt.
23640 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
23642         * builtins.c (expand_builtin_atomic_compare_exchange): Call
23643         emit_cmp_and_jump_insns with the mode of target.
23645 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23647         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23649 2015-06-04  DJ Delorie  <dj@redhat.com>
23651         * config/msp430/msp430.md (movsi_s): New.  Special case for
23652         storing a 20-bit symbol into a 32-bit register.
23653         * config/msp430/msp430.c (msp430_subreg): Add support for it.
23654         * config/msp430/predicates.md (msp430_symbol_operand): New.
23656 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
23658         * c-family/c-common.c (noplt): New attribute.
23659         (handle_noplt_attribute): New handler.
23660         * calls.c (prepare_call_address): Check for noplt
23661         attribute.
23662         * config/i386/i386.c (ix86_expand_call): Check
23663         for noplt attribute.
23664         (ix86_nopic_noplt_attribute_p): New function.
23665         (ix86_output_call_insn): Output indirect call for non-pic
23666         no plt calls.
23667         * doc/extend.texi (noplt): Document new attribute.
23668         * doc/invoke.texi: Document new attribute.
23670 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
23672         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23673         real.h, and fixed-value.h when included in host source files.
23674         * double-int.h: Remove redundant #includes listed above.
23675         * fixed-value.h: Likewise.
23676         * real.h: Likewise.
23677         * wide-int.h: Likewise.
23678         * inchash.h: Likewise.
23679         * rtl.h: Add some include files When included from a generator file.
23680         * target.h: Remove wide-int.h and insn-modes.h from the include list.
23681         * internal-fn.h: Don't include coretypes.h.
23682         * alias.c: Adjust includes for restructured coretypes.h.
23683         * asan.c: Likewise.
23684         * attribs.c: Likewise.
23685         * auto-inc-dec.c: Likewise.
23686         * auto-profile.c: Likewise.
23687         * bb-reorder.c: Likewise.
23688         * bt-load.c: Likewise.
23689         * builtins.c: Likewise.
23690         * caller-save.c: Likewise.
23691         * calls.c: Likewise.
23692         * ccmp.c: Likewise.
23693         * cfg.c: Likewise.
23694         * cfganal.c: Likewise.
23695         * cfgbuild.c: Likewise.
23696         * cfgcleanup.c: Likewise.
23697         * cfgexpand.c: Likewise.
23698         * cfghooks.c: Likewise.
23699         * cfgloop.c: Likewise.
23700         * cfgloop.h: Likewise.
23701         * cfgloopanal.c: Likewise.
23702         * cfgloopmanip.c: Likewise.
23703         * cfgrtl.c: Likewise.
23704         * cgraph.c: Likewise.
23705         * cgraphbuild.c: Likewise.
23706         * cgraphclones.c: Likewise.
23707         * cgraphunit.c: Likewise.
23708         * cilk-common.c: Likewise.
23709         * combine-stack-adj.c: Likewise.
23710         * combine.c: Likewise.
23711         * compare-elim.c: Likewise.
23712         * convert.c: Likewise.
23713         * coverage.c: Likewise.
23714         * cppbuiltin.c: Likewise.
23715         * cprop.c: Likewise.
23716         * cse.c: Likewise.
23717         * cselib.c: Likewise.
23718         * data-streamer-in.c: Likewise.
23719         * data-streamer-out.c: Likewise.
23720         * data-streamer.c: Likewise.
23721         * dbxout.c: Likewise.
23722         * dce.c: Likewise.
23723         * ddg.c: Likewise.
23724         * debug.c: Likewise.
23725         * df-core.c: Likewise.
23726         * df-problems.c: Likewise.
23727         * df-scan.c: Likewise.
23728         * df.h: Likewise.
23729         * dfp.c: Likewise.
23730         * dojump.c: Likewise.
23731         * dominance.c: Likewise.
23732         * domwalk.c: Likewise.
23733         * double-int.c: Likewise.
23734         * dse.c: Likewise.
23735         * dumpfile.c: Likewise.
23736         * dwarf2asm.c: Likewise.
23737         * dwarf2cfi.c: Likewise.
23738         * dwarf2out.c: Likewise.
23739         * dwarf2out.h: Likewise.
23740         * emit-rtl.c: Likewise.
23741         * et-forest.c: Likewise.
23742         * except.c: Likewise.
23743         * explow.c: Likewise.
23744         * expmed.c: Likewise.
23745         * expr.c: Likewise.
23746         * final.c: Likewise.
23747         * fixed-value.c: Likewise.
23748         * fold-const.c: Likewise.
23749         * function.c: Likewise.
23750         * fwprop.c: Likewise.
23751         * gcc-plugin.h: Likewise.
23752         * gcse.c: Likewise.
23753         * generic-match-head.c: Likewise.
23754         * ggc-page.c: Likewise.
23755         * gimple-builder.c: Likewise.
23756         * gimple-expr.c: Likewise.
23757         * gimple-fold.c: Likewise.
23758         * gimple-iterator.c: Likewise.
23759         * gimple-low.c: Likewise.
23760         * gimple-match-head.c: Likewise.
23761         * gimple-pretty-print.c: Likewise.
23762         * gimple-ssa-isolate-paths.c: Likewise.
23763         * gimple-ssa-strength-reduction.c: Likewise.
23764         * gimple-streamer-in.c: Likewise.
23765         * gimple-streamer-out.c: Likewise.
23766         * gimple-streamer.h: Likewise.
23767         * gimple-walk.c: Likewise.
23768         * gimple.c: Likewise.
23769         * gimplify-me.c: Likewise.
23770         * gimplify.c: Likewise.
23771         * godump.c: Likewise.
23772         * graph.c: Likewise.
23773         * graphite-blocking.c: Likewise.
23774         * graphite-dependences.c: Likewise.
23775         * graphite-interchange.c: Likewise.
23776         * graphite-isl-ast-to-gimple.c: Likewise.
23777         * graphite-optimize-isl.c: Likewise.
23778         * graphite-poly.c: Likewise.
23779         * graphite-scop-detection.c: Likewise.
23780         * graphite-sese-to-poly.c: Likewise.
23781         * graphite.c: Likewise.
23782         * haifa-sched.c: Likewise.
23783         * hooks.h: Likewise.
23784         * hw-doloop.c: Likewise.
23785         * ifcvt.c: Likewise.
23786         * incpath.c: Likewise.
23787         * init-regs.c: Likewise.
23788         * internal-fn.c: Likewise.
23789         * ipa-chkp.c: Likewise.
23790         * ipa-comdats.c: Likewise.
23791         * ipa-cp.c: Likewise.
23792         * ipa-devirt.c: Likewise.
23793         * ipa-icf-gimple.c: Likewise.
23794         * ipa-icf.c: Likewise.
23795         * ipa-inline-analysis.c: Likewise.
23796         * ipa-inline-transform.c: Likewise.
23797         * ipa-inline.c: Likewise.
23798         * ipa-polymorphic-call.c: Likewise.
23799         * ipa-profile.c: Likewise.
23800         * ipa-prop.c: Likewise.
23801         * ipa-pure-const.c: Likewise.
23802         * ipa-ref.c: Likewise.
23803         * ipa-reference.c: Likewise.
23804         * ipa-split.c: Likewise.
23805         * ipa-utils.c: Likewise.
23806         * ipa-visibility.c: Likewise.
23807         * ipa.c: Likewise.
23808         * ira-build.c: Likewise.
23809         * ira-color.c: Likewise.
23810         * ira-conflicts.c: Likewise.
23811         * ira-costs.c: Likewise.
23812         * ira-emit.c: Likewise.
23813         * ira-lives.c: Likewise.
23814         * ira.c: Likewise.
23815         * jump.c: Likewise.
23816         * langhooks.c: Likewise.
23817         * lcm.c: Likewise.
23818         * loop-doloop.c: Likewise.
23819         * loop-init.c: Likewise.
23820         * loop-invariant.c: Likewise.
23821         * loop-iv.c: Likewise.
23822         * loop-unroll.c: Likewise.
23823         * lower-subreg.c: Likewise.
23824         * lra-assigns.c: Likewise.
23825         * lra-coalesce.c: Likewise.
23826         * lra-constraints.c: Likewise.
23827         * lra-eliminations.c: Likewise.
23828         * lra-lives.c: Likewise.
23829         * lra-remat.c: Likewise.
23830         * lra-spills.c: Likewise.
23831         * lra.c: Likewise.
23832         * lto-cgraph.c: Likewise.
23833         * lto-compress.c: Likewise.
23834         * lto-opts.c: Likewise.
23835         * lto-section-in.c: Likewise.
23836         * lto-section-out.c: Likewise.
23837         * lto-streamer-in.c: Likewise.
23838         * lto-streamer-out.c: Likewise.
23839         * lto-streamer.c: Likewise.
23840         * mcf.c: Likewise.
23841         * mode-switching.c: Likewise.
23842         * modulo-sched.c: Likewise.
23843         * omega.c: Likewise.
23844         * omp-low.c: Likewise.
23845         * optabs.c: Likewise.
23846         * opts-global.c: Likewise.
23847         * passes.c: Likewise.
23848         * plugin.c: Likewise.
23849         * postreload-gcse.c: Likewise.
23850         * postreload.c: Likewise.
23851         * predict.c: Likewise.
23852         * print-rtl.c: Likewise.
23853         * print-tree.c: Likewise.
23854         * profile.c: Likewise.
23855         * real.c: Likewise.
23856         * realmpfr.c: Likewise.
23857         * realmpfr.h: Likewise.
23858         * recog.c: Likewise.
23859         * ree.c: Likewise.
23860         * reg-stack.c: Likewise.
23861         * regcprop.c: Likewise.
23862         * reginfo.c: Likewise.
23863         * regrename.c: Likewise.
23864         * regs.h: Likewise.
23865         * regstat.c: Likewise.
23866         * reload.c: Likewise.
23867         * reload1.c: Likewise.
23868         * reorg.c: Likewise.
23869         * resource.c: Likewise.
23870         * rtl-chkp.c: Likewise.
23871         * rtlanal.c: Likewise.
23872         * rtlhooks.c: Likewise.
23873         * sanopt.c: Likewise.
23874         * sched-deps.c: Likewise.
23875         * sched-ebb.c: Likewise.
23876         * sched-rgn.c: Likewise.
23877         * sched-vis.c: Likewise.
23878         * sdbout.c: Likewise.
23879         * sel-sched-dump.c: Likewise.
23880         * sel-sched-ir.c: Likewise.
23881         * sel-sched.c: Likewise.
23882         * sese.c: Likewise.
23883         * shrink-wrap.c: Likewise.
23884         * shrink-wrap.h: Likewise.
23885         * simplify-rtx.c: Likewise.
23886         * stack-ptr-mod.c: Likewise.
23887         * statistics.c: Likewise.
23888         * stmt.c: Likewise.
23889         * stor-layout.c: Likewise.
23890         * store-motion.c: Likewise.
23891         * stringpool.c: Likewise.
23892         * symtab.c: Likewise.
23893         * target-globals.c: Likewise.
23894         * targhooks.c: Likewise.
23895         * toplev.c: Likewise.
23896         * tracer.c: Likewise.
23897         * trans-mem.c: Likewise.
23898         * tree-affine.c: Likewise.
23899         * tree-affine.h: Likewise.
23900         * tree-browser.c: Likewise.
23901         * tree-call-cdce.c: Likewise.
23902         * tree-cfg.c: Likewise.
23903         * tree-cfgcleanup.c: Likewise.
23904         * tree-chkp-opt.c: Likewise.
23905         * tree-chkp.c: Likewise.
23906         * tree-chrec.c: Likewise.
23907         * tree-complex.c: Likewise.
23908         * tree-data-ref.c: Likewise.
23909         * tree-dfa.c: Likewise.
23910         * tree-diagnostic.c: Likewise.
23911         * tree-dump.c: Likewise.
23912         * tree-eh.c: Likewise.
23913         * tree-emutls.c: Likewise.
23914         * tree-if-conv.c: Likewise.
23915         * tree-inline.c: Likewise.
23916         * tree-into-ssa.c: Likewise.
23917         * tree-iterator.c: Likewise.
23918         * tree-loop-distribution.c: Likewise.
23919         * tree-nested.c: Likewise.
23920         * tree-nrv.c: Likewise.
23921         * tree-object-size.c: Likewise.
23922         * tree-outof-ssa.c: Likewise.
23923         * tree-parloops.c: Likewise.
23924         * tree-phinodes.c: Likewise.
23925         * tree-predcom.c: Likewise.
23926         * tree-pretty-print.c: Likewise.
23927         * tree-pretty-print.h: Likewise.
23928         * tree-profile.c: Likewise.
23929         * tree-scalar-evolution.c: Likewise.
23930         * tree-sra.c: Likewise.
23931         * tree-ssa-address.c: Likewise.
23932         * tree-ssa-alias.c: Likewise.
23933         * tree-ssa-ccp.c: Likewise.
23934         * tree-ssa-coalesce.c: Likewise.
23935         * tree-ssa-copy.c: Likewise.
23936         * tree-ssa-copyrename.c: Likewise.
23937         * tree-ssa-dce.c: Likewise.
23938         * tree-ssa-dom.c: Likewise.
23939         * tree-ssa-dse.c: Likewise.
23940         * tree-ssa-forwprop.c: Likewise.
23941         * tree-ssa-ifcombine.c: Likewise.
23942         * tree-ssa-live.c: Likewise.
23943         * tree-ssa-loop-ch.c: Likewise.
23944         * tree-ssa-loop-im.c: Likewise.
23945         * tree-ssa-loop-ivcanon.c: Likewise.
23946         * tree-ssa-loop-ivopts.c: Likewise.
23947         * tree-ssa-loop-manip.c: Likewise.
23948         * tree-ssa-loop-niter.c: Likewise.
23949         * tree-ssa-loop-prefetch.c: Likewise.
23950         * tree-ssa-loop-unswitch.c: Likewise.
23951         * tree-ssa-loop.c: Likewise.
23952         * tree-ssa-loop.h: Likewise.
23953         * tree-ssa-math-opts.c: Likewise.
23954         * tree-ssa-operands.c: Likewise.
23955         * tree-ssa-phiopt.c: Likewise.
23956         * tree-ssa-phiprop.c: Likewise.
23957         * tree-ssa-pre.c: Likewise.
23958         * tree-ssa-propagate.c: Likewise.
23959         * tree-ssa-reassoc.c: Likewise.
23960         * tree-ssa-sccvn.c: Likewise.
23961         * tree-ssa-scopedtables.c: Likewise.
23962         * tree-ssa-sink.c: Likewise.
23963         * tree-ssa-strlen.c: Likewise.
23964         * tree-ssa-structalias.c: Likewise.
23965         * tree-ssa-tail-merge.c: Likewise.
23966         * tree-ssa-ter.c: Likewise.
23967         * tree-ssa-threadedge.c: Likewise.
23968         * tree-ssa-threadupdate.c: Likewise.
23969         * tree-ssa-uncprop.c: Likewise.
23970         * tree-ssa-uninit.c: Likewise.
23971         * tree-ssa.c: Likewise.
23972         * tree-ssanames.c: Likewise.
23973         * tree-stdarg.c: Likewise.
23974         * tree-streamer-in.c: Likewise.
23975         * tree-streamer-out.c: Likewise.
23976         * tree-streamer.c: Likewise.
23977         * tree-switch-conversion.c: Likewise.
23978         * tree-tailcall.c: Likewise.
23979         * tree-vect-data-refs.c: Likewise.
23980         * tree-vect-generic.c: Likewise.
23981         * tree-vect-loop-manip.c: Likewise.
23982         * tree-vect-loop.c: Likewise.
23983         * tree-vect-patterns.c: Likewise.
23984         * tree-vect-slp.c: Likewise.
23985         * tree-vect-stmts.c: Likewise.
23986         * tree-vectorizer.c: Likewise.
23987         * tree-vrp.c: Likewise.
23988         * tree.c: Likewise.
23989         * tsan.c: Likewise.
23990         * ubsan.c: Likewise.
23991         * valtrack.c: Likewise.
23992         * value-prof.c: Likewise.
23993         * var-tracking.c: Likewise.
23994         * varasm.c: Likewise.
23995         * varpool.c: Likewise.
23996         * vmsdbgout.c: Likewise.
23997         * vtable-verify.c: Likewise.
23998         * web.c: Likewise.
23999         * wide-int-print.cc: Likewise.
24000         * wide-int-print.h: Likewise.
24001         * wide-int.cc: Likewise.
24002         * xcoffout.c: Likewise.
24003         * config/aarch64/aarch64-builtins.c: Likewise.
24004         * config/aarch64/aarch64.c: Likewise.
24005         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24006         * config/alpha/alpha.c: Likewise.
24007         * config/arc/arc.c: Likewise.
24008         * config/arm/aarch-common.c: Likewise.
24009         * config/arm/arm-builtins.c: Likewise.
24010         * config/arm/arm-c.c: Likewise.
24011         * config/arm/arm.c: Likewise.
24012         * config/avr/avr-c.c: Likewise.
24013         * config/avr/avr-log.c: Likewise.
24014         * config/avr/avr.c: Likewise.
24015         * config/bfin/bfin.c: Likewise.
24016         * config/c6x/c6x.c: Likewise.
24017         * config/cr16/cr16.c: Likewise.
24018         * config/cris/cris.c: Likewise.
24019         * config/darwin-c.c: Likewise.
24020         * config/darwin.c: Likewise.
24021         * config/default-c.c: Likewise.
24022         * config/epiphany/epiphany.c: Likewise.
24023         * config/epiphany/mode-switch-use.c: Likewise.
24024         * config/epiphany/resolve-sw-modes.c: Likewise.
24025         * config/fr30/fr30.c: Likewise.
24026         * config/frv/frv.c: Likewise.
24027         * config/ft32/ft32.c: Likewise.
24028         * config/glibc-c.c: Likewise.
24029         * config/h8300/h8300.c: Likewise.
24030         * config/i386/i386-c.c: Likewise.
24031         * config/i386/i386.c: Likewise.
24032         * config/i386/msformat-c.c: Likewise.
24033         * config/i386/winnt-cxx.c: Likewise.
24034         * config/i386/winnt-stubs.c: Likewise.
24035         * config/i386/winnt.c: Likewise.
24036         * config/ia64/ia64-c.c: Likewise.
24037         * config/ia64/ia64.c: Likewise.
24038         * config/iq2000/iq2000.c: Likewise.
24039         * config/lm32/lm32.c: Likewise.
24040         * config/m32c/m32c-pragma.c: Likewise.
24041         * config/m32c/m32c.c: Likewise.
24042         * config/m32r/m32r.c: Likewise.
24043         * config/m68k/m68k.c: Likewise.
24044         * config/mcore/mcore.c: Likewise.
24045         * config/mep/mep-pragma.c: Likewise.
24046         * config/mep/mep.c: Likewise.
24047         * config/microblaze/microblaze-c.c: Likewise.
24048         * config/microblaze/microblaze.c: Likewise.
24049         * config/mips/mips.c: Likewise.
24050         * config/mmix/mmix.c: Likewise.
24051         * config/mn10300/mn10300.c: Likewise.
24052         * config/moxie/moxie.c: Likewise.
24053         * config/msp430/msp430-c.c: Likewise.
24054         * config/msp430/msp430.c: Likewise.
24055         * config/nds32/nds32-cost.c: Likewise.
24056         * config/nds32/nds32-fp-as-gp.c: Likewise.
24057         * config/nds32/nds32-intrinsic.c: Likewise.
24058         * config/nds32/nds32-isr.c: Likewise.
24059         * config/nds32/nds32-md-auxiliary.c: Likewise.
24060         * config/nds32/nds32-memory-manipulation.c: Likewise.
24061         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24062         * config/nds32/nds32-predicates.c: Likewise.
24063         * config/nds32/nds32.c: Likewise.
24064         * config/nios2/nios2.c: Likewise.
24065         * config/nvptx/nvptx.c: Likewise.
24066         * config/pa/pa.c: Likewise.
24067         * config/pdp11/pdp11.c: Likewise.
24068         * config/rl78/rl78-c.c: Likewise.
24069         * config/rl78/rl78.c: Likewise.
24070         * config/rs6000/rs6000-c.c: Likewise.
24071         * config/rs6000/rs6000.c: Likewise.
24072         * config/rx/rx.c: Likewise.
24073         * config/s390/s390-c.c: Likewise.
24074         * config/s390/s390.c: Likewise.
24075         * config/sh/sh-c.c: Likewise.
24076         * config/sh/sh-mem.cc: Likewise.
24077         * config/sh/sh.c: Likewise.
24078         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24079         * config/sh/sh_treg_combine.cc: Likewise.
24080         * config/sol2-c.c: Likewise.
24081         * config/sol2-cxx.c: Likewise.
24082         * config/sol2-stubs.c: Likewise.
24083         * config/sol2.c: Likewise.
24084         * config/sparc/sparc-c.c: Likewise.
24085         * config/sparc/sparc.c: Likewise.
24086         * config/spu/spu-c.c: Likewise.
24087         * config/spu/spu.c: Likewise.
24088         * config/stormy16/stormy16.c: Likewise.
24089         * config/tilegx/mul-tables.c: Likewise.
24090         * config/tilegx/tilegx-c.c: Likewise.
24091         * config/tilegx/tilegx.c: Likewise.
24092         * config/tilepro/mul-tables.c: Likewise.
24093         * config/tilepro/tilepro-c.c: Likewise.
24094         * config/tilepro/tilepro.c: Likewise.
24095         * config/v850/v850-c.c: Likewise.
24096         * config/v850/v850.c: Likewise.
24097         * config/vax/vax.c: Likewise.
24098         * config/visium/visium.c: Likewise.
24099         * config/vms/vms-c.c: Likewise.
24100         * config/vms/vms.c: Likewise.
24101         * config/vxworks.c: Likewise.
24102         * config/winnt-c.c: Likewise.
24103         * config/xtensa/xtensa.c: Likewise.
24104         * common/config/bfin/bfin-common.c: Likewise.
24106 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
24108         * tree.h (tree_code_for_canonical_type_merging): New function.
24109         * tree.c (gimple_canonical_types_compatible_p): Use
24110         tree_code_for_canonical_type_merging..
24112 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24114         PR c++/66192
24115         PR target/66200
24116         * doc/tm.texi: Regenerate.
24117         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
24118         * target.def (TARGET_RELAXED_ORDERING): Likewise.
24119         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
24120         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
24121         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
24122         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
24123         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
24124         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
24125         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
24127 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24129         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
24130         register fma steering pass.
24131         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
24132         AARCH64_TUNE_FMA_STEERING.
24134 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
24136         * tree.c (verify_type_variant): Verify that type and variant is
24137         compatible.
24138         (gimple_canonical_types_compatible_p): Look for main variants.
24140 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
24142         * config.gcc (powerpc*-*-*): Add support for a new configure
24143         option --with-advance-toolchain=<xxx> which overrides using the
24144         default header files, libraries and dynamic linker.
24146         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
24147         specs to support the configure --with-advance-toolchain=<xxx>
24148         option.
24149         (INCLUDE_EXTRA_SPEC): Likewise.
24150         (LINK_OS_EXTRA_SPEC32): Likewise.
24151         (LINK_OK_EXTRA_SPEC64): Likewise.
24152         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
24153         (DYNAMIC_LINKER_PREFIX): Likewise.
24154         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
24155         toolchain support.
24156         (GLIBC_DYNAMIC_LINKER32): Likewise.
24157         (GLIBC_DYNAMIC_LINKER64): Likewise.
24158         (LINK_OS_LINUX_SPEC32): Likewise.
24159         (LINK_OS_LINUX_SPEC64): Likewise.
24161         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
24162         configuration option.
24164 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
24166         PR target/66275
24167         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
24168         to determine current function ABI.
24169         (ix86_function_value_regno_p): Ditto.
24171 2015-06-03  Martin Liska  <mliska@suse.cz>
24173         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
24174         * bitmap.h (struct bitmap_usage): Likewise.
24175         * ggc-common.c (struct ggc_usage): Likewise.
24176         * mem-stats.h (struct mem_location): Likewise.
24177         (struct mem_usage): Likewise.
24178         * vec.c (struct vec_usage): Likewise.
24180 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
24182         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
24183         -Bsymbolic.
24185 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
24187         * doc/plugins.texi (enum plugin_event): New event.
24188         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
24189         and PLUGIN_FINISH_FUNCTION.
24190         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
24191         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
24193 2015-06-03  Richard Biener  <rguenther@suse.de>
24195         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24196         compute GROUP_GAP for the first element.
24197         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
24198         on in-group gaps.
24200 2015-06-03  Nick Clifton  <nickc@redhat.com>
24202         * config/rl78/rl78-real.md: Add peepholes to avoid a register
24203         copy when calling a function.
24204         * config/rl78/rl78.c (need_to_save): Do not push the frame
24205         pointer in an interrupt handler prologue if it is never used.
24207 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24209         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
24211 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
24213         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
24214         reference when cloning alias node.
24216 2015-06-03  Martin Liska  <mliska@suse.cz>
24218         * alloc-pool.h (struct pool_usage): Correct space padding.
24219         * ggc-page.c (ggc_print_statistics): Align columns in a report.
24220         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
24221         * tree.c (dump_tree_statistics): Align columns in a report.
24223 2015-06-03  Martin Liska  <mliska@suse.cz>
24225         * alloc-pool.c (allocate_pool_descriptor): Remove.
24226         (struct pool_output_info): Likewise.
24227         (print_alloc_pool_statistics): Likewise.
24228         (dump_alloc_pool_statistics): Likewise.
24229         * alloc-pool.h (struct pool_usage): New struct.
24230         (pool_allocator::initialize): Change usage of memory statistics
24231         to a new interface.
24232         (pool_allocator::release): Likewise.
24233         (pool_allocator::allocate): Likewise.
24234         (pool_allocator::remove): Likewise.
24235         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
24236         for a pool allocator.
24237         * mem-stats.h (struct mem_location): Add new ctor.
24238         (struct mem_usage): Add counter for number of
24239         instances.
24240         (mem_alloc_description::register_descriptor): New overload of
24241         * mem-stats.h (mem_location::to_string): New function.
24242         * bitmap.h (struct bitmap_usage): Use this new function.
24243         * ggc-common.c (struct ggc_usage): Likewise.
24244         the function.
24246 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
24248         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
24249         of GCC_INSN_FLAGS_H block.
24251 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
24253         * explow.c (plus_constant): Update check after force_const_mem call
24254         to see if the value returned is not a NULL_RTX.
24256 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
24258         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
24259         remove instumentation thunks calling reachable functions.
24260         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
24261         * lto/lto-partition.c (privatize_symbol_name_1): New.
24262         (privatize_symbol_name): Privatize both decl and orig_decl
24263         names for instrumented functions.
24264         * cgraph.c (cgraph_node::verify_node): Add transparent
24265         alias chain check for instrumented node.
24267 2015-06-03  Marek Polacek  <polacek@redhat.com>
24269         PR c/64223
24270         PR c/29358
24271         * tree.c (attribute_value_equal): Handle attribute format.
24272         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
24274 2015-06-03  Richard Biener  <rguenther@suse.de>
24276         PR tree-optimization/63916
24277         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24278         Forward-propagate non-invariant addresses by splicing their
24279         reference ops if the result isn't going to be used by PRE.
24280         (vn_reference_lookup_3): Remove pointless assert.
24282 2015-06-03  Richard Biener  <rguenther@suse.de>
24284         PR tree-optimization/66375
24285         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
24286         add to the evolution before following SSA edges.
24288 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
24290         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
24291         (dump_use, dump_cand, find_induction_variables): Pass new argument
24292         to dump_iv.
24293         (record_use): Preserve the ssa name information in IV.
24295 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
24297         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
24298         NO_MODE_TEST.
24299         (add_mode_tests): Don't add mode tests if the predicate only
24300         accepts scalar constant integers.  Otherwise, allow the mode
24301         of "op" to be VOIDmode if the predicate does accept such integers.
24303 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
24305         PR target/66258
24306         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
24307         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
24308         (aarch64_secondary_reload): Likewise
24309         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
24310         to !TARGET_FLOAT.
24311         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
24312         Likewise.
24314 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
24315             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24317         PR target/65768
24318         * cprop.c (try_replace_reg): Check cost of constants before propagating.
24320 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24322         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
24323         provide access to the IBM extended double floating point mode if
24324         long double is IEEE 128-bit floating point.
24325         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
24326         point if long double is the IBM extended double type.
24328         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
24329         enable adding IEEE 128-bit floating point support.
24330         (-mfloat128-software): Likewise.
24331         (-mfloat128-sw): Likewise.
24333         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
24334         128-bit floating point types to occupy any register if
24335         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
24336         -mfloat128-software is enabled.
24337         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
24338         support.
24339         (rs6000_option_override_internal): Add -mfloat128-* support.
24340         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
24342         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
24343         and float128 type nodes.
24344         (ieee128_float_type_node): Likewise.
24345         (ibm128_float_type_node): Likewise.
24347 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24349         PR target/66136
24350         * config/aarch64/geniterators.sh: Rewrite in awk.
24352 2015-06-02  Martin Liska  <mliska@suse.cz>
24354         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
24355         values to avoid -Wmaybe-uninitialized errors.
24357 2015-06-02  Richard Biener  <rguenther@suse.de>
24359         PR debug/65549
24360         * dwarf2out.c (lookup_context_die): New function.
24361         (resolve_addr): Avoid forcing a full DIE for the
24362         target of a DW_TAG_GNU_call_site during late compilation.
24363         Instead create a stub DIE without a type if we have a
24364         context DIE present.
24366 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
24368         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
24370 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24372         PR tree-optimization/48052
24373         * cfgloop.h (struct control_iv): New.
24374         (struct loop): New field control_ivs.
24375         * tree-ssa-loop-niter.c : Include "stor-layout.h".
24376         (number_of_iterations_lt): Set no_overflow information.
24377         (number_of_iterations_exit): Init control iv in niter struct.
24378         (record_control_iv): New.
24379         (estimate_numbers_of_iterations_loop): Call record_control_iv.
24380         (loop_exits_before_overflow): New.  Interface factored out of
24381         scev_probably_wraps_p.
24382         (scev_probably_wraps_p): Factor loop niter related code into
24383         loop_exits_before_overflow.
24384         (free_numbers_of_iterations_estimates_loop): Free control ivs.
24385         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24387 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
24389         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24390         the target doesn't belong to the current function.
24392 2015-06-02  Marek Polacek  <polacek@redhat.com>
24394         PR middle-end/66345
24395         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24396         get_maxval_strlen does not produce an INTEGER_CST.
24398 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
24400         * config/arc/constraints.md: Use lower-case names in match_code.
24401         * config/mmix/constraints.md: Likewise.
24403 2015-06-02  Richard Biener  <rguenther@suse.de>
24405         PR tree-optimization/65961
24406         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24407         check and clarify dump message.
24408         (vect_build_slp_tree): If all children are built up from scalars
24409         build up the parent from scalars instead.
24410         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24412 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
24414         PR other/65366
24415         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
24416         instead of print ... .
24418 2015-06-02  Alan Modra  <amodra@gmail.com>
24420         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24421         2014-08-11 change.
24423 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
24425         PR tree-optimization/52563
24426         PR tree-optimization/62173
24427         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
24428         (alloc_iv, set_iv): New parameter.
24429         (determine_biv_step): Delete.
24430         (find_bivs): Inline original determine_biv_step.  Pass new
24431         argument to set_iv.
24432         (idx_find_step): Use no_overflow information for conversion.
24433         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24434         resolve_mixers handle folded_casts.
24435         (instantiate_scev_name): Change bool parameter to bool pointer.
24436         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24437         (instantiate_array_ref, instantiate_scev_not): Ditto.
24438         (instantiate_scev_3, instantiate_scev_2): Ditto.
24439         (instantiate_scev_1, instantiate_scev_r): Ditto.
24440         (instantiate_scev_convert, ): Change parameter.  Pass argument
24441         to chrec_convert_aggressive.
24442         (instantiate_scev): Change argument.
24443         (resolve_mixers): New parameter and set it.
24444         (scev_const_prop): New argument.
24445         * tree-scalar-evolution.h (resolve_mixers): New parameter.
24446         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24447         of chrec_conert_1.
24448         (chrec_convert): New parameter.  Move definition below.
24449         (chrec_convert_aggressive): New parameter and set it.  Call
24450         convert_affine_scev.
24451         * tree-chrec.h (chrec_convert): New parameter.
24452         (chrec_convert_aggressive): Ditto.
24454 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24456         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24457         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24458         the LHS of a no-return call if its type has variable size.
24459         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24460         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24462 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
24464         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24465         * config.in: Regenerate.
24467 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24469         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24470         consecutive accesses within outer-loop with force_vectorize
24471         for references with zero step in inner-loop.
24473 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
24475         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
24476         rather than from gcc/build directory.
24478 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
24480         PR target/65697
24481         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
24482         for __sync memory models, emit initial loads and final barriers as
24483         appropriate.
24485 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
24487         PR target/65697
24488         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
24489         (aarch64_split_atomic_op): Check for __sync memory models, emit
24490         appropriate initial loads and final barriers.
24492 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
24494         * Makefile.in: Fix gcov dependencies that should
24495         not point to a build folder.
24497 2015-06-01  Richard Biener  <rguenther@suse.de>
24499         Revert
24500         2015-05-29  Richard Biener  <rguenther@suse.de>
24502         PR tree-optimization/66314
24503         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24504         parameter that says which loop the new block belongs to.
24505         (ssa_create_duplicates): Blocks duplicated for the threaded
24506         path belong to the loop of the thread destination.
24508 2015-06-01  Martin Liska  <mliska@suse.cz>
24510         * sched-deps.c: Include pool-alloc.h before
24511         cselib.h header file is included.
24513 2015-06-01  Richard Biener  <rguenther@suse.de>
24515         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24516         functions.
24518 2015-06-01  Martin Liska  <mliska@suse.cz>
24520         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24521         a function local variable.
24523 2015-06-01  Martin Liska  <mliska@suse.cz>
24525         * alloc-pool.c (create_alloc_pool): Remove.
24526         (empty_alloc_pool): Likewise.
24527         (free_alloc_pool): Likewise.
24528         (free_alloc_pool_if_empty): Likewise.
24529         (pool_alloc): Likewise.
24530         (pool_free): Likewise.
24531         * alloc-pool.h: Remove old declarations.
24533 2015-06-01  Martin Liska  <mliska@suse.cz>
24535         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24536         (ira_create_object): Likewise.
24537         (ira_create_allocno): Likewise.
24538         (ira_create_live_range): Likewise.
24539         (copy_live_range): Likewise.
24540         (ira_finish_live_range): Likewise.
24541         (ira_free_allocno_costs): Likewise.
24542         (finish_allocno): Likewise.
24543         (finish_allocnos): Likewise.
24544         (initiate_prefs): Likewise.
24545         (ira_create_pref): Likewise.
24546         (finish_pref): Likewise.
24547         (finish_prefs): Likewise.
24548         (initiate_copies): Likewise.
24549         (ira_create_copy): Likewise.
24550         (finish_copy): Likewise.
24551         (finish_copies): Likewise.
24552         (finish_prefs): Likewise.
24554 2015-06-01  Martin Liska  <mliska@suse.cz>
24556         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24557         (allocate_and_init_ipcp_value): Likewise.
24558         (ipcp_lattice::add_value): Likewise.
24559         (merge_agg_lats_step): Likewise.
24560         (ipcp_driver): Likewise.
24561         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24562         (ipa_free_all_structures_after_iinln): Likewise.
24563         * ipa-prop.h: Likewise.
24565 2015-06-01  Martin Liska  <mliska@suse.cz>
24567         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24568         pool allocator.
24569         (set_hint_predicate): Likewise.
24570         (inline_summary_alloc): Likewise.
24571         (reset_inline_edge_summary): Likewise.
24572         (reset_inline_summary): Likewise.
24573         (set_cond_stmt_execution_predicate): Likewise.
24574         (set_switch_stmt_execution_predicate): Likewise.
24575         (compute_bb_predicates): Likewise.
24576         (estimate_function_body_sizes): Likewise.
24577         (inline_free_summary): Likewise.
24579 2015-06-01  Martin Liska  <mliska@suse.cz>
24581         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24582         (ipa_edge_duplication_hook): Likewise.
24583         (ipa_free_all_structures_after_ipa_cp): Likewise.
24584         (ipa_free_all_structures_after_iinln): Likewise.
24586 2015-06-01  Martin Liska  <mliska@suse.cz>
24588         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24589         (ipa_profile_generate_summary): Likewise.
24590         (ipa_profile_read_summary): Likewise.
24591         (ipa_profile): Likewise.
24593 2015-06-01  Martin Liska  <mliska@suse.cz>
24595         * tree-ssa-structalias.c (new_var_info): Use new type-based
24596         pool allocator.
24597         (new_constraint): Likewise.
24598         (init_alias_vars): Likewise.
24599         (delete_points_to_sets): Likewise.
24601 2015-06-01  Martin Liska  <mliska@suse.cz>
24603         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24604         (free_strinfo): Likewise.
24605         (pass_strlen::execute): Likewise.
24607 2015-06-01  Martin Liska  <mliska@suse.cz>
24609         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24610         pool allocator.
24611         (vn_reference_insert_pieces): Likewise.
24612         (vn_phi_insert): Likewise.
24613         (visit_reference_op_call): Likewise.
24614         (copy_phi): Likewise.
24615         (copy_reference): Likewise.
24616         (process_scc): Likewise.
24617         (allocate_vn_table): Likewise.
24618         (free_vn_table): Likewise.
24620 2015-06-01  Martin Liska  <mliska@suse.cz>
24622         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24623         pool allocator.
24624         (add_repeat_to_ops_vec): Likewise.
24625         (get_ops): Likewise.
24626         (maybe_optimize_range_tests): Likewise.
24627         (init_reassoc): Likewise.
24628         (fini_reassoc): Likewise.
24630 2015-06-01  Martin Liska  <mliska@suse.cz>
24632         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24633         pool allocator.
24634         (bitmap_set_new): Likewise.
24635         (get_or_alloc_expr_for_constant): Likewise.
24636         (get_or_alloc_expr_for): Likewise.
24637         (phi_translate_1): Likewise.
24638         (compute_avail): Likewise.
24639         (init_pre): Likewise.
24640         (fini_pre): Likewise.
24642 2015-06-01  Martin Liska  <mliska@suse.cz>
24644         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24645         (delete_dep_node): Likewise.
24646         (create_deps_list): Likewise.
24647         (free_deps_list): Likewise.
24648         (sched_deps_init): Likewise.
24649         (sched_deps_finish): Likewise.
24651 2015-06-01  Martin Liska  <mliska@suse.cz>
24653         * regcprop.c (free_debug_insn_changes): Use new type-based
24654         pool allocator.
24655         (replace_oldest_value_reg): Likewise.
24656         (pass_cprop_hardreg::execute): Likewise.
24658 2015-06-01  Martin Liska  <mliska@suse.cz>
24660         * ira-build.c (initiate_cost_vectors): Use new type-based
24661         pool allocator.
24662         (ira_allocate_cost_vector): Likewise.
24663         (ira_free_cost_vector): Likewise.
24664         (finish_cost_vectors): Likewise.
24666 2015-06-01  Martin Liska  <mliska@suse.cz>
24668         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24669         pool allocator.
24670         (free_sched_pools): Likewise.
24671         * sel-sched-ir.h (_list_alloc): Likewise.
24672         (_list_remove): Likewise.
24674 2015-06-01  Martin Liska  <mliska@suse.cz>
24676         * stmt.c (add_case_node): Use new type-based pool allocator.
24677         (expand_case): Likewise.
24678         (expand_sjlj_dispatch_table): Likewise.
24680 2015-06-01  Martin Liska  <mliska@suse.cz>
24682         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24683         (free_bb): Likewise.
24684         (pass_cse_reciprocals::execute): Likewise.
24686 2015-06-01  Martin Liska  <mliska@suse.cz>
24688         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24689         (sra_deinitialize) Likewise.
24690         (create_access_1) Likewise.
24691         (build_accesses_from_assign) Likewise.
24692         (create_artificial_child_access) Likewise.
24694 2015-06-01  Martin Liska  <mliska@suse.cz>
24696         * dse.c (get_group_info):Use new type-based pool allocator.
24697         (dse_step0) Likewise.
24698         (free_store_info) Likewise.
24699         (delete_dead_store_insn) Likewise.
24700         (free_read_records) Likewise.
24701         (record_store) Likewise.
24702         (replace_read) Likewise.
24703         (check_mem_read_rtx) Likewise.
24704         (scan_insn) Likewise.
24705         (dse_step1) Likewise.
24706         (dse_step7) Likewise.
24708 2015-06-01  Martin Liska  <mliska@suse.cz>
24710         * df-scan.c (struct df_scan_problem_data):Use new type-based
24711         pool allocator.
24712         (df_scan_free_internal) Likewise.
24713         (df_scan_alloc) Likewise.
24714         (df_grow_reg_info) Likewise.
24715         (df_free_ref) Likewise.
24716         (df_insn_create_insn_record) Likewise.
24717         (df_mw_hardreg_chain_delete) Likewise.
24718         (df_insn_info_delete) Likewise.
24719         (df_free_collection_rec) Likewise.
24720         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24721         (df_sort_and_compress_mws) Likewise.
24722         (df_ref_create_structure) Likewise.
24723         (df_ref_record) Likewise.
24725 2015-06-01  Martin Liska  <mliska@suse.cz>
24727         * df-problems.c (df_chain_create):Use new type-based pool allocator.
24728         (df_chain_unlink_1) Likewise.
24729         (df_chain_unlink) Likewise.
24730         (df_chain_remove_problem) Likewise.
24731         (df_chain_alloc) Likewise.
24732         (df_chain_free) Likewise.
24733         * df.h (struct dataflow) Likewise.
24735 2015-06-01  Martin Liska  <mliska@suse.cz>
24737         * cselib.c (new_elt_list):Use new type-based pool allocator.
24738         (new_elt_loc_list) Likewise.
24739         (unchain_one_elt_list) Likewise.
24740         (unchain_one_elt_loc_list) Likewise.
24741         (unchain_one_value) Likewise.
24742         (new_cselib_val) Likewise.
24743         (cselib_init) Likewise.
24744         (cselib_finish) Likewise.
24746 2015-06-01  Martin Liska  <mliska@suse.cz>
24748         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24749         (sh_reorg) Likewise.
24751 2015-06-01  Martin Liska  <mliska@suse.cz>
24753         * cfg.c (initialize_original_copy_tables):Use new type-based
24754         pool allocator.
24755         (free_original_copy_tables) Likewise.
24756         (copy_original_table_clear) Likewise.
24757         (copy_original_table_set) Likewise.
24759 2015-06-01  Martin Liska  <mliska@suse.cz>
24761         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24762         pool allocator.
24763         (asan_mem_ref_new) Likewise.
24764         (free_mem_ref_resources) Likewise.
24766 2015-06-01  Martin Liska  <mliska@suse.cz>
24768         * var-tracking.c (variable_htab_free):Use new type-based
24769         pool allocator.
24770         (attrs_list_clear) Likewise.
24771         (attrs_list_insert) Likewise.
24772         (attrs_list_copy) Likewise.
24773         (shared_hash_unshare) Likewise.
24774         (shared_hash_destroy) Likewise.
24775         (unshare_variable) Likewise.
24776         (var_reg_delete_and_set) Likewise.
24777         (var_reg_delete) Likewise.
24778         (var_regno_delete) Likewise.
24779         (drop_overlapping_mem_locs) Likewise.
24780         (variable_union) Likewise.
24781         (insert_into_intersection) Likewise.
24782         (canonicalize_values_star) Likewise.
24783         (variable_merge_over_cur) Likewise.
24784         (dataflow_set_merge) Likewise.
24785         (remove_duplicate_values) Likewise.
24786         (variable_post_merge_new_vals) Likewise.
24787         (dataflow_set_preserve_mem_locs) Likewise.
24788         (dataflow_set_remove_mem_locs) Likewise.
24789         (variable_from_dropped) Likewise.
24790         (variable_was_changed) Likewise.
24791         (set_slot_part) Likewise.
24792         (clobber_slot_part) Likewise.
24793         (delete_slot_part) Likewise.
24794         (loc_exp_insert_dep) Likewise.
24795         (notify_dependents_of_changed_value) Likewise.
24796         (emit_notes_for_differences_1) Likewise.
24797         (vt_emit_notes) Likewise.
24798         (vt_initialize) Likewise.
24799         (vt_finalize) Likewise.
24801 2015-06-01  Martin Liska  <mliska@suse.cz>
24803         * ira-color.c (init_update_cost_records):Use new type-based
24804         pool allocator.
24805         (get_update_cost_record) Likewise.
24806         (free_update_cost_record_list) Likewise.
24807         (finish_update_cost_records) Likewise.
24808         (initiate_cost_update) Likewise.
24810 2015-06-01  Martin Liska  <mliska@suse.cz>
24812         * lra.c (init_insn_regs): Use new type-based pool allocator.
24813         (new_insn_reg) Likewise.
24814         (free_insn_reg) Likewise.
24815         (free_insn_regs) Likewise.
24816         (finish_insn_regs) Likewise.
24817         (init_insn_recog_data) Likewise.
24818         (init_reg_info) Likewise.
24819         (finish_reg_info) Likewise.
24820         (lra_free_copies) Likewise.
24821         (lra_create_copy) Likewise.
24822         (invalidate_insn_data_regno_info) Likewise.
24824 2015-06-01  Martin Liska  <mliska@suse.cz>
24826         * lra-lives.c (free_live_range): Use new type-based pool allocator.
24827         (free_live_range_list) Likewise.
24828         (create_live_range) Likewise.
24829         (copy_live_range) Likewise.
24830         (lra_merge_live_ranges) Likewise.
24831         (remove_some_program_points_and_update_live_ranges) Likewise.
24832         (lra_live_ranges_init) Likewise.
24833         (lra_live_ranges_finish) Likewise.
24835 2015-06-01  Martin Liska  <mliska@suse.cz>
24837         * et-forest.c (et_new_occ): Use new type-based pool allocator.
24838         (et_new_tree): Likewise.
24839         (et_free_tree): Likewise.
24840         (et_free_tree_force): Likewise.
24841         (et_free_pools): Likewise.
24842         (et_split): Likewise.
24844 2015-06-01  Martin Liska  <mliska@suse.cz>
24846         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24847         to header file.
24848         * alloc-pool.h (pool_allocator::pool_allocator): New function.
24849         (pool_allocator::release): Likewise.
24850         (inline pool_allocator::release_if_empty): Likewise.
24851         (inline pool_allocator::~pool_allocator): Likewise.
24852         (pool_allocator::allocate): Likewise.
24853         (pool_allocator::remove): Likewise.
24855 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24857         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24858         in comment.
24860 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24862         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24863         to fusible_ops.
24864         * config/arm/arm.c (arm_print_tune_info): Likewise.
24865         (arm_macro_fusion_p): Likewise.
24866         (arm_macro_fusion_pair_p): Likewise.
24868 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24870         * config/aarch64/aarch64-protos.h (tune_params): Rename
24871         fuseable_ops to fusible_ops.
24872         * config/aarch64/aarch64.c (generic_tunings): Rename
24873         fuseable_ops to fusible_ops.
24874         (cortexa53_tunings): Likewise.
24875         (cortexa57_tunings): Likewise.
24876         (thunderx_tunings): Likewise.
24877         (xgene1_tunings): Likewise.
24878         (aarch64_macro_fusion_p): Likewise.
24879         (aarch64_macro_fusion_pair_p): Likewise.
24881 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24883         * config/s390/driver-native.c: New file.
24884         * config/s390/x-native: New file.
24885         * config.host: Add new files for s390.
24886         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24887         and -march=native
24888         * config.gcc: Likewise.
24889         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24890         * config/s390/s390-opts.h (enum processor_type): Ditto.
24891         * config/s390/s390.c (s390_option_override): Catch unhandled
24892         PROCESSOR_NATIVE
24894 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
24896         PR target/65527
24897         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24898         redirection for instrumented calls.
24899         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24900         (append_compiler_options): Append -fcheck-pointer-bounds.
24901         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24902         (chkp_redirect_edge): New.
24903         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24904         (chkp_redirect_edge): New.
24906 2015-06-01  Richard Biener  <rguenther@suse.de>
24908         PR tree-optimization/66280
24909         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24910         def-use walking.
24912 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24914         * config/aarch64/aarch64.md
24915         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24916         logic_shift_imm.
24918 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24920         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24921         Remove obsolete kludge.
24923 2015-06-01  Richard Biener  <rguenther@suse.de>
24925         * tree-ssa-reassoc.c (get_rank): Simplify.
24927 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
24929         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24930         * configure: Regenerated.
24932 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
24934         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24935         issue (add space between string literal and macro).
24936         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24938 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
24940         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24941         implict or explicit -fPIE or -fpie.
24943 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
24945         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24947 2015-05-28  DJ Delorie  <dj@redhat.com>
24949         * expmed.c (extract_bit_field_1): Avoid clobbering a
24950         yet-to-be-used base/index register.
24952 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
24954         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24955         (alias_stats): Add num_universal.
24956         (alias_set_subset_of): Special case pointers; be ready for NULL
24957         children.
24958         (alias_sets_conflict_p): Special case pointers; be ready for NULL
24959         children.
24960         (init_alias_set_entry): Break out from ...
24961         (record_alias_subset): ... here; propagate new fields;
24962         allocate children only when really needed.
24963         (get_alias_set): Do less generous pointer globbing.
24964         (dump_alias_stats_in_alias_c): Update statistics.
24966 2015-05-30  Alan Modra  <amodra@gmail.com>
24968         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24969         correct block for use of r12.
24970         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24972 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24974         PR target/66215
24975         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24976         with -mhotpatch=.
24978 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
24980         PR tree-optimization/66142
24981         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24982         virtual phis that feed themselves.
24984 2015-05-29  Richard Biener  <rguenther@suse.de>
24986         PR tree-optimization/66314
24987         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24988         parameter that says which loop the new block belongs to.
24989         (ssa_create_duplicates): Blocks duplicated for the threaded
24990         path belong to the loop of the thread destination.
24992 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24994         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24995         to cleanup-saved-temps.
24996         * doc/sourcebuild.texi (Clean up generated test files): Expand
24997         introduction.
24998         (dg-keep-saved-temps): Document new proc.
24999         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
25000         cleanup-saved-temps): Remove.
25002 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
25004         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
25005         gcc_AC_CHECK_DECLS.
25006         * configure: Regenerate.
25008 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25010         * config/nios2/linux.h (CPP_SPEC): Define.
25012 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25014         * config/microblaze/linux.h (CPP_SPEC): Define.
25016 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
25018         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
25019         -pthread is specified.
25021 2015-05-28  Richard Biener  <rguenther@suse.de>
25023         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
25024         (vect_fixup_scalar_cycles_with_patterns): Likewise.
25025         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
25026         after pattern recog.
25027         (vect_create_epilog_for_reduction): Properly handle reductions
25028         with patterns.
25029         (vectorizable_reduction): Likewise.
25030         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
25031         reduction chains.
25032         (vect_get_constant_vectors): Create the correct number of
25033         initial values for reductions.
25034         (vect_schedule_slp_instance): Handle reduction chains that are
25035         type changing properly.
25036         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
25038 2015-05-28  Richard Biener  <rguenther@suse.de>
25040         PR tree-optimization/66142
25041         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
25042         values better in memcpy destination handling.  Handle non-aliasing
25043         we discover here.
25045 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
25047         PR target/63810
25048         * config/darwin-c.c (version_components): New global enum.
25049         (parse_version, version_as_legacy_macro)
25050         (version_as_modern_macro, macosx_version_as_macro): New functions.
25051         (version_as_macro): Remove.
25052         (darwin_cpp_builtins): Use new function.
25054 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
25056         * builtins.c (expand_builtin_acc_on_device): Mark parameters
25057         with ATTRIBUTE_UNUSED.
25059 2015-05-28  Julian Brown  <julian@codesourcery.com>
25061         PR libgomp/65742
25063         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
25064         sequence for !ACCEL_COMPILER.
25066 2015-05-28  Nick Clifton  <nickc@redhat.com>
25068         * config/rx/rx.c (push_regs): New function.  Extracts code from...
25069         (rx_expand_prologue): ... here.  Use push_regs to push even small
25070         spans of registers.
25071         (pop_regs): New function.
25072         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
25073         registers.
25075 2015-05-28  Richard Biener  <rguenther@suse.de>
25077         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
25078         member.
25079         (SLP_INSTANCE_BODY_COST_VEC): Remove.
25080         (vect_update_slp_costs_according_to_vf): Likewise.
25081         (vect_slp_analyze_operations): Update prototype.
25082         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
25083         vect_update_slp_costs_according_to_vf, adjust.
25084         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
25085         (vect_analyze_slp_cost_1): Likewise.
25086         (vect_analyze_slp_cost): Likewise.  Properly deal with
25087         widening reduction ops.  Commit body costs.
25088         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
25089         cost for loops from here.
25090         (vect_slp_analyze_operations): But do it from here when
25091         the vectorization factor is known and stmts are analyzed.
25092         (vect_bb_vectorization_profitable_p): Simplify.
25093         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
25094         (vect_update_slp_costs_according_to_vf): Remove.
25096 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
25097             H.J. Lu  <hongjiu.lu@intel.com>
25099         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
25100         (BUILD_CFLAGS): Likewise.
25101         (BUILD_CXXFLAGS): Likewise.
25102         (LINKER): Add @NO_PIE_FLAG@.
25103         (BUILD_LDFLAGS): Likewise.
25104         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
25105         --enable-default-pie.
25106         * common.opt (fPIE): Initialize to -1.
25107         (fpie): Likewise.
25108         (no-pie): New option.
25109         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
25110         * configure.ac: Add --enable-default-pie.
25111         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
25112         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
25113         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
25114         * gcc.c (NO_PIE_SPEC): New.
25115         (PIE_SPEC): Likewise.
25116         (NO_FPIE1_SPEC): Likewise.
25117         (FPIE1_SPEC): Likewise.
25118         (NO_FPIE2_SPEC): Likewise.
25119         (FPIE2_SPEC): Likewise.
25120         (NO_FPIE2_SPEC): Likewise.
25121         (FPIE_SPEC): Likewise.
25122         (NO_FPIE_SPEC): Likewise.
25123         (NO_FPIC1_SPEC): Likewise.
25124         (FPIC1_SPEC): Likewise.
25125         (NO_FPIC2_SPEC): Likewise.
25126         (FPIC2_SPEC): Likewise.
25127         (NO_FPIC2_SPEC): Likewise.
25128         (FPIC_SPEC): Likewise.
25129         (NO_FPIC_SPEC): Likewise.
25130         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
25131         (FPIE1_OR_FPIC1_SPEC): Likewise.
25132         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
25133         (FPIE2_OR_FPIC2_SPEC): Likewise.
25134         (NO_FPIE_AND_FPIC_SPEC): Likewise.
25135         (FPIE_OR_FPIC_SPEC): Likewise.
25136         (LD_PIE_SPEC): Likewise.
25137         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
25138         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
25139         * config/darwin.h (PIE_SPEC): Renamed to ...
25140         (DARWIN_PIE_SPEC): This.
25141         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
25142         * config/darwin9.h (PIE_SPEC): Renamed to ...
25143         (DARWIN_PIE_SPEC): This.
25144         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
25145         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25146         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
25147         FPIE2_OR_FPIC2_SPEC.
25148         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
25149         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
25150         * config/sol2.h (ASM_PIC_SPEC): Likewise.
25151         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25152         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25153         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25154         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
25155         * config/m32r/m32r.h (ASM_SPEC): Likewise.
25156         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
25157         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25158         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
25159         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
25160         * config/sparc/linux.h (ASM_SPEC): Likewise.
25161         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25162         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
25163         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
25164         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25165         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25166         * config/sparc/sparc.h (ASM_SPEC): Likewise.
25167         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
25168         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
25169         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
25170         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
25171         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
25172         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
25173         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
25174         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
25175         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
25176         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
25177         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
25178         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
25179         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25180         * config/vax/linux.h (ASM_SPEC): Likewise.
25181         * doc/install.texi: Document --enable-default-pie.
25182         * doc/invoke.texi: Document -no-pie.
25183         * config.in: Regenerated.
25184         * configure: Likewise.
25186 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25188         PR rtl-optimization/66168
25189         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
25190         can_move_invariant_reg.
25192 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
25194         PR target/66148
25195         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
25196         REG_EQUAL note when doing insert.
25198         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
25199         instead of "%d" for 'o' operand.
25201 2015-05-27  Nathan Sidwell  <nathan@acm.org>
25203         PR c++/66270
25204         * tree.c (build_pointer_type_for_mode): Canonical type does not
25205         inherit can_alias_all.
25206         (build_reference_type_for_mode): Likewise.
25208 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
25210         * expr.h (array_at_struct_end_p): Move to...
25211         (array_ref_element_size): Likewise.
25212         (component_ref_field_offset): Likewise.
25213         * tree.h (array_ref_element_size): ...here.
25214         (array_at_struct_end_p): Likewise.
25215         (component_ref_field_offset): Likewise.
25216         * expr.c (array_ref_element_size): Move to...
25217         (array_ref_low_bound): Likewise.
25218         (array_at_struct_end_p): Likewise.
25219         (array_ref_up_bound): Likewise.
25220         (component_ref_field_offset): Likewise.
25221         * tree.c (array_ref_element_size): ...here.
25222         (array_ref_low_bound): Likewise.
25223         (array_ref_up_bound): Likewise.
25224         (array_at_struct_end_p): Likewise.
25225         (component_ref_field_offset): Likewise.
25227 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
25228             Szabolcs Nagy  <szabolcs.nagy@arm.com>
25230         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
25232 2015-05-27  Jason Merrill  <jason@redhat.com>
25234         PR bootstrap/66304
25235         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
25236         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
25237         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
25239 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
25241         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
25242         is true.
25244         * statistics.c (statistics_fini_pass): Print pass name.
25246 2015-05-27  Richard Biener  <rguenther@suse.de>
25248         PR tree-optimization/66272
25249         Revert parts of
25250         2014-08-15  Richard Biener  <rguenther@suse.de>
25252         PR tree-optimization/62031
25253         * tree-data-ref.c (dr_analyze_indices): Do not set
25254         DR_UNCONSTRAINED_BASE.
25255         (dr_may_alias_p): All indirect accesses have to go the
25256         formerly DR_UNCONSTRAINED_BASE path.
25257         * tree-data-ref.h (struct indices): Remove
25258         unconstrained_base member.
25259         (DR_UNCONSTRAINED_BASE): Remove.
25261 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
25263         * dwarf2out.c: Remove block_map.
25264         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
25265         (gen_lexical_block_die): Same.
25266         (dwarf2out_function_decl): Remove block_map use.
25267         (dwarf2out_c_finalize): Same.
25268         * tree-core.h (struct tree_block): Add die field.
25269         * tree.h (BLOCK_DIE): New.
25271 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25273         PR target/65358
25274         * expr.c (memory_load_overlap): New function.
25275         (emit_push_insn): When pushing partial args to the stack would
25276         clobber the register part load the overlapping part into a pseudo
25277         and put it into the hard reg after pushing.  Change return type
25278         to bool.  Add bool argument.
25279         * expr.h (emit_push_insn): Change return type to bool.
25280         Add bool argument.
25281         * calls.c (expand_call): Cancel sibcall optimization when encountering
25282         partial argument on targets with ARGS_GROW_DOWNWARD and
25283         !STACK_GROWS_DOWNWARD.
25284         (emit_library_call_value_1): Update callsite of emit_push_insn.
25285         (store_one_arg): Likewise.
25287 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
25289         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
25291 2015-05-27  Martin Liska  <mliska@suse.cz>
25293         * Makefile.in: Add additional dependencies related to memory report
25294         enhancement.
25295         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
25296         * bitmap.c (struct bitmap_descriptor_d): Remove.
25297         (struct loc): Likewise.
25298         (struct bitmap_desc_hasher): Likewise.
25299         (bitmap_desc_hasher::hash): Likewise.
25300         (bitmap_desc_hasher::equal): Likewise.
25301         (get_bitmap_descriptor): Likewise.
25302         (bitmap_register): User new memory descriptor API.
25303         (register_overhead): Likewise.
25304         (bitmap_find_bit): Register nsearches and search_iter statistics.
25305         (struct bitmap_output_info): Remove.
25306         (print_statistics): Likewise.
25307         (dump_bitmap_statistics): Use new memory descriptor.
25308         * bitmap.h (struct bitmap_usage): New class.
25309         * genmatch.c: Extend header file inclusion.
25310         * genpreds.c: Likewise.
25311         * ggc-common.c (struct ggc_usage): New class.
25312         (struct ggc_loc_desc_hasher): Remove.
25313         (ggc_loc_desc_hasher::hash): Likewise.
25314         (ggc_loc_desc_hasher::equal): Likewise.
25315         (struct ggc_ptr_hash_entry): Likewise.
25316         (struct ptr_hash_hasher): Likewise.
25317         (ptr_hash_hasher::hash): Likewise.
25318         (ptr_hash_hasher::equal): Likewise.
25319         (make_loc_descriptor): Likewise.
25320         (ggc_prune_ptr): Likewise.
25321         (dump_ggc_loc_statistics): Use new memory descriptor.
25322         (ggc_record_overhead): Likewise.
25323         (ggc_free_overhead): Likewise.
25324         (final_cmp_statistic): Remove.
25325         (cmp_statistic): Likewise.
25326         (ggc_add_statistics): Liekwise.
25327         (ggc_prune_overhead_list): Likewise.
25328         * hash-map-traits.h: New file.
25329         * hash-map.h (struct default_hashmap_traits): Move the traits to a
25330         separate header file.
25331         * hash-set.h: Pass memory statistics info to ctor.
25332         * hash-table.c (void dump_hash_table_loc_statistics): New function.
25333         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
25334         (hash_table::~hash_table): Register memory release operation.
25335         (hash_table::alloc_entries): Handle memory allocation operation.
25336         (hash_table::expand): Likewise.
25337         * inchash.c (iterative_hash_hashval_t): Move implementation to header
25338         file.
25339         (iterative_hash_host_wide_int): Likewise.
25340         * inchash.h (class hash): Likewise.
25341         * mem-stats-traits.h: New file.
25342         * mem-stats.h: New file.
25343         (mem_location): Add new class.
25344         (mem_usage): Likewise.
25345         (mem_alloc_description): Likewise.
25346         * sese.c: Add new header file inclusision.
25347         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
25348         and hash_set.
25349         * tree-sra.c: Add new header file inclusision.
25350         * vec.c (struct vec_descriptor): Remove.
25351         (hash_descriptor): Likewise.
25352         (struct vec_usage): Likewise.
25353         (struct ptr_hash_entry): Likewise.
25354         (hash_ptr): Likewise.
25355         (eq_ptr): Likewise.
25356         (vec_prefix::register_overhead): Use new memory descriptor API.
25357         (vec_prefix::release_overhead): Likewise.
25358         (add_statistics): Remove.
25359         (dump_vec_loc_statistics): Use new memory descriptor API.
25360         * vec.h (struct vec_prefix): Likewise.
25361         (va_heap::reserve): Likewise.
25362         (va_heap::release): Likewise.
25363         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
25365 2015-05-27  Richard Biener  <rguenther@suse.de>
25367         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
25368         earlier and remove ??? comment.
25369         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
25370         and got called from loop analysis bail out.  Always pass the SLP
25371         node to the vectorizable_* functions.
25372         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
25373         the premature SLP check here.
25374         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
25375         detected SLP stmts.
25376         (vect_detect_hybrid_slp_1): Likewise.
25378 2015-05-26  Jeff Law  <law@redhat.com>
25380         * combine.c (find_split_point): Verify that the shift count is a
25381         constant when choosing (plus (ashift ...)) as a split point.
25383         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25384         No functional changes.
25386 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
25388         * ipa-polymorphic-call.c
25389         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25390         case when call target is already known.
25392 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
25394         PR target/65979
25395         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25396         take into account the case that operands[1] and operands[2]
25397         are the same register.
25399 2015-05-26  Michael Matz  <matz@suse.de>
25401         PR middle-end/66251
25403         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25404         stores.
25405         (vect_create_vectorized_demotion_stmts): Always set
25406         STMT_VINFO_VEC_STMT, also with SLP.
25407         (vectorizable_store): Handle strided group stores.
25409 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25411         PR target/66049
25412         * config/aarch64/aarch64.md
25413         (*adds_shift_imm_<mode>):  New pattern.
25414         (*subs_shift_imm_<mode>):  Likewise.
25415         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
25416         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25417         (*add_uxt<mode>_shift2): Likewise.
25418         (*add_uxtsi_shift2_uxtw): Likewise.
25419         (*sub_uxt<mode>_shift2): Likewise.
25420         (*sub_uxtsi_shift2_uxtw): Likewise.
25422 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
25424         * config/rs6000/constraints.md (Y, U): Use match_test.
25426 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25428         PR target/52144
25429         * config/arm/arm.c (arm_option_check_internal)
25430         (arm_option_params_internal): Check opts->target_flags to set macros.
25431         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25432         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25433         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25434         (builtin_define): Replaced with def_or_undef_macro.
25435         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25436         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25437         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25438         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25439         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25440         (TARGET_ARM_FEATURE_LDREX_P)
25441         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25442         * config/arm/arm-c.c (def_or_undef_macro): New function.
25443         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25445 2015-05-26  Christian Bruel  <christian.bruel@st.com>
25447         * c-common.h (builtin_define_with_int_value)
25448         (builtin_define_type_sizeof): Declare.
25449         * c-cppbuiltin.c (builtin_define_with_int_value)
25450         (builtin_define_type_sizeof): Externalize.
25451         (builtin_define_std): Cleanup declaration.
25452         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25453         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25454         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25455         (builtin_define, builtin_assert): New macros.
25457 2015-05-26  Richard Biener  <rguenther@suse.de>
25459         PR tree-optimization/66142
25460         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25461         MEM_REFs for the same base address.
25463 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25465         PR ipa/66181
25466         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25468 2015-05-26  Jason Merrill  <jason@redhat.com>
25470         * configure.ac: Set CXXFLAGS for ISL test.
25471         * configure: Regenerate.
25473         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
25474         strstr and basename.
25475         * configure: Regenerate.
25477 2015-05-26  Richard Biener  <rguenther@suse.de>
25479         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
25480         X % C -> X & (C - 1) for C being a power-of two to ...
25481         * match.pd: ... patterns.
25483 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
25485         * match.pd (swapped_tcc_comparison): New operator list.
25486         (-A CMP -B): New simplification.
25487         * fold-const.c (fold_comparison): Remove corresponding code.
25489 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
25491         * caller-save.c (init_caller_save): Base temporary register numbers
25492         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
25493         * cfgloopanal.c (init_set_costs): Likewise.
25494         * dojump.c (prefer_and_bit_test): Likewise.
25495         * expr.c (init_expr_target): Likewise.
25496         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25497         * lower-subreg.c (init_lower_subreg): Likewise.
25498         * postreload.c (reload_cse_regs_1): Likewise.
25500 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
25502         * gensupport.h (compute_test_codes): Declare.
25503         * gensupport.c (compute_predicate_codes): Rename to...
25504         (compute_test_codes): ...this.  Generalize error message.
25505         (process_define_predicate): Update accordingly.
25506         * genpreds.c (compute_maybe_allows): Delete.
25507         (add_constraint): Use compute_test_codes to determine whether
25508         something can accept a SUBREG, REG or MEM.
25510 2015-05-26  Torvald Riegel  <triegel@redhat.com>
25512         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25513         'memory model' to align with C++11; fix description of memory orders;
25514         fix a few typos.
25516 2015-05-26  Richard Biener  <rguenther@suse.de>
25518         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25519         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
25520         detect whether we apply SLP.  Remove call to
25521         vect_update_slp_costs_according_to_vf.
25522         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25523         vect_update_slp_costs_according_to_vf from here.  Dispatch
25524         to vect_slp_analyze_operations to analyze SLP stmts.
25525         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25526         unused bb_vec_info parameter, adjust assert.
25527         (vect_slp_analyze_operations): Pass in the slp instance tree
25528         instead of bb_vec_info.
25529         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25530         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25532 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25534         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25535         Q_REGS.  Expand comment.
25536         (REG_CLASS_NAMES): Ditto.
25537         (REG_CLASS_CONTENTS): Ditto.
25539 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
25541         PR target/66274
25542         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25543         when LEGACY_INT_REGNO_P is processed.
25545 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25547         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25549 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25551         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25552         register if not marked dead/unused, before return.
25554 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25556         PR lto/66180
25557         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25558         is set; check for assembler name at LTO time.
25559         (type_in_anonymous_namespace): Remove hacks, check that all
25560         anonymous types are called "<anon>"
25561         (odr_type_p): Simplify; add check for "<anon>"
25562         (odr_subtypes_equivalent): Add odr_type_p check.
25563         * tree.c (need_assembler_name_p): Even anonymous namespace needs
25564         assembler name.
25566 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25568         * ipa-utils.h (method_class_type): Remove.
25569         * cgraphunit.c (walk_polymorphic_call_targets): Use
25570         TYPE_METHOD_BASETYPE.
25571         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25572         on main variants only.
25573         (method_class_type): Remove.
25574         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25575         (build_type_inheritance_graph): Likewise.
25576         * ipa-icf.c (sem_function::equals_wpa): Likewise.
25577         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25578         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25580 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25582         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25583         is_typedef_decl, typedef_variant_p): Constify.
25584         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25585         is_typedef_decl, typedef_variant_p): Constify.
25587 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25589         * defaults.h (gen_tablejump): New function.
25590         (HAVE_tablejump): Add default value.
25591         * expr.c: Adjust.
25592         * stmt.c: Likewise.
25594 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25596         * defaults.h (gen_store_multiple): New function.
25597         (HAVE_store_multiple): Add default value.
25598         * expr.c (move_block_from_reg): Adjust.
25600 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25602         * defaults.h (gen_load_multiple): New function.
25603         (HAVE_load_multiple): Add default value.
25604         * expr.c (move_block_to_reg): Adjust.
25606 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25608         * defaults.h (gen_mem_signal_fence): New function.
25609         (HAVE_mem_signal_fence): Add default value.
25610         * optabs.c: Adjust.
25612 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25614         * defaults.h (gen_memory_barrier): New function.
25615         (HAVE_memory_barrier): Add default value.
25616         * optabs.c: Adjust.
25618 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25620         * defaults.h (gen_mem_thread_fence): New function.
25621         (HAVE_mem_thread_fence): Add default definition.
25622         * optabs.c: Adjust.
25624 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25626         * combine.c (find_split_point): Check the value of HAVE_lo_sum
25627         instead of if it is defined.
25628         (combine_simplify_rtx): Likewise.
25629         * lra-constraints.c (process_address_1): Likewise.
25630         * config/darwin.c: Adjust.
25631         * genconfig.c (main): Always define HAVE_lo_sum.
25633 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25635         * genmatch.c (parser::parse_operation): Reject expanding
25636         operator-list inside 'for'.
25638 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25640         * genmatch.c (parser::parse_for): Reject iterator if used as
25641         operator-list.
25643 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25645         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25646         after end of id-list.
25648 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25650         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25651         we do not try to compute canonical type for type that does not need
25652         alias set.
25653         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25654         FUNCITON_TYPE.
25655         * tree.h (type_with_alias_set_p): New.
25657 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25659         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
25660         function attributes.
25661         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25663 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
25665         * Makefile.in (check_gcc_parallelize): Delete.
25666         (lang_checks_parallelized): Update comment.
25668 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
25670         PR rtl-optimization/66237
25671         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25672         location of an "as_a" cast.
25674 2015-05-22  Jeff Law  <law@redhat.com>
25676         * config/pa/pa.md (non-canonical shift-add insns): Remove.
25677         (peepholes with non-canonical RTL sources): Remove.
25678         (peepholes for indexed stores of FP regs in integer modes): Match and
25679         generate canonical RTL.
25681 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25683         PR tree-optimization/63387
25684         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25685         ((x ord x) & (y ord y) -> (x ord y),
25686         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25687         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25688         vectors like scalars.
25690 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25692         * convert.c (convert_to_integer, convert_to_vector): Include the
25693         types in the error message.
25695 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25697         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25698         simplifications.
25700 2015-05-22  Jeff Law  <law@redhat.com>
25702         * config/pa/pa.md (integer_indexed_store splitters): Use
25703         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
25704         insns -- adjusting the constant 2nd operand accordingly.
25706         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25707         (plus (ashift X log2) Y) if it is a split point.
25709         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25710         out of hppa_legitimize_address to handle both forms of a multiply
25711         by 2, 4 or 8.
25712         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25713         Always generate the ASHIFT variant as the result is not directly
25714         used in a MEM.  Update comments and refactor slightly to improve
25715         readability.
25717 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25719         PR target/65491
25720         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25721         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
25722         (aarch64_composite_type_p): Return false if given type and mode are
25723         for a short vector.
25725 2015-05-22  Richard Biener  <rguenther@suse.de>
25727         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25728         member.
25729         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25730         patterns when determining whether SLP is pure.
25731         (vect_is_slp_reduction): Remove check for pattern stmts.
25732         (vect_is_simple_reduction_1): Remove dead code.
25733         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25734         (vect_get_and_check_slp_defs): Pass in the stmt number.
25735         Allow the first def in a reduction to be not a pattern stmt when
25736         the rest of the stmts def are patterns.
25737         (vect_build_slp_tree_1): Allow tcc_expression codes like
25738         SAD_EXPR and DOT_PROD_EXPR.
25739         (vect_build_slp_tree): Adjust.
25740         (vect_analyze_slp): Refactor and move BB vect error message ...
25741         (vect_slp_analyze_bb_1): ... here.
25743 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
25745         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25746         for CSWTCH temporary.
25748 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25750         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25751         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
25752         unknown unspecs.
25754 2015-05-22  Richard Biener  <rguenther@suse.de>
25756         PR tree-optimization/66251
25757         * tree-vect-stmts.c (vectorizable_conversion): Properly
25758         set STMT_VINFO_VEC_STMT even for the SLP case.
25760 2015-05-22  Marek Polacek  <polacek@redhat.com>
25762         * doc/extend.texi: Use @pxref instead of @xref.
25764 2015-05-22  hiraditya  <hiraditya@msn.com>
25766         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25767         redundant if.
25769 2015-05-22  Richard Biener  <rguenther@suse.de>
25771         PR tree-optimization/65701
25772         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25773         Move peeling cost models into one place.  Peel for alignment
25774         for single loads only if an aligned load is cheaper than
25775         an unaligned load.
25777 2015-05-22  Marek Polacek  <polacek@redhat.com>
25779         PR c/47043
25780         * doc/extend.texi (Enumerator Attributes): New section.
25781         Document syntax of enumerator attributes.
25783 2015-05-22  Richard Biener  <rguenther@suse.de>
25785         * tree-vect-loop.c (get_reduction_op): New function.
25786         (vect_model_reduction_cost): Use it, add reduc_index parameter.
25787         Make ready for BB reductions.
25788         (vect_create_epilog_for_reduction): Use get_reduction_op.
25789         (vectorizable_reduction): Init reduc_index to a valid value.
25790         Adjust vect_model_reduction_cost call.
25791         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25792         operand for reduction defaults.  Add SAD_EXPR support.
25793         Assert we have a neutral op for SLP reductions.
25794         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25795         walking pattern stmt ops only recurse to SSA names.
25797 2015-05-22  Richard Biener  <rguenther@suse.de>
25799         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25800         assert with guard, remove check on detected reduction.
25801         (vect_recog_sad_pattern): Likewise.
25802         (vect_recog_widen_sum_pattern): Likewise.
25804 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25806         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25807         __always_inline__ attribute.
25808         (vaesdq_u8): Likewise.
25809         (vaesmcq_u8): Likewise.
25810         (vaesimcq_u8): Likewise.
25811         (vsha1cq_u32): Likewise.
25812         (vsha1mq_u32): Likewise.
25813         (vsha1pq_u32): Likewise.
25814         (vsha1h_u32): Likewise.
25815         (vsha1su0q_u32): Likewise.
25816         (vsha1su1q_u32): Likewise.
25817         (vsha256hq_u32): Likewise.
25818         (vsha256h2q_u32): Likewise.
25819         (vsha256su0q_u32): Likewise.
25820         (vsha256su1q_u32): Likewise.
25821         (vmull_p64): Likewise.
25822         (vmull_high_p64): Likewise.
25824 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25826         * final.c (final_scan_insn): Don't check HAVE_peephole with the
25827         preprocessor.
25828         * output.h: Likewise.
25829         * genconfig.c (main): Alwways define HAVE_peephole.
25830         * genpeep.c: Don't emit checks of HAVE_peephole.
25832 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25834         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25835         check HAVE_conditional_move with the preprocessor.
25837 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25839         * genconfig.c (main): Always define HAVE_conditional_move.
25840         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25841         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25842         is defined.
25844 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25846         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25847         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25848         and FRAME_POINTER_REGNUM with the preprocessor.
25850 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25852         * defaults.h: Add default for STACK_PUSH_CODE.
25853         * expr.c: Don't redefine STACK_PUSH_CODE.
25854         * recog.c: Likewise.
25856 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25858         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25859         sched-deps.c: Use if instead of preprocessor checks with
25860         STACK_GROWS_DOWNWARD.
25862 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25864         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25865         is defined.
25866         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25867         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25868         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25869         * doc/tm.texi: Regenerate.
25871 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
25873         PR target/66232
25874         * config/i386/constraints.md (Bg): New constraint for GOT memory
25875         operand.
25876         * config/i386/i386.md (*call_got_x32): New pattern.
25877         (*call_value_got_x32): Likewise.
25878         * config/i386/predicates.md (GOT_memory_operand): New predicate.
25880 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
25882         PR tree-optimization/66233
25883         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25884         Simplify.
25886 2015-05-21  Jeff Law  <law@redhat.com>
25888         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25889         than MULT for shadd sequences.
25891 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
25893         * alias.c (alias_stats): New static var.
25894         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25895         (dump_alias_stats_in_alias_c): New function.
25896         * alias.h (dump_alias_stats_in_alias_c): Declare.
25897         * tree-ssa-alias.c (dump_alias_stats): Call it.
25899 2015-05-08  Michael Matz  <matz@suse.de>
25901         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25902         to strided_p.
25903         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25904         (STMT_VINFO_STRIDED_P): ... this.
25905         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25906         (vect_verify_datarefs_alignment): Likewise.
25907         (vect_enhance_data_refs_alignment): Likewise.
25908         (vect_analyze_data_ref_access): Likewise.
25909         (vect_analyze_data_refs): Accept strided stores.
25910         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25911         (vect_model_load_cost): Adjust for macro rename.
25912         (vectorizable_mask_load_store): Likewise.
25913         (vectorizable_load): Likewise.
25914         (vectorizable_store): Open code strided stores.
25916 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25918         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25919         Document sqrt_insn.
25921 2015-05-21  Richard Biener  <rguenther@suse.de>
25923         PR c++/66211
25924         * match.pd: Guard pattern optimzing (int)(float)int
25925         conversions to apply only on GIMPLE.
25927 2015-05-21  Jeff Law  <law@redhat.com>
25929         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25930         multiply-accumulate/shift-add insn generation.
25932 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25934         PR target/54236
25935         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25936         operands[1] are the same.
25938 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
25940         PR middle-end/66221
25941         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25942         build_distinct_type_copy to copy bounds.
25944 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
25946         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25947         Change to unsigned int.
25949 2015-05-20  Jeff Law  <law@redhat.com>
25951         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25952         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25953         (pa_shadd_constant_p): Allow constants for shadd insns rather
25954         than valid scaling constants for memory addresses.
25955         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25956         * config/pa/predicates.md (mem_shadd_operand): New predicate.
25957         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25958         (shift-add insns using ASHIFT): New patterns.
25960 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
25962         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25963         feasible.
25964         (fix_up_fall_thru_edges): Likewise.
25965         (fix_crossing_conditional_branches): Likewise. Promote jump targets
25966         from to rtx_insn to rtx_code_label where feasible.
25967         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25968         gen_move_insn (returned type changed to rtx_insn).
25969         * builtins.c (expand_errno_check): Fix arguments of
25970         do_compare_rtx_and_jump (now expects rtx_code_label).
25971         (expand_builtin_acc_on_device): Likewise.
25972         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25973         invert_jump (now exprects rtx_jump_insn).
25974         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25975         (construct_init_block): Use rtx_code_label.
25976         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25977         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25978         calling redirect_jump.
25979         (patch_jump_insn): Likewise.
25980         (redirect_branch_edge): Likewise.
25981         (force_nonfallthru_and_redirect): Likewise.
25982         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25983         when suitable.
25984         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25985         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25986         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25987         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25988         to store the value retured by gen_label_rtx.
25989         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25990         rtx_jump_insn.
25991         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25992         (split_branches): Fix calls of redirect_jump.
25993         * dojump.c (jumpifnot): Promote argument type from rtx to
25994         rtx_code_label.
25995         (jumpifnot_1): Likewise.
25996         (jumpif): Likewise.
25997         (jumpif_1): Likewise.
25998         (do_jump_1): Likewise.
25999         (do_jump): Likewise. Use rtx_code_label when feasible.
26000         (do_jump_by_parts_greater_rtx): Likewise.
26001         (do_jump_by_parts_zero_rtx): Likewise.
26002         (do_jump_by_parts_equality_rtx): Likewise.
26003         (do_compare_rtx_and_jump): Likewise.
26004         * dojump.h: Update function prototypes.
26005         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
26006         returns rtx_insn).
26007         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
26008         rtx_jump_insn.
26009         (emit_label_before): Likewise.
26010         (emit_jump_insn_after_noloc): Likewise.
26011         (emit_jump_insn_after_setloc): Likewise.
26012         (emit_jump_insn_after): Likewise
26013         (emit_jump_insn_before_setloc): Likewise.
26014         (emit_jump_insn_before): Likewise.
26015         (emit_label_before): Promote return type to rtx_code_label.
26016         (emit_label): Likewise.
26017         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
26018         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
26019         gen_move_insn.
26020         (emit_stack_restore): Likewise.
26021         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
26022         (do_cmp_and_jump): Likewise.
26023         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
26024         from rtx to rtx_code_label.
26025         (gen_move_insn_uncast): New function.
26026         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
26027         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
26028         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
26029         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
26030         invert_jump_1 and redirect_jump_1.
26031         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
26032         do_compare_rtx_and_jump.
26033         (expand_addsub_overflow): Likewise.
26034         (expand_neg_overflow): Likewise.
26035         (expand_mul_overflow): Likewise.
26036         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
26037         return value of gen_move_insn.
26038         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
26039         * loop-doloop.c (add_test): Use rtx_code_label.
26040         (doloop_modify): Likewise.
26041         (doloop_optimize): Likewise.
26042         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
26043         * lra-constraints.c (emit_spill_move): Remove cast of value returned
26044         by gen_move_insn.
26045         (inherit_reload_reg): Add cast when calling dump_insn_slim.
26046         (split_reg): Likewise.
26047         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
26048         gen_move_insn.
26049         * optabs.c (expand_binop_directly): Remove casts of values returned by
26050         maybe_gen_insn.
26051         (expand_unop_direct): Likewise.
26052         (expand_abs): Likewise.
26053         (maybe_emit_unop_insn): Likewise.
26054         (maybe_gen_insn): Promote return type to rtx_insn.
26055         * optabs.h: Update prototype of maybe_gen_insn.
26056         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
26057         redundant cast.
26058         * recog.c (struct peep2_insn_data): Promote type of insn field to
26059         rtx_insn.
26060         (peep2_reinit_state): Use NULL instead of NULL_RTX.
26061         (peep2_attempt): Remove casts of insn in peep2_insn_data.
26062         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
26063         * recog.h (struct insn_gen_fn): Promote return types of function
26064         pointers and operator ().from rtx to rtx_insn.
26065         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
26066         (fill_eager_delay_slots): Likewise.
26067         (relax_delay_slots): Likewise.
26068         (make_return_insns): Likewise.
26069         (dbr_schedule): Likewise.
26070         (optimize_skips): Likewise.
26071         (reorg_redirect_jump): Likewise.
26072         (fill_slots_from_thread): Likewise.
26073         * reorg.h: Update prototypes.
26074         * resource.c (find_dead_or_set_registers): Use dyn_cast to
26075         rtx_jump_insn instead of check.  Use it's jump_target method.
26076         * rtl.h (rtx_jump_insn::jump_label): Define new method.
26077         (rtx_jump_insn::jump_target): Define new method.
26078         (rtx_jump_insn::set_jump_target): Define new method.
26079         * rtlanal.c (tablejump_p): Promote type of one local variable.
26080         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
26081         (sched_analyze_insn): Likewise.
26082         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
26083         (print_insn): Likewise.
26084         * stmt.c (label_rtx): Promote return type to rtx_insn.
26085         (force_label_rtx): Likewise.
26086         (jump_target_rtx): Define new function.
26087         (expand_label): Use it, get rid of one cast.
26088         (expand_naked_return): Promote rtx to rtx_code_label.
26089         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
26090         (expand_case): Use rtx_code_label instread of rtx where feasible.
26091         (expand_sjlj_dispatch_table): Likewise.
26092         (emit_case_nodes): Likewise.
26093         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
26094         * store-motion.c (insert_store): Make use of new return type of
26095         gen_move_insn and remove a cast.
26096         (replace_store_insn): Likewise.
26098 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
26100         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
26101         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
26103 2015-05-20  Jeff Law  <law@redhat.com>
26105         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
26106         dispose of the jump thread path when the jump threading
26107         opportunity is cancelled.
26109 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26111         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
26112         when printing the caret character.
26114 2015-05-20  Marek Polacek  <polacek@redhat.com>
26116         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
26118 2015-05-20  Marek Polacek  <polacek@redhat.com>
26120         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
26121         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
26122         * gimple-fold.c (canonicalize_bool): Likewise.
26123         (same_bool_result_p): Likewise.
26124         * tree-if-conv.c (parse_predicate): Likewise.
26126 2015-05-20  Marek Polacek  <polacek@redhat.com>
26128         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
26129         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
26131 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26133         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
26134         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
26135         values.
26137 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
26139         * config/mips/mips.h (micromips_globals): Declare.
26141 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
26143         * timevar.def (TV_INITIALIZE_RTL): New.
26144         * toplev.c (initialize_rtl): Use an auto_timevar to account this
26145         function's time to TV_INITIALIZE_RTL.
26147 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
26149         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
26150         gimple_build_nop calls.
26151         (chkp_find_bounds_for_elem): Likewise.
26152         (chkp_get_zero_bounds): Likewise.
26153         (chkp_get_none_bounds): Likewise.
26154         (chkp_get_bounds_by_definition): Likewise.
26155         (chkp_generate_extern_var_bounds): Likewise.
26156         (chkp_get_bounds_for_decl_addr): Likewise.
26157         (chkp_get_bounds_for_string_cst): Likewise.
26159 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
26161         PR tree-optimization/65447
26162         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
26163         (dump_use, dump_uses): Support to dump sub use.
26164         (record_use): New parameters to support sub use.  Remove call to
26165         dump_use.
26166         (record_sub_use, record_group_use): New functions.
26167         (compute_max_addr_offset, split_all_small_groups): New functions.
26168         (group_address_uses, rewrite_use_address): New functions.
26169         (strip_offset): New declaration.
26170         (find_interesting_uses_address): Call record_group_use.
26171         (add_candidate): New assertion.
26172         (infinite_cost_p): Move definition forward.
26173         (add_costs): Check INFTY cost and return immediately.
26174         (get_computation_cost_at): Clear setup cost and dependent bitmap
26175         for sub uses.
26176         (determine_use_iv_cost_address): Compute cost for sub uses.
26177         (rewrite_use_address_1): Rename from old rewrite_use_address.
26178         (free_loop_data): Free sub uses.
26179         (tree_ssa_iv_optimize_loop): Call group_address_uses.
26181 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
26182             Jim Wilson  <jim.wilson@linaro.org>
26184         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
26185         new  fields loadv and storev.
26186         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
26187         Initialize loadv and storev.
26188         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
26189         (cortexa53_extra_costs): Likewise.
26190         (cortexa57_extra_costs): Likewise.
26191         (xgene1_extra_costs): Likewise.
26192         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
26193         rtx_costs.
26195 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
26197         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
26198          storev.
26199         (cortexa8_extra_costs): Likewise.
26200         (cortexa5_extra_costs): Likewise.
26201         (cortexa7_extra_costs): Likewise.
26202         (cortexa12_extra_costs): Likewise.
26203         (cortexa15_extra_costs): Likewise.
26204         (v7m_extra_costs): Likewise.
26206 2015-05-20  Jeff Law  <law@redhat.com>
26208         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
26209         instead of open-coded version.  Also delete the jump thread created
26210         within this function.
26212 2015-05-20  Alan Modra  <amodra@gmail.com>
26214         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
26215         stack adjusting insn.  Formatting.
26216         (rs6000_emit_prologue): Track stack adjusting insn, and use of
26217         r12.  If possible, emit first -fsplit-stack arg pointer insn
26218         before stack adjust.  Don't use r12 to save cr if split-stack.
26220 2015-05-20  Alan Modra  <amodra@gmail.com>
26222         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
26223         Define.
26224         (rs6000_supports_split_stack): New function.
26225         * config/rs6000/rs6000.c (machine_function): Add
26226         split_stack_arg_pointer.
26227         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
26228         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
26229         rather than virtual_incoming_args_rtx.
26230         (rs6000_va_start): Likewise.
26231         (split_stack_arg_pointer_used_p): New function.
26232         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
26233         (morestack_ref): New var.
26234         (gen_add3_const, rs6000_expand_split_stack_prologue,
26235         rs6000_internal_arg_pointer, rs6000_live_on_entry,
26236         rs6000_split_stack_space_check): New functions.
26237         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
26238         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
26239         (UNSPECV_SPLIT_STACK_RETURN): Define.
26240         (split_stack_prologue, load_split_stack_limit,
26241         load_split_stack_limit_di, load_split_stack_limit_si,
26242         split_stack_return, split_stack_space_check): New expands and insns.
26243         * config/rs6000/rs6000-protos.h
26244         (rs6000_expand_split_stack_prologue): Declare.
26245         (rs6000_split_stack_space_check): Declare.
26247 2015-05-20  Alan Modra  <amodra@gmail.com>
26249         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
26250         (direct_return): Test vrsave_size rather than vrsave_mask.
26251         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
26252         (rs6000_emit_epilogue): Likewise.
26254 2015-05-20  Alan Modra  <amodra@gmail.com>
26256         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
26257         when not saving registers.
26258         (debug_stack_info): Adjust to omit printing unused offsets,
26259         as before.
26260         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
26261         expression.
26263 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26265         PR c++/65835
26266         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
26267         value_type to const char *.
26269 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
26271         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
26272         to build a biarch toolchain again.
26274 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
26276         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
26277         or implicit declarations.
26278         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
26279         into it.
26280         (get_odr_type): Check type has linkage before adding bases.
26281         (register_odr_type): Check that type has linkage before adding it.
26282         (type_known_to_have_no_deriavations_p): Rename to ..
26283         (type_known_to_have_no_derivations_p): This one.
26284         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
26285         (type_known_to_have_no_derivations_p): This one.
26286         * ipa-polymorphic-call.c
26287         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
26288         type has linkage.
26290 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26292         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
26293         (layout_type): Use RECORD_OR_UNION_TYPE_P.
26295 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26297         * config/s390/s390.c (s390_vector_bool_type_p): New function.
26298         (s390_invalid_binary_op): New function.
26299         (TARGET_INVALID_BINARY_OP): Define macro.
26301 2015-05-19  David Sherwood  <david.sherwood@arm.com>
26303         * loop-invariant.c (create_new_invariant): Don't calculate address cost
26304         if mode is not a scalar integer.
26305         (get_inv_cost): Increase computational cost for unused invariants.
26307 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26309         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
26310         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
26311         * config/s390/s390-builtin-types.def: New file.
26312         * config/s390/s390-builtins.def: New file.
26313         * config/s390/s390-builtins.h: New file.
26314         * config/s390/s390-c.c: New file.
26315         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
26316         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
26317         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
26318         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
26319         prototypes.
26320         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
26321         Include.
26322         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
26323         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
26324         variable definitions.
26325         (s390_const_operand_ok): New function.
26326         (s390_expand_builtin): Rewrite.
26327         (s390_init_builtins): New function.
26328         (s390_handle_vectorbool_attribute): New function.
26329         (s390_attribute_table): Add s390_vector_bool attribute.
26330         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
26331         (s390_branch_condition_mask): Generate masks for new modes.
26332         (s390_expand_vec_compare_cc): New function.
26333         (s390_mangle_type): Add mangling for vector bool types.
26334         (enum s390_builtin): Remove.
26335         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
26336         efpc builtins.
26337         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
26338         s390_cpu_cpp_builtins.
26339         (REGISTER_TARGET_PRAGMAS): New macro.
26340         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
26341         (insn_cmp mode attribute): Add new CC modes.
26342         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
26343         (lcbb): New pattern definition.
26344         * config/s390/s390intrin.h: Include vecintrin.h.
26345         * config/s390/t-s390: New file.
26346         * config/s390/vecintrin.h: New file.
26347         * config/s390/vector.md: Include vx-builtins.md.
26348         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
26349         support.
26351 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26353         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
26354         CCVFHE.
26355         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
26356         (s390_select_ccmode): Likewise.
26357         (s390_canonicalize_comparison): Swap operands if necessary.
26358         (s390_expand_vec_compare_scalar): Expand DFmode compare using
26359         single element vector instructions.
26360         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
26361         (s390_branch_condition_mask): Generate CC masks for the new modes.
26362         * config/s390/s390.md (v0, vf, vd): New mode attributes.
26363         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
26364         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
26365         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
26366         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
26367         (*extend<DSF:mode><BFP:mode>2): New insn definition.
26368         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
26369         (extend<DSF:mode><BFP:mode>2): Turn into expander.
26370         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
26371         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
26372         (sqrt<mode>2): Add vector instruction.
26374 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26376         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26377         constraints.
26378         * config/s390/predicates.md (const0_operand, constm1_operand)
26379         (constable_operand): Accept vector operands.
26380         * config/s390/s390-modes.def: Add supported vector modes.
26381         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26382         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26383         (s390_bytemask_vector_p, s390_expand_vec_strlen)
26384         (s390_expand_vec_compare, s390_expand_vcond)
26385         (s390_expand_vec_init): Add prototypes.
26386         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26387         (s390_vector_mode_supported_p): New function.
26388         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26389         (s390_contiguous_bitmask_vector_p): New function.
26390         (s390_bytemask_vector_p): New function.
26391         (s390_split_ok_p): Vector regs don't work either.
26392         (regclass_map): Add VEC_REGS.
26393         (s390_legitimate_constant_p): Handle vector constants.
26394         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26395         (legitimate_reload_vector_constant_p): New function.
26396         (s390_preferred_reload_class): Handle CONST_VECTOR.
26397         (s390_reload_symref_address):  Likewise.
26398         (s390_secondary_reload): Vector memory instructions only support
26399         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
26400         (s390_emit_ccraw_jump): New function.
26401         (s390_expand_vec_strlen): New function.
26402         (s390_expand_vec_compare): New function.
26403         (s390_expand_vcond): New function.
26404         (s390_expand_vec_init): New function.
26405         (s390_dwarf_frame_reg_mode): New function.
26406         (print_operand): Handle addresses with 'O' and 'R' constraints.
26407         (NR_C_MODES, constant_modes): Add vector modes.
26408         (s390_output_pool_entry): Handle vector constants.
26409         (s390_hard_regno_mode_ok): Handle vector registers.
26410         (s390_class_max_nregs): Likewise.
26411         (s390_cannot_change_mode_class): New function.
26412         (s390_invalid_arg_for_unprototyped_fn): New function.
26413         (s390_function_arg_vector): New function.
26414         (s390_function_arg_float): Remove size variable.
26415         (s390_pass_by_reference): Handle vector arguments.
26416         (s390_function_arg_advance): Likewise.
26417         (s390_function_arg): Likewise.
26418         (s390_return_in_memory): Vector values are returned in a VR if
26419         possible.
26420         (s390_function_and_libcall_value): Handle vector arguments.
26421         (s390_gimplify_va_arg): Likewise.
26422         (s390_call_saved_register_used): Consider the arguments named.
26423         (s390_conditional_register_usage): Disable v16-v31 for non-vec
26424         targets.
26425         (s390_preferred_simd_mode): New function.
26426         (s390_support_vector_misalignment): New function.
26427         (s390_vector_alignment): New function.
26428         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26429         (TARGET_VECTOR_MODE_SUPPORTED_P)
26430         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26431         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26432         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26433         (TARGET_VECTOR_ALIGNMENT): Define target macro.
26434         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26435         (FIRST_PSEUDO_REGISTER): Increase value.
26436         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26437         (VECTOR_REG_P): Define macros.
26438         (FIXED_REGISTERS, CALL_USED_REGISTERS)
26439         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26440         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26441         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26442         Add vector registers.
26443         (CANNOT_CHANGE_MODE_CLASS): Call C function.
26444         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26445         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26446         memory.
26447         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26448         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26449         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26450         (VR*_REGNUM): New constants.
26451         (ALL): New mode iterator.
26452         (INTALL): Remove mode iterator.
26453         Include vector.md.
26454         (movti): Implement TImode moves for VRs.
26455         Disable TImode splitter for VR targets.
26456         Implement splitting TImode GPR<->VR moves.
26457         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26458         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26459         reload<mode>_la_in, reload<mode>_la_out.
26460         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26461         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26462         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26463         (mov<mode> SF SD): Prefer lder, lde for loading.
26464         Add lrl and strl instructions.
26465         Add vector instructions.
26466         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26467         Call s390_expand_vec_strlen on z13.
26468         (*cc_to_int): Change predicate to nonimmediate_operand.
26469         (addti3): Rename to *addti3.  New expander.
26470         (subti3): Rename to *subti3.  New expander.
26471         * config/s390/vector.md: New file.
26473 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26475         * common/config/s390/s390-common.c (processor_flags_table): Add
26476         z13.
26477         * config.gcc: Add z13.
26478         * config/s390/s390-opts.h (enum processor_type): Add
26479         PROCESSOR_2964_Z13.
26480         * config/s390/s390.c (s390_adjust_priority): Check for
26481         PROCESSOR_2964_Z13.
26482         (s390_reorg): Likewise.
26483         (s390_sched_reorder): Likewise.
26484         (s390_sched_variable_issue): Likewise.
26485         (s390_loop_unroll_adjust): Likewise.
26486         (s390_option_override): Likewise. Default to -mvx when available.
26487         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
26488         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
26489         (TARGET_VX_ABI): Define macros.
26490         macros.
26491         (TARGET_DEFAULT): Add MASK_OPT_VX.
26492         * config/s390/s390.md ("cpu" attribute): Add z13.
26493         ("cpu_facility" attribute): Add vec.
26494         * config/s390/s390.opt (processor_type): Add z13.
26495         (mvx): New options.
26496         * doc/invoke.texi: Add z13 option for -march.
26498 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26500         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
26501         mode check to make sure that only scalar integer values are
26502         accepted.
26504 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
26506         * tree.c (verify_type_variant): Fix #undef.
26507         (gimple_canonical_types_compatible_p): Move here from lto.c
26508         (verify_type): Verify TYPE_CANONICAL compatibility.
26509         * tree.h (gimple_canonical_types_compatible_p): Declare.
26511 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26513         PR middle-end/66199
26514         * tree.h (OMP_TEAMS_COMBINED): Define.
26515         * gimplify.c (enum gimplify_omp_var_data): Add
26516         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26517         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26518         (omp_notice_variable): Accept both ORT_TEAMS
26519         and ORT_COMBINED_TEAMS.  Don't recurse if
26520         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26521         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26522         GOVD_FIRSTPRIVATE.
26523         (omp_no_lastprivate): New function.
26524         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26525         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26526         notice_outer and set appropriate bits, otherwise make
26527         sure default(none) combined constructs won't complain.
26528         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26529         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26530         omp_no_lastprivate either remove the clause or turn it
26531         into OMP_CLAUSE_PRIVATE.
26532         (gimplify_omp_for): Fix up handling of implicit
26533         lastprivate or linear iterators.
26534         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26535         ORT_COMBINED_TEAMS.
26536         * omp-low.c (lower_omp_for_lastprivate): For combined
26537         for simd use fd.loop.n2 from the for rather than simd.
26539 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26541         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26542         instead of gen_rtx_raw_REG.
26543         (cris_expand_epilogue): Likewise.
26544         * config/microblaze/microblaze.c (microblaze_classify_address):
26545         Likewise.
26546         * config/sparc/sparc.md: Likewise.
26548 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
26550         * config/alpha/alpha.c (alpha_legitimize_reload_address)
26551         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26552         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26553         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26554         Use CASE_CONST_SCALAR_INT.
26555         (print_operand) <case 'M'>: Use mode_width_operand to check the
26556         value of the constant.
26557         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26558         * config/alpha/predicates.md (input_operand): Use general_operand
26559         instead of match_code as operand check.
26560         (symbolic_operand): Use match_code with subexpression digits.
26561         * config/alpha/constraints.md (Q): Ditto.
26563 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26565         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26567 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26569         * config/s390/s390.c (s390_secondary_reload): Fix check for
26570         load/store relative.
26572 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26574         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
26575         alternative_mask to uint64_t.
26577 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26579         PR tree-optimization/66187
26580         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26581         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
26582         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26584 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
26586         * diagnostic.c (diagnostic_report_current_module): Strengthen
26587         local "new_map" from const line_map * to
26588         const line_map_ordinary *.
26589         * genmatch.c (error_cb): Likewise for local "map".
26590         (output_line_directive): Likewise for local "map".
26591         * input.c (expand_location_1): Likewise for local "map".
26592         Pass NULL rather than &map to
26593         linemap_unwind_to_first_non_reserved_loc, since the value is never
26594         read from there, and the value written back not read from here.
26595         (is_location_from_builtin_token): Strengthen local "map" from
26596         const line_map * to const line_map_ordinary *.
26597         (dump_location_info): Strengthen locals "map" from
26598         line_map *, one to const line_map_ordinary *, the other
26599         to const line_map_macro *.
26600         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26601         const line_map * to const line_map_macro *.
26602         (maybe_unwind_expanded_macro_loc): Add a call to
26603         linemap_check_macro when writing to the "map" field of the
26604         loc_map_pair.
26605         Introduce local const line_map_ordinary * "ord_map", using it in
26606         place of "map" in the part of the function where we know we have
26607         an ordinary map.  Strengthen local "m" from const line_map * to
26608         const line_map_ordinary *.
26610 2015-05-19  Nick Clifton  <nickc@redhat.com>
26612         PR target/66156
26613         * config/msp430/msp430.md (zero_extendhisi2): Add support for
26614         separate source and destination registers.
26616 2015-05-19  Richard Biener  <rguenther@suse.de>
26618         PR tree-optimization/66165
26619         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26620         for no load permutation.
26622         PR tree-optimization/66185
26623         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26624         when building the SLP node from scalars.
26626 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26627             Tristan Gingold  <gingold@adacore.com>
26629         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26630         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26631         (expand_stack_restore): Call record_new_stack_level.
26632         (expand_stack_save): Do not call do_pending_stack_adjust.
26633         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26634         * calls.c (expand_call): Call record_new_stack_level for alloca.
26635         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26636         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26637         (update_sjlj_context): New global function.
26638         * except.h (update_sjlj_context): Declare.
26639         * explow.c (record_new_stack_level): New global function.
26640         (allocate_dynamic_stack_space): Call record_new_stack_level.
26641         * explow.h (record_new_stack_level): Declare.
26642         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26643         * cfgrtl.c (duplicate_insn_chain): Likewise.
26645 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26647         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26648         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26649         STACK_GROWS_DOWNWARD as normal if.
26650         (expand_call): Likewise.
26652 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
26654         PR target/54236
26655         * config/sh/sh.md (*round_int_even): New insn_and_split and
26656         accompanying new unnamed split.
26658 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26660         * bitmap.c (bitmap_set_range): Handle count==1 specially.
26661         (bitmap_clear_range): Likewise.
26662         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26663         bitmap_set_range unconditionally.
26664         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26665         * df-scan.c (df_mark_reg): Likewise.
26666         * haifa-sched.c (setup_ref_regs): Likewise.
26667         * sched-rgn.c (update_live_1): Likewise.
26669 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26671         * regs.h (END_HARD_REGNO): Delete.
26672         (END_REGNO): Move to...
26673         * rtl.h: ...here.
26674         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26675         * caller-save.c (mark_set_regs): Likewise.
26676         * combine.c (move_deaths, distribute_notes): Likewise.
26677         * cse.c (invalidate, invalidate_for_call): Likewise.
26678         * df-scan.c (df_ref_record): Likewise.
26679         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26680         (record_last_reg_set_info): Likewise.
26681         * reg-stack.c (convert_regs_exit): Likewise.
26682         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26683         * resource.c (update_live_status): Likewise.
26684         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26686 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26688         * rtl.h (reg_info): Add an nregs field.
26689         (REG_NREGS): Use it.
26690         (SET_REGNO_RAW): Delete.
26691         (set_regno_raw): New function.
26692         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26693         (END_REGNO): Redefine in terms of REG_NREGS.
26694         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26695         SET_REGNO_RAW.
26696         * emit-rtl.c (set_mode_and_regno): Likewise.
26697         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26698         instead of SET_REGNO_RAW.
26700 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26702         * rtl.h (PUT_MODE_RAW): New macro.
26703         (PUT_REG_NOTE_KIND): Use it.
26704         (set_mode_and_regno): Declare.
26705         (gen_raw_REG): Change regno to "unsigned int".
26706         (gen_rtx_REG): Change "unsigned" to "unsigned int".
26707         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26708         use set_mode_and_regno to change the mode of registers.
26709         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26710         * emit-rtl.c (set_mode_and_regno): New function.
26711         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
26712         * caller-save.c (reg_save_code): Use set_mode_and_regno.
26713         * expr.c (init_expr_target): Likewise.
26714         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26715         * postreload.c (reload_cse_simplify_operands): Likewise.
26717 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26719         * caller-save.c (init_caller_save): Use word_mode and
26720         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26721         * expr.c (init_expr_target): Likewise.
26722         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26723         * postreload.c (reload_cse_regs_1): Likewise.
26725 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26727         * rtl.def (REG): Change format to "r".
26728         * rtl.h (rtunion): Remove rt_reg.
26729         (reg_info): New structure.
26730         (rtx_def): Add reg field to main union.
26731         (X0REGATTR): Delete.
26732         (REG_CHECK): New macro.
26733         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26734         * rtl.c (rtx_format): Document "r".
26735         (rtx_code_size): Handle REG specially.
26736         * gengenrtl.c (special_format): Return true for formats
26737         that include 'r'.
26738         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26739         Deal with REG_ATTRS after the field loop.
26740         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26741         * expmed.c (init_expmed): Call gen_raw_REG instead of
26742         gen_rtx_raw_REG.
26743         * expr.c (init_expr_target): Likewise.
26744         * regcprop.c (maybe_mode_change): Likewise.
26745         * varasm.c (make_decl_rtl): Likewise.
26746         * final.c (leaf_renumber_regs_insn): Return early after
26747         handling REGs.
26748         * genemit.c (gen_exp): Handle 'r' fields.
26749         * genpeep.c (match_rtx): Likewise.
26750         * gensupport.c (subst_pattern_match): Likewise.
26751         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26752         (alter_constraints, subst_dup): Likewise.
26753         * read-rtl.c (read_rtx_code): Likewise.
26754         * print-rtl.c (print_rtx): Likewise.
26755         * genrecog.c (find_operand, find_matching_operand): Likewise.
26756         (validate_pattern, match_pattern_2): Likewise.
26757         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26758         (rtx_test::regno_field): New function.
26759         (operator ==, safe_to_hoist_p, transition_parameter_type)
26760         (parameter_type_string, print_parameter_value)
26761         (print_nonbool_test, print_test): Handle new enum values.
26762         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26763         * lra-constraints.c (operands_match_p): Likewise.
26765 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26767         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26768         Change type of new_regno to unsigned int.
26769         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26770         new_regno to unsigned int.
26771         (df_ref_change_reg_with_loc): Remove old_regno parameter.
26772         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
26773         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26774         (SET_REGNO_RAW): Add space after ",".
26776 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26778         * rtl.h (REG_NREGS): New macro
26779         * alias.c (record_set): Use it.
26780         * cfgcleanup.c (mark_effect): Likewise.
26781         * combine.c (likely_spilled_retval_1): Likewise.
26782         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26783         (move_deaths, distribute_notes): Likewise.
26784         * cselib.c (cselib_record_set): Likewise.
26785         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26786         * df-scan.c (df_mark_reg): Likewise.
26787         * dse.c (look_for_hardregs): Likewise.
26788         * dwarf2out.c (reg_loc_descriptor): Likewise.
26789         (multiple_reg_loc_descriptor): Likewise.
26790         * expr.c (write_complex_part, read_complex_part): Likewise.
26791         (emit_move_complex): Likewise.
26792         * haifa-sched.c (setup_ref_regs): Likewise.
26793         * ira-lives.c (mark_hard_reg_live): Likewise.
26794         * lra.c (lra_set_insn_recog_data): Likewise.
26795         * mode-switching.c (create_pre_exit): Likewise.
26796         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26797         (reload_combine_recognize_pattern): Likewise.
26798         (reload_combine_note_use, move2add_record_mode): Likewise.
26799         (reload_cse_move2add): Likewise.
26800         * reg-stack.c (subst_stack_regs_pat): Likewise.
26801         * regcprop.c (kill_value, copy_value): Likewise.
26802         (copyprop_hardreg_forward_1): Likewise.
26803         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26804         (build_def_use): Likewise.
26805         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26806         (deps_analyze_insn): Likewise.
26807         * sched-rgn.c (check_live_1, update_live_1): Likewise.
26808         * sel-sched.c (count_occurrences_equiv): Likewise.
26809         * valtrack.c (dead_debug_insert_temp): Likewise.
26811 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26813         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26814         * dse.c (note_add_store): Likewise.
26815         * ira-lives.c (mark_hard_reg_dead): Likewise.
26816         * loop-invariant.c (mark_reg_store): Likewise.
26817         (mark_reg_death): Likewise.
26818         * postreload.c (reload_combine): Likewise.
26819         (reload_combine_note_store): Likewise.
26820         (reload_combine_note_use): Likewise.
26821         * recog.c (peep2_reg_dead_p): Likewise.
26823 2015-05-19  Alan Modra  <amodra@gmail.com>
26825         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26826         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26827         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26828         unused predicates.
26829         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26830         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
26831         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26832         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26834 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
26836         * config/mips/mips.md (JOIN_MODE): New mode iterator.
26837         (join2_load_Store<JOIN_MODE:mode>): New pattern.
26838         (join2_loadhi): Likewise.
26839         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26840         load-load and store-stores.
26841         * config/mips/mips.opt (mload-store-pairs): New option.
26842         (TARGET_LOAD_STORE_PAIRS): New macro.
26843         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26844         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26845         * config/mips/mips.c (mips_load_store_bonding_p): New function.
26847 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
26849         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26850         explicit swaps.
26851         * dojump.c (do_compare_rtx_and_jump): Likewise.
26852         * expmed.c (emit_store_flag_1): Likewise.
26853         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26854         * final.c (sprint_ul): Use std::reverse for reversing a string.
26855         * fold-const.c (extract_muldiv_1): Use std::swap.
26856         * genmodes.c (emit_mode_int_n): Likewise.
26857         * ifcvt.c (dead_or_predicable): Likewise.
26858         * ira-build.c (ira_merge_live_ranges): Likewise.
26859         (swap_allocno_copy_ends_if_necessary): Likewise.
26860         * ira.c (ira_setup_alts): Likewise.
26861         * loop-iv.c (iv_analyze_expr): Likewise.
26862         (implies_p): Likewise.
26863         (canon_condition): Likewise.
26864         * lra-constraints.c (swap_operands): Likewise.
26865         * lra-lives.c (lra_merge_live_ranges): Likewise.
26866         * omega.c (swap): Remove.
26867         (bswap): Remove.
26868         (omega_unprotect_1): Use std::swap.
26869         (omega_solve_geq): Likewise.
26870         * optabs.c (expand_binop_directly): Likewise.
26871         (expand_binop): Likewise.
26872         (emit_conditional_move): Likewise.
26873         (emit_conditional_add): Likewise.
26874         * postreload.c (reload_cse_simplify_operands): Likewise.
26875         * reg-stack.c (emit_swap_insn): Likewise.
26876         (swap_to_top): Likewise.
26877         (compare_for_stack_reg): Likewise.
26878         (subst_asm_stack_regs): Likewise.
26879         * reload.c (find_reloads): Likewise.
26880         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26881         * sel-sched.c (invoke_reorder_hooks): Likewise.
26882         (create_block_for_bookkeeping): Likewise.
26883         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26884         (lambda_matrix_right_hermite): Use std::swap.
26885         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26886         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26887         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26888         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26889         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26890         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26891         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26892         * tree-vrp.c (compare_ranges): Likewise.
26893         * var-tracking.c (add_with_sets): Likewise.
26894         (vt_find_locations): Likewise.
26896 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
26898         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26899         pie executables.
26900         (FBSD_ENDFILE_SPEC): Likewise.
26901         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26902         config/freebsd-spec.h.
26903         (ENDFILE_SPEC): Likewise.
26905 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
26906             Richard Henderson  <rth@redhat.com>
26908         PR target/57032
26909         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26910         Check for a memory location that is not a reference (using an AND)
26911         to an unaligned location here.
26912         * config/alpha/predicates.md (normal_memory_operand): Remove.
26914 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
26916         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26917         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26919 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
26921         * config/mips/mips.c (micromips_globals): New variable.
26922         (mips_set_compression_mode): Save and reinitialize target-dependent
26923         state for microMIPS.
26925 2015-05-18  Martin Liska  <mliska@suse.cz>
26927         * dbgcnt.def: Add new counter.
26928         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26930 2015-05-18  Martin Liska  <mliska@suse.cz>
26932         * dbgcnt.def: Sort counters.
26933         * opts.c (common_handle_option): Do not compile if
26934         -fdbg-cnt-list is enabled.
26936 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26938         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26939         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
26940         address operator to va_list operand.
26941         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26942         unconditionally.
26943         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26944         operand.
26945         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26946         * config/s390/s390.c (s390_gimplify_va_arg): Same.
26947         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26949 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26951         * tree-ssa-tail-merge.c: Fix whitespace.
26953 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
26955         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26956         cortex-a17, and cortex-a17.cortex-a7.
26958 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
26960         PR target/54236
26961         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26963 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
26965         PR target/66174
26966         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26967         QImode inner modes for TARGET_AVX512BW.  Force mask operand
26968         to a register for AVX512F modes.
26970 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26972         * toplev.c (emit_debug_global_declarations): Do not output debug info
26973         when doing slim LTO objects.
26975 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26977         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26978         odr_types_equivalent_p): Declare.
26979         (odr_type_p): Use gcc_checking_assert.
26980         (type_in_anonymous_namespace_p) Declare.
26981         (type_with_linkage_p): Declare.
26982         * common.opt (Wlto-type-mismatch): New warning.
26983         * ipa-devirt.c (compound_type_base): New function.
26984         (odr_or_derived_type_p): New function.
26985         (odr_types_equivalent_p): New function.
26986         (add_type_duplicate): Simplify.
26987         (type_with_linkage_p): Add hack to prevent false positives on C types
26988         (type_in_anonymous_namespace_p): Likewise.
26989         * tree.c (need_assembler_name_p): Use type_with_linkage.
26990         * tree.h (type_in_anonymous_namespace_p): Remove.
26991         * doc/invoke.texi (-Wlto-type-mismatch): Document
26993 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26995         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26996         (verify_type): Verify STRING_FLAG.
26998 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27000         PR fortran/44054
27001         * tree-pretty-print.c (percent_K_format): Replace locus pointer
27002         with accessor function.
27003         * tree-diagnostic.c (diagnostic_report_current_function): Use
27004         diagnostic_location function.
27005         (maybe_unwind_expanded_macro_loc): Likewise.
27006         (virt_loc_aware_diagnostic_finalizer): Likewise.
27007         (default_tree_printer): Replace locus pointer with accessor function.
27008         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
27009         (diagnostic_set_info_translated): Initialize second location.
27010         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
27011         (diagnostic_show_locus): Handle two locations. Call
27012         diagnostic_print_caret_line.
27013         (diagnostic_print_caret_line): New.
27014         (default_diagnostic_starter): Use diagnostic_location function.
27015         (diagnostic_report_diagnostic): Use diagnostic_location function.
27016         (verbatim): Do not set text.locus.
27017         * diagnostic.h (struct diagnostic_info): Remove location field.
27018         (struct diagnostic_context): Make caret_chars an array of two.
27019         (diagnostic_location): New inline.
27020         (diagnostic_expand_location): Handle two locations.
27021         (diagnostic_same_line): New inline.
27022         (diagnostic_print_caret_line): Declare.
27023         (CARET_LINE_MARGIN): New constant.
27024         * pretty-print.c (pp_printf): Do not set text.locus.
27025         (pp_verbatim): Do not set text.locus.
27026         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
27027         (struct text_info): Replace locus pointer with locations
27028         array. Add accessor functions.
27030 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
27031             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27033         PR target/65768
27034         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
27035         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
27036          large constants in register instead of splitting them.
27038 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
27040         PR target/66140
27041         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
27042         replacements in memory addresses.
27043         (get_unaligned_address): Ditto.
27045 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
27047         * config/ft32/*: New files for FT32 port.
27048         * doc/install.texi: Add FT32 information.
27049         * doc/invoke.texi: Add FT32 information.
27050         * doc/md.texi: Add FT32 information.
27051         * doc/contrib.texi: Self added.
27053 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
27055         PR tree-optimization/64454
27056         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
27057         (-1 - A -> ~A): Remove unnecessary condition.
27059 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
27061         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
27062         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
27063         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
27065 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
27067         * ipa-chkp.h (chkp_wrap_function): New.
27068         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
27069         (chkp_wrap_function_name): New.
27070         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
27071         to get wrapper name.
27072         * lto-cgraph.c: Include ipa-chkp.h.
27073         (input_cgraph_1): Avoid alias chain for wrappers.
27075 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
27077         PR middle-end/66134
27078         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
27079         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
27081 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27083         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
27084         (AARCH64_FL_SLOWMUL): Delete.
27085         (AARCH64_FL_CRC): Redefine to 1<<3.
27086         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
27088 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27090         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
27091         casting.
27093 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
27095         * config/alpha/alpha.md (extendqidi2): Use general_operand
27096         instead of some_operand for operand[1] predicate.
27097         (extendhidi2): Ditto.
27098         (cbranchdi4): Use general_operand instead of some_operand
27099         for operand[1] and operands[2] predicates.
27100         (cstoredi4): Ditto.
27101         * config/alpha/predicates.md (some_operand): Remove unused predicate.
27102         (some_ni_operand): Ditto.
27104 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
27106         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
27107         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
27108         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
27109         low part of the constant using alpha_emit_set_const_1.
27110         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
27112 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
27114         * varasm.c (output_constant_pool_1): Pass down alignment from
27115         constant pool entry's descriptor to output_constant_pool_2.
27116         (output_object_block): Add comment prior to call to
27117         output_constant_pool_1.
27119 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
27121         PR rtl-optimization/65862
27122         * target.def (ira_change_pseudo_allocno_class): New hook.
27123         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
27124         value of the hook.
27125         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
27126         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
27127         hook.
27128         * ira-costs.c (find_costs_and_classes): Call the hook and change
27129         classes when it is necessary.
27130         * doc/tm.texi: Update.
27132 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
27134         * config/i386/i386.md (sibcall_memory): Check that register with
27135         callee address is not also used as one of the arguments, instead
27136         of checking that it is not live after the sibcall.
27137         (sibcall_pop_memory): Ditto.
27138         (sibcall_value_memory): Ditto.
27139         (sibcall_value_pop_memory): Ditto.
27141 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
27143         * generic-match-head.c (types_match): Handle non-types.
27144         * gimple-match-head.c (types_match): Likewise.
27145         * match.pd: Remove unnecessary TREE_TYPE for types_match.
27147 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
27149         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
27150         (csneg3<mode>_insn): Enable expansion of pattern.
27152 2015-05-14  Nick Clifton  <nickc@redhat.com>
27154         * config/rl78/rl78.c (rl78_select_section): Select the correct
27155         default section based upon the category of the decl.
27157 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
27159         PR rtl-optimization/30967
27160         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
27161         destination mode for the cost of scc patterns.
27163 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
27165         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
27166         using SWIM248 mode iterator.
27167         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
27168         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
27169         for operand[2] constraint.
27170         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
27172 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
27174         PR middle-end/66133
27175         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
27176         make sure it is never noreturn, even when the task body does not
27177         return.
27178         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
27179         right before GIMPLE_OMP_RETURN.
27180         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
27181         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
27182         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
27184 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27186         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
27187         * tree-ssa-math-opts.c: Include params.h
27188         (pow_synth_sqrt_info): New struct.
27189         (representable_as_half_series_p): New function.
27190         (get_fn_chain): Likewise.
27191         (print_nested_fn): Likewise.
27192         (dump_fractional_sqrt_sequence): Likewise.
27193         (dump_integer_part): Likewise.
27194         (expand_pow_as_sqrts): Likewise.
27195         (gimple_expand_builtin_pow): Use above to attempt to expand
27196         pow as series of square roots.  Removed now unused variables.
27198 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
27200         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
27201         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
27202         Remove *p0 and *p1 arguments.  Rewrite function.
27203         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
27204         (alpha_split_const_mov): Update calls to alpha_extract_integer and
27205         alpha_emit_set_long_const.
27206         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
27207         (alpha_output_mi_thunk_osf): Ditto.
27208         * config/alpha/alpha.md (movti): Do not check operands[1]
27209         for CONST_DOUBLE.
27211 2015-05-13  Richard Biener  <rguenther@suse.de>
27213         PR tree-optimization/66129
27214         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
27215         commutative.
27216         (vect_schedule_slp_instance): Fix typo.
27218 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
27220         * common.opt (fdump-internal-locations): New option.
27221         * input.c: Include diagnostic-core.h.
27222         (get_end_location): New function.
27223         (write_digit): New function.
27224         (write_digit_row): New function.
27225         (dump_location_range): New function.
27226         (dump_labelled_location_range): New function.
27227         (dump_location_info): New function.
27228         * input.h (dump_location_info): New prototype.
27229         * toplev.c (compile_file): Handle flag_dump_locations.
27231 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
27233         * gimple-expr.h (is_gimple_constant): Reorder.
27234         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
27236 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
27238         * combine.c (simplify_set): When generating a CC set, if the
27239         source already is in the correct mode, do not wrap it in a
27240         compare.  Simplify the rest of that code.
27242 2015-05-13  Richard Biener  <rguenther@suse.de>
27244         PR tree-optimization/66123
27245         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
27246         a taken edge.
27248 2015-05-13  Richard Biener  <rguenther@suse.de>
27250         PR middle-end/66110
27251         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
27252         specially.
27253         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
27255 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
27257         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
27258         * aclocal.m4: Regenerated with automake-1.11.6.
27260 2015-05-13  Tom de Vries  <tom@codesourcery.com>
27262         PR tree-optimization/66010
27263         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
27264         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
27265         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
27266         and rval based on do_deref.
27268 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27270         PR target/65103
27271         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
27272         link time constants into adress expressions and therefore set
27273         their cost to 0.
27275 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
27277         PR target/66112
27278         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
27279         Use SWI248 iterator instead of SWI.
27280         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
27281         Use eq_attr "alternative" "0" instead of match_test in
27282         length_immediate attribute computation.
27283         (*mulvhi4, *mulvhi4_1): New define_insns.
27285         PR target/66112
27286         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
27287         SIGNED to get precision of non-negative value.
27289 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27291         PR target/66048
27292         * function.c (diddle_return_value_1): Process bounds first.
27293         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
27294         register.
27296 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27298         PR rtl-optimization/64616
27299         * loop-invariant.c (can_move_invariant_reg): New.
27300         (move_invariant_reg): Call above new function to decide whether
27301         instruction can just be moved, skipping creation of temporary
27302         register.
27304 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27306         PR target/pr66047.c
27307         * i386.c (ix86_function_sseregparm): Only return -1 if local function
27308         with implied regparm is called from -mno-sse function.
27309         (init_cumulative_args): Output error if ix86_function_sseregparm
27310         return -1 and SSE register would be needed.
27311         (function_arg_advance_32): Likewise.
27312         (function_arg_32): Likewise.
27313         * i386.h (ix86_args): Add decl field.
27315 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27317         PR ipa/65873
27318         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
27319         inlines across optimization boundary.
27321 2015-05-12  Jason Merrill  <jason@redhat.com>
27323         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
27324         string literal and macro name.
27326 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
27328         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
27329         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
27330         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
27332 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27334         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
27335         (-Wmisleading-indentation): New option.
27336         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
27338 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
27340         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
27341         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
27342         (alpha_extract_integer): Ditto.
27343         (alpha_legitimate_constant_p): Ditto.
27344         (alpha_split_tmode_pair): Ditto.
27345         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
27346         (alpha_expand_mov): Ditto.
27347         (print_operand): Remove handling of 'H' modifier.
27348         <case 'm'>: Remove CONST_DOUBLE handling.
27349         (summarize_insn): Handle CONST_WIDE_INT.
27350         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
27351         (anddi3): Ditto.
27352         (movti): Handle CONST_WIDE_INT.
27353         * config/alpha/constraints.md ('H'): Remove constraint definition.
27354         ('G'): Do not match MODE_FLOAT class.
27355         * config/alpha/predicates.md (const0_operand): Also match
27356         const_wide_int.
27357         (non_add_const_operand): Ditto.
27358         (non_zero_const_operand): Ditto.
27359         (some_operand): Ditto.
27360         (input_operand): Ditto.  Handle CONST_WIDE_INT.
27361         (and_operand): Do not match const_double.
27362         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
27364 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
27366         PR target/65697
27367         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
27368         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
27369         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
27370         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
27371         is_mm_seq_cst, is_mm_sync): New accessor functions.
27372         * builtins.c (expand_builtin_sync_operation,
27373         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
27374         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
27375         (get_memmodel,  expand_builtin_atomic_compare_exchange,
27376         expand_builtin_atomic_load, expand_builtin_atomic_store,
27377         expand_builtin_atomic_clear): Use new accessor routines.
27378         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27379         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27380         (maybe_emit_sync_lock_test_and_set): Use new accessors and
27381         MEMMODEL_SYNC_ACQUIRE.
27382         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27383         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27384         expand_atomic_store): Use new accessors.
27385         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27386         * tsan.c (instrument_builtin_call): Update check for memory model beyond
27387         final enum to use MEMMODEL_LAST.
27388         * c-family/c-common.c: Use new accessor for memmodel_base.
27389         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27390         accessors.
27391         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27392         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27393         mem_thread_fence, *dmb): Likewise.
27394         * config/alpha/alpha.c (alpha_split_compare_and_swap,
27395         alpha_split_compare_and_swap_12): Likewise.
27396         * config/arm/arm.c (arm_expand_compare_and_swap,
27397         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27398         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27399         atomic_loaddi): Likewise.
27400         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27401         Likewise.
27402         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27403         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27404         use new accessors.
27405         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27406         atomic_store<mode>, atomic_compare_and_swap<mode>,
27407         atomic_exchange<mode>): Use new accessors.
27408         * config/mips/mips.c (mips_process_sync_loop): Likewise.
27409         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27410         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27411         rs6000_post_atomic_barrier): Add new cases.
27412         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27413         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27414         (atomic_load<mode>): Add new cases and use new accessors.
27415         (store_quadpti): Add new cases.
27416         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27417         accessors.
27418         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27419         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27420         model, not 8.
27422 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
27424         * ipa-devirt.c (type_with_linkage_p): New function.
27425         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27426         type has linkage.
27427         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27428         (can_be_name_hashed_p): Simplify.
27429         (hash_odr_name): Check that type has linkage before checking if it is
27430         anonymous.
27431         (types_same_for_odr): Likewise.
27432         (odr_name_hasher::equal): Likewise.
27433         (odr_subtypes_equivalent_p): Likewise.
27434         (warn_types_mismatch): Likewise.
27435         (get_odr_type): Likewise.
27436         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27437         * ipa-utils.h (odr_type_p): Move offline.
27438         * tree.c (need_assembler_name_p): Fix handling of types
27439         without linkages.
27440         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27442 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
27444         * timevar.c (timevar_enable): Delete in favor of...
27445         (g_timer): New global.
27446         (struct timevar_def): Move to timevar.h inside class timer.
27447         (struct timevar_stack_def): Likewise.
27448         (timevars): Delete global in favor of field "m_timevars" within
27449         class timer in timevar.h
27450         (stack): Likewise, in favor of field "m_stack".
27451         (unused_stack_instances): Likewise, in favor of field
27452         "m_unused_stack_instances".
27453         (start_time): Likewise, in favor of field "m_start_time".
27454         (get_time): Eliminate check for timevar_enable.
27455         (timer::timer): New function, built from part of timevar_init.
27456         (timevar_init): Rewrite idempotency test from using
27457         "timevar_enable" bool to using dynamic allocation of "g_timer".
27458         Move rest of implementation into timer's constructor.
27459         (timevar_push_1): Rename to...
27460         (timer::push): ...this, adding "m_" prefixes to variables that
27461         are now fields of timer.
27462         (timevar_pop_1): Likewise, rename to...
27463         (timer::pop): ...this, and add "m_" prefixes.
27464         (timevar_start): Replace test for "timevar_enable" with one for
27465         "g_timer", and move bulk of implementation to...
27466         (timer::start): ...here, adding "m_" prefixes.
27467         (timevar_stop): Likewise, from here...
27468         (timer::stop): ...to here.
27469         (timevar_cond_start): Likewise, from here...
27470         (timer::cond_start): ...to here.
27471         (timevar_cond_stop): Likewise, from here...
27472         (timer::cond_stop): ...to here.
27473         (validate_phases): Rename to...
27474         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
27475         locals "total" and "tv" const.
27476         (timevar_print): Rename to...
27477         (timer::print): ...this, and add "m_" prefixes.  Make locals
27478         "total" and "tv" const.  Eliminate test for timevar_enable.
27479         * timevar.h (timevar_enable): Eliminate.
27480         (g_timer): New declaration.
27481         (timevar_push_1): Eliminate.
27482         (timevar_pop_1): Eliminate.
27483         (timevar_print): Eliminate.
27484         (class timer): New class.
27485         (timevar_push): Rewrite to use g_timer.
27486         (timevar_pop): Likewise.
27487         * toplev.c (toplev::~toplev): Likewise.
27489 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
27491         * arm-protos.h (arm_sched_autopref): Delete.
27492         (tune_params): Re-organize, use enums for flag values.
27493         (FUSE_OPS): New macro.
27494         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
27495         (ARM_PREFETCH_BENEFICIAL): Likewise.
27496         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
27497         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
27498         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
27499         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
27500         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
27501         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
27502         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
27503         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
27504         format.
27505         (arm_option_override, thumb2_reorg, arm_print_tune_info)
27506         (aarch_macro_fusion_pair_p): Update uses of current_tune.
27507         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
27509 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
27511         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27512         "break".
27514 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
27515             Sandra Loosemore <sandra@codesourcery.com>
27517         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27518         value.
27519         (REG_CLASS_NAMES): Add "IJMP_REGS".
27520         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27521         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27522         use new "c" register constraint.
27523         * config/nios2/constraint.md (c): New register constraint
27524         corresponding to IJMP_REGS.
27526 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27528         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27529         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27530         define_splits): Delete, revamp, transmogrify into ...
27531         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27532         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27533         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27534         New.
27536 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27538         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27539         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27541 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27543         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27544         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27545         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27546         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27547         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27548         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27549         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27550         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27551         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27552         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27553         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27554         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27555         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27556         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27557         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27558         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27559         and 30 corresponding splitters): Delete.
27561 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27563         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27564         zero_extract.
27566 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27568         * combine.c (recog_for_combine_1): New function, factored out
27569         from recog_for_combine.
27570         (change_zero_ext): New function.
27571         (recog_for_combine): If recog fails, try again with the pattern
27572         modified by change_zero_ext; if that still fails, restore the
27573         pattern.
27575 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27577         * combine.c (get_undo_marker): New function.
27578         (undo_to_marker): New function, largely factored out from ...
27579         (undo_all): ... this.  Adjust.
27581 2015-05-12  Richard Biener  <rguenther@suse.de>
27583         PR tree-optimization/66101
27584         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27585         fixup if we turn a loop exit edge to a fallthru edge.
27587 2015-05-12  Richard Biener  <rguenther@suse.de>
27589         PR tree-optimization/37021
27590         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27591         (SLP_TREE_TWO_OPERATORS): New define.
27592         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27593         SLP_TREE_TWO_OPERATORS.
27594         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27595         SLP node.
27596         (vect_build_slp_tree): Adjust.
27597         (vect_analyze_slp_cost_1): Likewise.
27598         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27599         emitting two vector stmts and mixing the results.
27601 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27603         * call.c (print_z_candidates): Remove dead code.
27605 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27607         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27608         and zEC12_simple_fp.
27609         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27610         to 1.
27612 2015-05-12  Tom de Vries  <tom@codesourcery.com>
27614         PR tree-optimization/66010
27615         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27616         ifn_va_arg.
27617         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27618         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
27619         va_lists are passed, and remove corresponding handling.
27620         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
27621         do_deref argument to ifn_va_arg.
27622         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27623         ifn_va_arg.
27625 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27627         PR target/65955
27628         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27629         REG before taking its REGNO.
27631 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27633         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27634         rsp->sign_bit_copies and rsp->nonzero_bits into ...
27635         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
27636         present to get more accurate information about the number of sign bit
27637         copies and non zero bits.
27639 2015-05-12  Richard Biener  <rguenther@suse.de>
27641         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27642         do not allow unrolling.
27644 2015-05-11  Richard Henderson  <rth@redhat.com>
27646         * config/i386/i386-modes.def (CCP): New.
27647         * config/i386/i386.c (put_condition_code): Handle it.
27648         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27650 2015-05-11  Richard Henderson  <rth@redhat.com>
27652         * target.def (md_asm_clobbers): Replace with...
27653         (md_asm_adjust): this.
27654         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27655         (TARGET_MD_ASM_ADJUST): New.
27656         * tm.texi: Rebuild.
27657         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27658         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27659         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27661         * cfgexpand.c (check_operand_nalternatives): Accept vector of
27662         constraints instead of lists of outputs and inputs.
27663         (expand_asm_stmt): Save and restore input_location around the
27664         body of the function.  Move asm data into vectors instead of
27665         building tree lists.  Generate cleanup sequences as needed,
27666         rather than waiting til the end.  Use new md_asm_adjust hook.
27668         * config/vxworks.c: Include vec.h before target.h.
27669         * gimple.c: Likewise.
27670         * incpath.c: Likewise.
27671         * mode-switching.c: Likewise.
27673         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27674         (cris_md_asm_adjust): this.
27675         (TARGET_MD_ASM_CLOBBERS): Remove.
27676         (TARGET_MD_ASM_ADJUST): New.
27677         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27678         (ix86_md_asm_adjust): this.
27679         (TARGET_MD_ASM_CLOBBERS): Remove.
27680         (TARGET_MD_ASM_ADJUST): New.
27681         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27682         (mn10300_md_asm_adjust): this.
27683         (TARGET_MD_ASM_CLOBBERS): Remove.
27684         (TARGET_MD_ASM_ADJUST): New.
27685         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27686         (rs6000_md_asm_adjust): this.
27687         (TARGET_MD_ASM_CLOBBERS): Remove.
27688         (TARGET_MD_ASM_ADJUST): New.
27689         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27690         (visium_md_asm_adjust): this.
27691         (TARGET_MD_ASM_CLOBBERS): Remove.
27692         (TARGET_MD_ASM_ADJUST): New.
27694 2015-05-11  Richard Henderson  <rth@redhat.com>
27696         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27697         if noutputs is zero.
27698         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27700         * cfgexpand.c (expand_asm_operands): Merge into...
27701         (expand_asm_stmt): ... here.
27703         * cfgexpand.c (expand_asm_operands): Don't call
27704         resolve_asm_operand_names.
27705         * stmt.c (resolve_asm_operand_names): Clarify block comment.
27707 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
27709         * dwarf2out.c (gen_member_die): Sanity check that we access
27710         TYPE_MAIN_VARIANT for TYPE_METHODS.
27711         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27712         checking TYPE_METHODS.
27713         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27714         if non-null.
27715         (build_distinct_type_copy): Clear TYPE_METHODS.
27716         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27717         (verify_type): Allow TYPE_METHODS to be error_mark_node.
27718         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27720 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
27722         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27723         (emit_pattern_before_setloc): Likewise.
27725 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27727         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27728         for define_peephole2s.
27729         (get_peephole2_pattern): New function.
27730         (main): Use it.  Call validate_pattern.
27732 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27734         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27735         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27736         (Last callee saved reg is different for AVR_TINY architecture)
27738 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27740         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27741         when looking for memory references.
27743 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27745         PR target/65753
27746         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27747         via function pointers.
27749 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27751         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27752         indirect call by forcing address into a pseudo with -fno-plt.
27753         * common.opt (flag_plt): New option.
27754         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27755         ([-fno-plt]): Document.
27757 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
27759         PR bootstrap/66105
27760         * config/rs6000/option-defaults.h: Add space between string literal
27761         and macro name.
27763 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27765         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27766         accross ARM targets.
27768 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27770         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27771         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27773 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27775         PR rtl-optimization/66076
27776         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27777         Don't grow the heap array if it is already big enough from a
27778         previous iteration.
27780 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27782         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27783         (is_called_in_ARM_mode): Remove.
27784         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27785         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27786         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27787          arm_declare_function_name.
27789 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27791         * config/arm/arm.c (arm_option_override): Reoganized and split into :
27792         (arm_option_params_internal); New function.
27793         (arm_option_check_internal): New function.
27794         (arm_option_override_internal): New function.
27795         (thumb_code, thumb1_code): Remove.
27796         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27797         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27798         (thumb_code, thumb1_code): Remove.
27799         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27801 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27803         * config/alpha/alpha.c (alpha_emit_set_const_1)
27804         (alpha_emit_set_long_const, alpha_extract_integer)
27805         (alpha_legitimate_constant_p, alpha_split_const_mov)
27806         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27807         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27808         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27809         HOST_WIDE_INT_1U.
27810         * config/alpha/predicates.md (mode_mask_operand): Do not match
27811         const_double RTX.
27812         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27813         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27814         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27815         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27816         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27818 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
27820         PR target/65780
27821         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27822         default_binds_local_p_2.
27823         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27824         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27826 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27828         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27830 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27832         Patch by Richard Biener
27833         * coverage.c (coverage_obj_init): Delay building of type variant
27834         until the type is finished.
27836 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27838         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27839         mismatch between C and C++ type; compoare correctly ARG_TYPES
27840         for non-prototypes and output correctly parameter index for METHOD_TYPE.
27841         (odr_types_equivalent_p): Fix wording of warning about attributes;
27842         it is OK to match prototype and non-prototype.
27844 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27846         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27847         TYPE_ARG_TYPES list.
27848         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27849         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27851 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27853         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27854         * tree.h (is_lang_specific): Constify.
27856 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
27858         PR tree-optimization/64454
27859         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27860         Rewrite.
27862 2015-05-08  Jason Merrill  <jason@redhat.com>
27864         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27865         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27866         config/darwin.h, config/darwin9.h, config/elfos.h,
27867         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27868         config/microblaze/microblaze.h, config/mips/mips.h,
27869         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27870         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27871         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27872         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27873         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27874         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27875         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27876         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27877         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27878         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27879         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27880         between string literal and macro name.
27882 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27884         * jump.c: Change argument types to rtx_insn *.
27885         * rtl.h: Adjust.
27887 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27889         * lra-constraints.c: Change argument type to rtx_insn *.
27891 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27893         * df-problems.c: Change argument type to rtx_insn *.
27895 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27897         * combine.c: Change argument type to rtx_insn *.
27899 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27901         * rtl.h: Adjust.
27902         * rtlanal.c: Change argument type to rtx_insn *.
27904 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27906         * sched-deps.c: Change argument types to rtx_insn *.
27907         * sched-int.h: Adjust.
27909 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27911         * dwarf2cfi.c: Change argument type to rtx_insn *.
27913 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27915         * ira.c (decrease_live_ranges_number): Changetype of local
27916         variable to rtx_insn *.
27917         * recog.c: Change argument types to rtx_insn *.
27918         * recog.h: Adjust.
27920 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27922         * reorg.c: Change argument types to rtx_insn *.
27924 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27926         * ira-color.c: Change argument types to rtx_insn *.
27927         * lra-eliminations.c: Likewise.
27928         * ira.h: Adjust.
27930 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27932         * gcse.c: Change argument types to rtx_insn *.
27934 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27936         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27938 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27940         * emit-rtl.c (emit_debug_insn_before): Change argument type to
27941         rtx_insn *.
27942         * rtl.h: Adjust.
27944 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27946         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27947         * rtl.h: Adjust.
27949 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27951         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27952         * rtl.h: Adjust.
27954 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27956         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27957         * rtl.h: Adjust.
27959 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27961         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27962         * rtl.h: Adjust.
27964 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27966         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27967         to rtx_insn *.
27968         * rtl.h: Adjust.
27970 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27972         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27973         to rtx_insn *.
27974         * rtl.h: Likewise.
27976 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27978         * except.c (can_nonlocal_goto): Change type of argument to
27979         rtx_insn *.
27980         * rtl.h: Adjust.
27982 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27984         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27985         * rtl.h: Adjust.
27987 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27989         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27990         * cfgrtl.c (can_delete_label_p): Adjust.
27991         * rtl.h: likewise.
27993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27995         * reorg.c (stop_search_p): Change argument to rtx_insn *.
27997 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27999         * except.c (make_reg_eh_region_note): Change argument to
28000         rtx_insn *.
28001         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
28002         * except.h: Adjust.
28004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28006         * mode-switching.c (commit_mode_sets): Change type of local
28007         variable from rtx to rtx_insn *.
28009 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
28011         * doc/install.texi (--enable-languages): Add missing jit and lto info.
28012         Add ^ to grep command.
28013         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
28014         arg to last gimple_simplify declaration.  Add missing gimple_build
28015         declaration for built-in function case with four tree args.
28017 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
28018             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28020         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
28021         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
28022         (GNU_USER_DYNAMIC_LINKERN32): Update.
28024 2015-05-08  Richard Biener  <rguenther@suse.de>
28026         PR tree-optimization/66036
28027         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
28028         Handle strided group loads.
28029         (vect_verify_datarefs_alignment): Likewise.
28030         (vect_enhance_data_refs_alignment): Likewise.
28031         (vect_analyze_group_access): Likewise.
28032         (vect_analyze_data_ref_access): Likewise.
28033         (vect_analyze_data_ref_accesses): Likewise.
28034         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
28035         (vectorizable_load): Likewise.
28037 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
28039         * config/rs6000/rs6000.md: Require operand inequality in one
28040         of the peepholes.
28042 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
28043             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
28045         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
28046         from (set ...).
28047         * config/rx/rx.md (movdi, movdf): Likewise.
28048         Likewise for define_peephole2s.
28050 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28052         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
28053         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
28054         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
28055         vtst_u64): Rewrite using gcc vector extensions.
28057 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28059         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
28060         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
28062 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
28064         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
28066 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28068         * config/glibc-stdint.h (OPTION_MUSL): Define.
28069         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
28070         Change the definition based on OPTION_MUSL for 64 bit targets.
28071         * config/linux.h (OPTION_MUSL): Redefine.
28072         * config/alpha/linux.h (OPTION_MUSL): Redefine.
28073         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
28074         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
28076 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
28077             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28079         * config.gcc (LIBC_MUSL): New tm_defines macro.
28080         * config/linux.h (OPTION_MUSL): Define.
28081         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
28082         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
28083         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28084         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28085         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28086         * config/linux.opt (mmusl): New option.
28087         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
28088         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28089         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28090         * configure: Regenerate.
28092 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
28093             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28095         PR target/48904
28096         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
28097         * config/i386/knetbsd-gnu64.h: New file.
28099 2015-05-08  Marek Polacek  <polacek@redhat.com>
28101         PR c/64918
28102         * doc/invoke.texi: Document -Woverride-init-side-effects.
28104 2015-05-07  Marek Polacek  <polacek@redhat.com>
28106         PR c/65179
28107         * doc/invoke.texi: Document -Wshift-negative-value.
28109 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
28111         * gcov-tool.c (do_merge): Refactore to remove int ret.
28112         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
28113         !type == FUNC to type != FUNC.
28114         * reload.h (struct target_reload): Changee to type of
28115         x_spill_indirect_levels from bool to unsigned char.
28117 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
28119         * rtl.h (always_void_p): New function.
28120         * gengenrtl.c (always_void_p): Likewise.
28121         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
28122         with code foo are always VOIDmode.
28123         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
28124         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
28125         compare-elim.c, config/aarch64/aarch64.c,
28126         config/aarch64/aarch64.md, config/alpha/alpha.c,
28127         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
28128         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
28129         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
28130         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28131         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
28132         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
28133         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
28134         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
28135         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
28136         config/ia64/vect.md, config/iq2000/iq2000.c,
28137         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
28138         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
28139         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
28140         config/mep/mep.c, config/microblaze/microblaze.c,
28141         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
28142         config/mn10300/mn10300.c, config/msp430/msp430.c,
28143         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
28144         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
28145         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
28146         config/rs6000/altivec.md, config/rs6000/rs6000.c,
28147         config/rs6000/rs6000.md, config/rs6000/vector.md,
28148         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
28149         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
28150         config/sh/sh.md, config/sh/sh_treg_combine.cc,
28151         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
28152         config/spu/spu.md, config/stormy16/stormy16.c,
28153         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
28154         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
28155         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
28156         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
28157         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
28158         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
28159         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
28160         var-tracking.c: Update calls accordingly.
28162 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
28164         PR middle-end/192
28165         PR middle-end/54303
28166         * varasm.c (function_mergeable_rodata_prefix): New function.
28167         (mergeable_string_section): Use it.
28168         (mergeable_constant_section): Use it.
28170 2015-05-07  Jeff Law  <law@redhat.com>
28172         PR target/39726
28173         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28174         simplifier to narrow arithmetic.
28175         * generic-match-head.c: (types_match, single_use): New functions.
28176         * gimple-match-head.c: (types_match, single_use): New functions.
28178 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28180         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
28181         rtx type.
28183 2015-05-07  Richard Biener  <rguenther@suse.de>
28185         PR tree-optimization/66002
28186         * passes.def: Schedule another pass_merge_phi after ifcombine, right
28187         before phiopt.
28189 2015-05-07  Marek Polacek  <polacek@redhat.com>
28190             Martin Uecker  <uecker@eecs.berkeley.edu>
28192         * doc/invoke.texi: Document -fsanitize=bounds-strict.
28193         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
28194         into SANITIZE_NONDEFAULT.
28195         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
28197 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
28199         PR target/66015
28200         * config/alpha/alpha.c (alpha_override_options_after_change): New.
28201         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
28202         (alpha_override_options): Move align_loops, align_jumps and
28203         align_functions handling into alpha_override_options_after_change.
28205 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
28206             Chris Jones  <chrisj@nvidia.com>
28207             Joshua Conner  <jconner@nvidia.com>
28209         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
28210         linking of crtfastmath.o.
28211         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
28213 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
28215         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
28216         (cstore<mode>4_unsigned_imm): New expander.
28217         (cstore<mode>4): Remove empty constraint strings.  Use the new
28218         expanders.
28220 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
28222         PR target/64208
28223         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
28224         alternatives.
28226 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28228         * config/aarch64/geniterators.sh: Use standard BRE in sed.
28230 2015-05-06  Alan Modra  <amodra@gmail.com>
28232         PR target/66033
28233         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
28234         (UNSPEC_NOP): Define.
28235         (reload_vsx_from_gpr<mode>): Add missing DONE.
28236         (reload_gpr_from_vsx<mode>): Likewise.
28237         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
28238         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
28240 2015-05-06  Christian Bruel  <christian.bruel@st.com>
28242         PR target/66015
28243         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
28244         align_jumps, align_functions into aarch64_override_options_after_change.
28246 2015-05-06  Richard Biener  <rguenther@suse.de>
28248         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
28249         vect_transform_slp_perm_load to check if we support a permutation
28250         for basic-block vectorization.
28252 2015-05-06  Nick Clifton  <nickc@redhat.com>
28254         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
28255         used, even if it is not being used as a frame pointer.
28257 2015-05-05  Jason Merrill  <jason@redhat.com>
28259         * dwarf2out.c (gen_member_die): Don't emit anything for an
28260         anonymous class constructor.
28262 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
28264         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
28265         that it reflects the block structure.
28266         (afdo_propagate_edge): Likewise.
28267         (afdo_calculate_branch_prob): Likewise.
28268         (afdo_annotate_cfg): Likewise.
28269         * cfgcleanup.c (equal_different_set_p): Likewise.
28270         (try_crossjump_to_edge): Likewise.
28271         * cgraph.c (cgraph_node::verify_node): Likewise.
28272         * cgraphunit.c (expand_all_functions): Likewise.
28273         * config/i386/i386.c (ix86_expand_copysign): Likewise.
28274         (exact_dependency_1): Likewise.
28275         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
28276         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
28277         * gensupport.c (process_define_subst): Likewise.
28278         * lto-wrapper.c (merge_and_complain): Likewise.
28279         * tree-if-conv.c (if_convertible_bb_p): Likewise.
28280         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
28281         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
28282         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
28283         * tree-vect-loop.c (vectorizable_reduction): Likewise.
28284         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
28285         * tree-vect-stmts.c (vectorizable_shift): Likewise.
28286         * tree-vrp.c (vrp_finalize): Likewise.
28287         * tree.c (variably_modified_type_p): Likewise.
28289 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
28291         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
28292         on darwin12 and later.
28293         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
28294         file to pass -rdynamic on darwin12 and later.
28295         * config/darwin.opt (rdynamic): Add.
28297 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28299         * doc/extend.texi (C Extensions): Update menu for moved Variable
28300         Attributes and Type Attributes sections.
28302 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28304         PR target/65990
28305         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
28306         if rep_8byte stringop strategy was specified for 32-bit target.
28308 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
28310         PR target/65915
28311         * config/i386/i386.md (vector convert to float spltiter): Check for
28312         xmm16+, when splitting scalar float conversion.
28313         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
28315 2015-05-05  Nick Clifton  <nickc@redhat.com>
28317         * config/msp430/msp430-opts.h (enum msp430_regions): New.
28318         * config/msp430/msp430.c (msp430_override_options): Complain if
28319         -mcode-region or -mdata-region is used on a non MSP430X.
28320         (msp430_section_attr): New function.  Checks lower, upper and
28321         either attributes.
28322         (msp430_attribute_table): Add lower, upper and either.
28323         (gen_prefix): New function.  Generates a prefix for a section
28324         name.
28325         (msp430_select_section): New function - handles the choice of
28326         section for an object.  Takes into account memory region
28327         attributes and options.
28328         (msp430_function_section): Use gen_prefix.
28329         (TARGET_SECTION_TYPE_FLAGS): Define.
28330         (msp430_section_type_flags): New function.
28331         (TARGET_ASM_UNIQUE_SECTION): Define.
28332         (msp430_unique_section): New function.
28333         (msp430_output_aligned_decl_common): New function.
28334         (msp430_do_not_relax_short_jumps): New function.
28335         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
28336         Define.
28337         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28338         * config/msp430/msp430-protos.h
28339         (msp430_do_not_relax_short_jumps): New prototype.
28340         (msp430_output_aligned_decl_common): New prototype.
28341         * config/msp430/msp430.md (length): New attribute.
28342         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
28343         then use a long code sequence for short jumps.
28344         * config/msp430/msp430.opt (mcode-region): New.
28345         (mdata-region): New.
28346         * doc/invoke.texi: Document new options.
28347         * doc/extend.texi: Document new attributes.
28349 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28351         * config/aarch64-protos.h (struct cpu_branch_cost): New.
28352         (tune_params): Add field branch_costs.
28353         (aarch64_branch_cost): Declare.
28354         * config/aarch64.c (generic_branch_cost): New.
28355         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
28356         (cortexa53_tunings): Likewise.
28357         (cortexa57_tunings): Likewise.
28358         (thunderx_tunings): Likewise.
28359         (xgene1_tunings): Likewise.
28360         (aarch64_branch_cost): Define.
28361         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
28363 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28365         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
28366         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
28367         * config/i386/i386.md: Ditto.
28368         * config/i386/winnt.c: Ditto.
28370 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
28372         * doc/extend.texi (__atomic Builtins): Move implementation details
28373         to the end of the description, rewrite opening paragraphs, state
28374         difference with __sync builtins, state C11/C++11 assumptions,
28375         weaken itemized descriptions, add explanation of memory model
28376         behaviour, expand description of compare-exchange, simplify text.
28378 2015-05-05  Renlin Li  <renlin.li@arm.com>
28380         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28382 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
28384         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28385         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28386         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28387         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28388         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28389         * configure: Regenerate.
28390         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28391         * doc/install.texi (aarch64*-*-*): Document new
28392         --enable-fix-cortex-a53-843419 option.
28393         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28394         and -mno-fix-cortex-a53-843419 options.
28396 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
28398         PR target/65871
28399         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28401 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
28403         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28404         fix overactive TYPE_MIN_VALUE check and add FIXME for type
28405         compatibility problems.
28407 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28409         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28410         constraints.
28411         (cbranchsi4_reg): New.
28412         * config/microblaze/microblaze.c
28413         (microblaze_expand_conditional_branch_reg): New.
28414         * config/microblaze/microblaze-protos.h
28415         (microblaze_expand_conditional_branch_reg): New prototype.
28417 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
28419         * config/microblaze/microblaze.md (peephole2): New.
28421 2015-05-04  Jeff Law  <law@redhat.com>
28423         Revert:
28424         2015-05-04  Jeff Law  <law@redhat.com>
28426         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28427         simplifier to narrow arithmetic.
28428         * generic-match-head.c: (types_match, single_use): New functions.
28429         * gimple-match-head.c: (types_match, single_use): New functions.
28431 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
28433         PR target/65987
28434         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28435         (split_branches): Likewise.
28437 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
28439         * common.opt (fdelete-null-pointer-checks): Init to -1.
28440         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28441         override flag_delete_null_pointer_checks default.
28442         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28443         behavior re address zero.  Better document target-specific behavior.
28444         (-fisolate-errneous-paths-dereference): Mention relationship to
28445         -fdelete-null-pointer-checks.
28447 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28449         PR tree-optimization/65984
28450         * ubsan.c: Include tree-cfg.h.
28451         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28452         stmt_could_throw_p test, rename can_throw variable to ends_bb.
28454 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
28456         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28457         to CONST_DOUBLE_P predicate.
28458         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28459         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28460         allow only operands that satisfy standard_sse_constant_p predicate.
28461         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28462         to CONST_DOUBLE_P predicate.
28464 2015-05-04  Jeff Law  <law@redhat.com>
28466         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28467         simplifier to narrow arithmetic.
28468         * generic-match-head.c: (types_match, single_use): New functions.
28469         * gimple-match-head.c: (types_match, single_use): New functions.
28471 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
28473         * config/arm/arm.c: Restore bootstrap.
28475 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
28477         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
28478         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
28479         as CONST_WIDE_INT, not CONST_DOUBLE.
28480         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
28481         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
28482         (ix86_find_base_term): Do not check for CONST_DOUBLE.
28483         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
28484         (ix86_build_signbit_mask): Rewrite using wide ints.
28485         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
28486         (ix86_rtx_costs): Handle CONST_WIDE_INT.
28487         (find_constant): Ditto.
28488         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
28489         using gen_int_mode.
28490         * config/i386/predicates.md (x86_64_immediate_operand)
28491         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28492         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
28493         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28494         (const0_operand): Also match const_wide_int.
28495         (constm1_operand): Ditto.
28496         (const1_operand): Ditto.
28498 2015-05-04  Richard Biener  <rguenther@suse.de>
28500         PR tree-optimization/65965
28501         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
28502         store groups at gaps.
28504 2015-05-04  Richard Biener  <rguenther@suse.de>
28506         PR tree-optimization/65935
28507         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
28508         then make sure to apply that swapping to the IL.
28510 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28512         * Makefile.in (PATCHLEVEL_c): New variable.
28513         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28514         expand the same way as if DEVPHASE_c was non-empty.
28516 2015-05-04  Kai Tietz  <ktietz@redhat.com>
28518         PR target/65559
28519         * lto-wrapper.c (run_gcc): Open filename
28520         in binary-mode.
28522 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
28524         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
28525         sections up in file, to immediately after the Function Attributes
28526         section.
28528 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
28530         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28532 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28534         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28535         (insert_partition_copy_on_edge): Adjust.
28536         (insert_rtx_to_part_on_edge): Likewise.
28537         (insert_part_to_rtx_on_edge): Likewise.
28539 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28541         * function.c (set_return_jump_label): Change type of argument to
28542         rtx_insn *.
28543         * function.h (set_return_jump_label): Adjust.
28545 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28547         * reload.h (struct reg_equivs_t): Change type of init to
28548         rtx_insn *.
28549         * ira.c (fix_reg_equiv_init): Adjust.
28550         * reload1.c (eliminate_regs_1): Likewise.
28551         (init_eliminable_invariants): Likewise.
28553 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28555         * cselib.c (fp_setter_insn): Take a rtx_insn *.
28556         * cselib.h (fp_setter_insn): Adjust.
28558 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28560         * recog.c (struct validate_replace_src_data): Change type of
28561         insn field to rtx_insn *.
28562         (validate_replace_src_group): Change type of argument to rtx_insn *.
28563         * recog.h (validate_replace_src_group): Adjust.
28565 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28567         * haifa-sched.c: Change the type of some variables to rtx_insn *.
28568         * sched-deps.c: Likewise.
28569         * sched-int.h: Likewise.
28570         * sched-rgn.c: Likewise.
28571         * sel-sched.c: Likewise.
28573 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28575         to rtx_insn *.
28576         * config/i386/i386.c: Change the type of some arguments to
28577         rtx_insn *.
28578         * config/arm/arm.c: Likewise.
28580 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28582         * lra-constraints.c: Change type of some arguments to rtx_insn *.
28584 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28586         * regcprop.c (kill_autoinc_value): Change type of argument to
28587         rtx_insn *.
28589 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28591         * genrecog.c (print_subroutine): Adjust.
28592         * recog.c (get_bool_attr_mask_uncached): Likewise.
28593         * recog.h (struct recog_data_d): Change the type of insn to
28594         rtx_insn *.
28596 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28598         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28600 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28602         * df-problems.c (df_set_note): Change type of argument to
28603         rtx_insn *.
28605 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28607         * builtins.c (expand_builtin_trap): Change type of local
28608         variable to rtx_insn *.
28609         (add_sched_insns_for_speculation): Likewise.
28610         (ix86_emit_save_regs): Likewise.
28611         (get_scratch_register_on_entry): Likewise.
28612         (ix86_emit_restore_reg_using_pop): Likewise.
28613         (ix86_emit_leave): Likewise.
28614         (ix86_emit_restore_regs_using_mov): Likewise.
28615         (ix86_expand_epilogue): Likewise.
28616         Likewise.
28617         (rl78_alloc_physical_registers_umul): Likewise.
28618         * cselib.c (discard_useless_locs): Likewise.
28619         (cselib_invalidate_regno): Likewise.
28620         (cselib_invalidate_mem): Likewise.
28621         * function.c (expand_function_start): Likewise.
28622         (emit_use_return_register_into_block): Likewise.
28623         * gcse.c: Likewise.
28624         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28625         * ifcvt.c (noce_get_alt_condition): Likewise.
28626         * loop-doloop.c (doloop_condition_get): Likewise.
28627         * lra-constraints.c (inherit_in_ebb): Likewise.
28628         * modulo-sched.c (sms_schedule_by_order): Likewise.
28629         * recog.c (next_insn_tests_no_inequality): Likewise.
28630         * reorg.c (emit_delay_sequence): Likewise.
28631         (update_reg_dead_notes): Likewise.
28632         (fix_reg_dead_note): Likewise.
28633         (fill_slots_from_thread): Likewise.
28634         (delete_computation): Likewise.
28636 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
28638         * doc/extend.texi (Variable Attributes): Add menu and proper
28639         @nodes to subsections.  Move Microsoft Windows attributes to
28640         their own subsection.
28641         (Type Attributes): Reorganize introduction to remove duplicate
28642         list of attributes.  Add menu and proper @nodes to subsections.
28643         Alphabetize the main table of common attributes.
28645 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
28647         * match.pd: New simplification patterns.
28648         (x + (x & 1))  -> ((x + 1) & ~1)
28649         (x & ~(x & y)) -> ((x & ~y))
28650         (x | ~(x | y)) -> ((x | ~y))
28652 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28654         * target.def (attribute_table): Mention that struct attribute_spec
28655         is defined in tree-core.h rather than tree.h
28656         * doc/tm.texi: Regenerate.
28658 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
28660         * genrecog.c (test): Rename to rtx_test.  Update rest of file
28661         accordingly.
28663 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
28665         PR translation/65959
28666         * params.h (DEFPARAM): Rename msgid to nocmsgid.
28668 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28670         * config/aarch64/aarch64-protos.h (tune_params):
28671         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28672         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28673         Return value depending on target.
28674         (generic_tunings): Initialize new target settings.
28675         (cortexa53_tunings): Likewise.
28676         (cortexa57_tunings): Likewise.
28677         (thunderx_tunings): Likewise.
28678         (xgene1_tunings): Likewise.
28680 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28682         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28683         Make Cortex-A53 shift costs more accurate.
28685 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28687         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28688         UNSIGNED_FLOAT.
28690 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28692         * config/aarch64/aarch64.c (aarch64_rtx_costs):
28693         Calculate cost of op0 and op1 in PLUS and MINUS cases.
28695 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28697         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28698         Add cost of op0 in the compare-with-fpzero case.
28700 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
28702         * builtins.c (fold_builtin_1): Remove spurious second
28703         semicolon.
28704         * cgraph.h (symtab_node::get_availability): Likewise.
28705         * opts.c (common_handle_option): Remove spurious second semicolon.
28706         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28707         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28709 2015-04-30  Caroline Tice  <cmtice@google.com>
28711         PR gcov-profile/65929
28712         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28713         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28714         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28715         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28716         * doc/tm.texi: Regenerate.
28717         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
28718         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28719         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
28720         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28722 2015-04-30  Marek Polacek  <polacek@redhat.com>
28724         * varasm.c (handle_cache_entry): Fix logic.
28726 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28728         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28729         (*extrsi5_insn_uxtw_alt): Likewise.
28730         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28731         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28732         operations.
28734 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28736         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28737         fabd in ABS case.
28739 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28741         * config/aarch64/aarch64.md
28742         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28743         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28744         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28745         appropriately.  Handle alternative EON form.
28747 2015-04-30  Renlin Li  <renlin.li@arm.com>
28749         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28750         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28752 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28754         PR ipa/65873
28755         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28756         -fstrict-aliasing boundaries.
28758 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28760         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28761         and [SU]MNEGL patterns.
28763 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28765         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28766         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28767         combined arithmetic-shift ops.  Properly handle all shift and extend
28768         operations that can occur in combination with PLUS/MINUS.
28769         Rename maybe_fma to compound_p.
28770         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28771         arithmetic and shift operations.
28773 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28775         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28776         rather than arith_shift cost when costing ADD/MINUS of an
28777         extended value.
28779 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28781         PR lto/65948
28782         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28783         to itself.
28785 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
28787         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28788         are for the same position.
28790 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
28792         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
28793         vectorize_loops.
28794         (vectorize_loops): Use it.
28796 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28798         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28799         for aggregate types.
28800         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28801         type to be non_ODR.
28802         * tree.c (need_assembler_name_p): Compute mangled name for
28803         non-fundamental types and integer types.
28805 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
28807         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28808         manual swaps.
28809         * expr.c (expand_expr_real_2): Likewise.
28811 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28813         * tree.c (build_common_builtin_nodes): Do not build
28814         __builtin_alloca_with_align as equivalent of library alloca.
28816 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28818         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28819         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28820         bugus variants.
28821         * tree.c: Include print-tree.h and ipa-utils.h
28822         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28823         (free_lang_data_in_cgraph): Call verify_type.
28824         (verify_type_variant): New function.
28825         (verify_type): New function.
28826         * tree.h (verify_type): Declare.
28828 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
28830         * config/mips/mips-cpus.def: (mips4): Change default processor
28831         from PROCESSOR_R8000 to PROCESSOR_R10000.
28833 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
28835         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28836         la/jalr instead of jal.
28838 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
28840         PR target/65871
28841         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28842         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28843         (setcc+movzbl peephole2): Check also clobbered reg.
28844         (setcc+andl peephole2): Ditto.
28846 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28848         PR libgomp/65099
28849         * config/nvptx/mkoffload.c (target_ilp32): New variable.
28850         (main): Set it depending on "-foffload-abi=[...]".
28851         (compile_native, main): Use it to pass "-m32" or "-m64" to the
28852         compiler.
28854 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28856         PR target/65770
28857         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28858         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28859         Flip lane index back at assembly time for bigendian.
28861 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28863         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28864         * gimplify.c (gimplify_omp_workshare): Use it.
28866 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28868         * Makefile.in (build/genrecog.o): Depend on inchash.h.
28869         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28870         build/inchash.o
28871         * genrecog.c: Rewrite most of the code except for the third page.
28873 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28875         * inchash.h, inchash.c: Include bconfig.h for build objects.
28876         * Makefile.in (build/inchash.o): New rule.
28878 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
28880         PR target/65924
28881         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28882         number in type attribute expression.
28884 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28886         * loop-iv.c (canon_condition): Generalize to all types of integer
28887         constant.
28889 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
28891         * gimple-walk.c: Prune duplicate or unneeded includes.
28892         (walk_gimple_asm): Only call parse_input_constraint or
28893         parse_output_constraint if their findings are used.
28894         Honour parse_input_constraint and parse_output_constraint
28895         result.
28897 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28899         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28901 2015-04-29  Tom de Vries  <tom@codesourcery.com>
28903         PR tree-optimization/65893
28904         * passes.def (pass_all_optimizations): Move pass_stdarg to after
28905         pass_dce.
28907 2015-04-29  Richard Biener  <rguenther@suse.de>
28909         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28910         compute GROUP_SIZE for basic-block SLP.
28911         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28912         take into account gaps.
28913         (vect_get_mask_element): Properly reject references to previous
28914         vectors.
28915         (vect_transform_slp_perm_load): Likewise.
28917 2015-04-29  Christian Bruel  <christian.bruel@st.com>
28919         PR target/64835
28920         * config/i386/i386.c (ix86_default_align): New function.
28921         (ix86_override_options_after_change): Call ix86_default_align.
28922         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28923         (ix86_override_options_after_change): New function.
28925 2015-04-28  Jeff Law  <law@redhat.com>
28927         * tree-ssa-dom.c (record_equality); Fix comment typos.
28929 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28931         PR tree-optimization/65887
28932         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28934 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
28936         * doc/extend.texi (Declaring Attributes of Functions): Split into
28937         subsections by target.  Alphabetize the table of common attributes.
28938         Rewrite some of the introductory text to reflect the new structure.
28939         Update some cross-references to point to the new subsections.
28940         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
28941         duplicate copies in the discussion of function, label, and type
28942         attributes.
28944 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
28946         PR bootstrap/65910
28947         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28949 2015-04-28  Jason Merrill  <jason@redhat.com>
28951         PR c++/65734
28952         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28953         (finalize_type_size): Respect TYPE_USER_ALIGN.
28954         (layout_type) [ARRAY_TYPE]: Likewise.
28956 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
28958         * config/arm/arm.md (*arm_movt): Fix type attribute.
28959         (*cmpsi_shiftsi): Likewise.
28960         (*cmpsi_shiftsi_swp): Likewise.
28961         (*movsicc_insn): Likewise.
28962         (*cond_move): Likewise.
28963         (*if_plus_move): Likewise.
28964         (*if_move_plus): Likewise.
28965         (*if_arith_move): Likewise.
28966         (*if_move_arith): Likewise.
28967         (*if_shift_move): Likewise.
28968         (*if_move_shift): Likewise.
28969         (*arm_movtas_ze): Likewise.
28970         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28971         redundancy and type attribute.
28972         (*thumb2_movsi_insn): Fix type attribute.
28973         (*thumb2_addsi_short): Likewise.
28974         (thumb2_addsi3_compare0): Likewise.
28975         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28976         attributes accordingly.
28978 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
28980         PR other/65911
28981         * function.c (pad_to_arg_alignment): Add parentheses.
28983 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
28985         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28986         libgcc/config/frv/elf-lib.h.
28988 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28990         * tree-call-cdce.c: Fix example in header comment.
28992 2015-04-28  Richard Biener  <rguenther@suse.de>
28994         PR tree-optimization/62283
28995         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28996         fails fatally and we are vectorizing a basic-block simply
28997         cause the child to be constructed piecewise.
28998         (vect_analyze_slp_cost_1): Adjust.
28999         (vect_detect_hybrid_slp_stmts): Likewise.
29000         (vect_bb_slp_scalar_cost): Likewise.
29001         (vect_get_constant_vectors): For piecewise constructed
29002         constants place them after the last def.
29003         (vect_get_slp_defs): Adjust.
29004         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
29005         externals for basic-block vectorization.
29007 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29009         PR target/63503
29010         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
29011         aarch64-*-*.
29012         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
29013         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
29014         (AARCH64_TUNE_FMA_STEERING): Likewise.
29015         * config/aarch64/aarch64-cores.def: Set
29016         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
29017         FMUL/FMADD instructions.
29018         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
29019         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
29020         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
29021         * config/aarch64/cortex-a57-fma-steering.h: New file.
29022         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29024 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
29026         * gensupport.c (std_preds): Add missing codes to address_operand entry.
29028 2015-04-28  Richard Biener  <rguenther@suse.de>
29030         PR tree-optimization/65851
29031         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
29032         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
29033         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
29034         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
29035         (ccp_visit_phi_node): Adjust.
29036         (evaluate_stmt): For simplifications to SSA names return its
29037         lattice value if that isn't VARYING.  Return immediately when
29038         simplified to a constant.
29039         (visit_assignment): Adjust.
29040         (ccp_visit_stmt): Likewise.
29042 2015-04-28  Tom de Vries  <tom@codesourcery.com>
29044         PR tree-optimization/65818
29045         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
29046         evaluated.
29048 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29050         * calls.c (save_fixed_argument_area): Don't check
29051         ARGS_GROW_DOWNWARD with the preprocessor.
29052         (restore_fixed_argument_area): Likewise.
29053         (mem_overlaps_already_clobbered_arg_p): Likewise.
29054         (check_sibcall_argument_overlap): Likewise.
29055         (expand_call): Likewise.
29056         (emit_library_call_value_1): Likewise.
29057         (store_one_arg): Likewise.
29058         * function.c (assign_parms): Likewise.
29059         (locate_and_pad_parm): Likewise.
29060         (pad_to_arg_alignment): Likewise.
29061         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29063 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29065         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
29066         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
29067         * calls.c (save_fixed_argument_area): Don't chekc if
29068         ARGS_GROW_DOWNWARD is defined.
29069         (restore_fixed_argument_area): Likewise.
29070         (mem_overlaps_already_clobbered_arg_p): Likewise.
29071         (check_sibcall_argument_overlap): Likewise.
29072         (expand_call): Likewise.
29073         (emit_library_call_value_1): Likewise.
29074         (store_one_arg): Likewise.
29075         * function.c (assign_parms): Likewise.
29076         (locate_and_pad_parm): Likewise.
29077         (pad_to_arg_alignment): Likewise.
29078         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
29080 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29082         * defaults.h (gen_epilogue): New function.
29083         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
29084         defined.
29085         * cfgrtl.c (cfg_layout_finalize): Likewise.
29086         * df-scan.c: Likewise.
29087         * function.c (thread_prologue_and_epilogue_insns): Likewise.
29088         (reposition_prologue_and_epilogue_notes): Likewise.
29089         * reorg.c (find_end_label): Likewise.
29090         * toplev.c: Likewise.
29092 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29094         * bb-reorder.c (HAVE_return): Don't check if its undefined.
29095         * defaults.h (gen_simple_return): New function.
29096         (gen_simple_return): Likewise.
29097         (HAVE_return): Add default definition to false.
29098         (HAVE_simple_return): Likewise.
29099         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
29100         HAVE_return and HAVE_simple_return are defined.
29101         * function.c (gen_return_pattern): Likewise.
29102         (convert_jumps_to_returns): Likewise.
29103         (thread_prologue_and_epilogue_insns): Likewise.
29104         * reorg.c (find_end_label): Likewise.
29105         (dbr_schedule): Likewise.
29106         * shrink-wrap.c: Likewise.
29107         * shrink-wrap.h: Likewise.
29109 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29111         * defaults.h (EPILOGUE_USES): Add default definition of false.
29112         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
29113         * resource.c (init_resource_info): Likewise.
29115 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29117         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
29118         to false.
29119         * dwarf2out.c (field_byte_offset): REmove check if
29120         PCC_BITFIELD_TYPE_MATTERS is defined.
29121         * stor-layout.c (layout_decl): Likewise.
29122         (update_alignment_for_field): Likewise.
29123         (place_field): Likewise.
29125 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29127         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
29128         true.
29129         * regrename.c (check_new_reg_p): Remove check if
29130         HARD_REGNO_RENAME_OK is defined.
29131         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
29133 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29135         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
29136         * cse.c (fold_rtx): Likewise.
29137         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
29138         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
29139         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
29140         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
29141         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
29142         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
29143         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
29144         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
29145         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
29146         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
29147         * Likewise.
29148         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
29149         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
29150         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
29151         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
29152         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
29153         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
29154         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
29155         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
29156         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
29157         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
29158         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
29159         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
29160         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
29161         * doc/tm.texi: Regenerate.
29162         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
29163         either true or false.
29165 2015-04-27  Jeff Law  <law@redhat.com>
29167         PR tree-optimization/65217
29168         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
29169         of them has a single use, make sure it is the LHS of the implied
29170         copy.
29172 2015-04-28  Alan Modra  <amodra@gmail.com>
29174         PR target/65810
29175         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
29176         (offsettable_ok_by_alignment): Use minimum of decl and toc
29177         pointer alignment.  Replace dead code with assertion.
29178         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
29179         case if size exceeds toc pointer alignment.
29180         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
29181         (rs6000_emit_move): Likewise.
29182         * configure.ac: Add linker toc pointer alignment check.
29183         * configure: Regenerate.
29184         * config.in: Regenerate.
29186 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
29188         * config.gcc: Add h8300-*-linux.
29189         * config/h8300/linux.h: New.
29190         * config/h8300/t-linux: New.
29191         * config/h8300/h8300.c (h8300_option_override): Normal mode
29192         is not supported for h8300-*-linux.
29193         (h8300_file_start): Target priority change.
29194         (get_shift_alg): Likewise.
29195         (h8300_shift_need_scratch_p): Likewise.
29196         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
29197         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
29199 2015-04-27  Caroline Tice  <cmtice@google.com>
29201         * final.c (final_scan_insn):  Output cold_function_name as function
29202         type.
29203         * varasm.c (cold_function_name):  Make global.
29204         (assemble_start_function):  Re-set cold_function_name.
29205         (assemble_end_function): Output cold partition size.
29206         * varasm.h (cold_function_name):  Declare global.
29208 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
29210         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
29211         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
29212         constraint.
29213         (*movxi_internal_avx512f): Ditto.
29214         (define_split): Check for xmm16+, when splitting scalar float_extend.
29215         (*extendsfdf2_mixed): Use "v" constraint.
29216         (define_split): Check for xmm16+, when splitting scalar float_truncate.
29217         (*truncdfsf_fast_sse): Use "v" constraint.
29218         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
29219         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
29220         (define_peephole2): Check for xmm16+, when converting scalar
29221         float_truncate.
29222         (define_peephole2): Check for xmm16+, when converting scalar
29223         float_extend.
29224         (*fop_<mode>_comm_mixed): Use "v" constraint.
29225         (*fop_<mode>_comm_sse): Ditto.
29226         (*fop_<mode>_1_mixed): Ditto.
29227         (*sqrt<mode>2_sse): Ditto.
29228         (*ieee_s<ieee_maxmin><mode>3): Ditto.
29230 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29232         * combine.c (simplify_if_then_else): Use std::swap instead
29233         of manually swapping.
29234         (known_cond): Likewise.
29235         (simplify_comparison): Likewise.
29237 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
29239         PR target/64579
29240         * config/rs6000/htm.md: Remove all define_expands.
29241         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
29242         UNSPECV_HTM_TABORTWCI): Remove.
29243         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
29244         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
29245         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
29246         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
29247         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
29248         tabortwci_internal): Remove define_insns.
29249         (tabort<wd>c, tabort<wd>ci): New define_insns.
29250         (tabort): Use gpc_reg_operand.
29251         (tcheck): Remove operand.
29252         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
29253         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
29254         expected value.
29255         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
29256         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
29257         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
29258         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
29259         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
29260         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
29261         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
29262         (tcheck): Remove builtin argument.
29263         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
29264         not TARGET_64BIT.
29265         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
29266         tabortdc and tabortdci builtins when not in 64-bit mode.
29267         Modify code to handle the loss of the HTM define_expands.
29268         Emit code to copy the CR register to TARGET.
29269         (htm_init_builtins): Modify code to handle the loss of the HTM
29270         define_expands.
29271         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
29272         (RS6000_BTC_64BIT): Likewise.
29273         (RS6000_BTC_CR): New macro.
29274         * doc/extend.texi: Update documentation for htm builtins.
29276 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29278         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
29279         of manually swapping.
29280         (simplify_associative_operation): Likewise.
29281         (simplify_binary_operation): Likewise.
29282         (simplify_plus_minus): Likewise.
29283         (simplify_relational_operation): Likewise.
29284         (simplify_ternary_operation): Likewise.
29286 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
29288         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
29289         (xs_hi_nonmemory_operand): Remove error.
29290         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
29291         general_operand rather than xs_hi_general_operand.
29293 2015-04-27  Richard Biener  <rguenther@suse.de>
29295         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
29296         (record_equivalences_from_stmt): Valueize rhs.
29297         (record_equality): Canonicalize x and y order via
29298         tree_swap_operands_p.  Do not swap operands for same loop depth.
29300 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
29302         PR target/65296
29303         PR target/65895
29304         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
29305         Add hint how to use own spec file.
29307 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
29309         PR tree-optimization/65875
29310         * tree-vrp.c (update_value_range): If in is_new case setting
29311         old_vr to VR_VARYING, also set new_vr to it.  Remove
29312         old_vr->type == VR_VARYING test.
29313         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
29314         SSA_PROP_INTERESTING if update_value_range returned true,
29315         but new range is VR_VARYING.
29317 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29319         * combine.c (sign_extend_short_imm): New.
29320         (set_nonzero_bits_and_sign_copies): Use above new function for sign
29321         extension of src short immediate.
29322         (reg_nonzero_bits_for_combine): Likewise for tem.
29324 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29326         * stor-layout.c (self_referential_component_ref_p): New predicate.
29327         (copy_self_referential_tree_r): Use it.
29328         (self_referential_size): Punt for simple operations directly involving
29329         self-referential component references.
29330         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
29332 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
29334         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
29336 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
29338         * vec.h (vec): Make splice arguments const.  Update definitions
29339         accordingly.
29341 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
29343         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
29344         alternatives.
29346 2015-04-26  Tom de Vries  <tom@codesourcery.com>
29348         PR tree-optimization/65826
29349         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
29351 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
29353         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
29354         (*madd3<mode>): Ditto.
29355         (*msub4<mode>): Ditto.
29356         (*msub3<mode>): Ditto.
29357         (*nmadd4<mode>): Ditto.
29358         (*nmadd3<mode>): Ditto.
29359         (*nmadd4<mode>_fastmath): Ditto.
29360         (*nmadd3<mode>_fastmath): Ditto.
29361         (*nmsub4<mode>): Ditto.
29362         (*nmsub3<mode>): Ditto.
29363         (*nmsub4<mode>_fastmath): Ditto.
29364         (*nmsub3<mode>_fastmath): Ditto.
29366 2015-04-24  Jason Merrill  <jason@redhat.com>
29368         PR c++/50800
29369         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
29370         down when building TYPE_CANONICAL.
29371         (build_pointer_type_for_mode): Likewise.
29373 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
29375         * genrecog.c (validate_pattern): Check matching constraint refers
29376         to a lower numbered operand.
29378 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
29380         PR target/65849
29381         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29382         save to independent variables use the Save attribute.  This will
29383         allow these options to be modified with the #pragma/attribute
29384         target support.
29385         (-mallow-movmisalign): Likewise.
29386         (-mallow-df-permute): Likewise.
29387         (-msched-groups): Likewise.
29388         (-malways-hint): Likewise.
29389         (-malign-branch-targets): Likewise.
29390         (-mvectorize-builtins): Likewise.
29391         (-msave-toc-indirect): Likewise.
29393         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29394         can be set via the #pragma/attribute target support.
29395         (rs6000_opt_vars): Likewise.
29396         (rs6000_inner_target_options): If VSX was set, also set
29397         -mno-avoid-indexed-addresses.
29399 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29401         * config/arm/iterators.md (shiftable_ops): Rename to...
29402         (SHIFTABLE_OPS): ... This.  Update use in comments.
29403         (ior_xor): Rename to...
29404         (IOR_XOR): ... This.
29405         (vqh_ops): Rename to...
29406         (VQH_OPS): ... This.
29407         (vqhs_ops): Rename to...
29408         (VQHS_OPS): ... This.
29409         (rshifts): Rename to...
29410         (RSHIFTS): ... This.
29411         (returns): Rename to...
29412         (RETURNS): ... This.
29413         * config/arm/arm.md: Update uses of the above.
29414         * config/arm/neon.md: Likewise.
29416 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29418         * config.host (case ${host}): Add aarch64*-*-linux case.
29419         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29420         fields to all the cores.
29421         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29422         Add MCPU_MTUNE_NATIVE_SPECS.
29423         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29424         field to all extensions.
29425         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29426         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29427         Adjust definition of AARCH64_OPT_EXTENSION.
29428         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29429         (MCPU_MTUNE_NATIVE_SPECS): Define.
29430         * config/aarch64/driver-aarch64.c: New file.
29431         * config/aarch64/x-arch64: New file.
29432         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29433         -mtune and -march.
29435 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29436             Wei Mi  <wmi@google.com>
29438         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29439         * config/i386/i386.c (extract_base_offset_in_addr): New function.
29440         (ix86_operands_ok_for_move_multiple): Ditto.
29441         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29442         (movlpd/movhpd to movupd peephole2): Ditto.
29444 2015-04-24  Marek Polacek  <polacek@redhat.com>
29446         PR c/61534
29447         * input.h (from_macro_expansion_at): Define.
29449         PR c/63357
29450         * doc/invoke.texi: Update description of -Wlogical-op.
29452 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29454         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29455         ternary operator in fprintf and harmonize spacing.
29457 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29459         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29460         Mark operand1 commutative.
29462 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
29464         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29465         input operands in memory.
29466         (*vec_concatv2si_sse4_1): Ditto.
29467         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29468         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29469         register_operand.
29470         (vec_extract_hi_v32hi): Ditto.
29471         (vec_extract_hi_v64hi): Ditto.
29472         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
29474 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29475             Steven Bosscher <steven@gcc.gnu.org>
29477         PR rtl-optimization/34503
29478         * cprop.c (cprop_reg_p): New.
29479         (hash_scan_set): Use above function to check if register can be
29480         propagated.
29481         (find_avail_set): Return up to two sets, one whose source is a
29482         register and one whose source is a constant.  Sets are returned in an
29483         array passed as parameter rather than as a return value.
29484         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
29485         sets returned by find_avail_set, starting with the one whose source is
29486         a constant. Use cprop_reg_p to check if register can be propagated.
29487         (do_local_cprop): Use cprop_reg_p to check if register can be
29488         propagated.
29489         (implicit_set_cond_p): Likewise.
29491 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29493         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
29494         (sem_function::equals): IGNORED_NODES parameter is now unused;
29495         update call of equals_private.
29496         (sem_function::equals_private): Do not call equals_wpa; skip
29497         gimple body matching if there is no body.
29498         (sem_function::init): Add logic to hash tthunk info.
29499         (sem_function::parse): Also parse thunks.
29500         * ipa-icf.h (equals_private): Update declaration.
29502 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29504         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
29505         asterisk from name so this can be generated directly.
29506         (*altivec_stvx_<mode>_internal): Likewise.
29507         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
29508         that this is never called during or after reload/lra.
29509         (rs6000_frame_related): Remove split_reg
29510         argument and logic that references it.
29511         (emit_frame_save): Remove last parameter from call to
29512         rs6000_frame_related.
29513         (rs6000_emit_prologue): Remove last parameter from eight calls to
29514         rs6000_frame_related.  Force generation of stvx instruction for
29515         Altivec register saves.  Remove split_reg handling, which is no
29516         longer needed.
29517         (rs6000_emit_epilogue):  Force generation of lvx instruction for
29518         Altivec register restores.
29520 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29522         * config/rs6000/rs6000.opt (mcrypto): Change option description to
29523         match category changes in ISA 2.07B.
29525 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29527         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29528         iterators.
29529         (cmp_op, cmp_type): New code attributes.
29530         (NEON_VCMP, NEON_VACMP): New int iterators.
29531         (cmp_op_unsp): New int attribute.
29532         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29533         (neon_vceq<mode>): Delete.
29534         (neon_vc<cmp_op><mode>_insn): New pattern.
29535         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29536         (neon_vcgeu<mode>): Delete.
29537         (neon_vcle<mode>): Likewise.
29538         (neon_vclt<mode>: Likewise.
29539         (neon_vcage<mode>): Likewise.
29540         (neon_vcagt<mode>): Likewise.
29541         (neon_vca<cmp_op><mode>): New define_expand.
29542         (neon_vca<cmp_op><mode>_insn): New pattern.
29543         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29545 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29547         * tree.h (attribute_value_equal): Declare.
29548         * tree.c (attribute_value_equal): Export.
29550 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29552         * ipa-icf.c (sem_item::compare_attributes): New function.
29553         (sem_item::compare_referenced_symbol_properties): Compare variable
29554         attributes.
29555         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29556         (sem_function::param_used_p): New function.
29557         (sem_function::equals_wpa): Fix attribute comparsion; match
29558         parameter type codes; do not compare paremter flags when
29559         they are not used; compare edge flags; compare indirect calls.
29560         (sem_item::update_hash_by_addr_refs): Hash reference type.
29561         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29562         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29563         reference use type.
29564         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29565         * ipa-icf.h (compare_attributes, param_used_p): Declare.
29567 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29569         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29570         cleanup.
29571         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29572         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29573         (sem_item::compare_referenced_symbol_properties): New.
29574         (sem_item::hash_referenced_symbol_properties): New.
29575         (sem_item::compare_cgraph_references): Rename to ...
29576         (sem_item::compare_symbol_references): ... this one; use
29577         compare_referenced_symbol_properties.
29578         (sem_function::equals_wpa): Do not compare
29579         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29580         DECL_IS_OPERATOR_NEW; compare pointer sizes.
29581         (sem_item::update_hash_by_addr_refs): Call
29582         hash_referenced_symbol_properties.
29583         (sem_item::update_hash_by_local_refs): Cleanup.
29584         (sem_function::merge): Do not mix up symbol properties.
29585         (sem_variable::equals_wpa): Use compare_symbol_references.
29586         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29587         (sem_item::hash_referenced_symbol_properties): New.
29588         (sem_item::compare_symbol_references): New.
29589         (sem_item::compare_cgraph_references): Remove.
29591 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
29593         PR target/26702
29594         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29595         Emit size of local.
29597 2015-04-23  Nick Clifton  <nickc@redhat.com>
29599         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29600         ATTRIBUTE_UNUSED to x parameter.
29601         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29603 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29605         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29606         TARGET_CRYPTO to TARGET_P8_VECTOR>
29607         (crypto_vpermxor_<mode>): Likewise.
29608         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29609         (BU_CRYPTO_3A): Likewise.
29610         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29611         (BU_CRYPTO_OVERLOAD_3A): New #define.
29612         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29613         (VPMSUMH): Likewise.
29614         (VPMSUMW): Likewise.
29615         (VPMSUMD): Likewise.
29616         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29617         (VPERMXOR_V4SI): Likewise.
29618         (VPERMXOR_V8HI): Likewise.
29619         (VPERMXOR_V16QI): Likewise.
29620         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29621         BU_CRYPTO_OVERLOAD_2A.
29622         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29623         BU_CRYPTO_OVERLOAD_3A.
29624         * config/rs6000/rs6000.opt (mcrypto): Change description of
29625         option.
29627 2015-04-23  Richard Biener  <rguenther@suse.de>
29629         * passes.def: Remove copy propagation passes run directly after CCP.
29630         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29631         SSA names.
29632         (ccp_visit_phi_node): Rework to handle first executable edge
29633         specially.
29635 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
29637         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29638         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29639         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29640         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29641         (thumb_legimitimize_reload_address): Remove.
29642         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29643         Remove.
29644         (thumb_legimitimize_reload_address): Remove.
29646 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29648         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29650 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29652         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29653         MAX_LDM_STM_OPS.
29654         (store_multiple): Likewise.
29656 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29658         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29659         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29660         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29661         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29662         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29663         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29664         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29665         Specify issue_rate value.
29666         (arm_issue_rate): Look up issue rate from tuning structs. Remove
29667         large switch statement.
29668         (arm_marvell_pj4_tune): New struct.
29669         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29670         struct.
29672 2015-04-23  Richard Biener  <rguenther@suse.de>
29674         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29675         (vect_find_last_store_in_slp_instance): Rename to ...
29676         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29677         (vect_analyze_slp_cost_1): Use vector_load for constant defs
29678         and vec_construct for external defs when estimating prologue cost.
29679         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29680         Compute costs here only when vectorizing loops.
29681         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29682         have been determined.
29683         (vect_schedule_slp_instance): Simplify vectorized code placement
29684         and prepare for in-BB external defs.
29685         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29686         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29687         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29688         guard.
29689         (vect_model_load_cost): Likewise.
29690         (vectorizable_store): Instead add it here.
29691         (vectorizable_load): Likewise.
29692         (vect_is_simple_use): Dump def type textually.
29694 2015-04-23  Richard Biener  <rguenther@suse.de>
29696         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29697         * cfgloop.c (verify_loop_structure): Verify the root loop node.
29698         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29699         instead of get_eh_region_from_lp_number.
29700         * loop-init.c (fix_loop_structure): If we removed a loop, reset
29701         the SCEV cache.
29703 2015-04-23  Anton Blanchard  <anton@samba.org>
29705         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29706         need for -mprofile-kernel to save LR to stack.
29708 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29710         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29711         adjustments.
29712         (insn_is_swappable_p): Return 1 for a convert from double to
29713         single precision when all of its uses are splats of BE element
29714         zero.
29716 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
29718         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29720 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29722         PR target/65456
29723         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
29724         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29725         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29726         option.
29727         (rs6000_builtin_mask_for_load): Return 0 for targets with
29728         efficient unaligned VSX accesses so that the vectorizer will use
29729         direct unaligned loads.
29730         (rs6000_builtin_support_vector_misalignment): Always return true
29731         for targets with efficient unaligned VSX accesses.
29732         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29733         stores on targets with efficient unaligned VSX accesses is almost
29734         always the same as the cost of an aligned load or store, so model
29735         it that way.
29736         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29737         unaligned vectors if we have efficient unaligned VSX accesses.
29738         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29739         undocumented option.
29741 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29743         Revert:
29744         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29746         * config.gcc (LIBC_MUSL): New tm_defines macro.
29747         * config/linux.h (OPTION_MUSL): Define.
29748         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29749         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29750         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29752         * config/linux.opt (mmusl): New option.
29753         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29754         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29756         * configure: Regenerate.
29758 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29760         * config.gcc (LIBC_MUSL): New tm_defines macro.
29761         * config/linux.h (OPTION_MUSL): Define.
29762         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29763         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29764         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29766         * config/linux.opt (mmusl): New option.
29767         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29768         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29770         * configure: Regenerate.
29772 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
29774         * doc/invoke.texi (-fsanitize-sections): Update description.
29775         * asan.c (set_sanitized_sections): Parse incoming arg.
29776         (section_sanitized_p): Support wildcards.
29778 2015-04-22  Tom de Vries  <tom@codesourcery.com>
29780         PR tree-optimization/65823
29781         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29782         equality between ap_copy and ap.
29784 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29786         PR target/47098
29787         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29789 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29791         PR target/47122
29792         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29794 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29796         PR target/55144
29797         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29798         remove already contained t-files.
29800 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29802         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29803         Remove unneeded forward declarations.
29804         (suitable_for_tail_call_opt_p): Commentary typo fix.
29806 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29808         * varasm.c (emit_bss): Remove redundant guard.
29810 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29812         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29814 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29816         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29818 2015-04-22  Hale Wang  <hale.wang@arm.com>
29819             Terry Guo  <terry.guo@arm.com>
29821         PR rtl-optimization/64818
29822         * combine.c (can_combine_p): Don't combine user-specified
29823         register if it is in an asm input.
29825 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
29827         PR ipa/65076
29828         * passes.def (early_optimizations): Add pass_dse.
29830 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29832         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29833         * reorg.c (redundant_insn): Remove ifdef
29834         INSN_REFERENCES_ARE_DELAYED.
29835         * resource.c (mark_referenced_resources): Likewise.
29837 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29839         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29840         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29841         * resource.c (mark_set_resources): Likewise.
29843 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29845         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29846         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29847         (flow_find_head_matching_sequence): Likewise.
29848         (try_head_merge_bb): Likewise.
29849         * combine.c (can_combine_p): Likewise.
29850         (try_combine): Likewise.
29851         (distribute_notes): Likewise.
29852         * df-problems.c (can_move_insns_across): Likewise.
29853         * final.c (final): Likewise.
29854         * gcse.c (insert_insn_end_basic_block): Likewise.
29855         * ira.c (find_moveable_pseudos): Likewise.
29856         * reorg.c (try_merge_delay_insns): Likewise.
29857         (fill_simple_delay_slots): Likewise.
29858         (fill_slots_from_thread): Likewise.
29859         * sched-deps.c (sched_analyze_2): Likewise.
29861 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29863         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29864         PIC_OFFSET_TABLE_REGNUM.
29866 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29868         * alias.c (init_alias_target): Remove ifdef
29869         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29870         * df-scan.c (df_insn_refs_collect): Likewise.
29871         (df_get_regular_block_artificial_uses): Likewise.
29872         (df_get_eh_block_artificial_uses): Likewise.
29873         (df_get_entry_block_def_set): Likewise.
29874         (df_get_exit_block_use_set): Likewise.
29875         * emit-rtl.c (gen_rtx_REG): Likewise.
29876         * ira.c (ira_setup_eliminable_regset): Likewise.
29877         * reginfo.c (init_reg_sets_1): Likewise.
29878         * regrename.c (rename_chains): Likewise.
29879         * reload1.c (reload): Likewise.
29880         (eliminate_regs_in_insn): Likewise.
29881         * resource.c (mark_referenced_resources): Likewise.
29882         (init_resource_info): Likewise.
29884 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29886         * defaults.h (MASK_RETURN_ADDR): New definition.
29887         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29888         MASK_RETURN_ADDR.
29890 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29892         * defaults.h (RETURN_ADDR_OFFSET): New definition.
29893         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29894         RETURN_ADDR_OFFSET.
29895         (expand_builtin_frob_return_addr): Likewise.
29897 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29899         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29900         (try_redirect_by_replacing_jump): Likewise.
29901         (rtl_tidy_fallthru_edge): Likewise.
29902         * combine.c (insn_a_feeds_b): Likewise.
29903         (find_split_point): Likewise.
29904         (simplify_set): Likewise.
29905         * cprop.c (cprop_jump): Likewise.
29906         * cse.c (cse_extended_basic_block): Likewise.
29907         * df-problems.c (can_move_insns_across): Likewise.
29908         * function.c (emit_use_return_register_into_block): Likewise.
29909         * haifa-sched.c (sched_init): Likewise.
29910         * ira.c (find_moveable_pseudos): Likewise.
29911         * loop-invariant.c (find_invariant_insn): Likewise.
29912         * lra-constraints.c (curr_insn_transform): Likewise.
29913         * postreload.c (reload_combine_recognize_const_pattern):
29914         * Likewise.
29915         * reload.c (find_reloads): Likewise.
29916         * reorg.c (delete_scheduled_jump): Likewise.
29917         (steal_delay_list_from_target): Likewise.
29918         (steal_delay_list_from_fallthrough): Likewise.
29919         (redundant_insn): Likewise.
29920         (fill_simple_delay_slots): Likewise.
29921         (fill_slots_from_thread): Likewise.
29922         (delete_computation): Likewise.
29923         * sched-rgn.c (add_branch_dependences): Likewise.
29925 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29927         * genconfig.c (main): Always define HAVE_cc0.
29928         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29929         HAVE_cc0.
29930         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29931         (flow_find_head_matching_sequence): Likewise.
29932         (try_head_merge_bb): Likewise.
29933         * cfgrtl.c (rtl_merge_blocks): Likewise.
29934         (try_redirect_by_replacing_jump): Likewise.
29935         (rtl_tidy_fallthru_edge): Likewise.
29936         * combine.c (do_SUBST_MODE): Likewise.
29937         (insn_a_feeds_b): Likewise.
29938         (combine_instructions): Likewise.
29939         (can_combine_p): Likewise.
29940         (try_combine): Likewise.
29941         (find_split_point): Likewise.
29942         (subst): Likewise.
29943         (simplify_set): Likewise.
29944         (distribute_notes): Likewise.
29945         * cprop.c (cprop_jump): Likewise.
29946         * cse.c (cse_extended_basic_block): Likewise.
29947         * df-problems.c (can_move_insns_across): Likewise.
29948         * final.c (final): Likewise.
29949         (final_scan_insn): Likewise.
29950         * function.c (emit_use_return_register_into_block): Likewise.
29951         * gcse.c (insert_insn_end_basic_block): Likewise.
29952         * haifa-sched.c (sched_init): Likewise.
29953         * ira.c (find_moveable_pseudos): Likewise.
29954         * loop-invariant.c (find_invariant_insn): Likewise.
29955         * lra-constraints.c (curr_insn_transform): Likewise.
29956         * optabs.c (prepare_cmp_insn): Likewise.
29957         * postreload.c (reload_combine_recognize_const_pattern):
29958         * Likewise.
29959         * reload.c (find_reloads): Likewise.
29960         (find_reloads_address_1): Likewise.
29961         * reorg.c (delete_scheduled_jump): Likewise.
29962         (steal_delay_list_from_target): Likewise.
29963         (steal_delay_list_from_fallthrough): Likewise.
29964         (try_merge_delay_insns): Likewise.
29965         (redundant_insn): Likewise.
29966         (fill_simple_delay_slots): Likewise.
29967         (fill_slots_from_thread): Likewise.
29968         (delete_computation): Likewise.
29969         (relax_delay_slots): Likewise.
29970         * sched-deps.c (sched_analyze_2): Likewise.
29971         * sched-rgn.c (add_branch_dependences): Likewise.
29973 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29975         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29976         that is trivially ded on non cc0 targets.
29977         (simplify_set): Likewise.
29978         (mark_used_regs_combine): Likewise.
29979         * cse.c (new_basic_block): Likewise.
29980         (fold_rtx): Likewise.
29981         (cse_insn): Likewise.
29982         (cse_extended_basic_block): Likewise.
29983         (set_live_p): Likewise.
29984         * rtlanal.c (canonicalize_condition): Likewise.
29985         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29987 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29989         * conditions.h: Define macros even if HAVE_cc0 is undefined.
29990         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29991         * final.c: Likewise.
29992         * jump.c: Likewise.
29993         * recog.c: Likewise.
29994         * recog.h: Declare functions even when HAVE_cc0 is undefined.
29995         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29997 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29999         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
30000         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
30001         * builtins.c (expand_builtin): Remove check if
30002         EH_RETURN_DATA_REGNO is defined.
30003         * df-scan.c (df_bb_refs_collect): Likewise.
30004         (df_get_exit_block_use_set): Likewise.
30005         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
30006         * ira-lives.c (process_bb_node_lives): Likewise.
30007         * lra-lives.c (process_bb_lives): Likewise.
30009 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
30011         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
30012         FIRST_PSEUDO_REG): New.
30013         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
30014         (ARG_POINTER_REGNUM): Define to ARGP_REG.
30015         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
30016         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
30017         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
30018         (FIRST_INT_REG): New.
30019         (LAST_INT_REG): New.
30020         (FIRST_*_REG): Define using *_REG.
30021         (LAST_*_REG): Ditto.
30022         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
30023         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
30024         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
30026 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30028         * expmed.c: (synth_mult): Only assume overlapping
30029         shift with previous steps in alg_sub_t_m2 case.
30031 2015-04-21  Richard Biener  <rguenther@suse.de>
30033         PR tree-optimization/65650
30034         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
30035         transitions involving copies.
30036         (set_lattice_value): Adjust for copy lattice state.
30037         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
30038         if that doesn't dominate the merge point.
30039         (bit_value_unop): Adjust what we treat as varying mask.
30040         (bit_value_binop): Likewise.
30041         (bit_value_assume_aligned): Likewise.
30042         (evaluate_stmt): When we simplified to a SSA name record a copy
30043         instead of dropping to varying.
30044         (visit_assignment): Simplify.
30046         * gimple-match.h (gimple_simplify): Add another callback.
30047         * gimple-fold.c (fold_stmt_1): Adjust caller.
30048         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
30049         for the 2nd callback.
30050         * gimple-match-head.c (gimple_simplify): Add a callback that is
30051         used to valueize the stmt operands and use it that way.
30053 2015-04-21  Richard Biener  <rguenther@suse.de>
30055         PR tree-optimization/65788
30056         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
30058 2015-04-21  Richard Biener  <rguenther@suse.de>
30060         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
30061         vec_construct cost by vec_stmt_cost.
30063 2015-04-21  Richard Biener  <rguenther@suse.de>
30065         * cfghooks.h (create_basic_block): Replace with two overloads
30066         for RTL and GIMPLE.
30067         (split_block): Likewise.
30068         * cfghooks.c (split_block): Rename to ...
30069         (split_block_1): ... this.
30070         (split_block): Add two type-safe overloads for RTL and GIMPLE.
30071         (split_block_after_labels): Call split_block_1.
30072         (create_basic_block): Rename to ...
30073         (create_basic_block_1): ... this.
30074         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
30075         (create_empty_bb): Call create_basic_block_1.
30076         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
30077         split_block_after_labels.
30078         * omp-low.c (expand_parallel_call): Likewise.
30079         (expand_omp_target): Likewise.
30080         (simd_clone_adjust): Likewise.
30081         * tree-chkp.c (chkp_get_entry_block): Likewise.
30082         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
30083         create_basic_block overload.
30084         (cgraph_node::expand_thunk): Likewise.
30085         * tree-cfg.c (make_blocks): Likewise.
30086         (handle_abnormal_edges): Likewise.
30087         * tree-inline.c (copy_bb): Likewise.
30089 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30091         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
30092         New pattern.
30093         (*xor_one_cmplsidi3_ze): Likewise.
30095 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30097         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
30098         use df_remove_problem rather than manually removing problems, leaving
30099         holes in df->problems_in_order[].
30101 2015-04-21  Tom de Vries  <tom@codesourcery.com>
30103         PR tree-optimization/65802
30104         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
30106 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30108         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
30109         Increase to 128.
30110         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
30111         at '.'.  Assert that there's enough space for everything.
30113 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
30115         PR tree-optimization/64950
30116         Revert:
30117         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
30119         PR target/41089
30120         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
30121         as volatile.
30123 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
30125         PR rtl-optimization/64916
30126         * cfgcleanup.c (values_equal_p): New function.
30127         (can_replace_by): Use it.
30129 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
30131         PR c++/65801
30132         * doc/invoke.texi ([-Wnarrowing]): Update.
30134 2015-04-20  Jeff Law  <law@redhat.com>
30136         PR tree-optimization/65658
30137         * tree-ssa-threadupdate.c (redirection_block_p): Remove
30138         redundant test for GIMPLE_ASSIGN in last change.
30140 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
30142         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
30143         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
30144         (legitimize_tls_address): Ditto.
30145         (ix86_expand_move): Ditto.
30146         (ix86_expand_binary_operator): Remove reload_in_progress checks.
30147         (ix86_expand_unary_operator): Ditto.
30148         * config/i386/predicates.md (index_register_operand): Ditto.
30150 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
30152         * reorg.c (try_merge_delay_insns): Improve correctness checking
30153         for targets with multiple delay slots.
30155 2015-04-20  Jeff Law  <law@redhat.com>
30157         PR tree-optimization/65658
30158         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
30159         statements too.
30161 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
30163         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
30164         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
30165         Delete.
30167 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
30169         PR debug/65807
30170         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
30172 2015-04-20  Richard Biener  <rguenther@suse.de>
30174         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
30175         * gimple-fold.c (gimple_build_valueize): New function.
30176         (gimple_build): Always use gimple_build_valueize as valueize hook.
30178 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
30180         PR target/64134
30181         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
30182         and overwrite variable parts if <= 1/2 the elements are variable.
30184 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
30186         PR rtl-optimization/65805
30187         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
30188         Don't use difference of offset and previous offset if
30189         update_sp_offset is non-zero.
30190         (eliminate_regs_in_insn): Ditto.
30191         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
30192         lra_eliminate_regs_1 call.
30193         * lra-constraints.c (get_equiv_with_elimination): Ditto.
30195 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
30197         * hash-table.h: Remove version of hash_table that stored value_type *.
30198         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
30199         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
30200         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
30201         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
30202         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
30203         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
30204         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30205         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
30206         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
30207         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
30208         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
30209         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
30210         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
30211         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30212         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
30213         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
30215 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30216             Jakub Jelinek  <jakub@redhat.com>
30218         PR target/65787
30219         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
30220         subsequent SH_NONE operand does not overwrite an existing *special
30221         value.
30222         (adjust_extract): Handle case where a vec_extract operation is
30223         wrapped in a PARALLEL.
30225 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
30227         PR target/65780
30228         * config/i386/i386.c (ix86_binds_local_p): Define only if
30229         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
30231 2015-04-17  Jeff Law  <law@redhat.com>
30233         PR tree-optimization/47679
30234         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
30235         * tree-ssa-scopedtables.c: New file.
30236         * tree-ssa-scopedtables.h: New file.
30237         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
30238         (const_and_copies): Change name/type.
30239         (record_const_or_copy): Move into tree-ssa-scopedtables.c
30240         (record_const_or_copy_1): Similarly.
30241         (restore_vars_to_original_value): Similarly.
30242         (pass_dominator::execute): Create and destroy const_and_copies table.
30243         (thread_across_edge): Update passing of const_and_copies.
30244         (record_temporary_equivalence): Use method calls rather than
30245         manipulating const_and_copies directly.
30246         (record_equality, cprop_into_successor_phis): Similarly.
30247         (dom_opt_dom_walker::before_dom_children): Similarly.
30248         (dom_opt_dom_walker::after_dom_children): Similarly.
30249         (eliminate_redundant_computations): Similarly.
30250         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
30251         (record_temporary_equivalence): Likewise.
30252         (invalidate_equivalences): Likewise.
30253         (record_temporary_equivalences_from_phis): Update due to type
30254         change of const_and_copies.  Use method calls rather than
30255         manipulating the stack directly.
30256         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
30257         (thread_through_normal_block, thread_across_edge): Likewise.
30258         (thread_across_edge): Likewise.
30259         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
30260         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
30261         of equiv_stack.
30262         (identify_jump_threads): Update due to type change of equiv_stack.
30263         (finalize_jump_threads): Delete the equiv_stack when complete.
30265 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
30267         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30268         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
30269         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
30271 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
30273         PR target/65535
30274         * config.gcc: Exit with a comment when we do not have a major version
30275         number for the FreeBSD target.
30277 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30279         PR target/65689
30280         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
30281         maybe_allows_mem bitfields.
30282         (maybe_allows_none_start, maybe_allows_none_end,
30283         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
30284         maybe_allows_mem_end): New variables.
30285         (compute_maybe_allows): New function.
30286         (add_constraint): Use it to initialize maybe_allows_reg and
30287         maybe_allows_mem fields.
30288         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
30289         is_address constraints such that those that allow neither mem nor
30290         reg come first, then those that only allow reg but not mem, then
30291         those that only allow mem but not reg, then the rest.
30292         (write_allows_reg_mem_function): New function.
30293         (write_tm_preds_h): Call it.
30294         * stmt.c (parse_output_constraint, parse_input_constraint): Use
30295         the generated insn_extra_constraint_allows_reg_mem function
30296         instead of always setting *allows_reg = true; *allows_mem = true;
30297         for unknown extra constraints.
30299 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
30301         PR target/65780
30302         * output.h (default_binds_local_p_3): New.
30303         * varasm.c (default_binds_local_p_3): Make it public.  Take an
30304         argument to indicate if common symbol may be local.  If common
30305         symbol may be local, treat non-external variable as defined
30306         locally.
30307         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
30308         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
30309         * config/i386/i386.c (ix86_binds_local_p): New.
30310         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
30311         ix86_binds_local_p.
30313 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30315         PR debug/65771
30316         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
30317         trying mem_loc_descriptor on XEXP (rtl, 0).
30319 2015-04-17  Martin Liska  <mliska@suse.cz>
30321         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
30322         Release symbol_compare_collection.
30323         * ipa-reference.c: Add TODO that a vector should be released.
30325 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
30327         PR target/65296
30328         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
30329         to new AVR-LibC file layout (bug #44574).
30330         (*avrlibc_devicelib): Same.
30331         * config/avr/avr-mcus.def: Adjust comments.
30332         * config/avr/avr.opt (nodevicelib): Adjust help.
30334 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
30336         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
30338 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
30340         PR c++/64527
30341         * gimplify.c (gimplify_init_constructor): Always emit a
30342         side-effecting constructor.
30344 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30346         PR tree-optimization/64950
30347         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
30348         in cfun->curr_properties.
30349         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
30350         if we generate an IFN_VA_ARG.
30351         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
30352         function if PROP_gimple_lva is not set in src function.
30354 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30355             Michael Matz  <matz@suse.de>
30357         PR tree-optimization/64950
30358         * gimple-iterator.c (update_modified_stmts): Remove static.
30359         * gimple-iterator.h (update_modified_stmts): Declare.
30360         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
30361         (gimplify_va_arg_internal): New function.
30362         (gimplify_va_arg_expr): Use IFN_VA_ARG.
30363         * gimplify.h (gimplify_va_arg_internal): Declare.
30364         * internal-fn.c (expand_VA_ARG): New unreachable function.
30365         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
30366         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
30367         (expand_ifn_va_arg): New function.
30368         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
30369         (pass_stdarg::execute): Call expand_ifn_va_arg.
30370         (pass_data_lower_vaarg): New pass_data.
30371         (pass_lower_vaarg): New gimple_opt_pass.
30372         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
30373         (make_pass_lower_vaarg): New function.
30374         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
30375         properties_required field.
30376         * passes.def (all_passes): Add pass_lower_vaarg.
30377         * tree-pass.h (PROP_gimple_lva): Add define.
30378         (make_pass_lower_vaarg): Declare.
30380 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30382         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30383         * calls.c (call_expr_flags): Same.
30385 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30387         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30388         (pass_stdarg::execute): ... here.
30390 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30391             Michael Matz  <matz@suse.de>
30393         * tree-cfg.c (make_blocks_1): Factor out of ...
30394         (make_blocks): ... here.
30395         (make_edges_bb): Factor out of ...
30396         (make_edges): ... here.
30397         (gimple_find_sub_bbs): New function.
30398         * tree-cfg.h (gimple_find_sub_bbs): Declare.
30400 2015-04-17  Tom de Vries  <tom@codesourcery.com>
30402         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30404 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
30406         * asan.c (set_sanitized_sections): New function.
30407         (section_sanitized_p): Ditto.
30408         (asan_protect_global): Optionally sanitize user-defined
30409         sections.
30410         * asan.h (set_sanitized_sections): Declare new function.
30411         * common.opt (fsanitize-sections): New option.
30412         * doc/invoke.texi (-fsanitize-sections): Document new option.
30413         * opts-global.c (handle_common_deferred_options): Handle new
30414         option.
30416 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
30418         PR debug/65771
30419         * dwarf2out.c (loc_list_from_tree): Return NULL
30420         for DEBUG_EXPR_DECL.
30422 2015-04-17  Christian Bruel  <christian.bruel@st.com>
30424         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30425         same attributes.
30427 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
30429         * ira-color.c (setup_left_conflict_sizes_p): Do not process
30430         node itself when computing left conflict subnode size.
30432 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30434         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30435         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30436         *fop_<mode>_1_sse using enabled attribute.  Use
30437         register_mixssei387nonimm_operand operand 1 predicate. Change
30438         alternative 3 constraints from "x" to "v".
30440 2015-04-16  Richard Biener  <rguenther@suse.de>
30442         PR tree-optimization/65774
30443         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30444         bit-value tracking on.
30446 2015-04-16  Richard Biener  <rguenther@suse.de>
30448         PR tree-optimization/64277
30449         * tree-vrp.c (check_array_ref): Fix anti-range handling,
30450         simplify upper bound handling.
30451         (search_for_addr_array): Simplify.
30452         (check_array_bounds): Handle ADDR_EXPRs here.
30453         (check_all_array_refs): Simplify.
30455 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
30457         * config/i386/i386.c (print_reg): Rewrite function.
30459 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30461         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30462         Invert the condition.
30464 2015-04-16  Renlin Li  <renlin.li@arm.com>
30466         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30467         simplifications for UNSIGNED_FLOAT.
30469 2015-04-16  Nick Clifton  <nickc@redhat.com>
30471         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
30472         MUL_UNINIT.
30473         (enum rl78_cpu_type): New.
30474         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
30475         (umulhi3_shift_virt): Remove m constraint from operand 1.
30476         (umulqihi3_virt): Likewise.
30477         * config/rl78/rl78.c (rl78_option_override): Add code to process
30478         -mcpu and -mmul options.
30479         (rl78_alloc_physical_registers): Add code to handle divhi and
30480         divsi valloc attributes.
30481         (set_origin): Likewise.
30482         * config/rl78/rl78.h (RL78_MUL_G14): Define.
30483         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
30484         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
30485         __RL78_Gxx__.
30486         (ASM_SPEC): Pass -mcpu on to assembler.
30487         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
30488         (mulqi3_rl78): Likewise.
30489         (mulhi3_g13): Likewise.
30490         (mulhi3): Generate the G13 or G14 versions of the insn directly.
30491         (mulsi3): Likewise.
30492         (mulhi3_g14): Add clobbers of AX and BC.
30493         (mulsi3_g14): Likewise.
30494         (mulsi3_g13): Likewise.
30495         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
30496         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
30497         * config/rl78/rl78.opt (mmul): Initialise value to
30498         RL78_MUL_UNINIT.
30499         (mcpu): New option.
30500         (m13, m14, mrl78): New option aliases.
30501         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
30502         (MULTILIB_DIRNAMES): Add g13 and g14.
30503         * doc/invoke.texi: Document -mcpu and -mmul options.
30505 2015-04-16  Richard Biener  <rguenther@suse.de>
30507         * tree-ssa-ccp.c (likely_value): See if we have operands that
30508         are marked as never simulate again and return CONSTANT in this
30509         case.
30510         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30511         not have any operands that will be simulated again as
30512         not being simulated again.
30514 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
30516         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30517         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30518         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30519         attribute.
30520         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30521         enabled attribute.
30522         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30523         *float<SWI48:mode><MODEF:mode>2_sse.
30524         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30525         enabled attribute.
30526         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30527         enabled attribute.
30529 2015-04-15  Tom de Vries  <tom@codesourcery.com>
30531         PR other/65487
30532         * function.c (push_dummy_function): New function.
30533         (init_dummy_function_start): Use push_dummy_function.
30534         (pop_dummy_function): New function.  Factored out of ...
30535         (expand_dummy_function_end): ... here.
30536         * function.h (push_dummy_function, pop_dummy_function): Declare.
30537         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30538         pop_dummy_function.
30539         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30541 2015-04-15  Jeff Law  <law@redhat.com>
30543         PR tree-optimization/47679
30544         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30545         need for forward declaration in upcoming changes.
30546         (record_conditions, record_edge_info): Likewise.
30548         PR rtl-optimization/42522
30549         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30550         SIGN_EXTRACT as a whole object rather than simplifying
30551         its operand.
30553 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
30555         PR ipa/65765
30556         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30557         and GIMPLE_PREDICT use break instead of return true. For
30558         GIMPLE_EH_DISPATCH, compare dispatch region.
30560 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
30562         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
30563         details about the implementation.  Make clear preference for
30564         __atomic builtins.  Reduce possibility of future change.
30566 2015-04-15  Nick Clifton  <nickc@redhat.com>
30568         * config/rx/rx.opt (mallow-string-insns): New option.
30569         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30570         builtin if string instructions are denied.
30571         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30572         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30573         appropriate.
30574         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30575         * config/rx/rx.md (movstr): Enable pattern only if string
30576         instructions are allowed.
30577         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30578         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30579         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30580         (MULTILIB_DIRNAMES): Add no-strings.
30581         * doc/invoke.texi: Document -mno-allow-string-insns.
30583 2015-04-15  Alan Modra  <amodra@gmail.com>
30585         PR target/65408
30586         PR target/58744
30587         PR middle-end/36043
30588         * calls.c (load_register_parameters): Don't load past end of
30589         mem unless suitably aligned.
30591 2015-04-15  Nick Clifton  <nickc@redhat.com>
30593         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30594         decrement instruction as being frame related.
30595         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30596         based addresses.
30597         If zero extending a function address enclose the operation in
30598         %code(...).
30599         (rl78_preferred_reload_class): New function.
30600         (TARGET_PREFERRED_RELOAD_CLASS): Define.
30601         * config/rl78/rl78.md: Remove useless constraints in expanders.
30602         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30603         (mulhi3_rl78): Likewise.
30604         (mulhi3_g13): Likewise.
30605         (mulsi3_rl78): Likewise.
30606         (es_addr): Move to before the multiply patterns.
30608 2015-04-15  Alan Modra  <amodra@gmail.com>
30610         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30611         and sequence_stack.  Add seq.
30612         (seq_stack): Delete.
30613         * function.c (prepare_function_start): Don't access x_last_insn.
30614         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30615         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30616         * emit_rtl.c (start_sequence, push_topmost_sequence,
30617         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30618         sequence accessors.
30619         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30620         remove_insn): Likewise.  Simplify.
30621         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30622         and pop_topmost_sequence.
30623         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
30624         debug insns.
30625         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30627 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
30629         PR target/65729
30630         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30631         the assertiion.
30633 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30635         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30636         (LEGACY_INT_REGNO_P): Ditto.
30637         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30638         (ANY_MASK_REG_P): Remove.
30639         (BND_REG_P): Rename from ANY_BND_REG_P.
30640         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30641         legacy integer registers.  Do not handle MMX_REG_P in a special way.
30642         Merge 64byte and 32byte SSE handling.
30644 2015-04-14  Nick Clifton  <nickc@redhat.com>
30646         * expr.c (expand_assignment): Force an address offset computation
30647         into a register before changing its mode.
30648         (expand_expr_real_1): Likewise.
30650 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
30652         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30653         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30654         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30655         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30656         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30657         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30658         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30659         and __aarch64_vget_lane_any.
30661 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
30663         PR rtl-optimization/65761
30664         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30665         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30667 2015-04-14  Richard Biener  <rguenther@suse.de>
30669         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30670         (graphite_can_represent_scev): Use POINTER_TYPE_P.
30672 2015-04-14  Richard Biener  <rguenther@suse.de>
30674         PR tree-optimization/65758
30675         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30676         against -1.
30677         (ccp_lattice_meet): Likewise.
30678         (bit_value_unop): Likewise.
30679         (bit_value_binop): Likewise.
30680         (bit_value_assume_aligned): Likewise.
30682 2015-04-14  Christian Bruel  <christian.bruel@st.com>
30684         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30685         function.
30687 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
30689         PR tree-optimization/63387
30690         * match.pd ((x unord x) | (y unord y) -> (x unord y),
30691         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30693 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30695         * config/i386/predicates.md (any_QIreg_operand): Rename from
30696         q_regs_operand.  Do not process subregs.
30697         (QIreg_operand): Use QI_REGNO_P predicate.
30698         (ext_QIreg_operand): Ditto.
30699         (ext_register_operand): Ditto.
30700         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30701         (AND splitters): Ditto.
30702         (AND with -65536 splitter): Add SWI48 mode for operand 0.
30703         (AND with -256 splitter): Use any_QIreg_operand predicate and
30704         SWI248 mode for operand 0.
30705         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30706         mode for operand 0.
30707         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30709 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
30711         * doc/plugins.texi: Rewrite first introductory paragraph.
30713 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30715         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30716         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30718 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30720         * ipa-profie.c (ipa_profile): Check number of parameters
30721         and possible polymorphic call targets before
30722         devirtualizing.
30724 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
30726         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30727         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30729 2015-04-13  Richard Biener  <rguenther@suse.de>
30731         PR tree-optimization/65204
30732         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30733         takens for bit-CCP.
30735 2015-04-13  Richard Biener  <rguenther@suse.de>
30737         PR target/65660
30738         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30739         and cond_not_taken_branch_cost to 4 and 2.
30740         (bdver2_cost): Likewise.
30741         (bdver3_cost): Likewise.
30742         (bdver4_cost): Likewise.
30744 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30746         * hash-table.h (hash_table constructor): Add mem stats.
30747         (alloc_entries): Likewise.
30749 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30751         * ipa-cp.c (ipcp_driver): Relase prev_edge.
30752         * passes.c (execute_one_pass): Only add transform if pass has one.
30754 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
30756         * config/i386/i386.c (ix86_option_override_internal): Don't set
30757         -fprefetch-loop-arrays if optimizing for size.
30759 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30760             Gerald Pfeifer  <gerald@pfeifer.com>
30762         * doc/contrib.texi (Contributors): Add Martin Jambor and
30763         Michael Matz.
30765 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
30767         * BASE-VER: Set to 6.0.0.
30769         PR tree-optimization/65747
30770         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30771         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30773 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30775         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30776         sentence.  Improve grammar.
30778 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30780         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30782 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30784         PR ipa/65743
30785         * ipa-inline-transform.c (speculation_removed): Remove static var.
30786         (check_speculations): New function.
30787         (clone_inlined_nodes): Do not check spculations.
30788         (inline_call): Call check_speculations.
30789         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30790         consider non-invariants.
30792 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30793             Martin Liska  <mliska@suse.cz>
30795         PR ipa/65722
30796         * ipa-icf.c (sem_item::compare_cgraph_references): function and
30797         variable can not match.
30798         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30799         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30801 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
30803         PR tree-optimization/65735
30804         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30805         Remove visited_phis argument, add visited_bbs, avoid recursing into the
30806         same bb rather than just into the same phi node.
30807         (thread_through_normal_block): Adjust caller.
30809 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30811         * doc/contrib.texi (Contributors): Add Ira Rosen.
30813 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
30815         * gcov.c (find_source): Fix miswording in error message.
30816         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30817         (ix86_expand_sse_comi_round): Fix typo in error message.
30819 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30821         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30823 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
30825         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30827 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30829         PR target/65710
30830         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30831         Print bad_spills_num and insn_pseudos_num.
30833 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30835         PR target/65694
30836         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30837         when creating +1 values for SImode.
30839 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30841         PR target/65729
30842         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30843         assert.
30845 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
30846             Iain Sandoe  <iain@codesourcery.com>
30848         PR target/65351
30849         * configure: Regenerate.
30851 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30853         PR target/65671
30854         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30856 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
30858         * doc/contrib.texi (Contributors): Add John Marino.
30860 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30862         PR tree-optimization/65709
30863         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30864         TREE_TYPE (TREE_TYPE (t)).
30866 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
30868         PR target/65710
30869         * lra-int.h (lra_bad_spill_regno_start): New.
30870         * lra.c (lra_bad_spill_regno_start): New.
30871         (lra): Set up lra_bad_spill_regno_start.  Set up
30872         lra_constraint_new_regno_start unconditionally.
30873         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30874         spill preferences.
30876 2015-04-09  Marek Polacek  <polacek@redhat.com>
30877             Jakub Jelinek  <jakub@redhat.com>
30879         PR middle-end/65554
30880         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30881         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30882         of STRIP_NOPS.
30884 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
30886         PR rtl-optimization/65693
30887         * combine.c (is_parallel_of_n_reg_sets): Move outside of
30888         #ifndef HAVE_cc0.
30890 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
30892         PR target/65296
30893         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30894         device specs file if "device-specs%s" didn't resolve to a path.
30896 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30898         PR target/65676
30899         * config/i386/i386.c (fixup_modeless_constant): New.
30900         (ix86_expand_args_builtin): Fixup modeless constant operand.
30901         (ix86_expand_round_builtin): Ditto.
30902         (ix86_expand_special_args_builtin): Ditto.
30903         (ix86_expand_builtin): Ditto.
30905 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30907         PR target/65693
30908         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30909         any pow2 integer in between 2 and 0x80000000U inclusive.
30911 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
30913         PR rtl-optimization/65693
30914         * combine.c (is_parallel_of_n_reg_sets): Change first argument
30915         from an rtx_insn * to an rtx.
30916         (try_combine): Adjust both callers.  Use it once more.
30918 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30920         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30921         (chkp_make_static_const_bounds): Search existing
30922         symbol by assembler name.  Use make_decl_one_only.
30923         (chkp_get_zero_bounds_var): Remove node search which
30924         is now performed in chkp_make_static_const_bounds.
30925         (chkp_get_none_bounds_var): Likewise.
30927 2015-04-08  Michael Witten  <mfwitten@gmail.com>
30929         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30930         to an example.
30932 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30934         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30936 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30938         * doc/extend.texi (__sync Builtins): Fix grammar.
30940 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30942         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30944 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30946         * varasm.c (emit_local): Move definition of align.
30948 2015-04-08  Julian Brown  <julian@codesourcery.com>
30950         * config/nvptx/mkoffload.c (process): Support variable mapping.
30952 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
30954         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30955         alpha_links **.
30956         (alpha_write_one_linkage): Correct typo.
30958 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30960         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30962 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30964         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30966 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30968         * tree-chkp.h (chkp_insert_retbnd_call): New.
30969         * tree-chkp.c (chkp_insert_retbnd_call): New.
30970         * ipa-split.c (insert_bndret_call_after): Remove.
30971         (split_function): Use chkp_insert_retbnd_call.
30972         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30973         bounds for instrumented functions.
30975 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
30977         PR ipa/65540
30978         * calls.c (initialize_argument_information): When producing tail
30979         call also turn SSA_NAMES passed by references to original PARM_DECLs
30981 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
30983         PR target/65648
30984         * lra-remat.c (do_remat): Process input and non-input insn
30985         registers separately.
30987 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30989         PR debug/65678
30990         * valtrack.c (debug_lowpart_subreg): New function.
30991         (dead_debug_insert_temp): Use it.
30993         PR middle-end/65680
30994         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30995         into signed HOST_WIDE_INT the same as negative bit_offset.
30997 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
30999         * ipa-comdats.c (ipa_comdats): Visit all thunks
31000         to set proper comdat group.
31002 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31004         PR target/65489
31005         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
31006         on constants for NEON VSTRUCT modes.
31008 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
31009             Iain Sandoe  <iain@codesourcery.com>
31011         PR target/65351
31012         * configure: Regenerate.
31014 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31016         PR target/65614
31017         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
31018         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
31019         that LFD is used to load double constants instead of LFS.  Add
31020         defaults for all costs structures.  Add comments for missing
31021         initialization fields.
31022         (size32_cost): Likewise.
31023         (size64_cost): Likewise.
31024         (rs64a_cost): Likewise.
31025         (mpccore_cost): Likewise.
31026         (ppc403_cost): Likewise.
31027         (ppc405_cost): Likewise.
31028         (ppc440_cost): Likewise.
31029         (ppc476_cost): Likewise.
31030         (ppc601_cost): Likewise.
31031         (ppc603_cost): Likewise.
31032         (ppc604_cost): Likewise.
31033         (ppc604e_cost): Likewise.
31034         (ppc620_cost): Likewise.
31035         (ppc630_cost): Likewise.
31036         (ppccell_cost): Likewise.
31037         (ppc750_cost): Likewise.
31038         (ppc7450_cost): Likewise.
31039         (ppc8540_cost): Likewise.
31040         (ppce300c2c3_cost): Likewise.
31041         (ppce500mc_cost): Likewise.
31042         (ppce500mc64_cost): Likewise.
31043         (ppce5500_cost): Likewise.
31044         (ppce6500_cost): Likewise.
31045         (titan_cost): Likewise.
31046         (power4_cost): Likewise.
31047         (power6_cost): Likewise.
31048         (power7_cost): Likewise.
31049         (power8_cost): Likewise.
31050         (ppca2_cost): Likewise.
31051         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
31053         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
31054         instead of XXLOR to copy SFmode to clear out dirty bits created
31055         when SFmode denormals are generated.
31056         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
31057         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
31059 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
31061         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
31062         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
31063         * config/aarch64/aarch64-tune.md: Regenerate.
31065 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
31067         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
31068         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
31069         * config/arm/arm-cores.def (exynos-m1): New core.
31070         * config/arm/arm-tune.md: Regenerate.
31071         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
31072         * config/arm/bpabi.h: Likewise.
31074 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
31076         * ipa-cp (set_single_call_flag): Remove too
31077         restrictive assert.
31079 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
31081         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
31082         GOMP_offload_unregister from the destructor.
31084 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
31086         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
31087         flags for instrumentation thunk.
31088         (chkp_produce_thunks): Likewise.
31090 2015-04-05  Martin Liska  <mliska@suse.cz>
31092         PR ipa/65665
31093         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
31094         has computed data structure.
31095         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31097 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
31099         * invoke.texi (inline-unit-growth): Increase growth to 20%
31100         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
31102 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
31104         PR target/65647
31105         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
31106         value checking.
31107         (lra_rematerialization_iter): New.
31108         * lra.c (lra): Initialize lra_rematerialization_iter.
31109         Stop updating lra_constraint_new_regno_start after switching of
31110         inheritance and rematerialization.
31111         * lra-remat.c (lra_rematerialization_iter): New.
31112         (lra_remat): Add printing pass iteration.  Do rematerialization
31113         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
31115 2015-04-04  Richard Biener  <rguenther@suse.de>
31117         PR tree-optimization/64909
31118         PR tree-optimization/65660
31119         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
31120         to take a cost vector for scalar iteration cost.
31121         (vect_get_single_scalar_iteration_cost): Likewise.
31122         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
31123         Compute the scalar iteration cost into a cost vector.
31124         (vect_get_known_peeling_cost): Use the scalar cost vector to
31125         account for the cost of the peeled iterations.
31126         (vect_estimate_min_profitable_iters): Likewise.
31127         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
31128         Likewise.
31130 2015-04-04  Alan Modra  <amodra@gmail.com>
31132         PR target/65576
31133         PR target/65240
31134         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
31135         0.0 constant unless TARGET_VSX.
31136         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
31137         alternative.
31139 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31141         PR ipa/65654
31142         * ipa-inline-transform.c (inline_call): Skip sanity check to work
31143         around the ICE
31145 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31147         PR ipa/65655
31148         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
31149         speculative indirect edges to avoid ordering issue.
31151 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
31153         PR ipa/65076
31154         * ipa-inline.c (edge_badness): Add combined size to the denominator.
31156 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
31158         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
31159         TYPE_ARTIFICIAL on the .omp_data* types.
31161 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31163         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
31164         instrumentation thunks.
31166 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31168         * config/i386/i386.c (ix86_expand_call): Avoid nested
31169         PARALLEL in returned call value.
31171 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31173         * lto-cgraph.c (input_cgraph_1): Always link instrumented
31174         assembler name with original one.
31176 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31178         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
31180 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31182         Revert parts of r216820.
31183         * config/i386/i386.md (movqi_internal): Correct type calculation
31184         for alternatives 3 and 5.
31186 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
31188         PR preprocessor/61977
31189         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
31190         predefine __vector/__bool/__pixel macros nor context sensitive
31191         macros for CLK_ASM.
31192         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
31194 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
31196         * config/pa/pa.c (pa_output_move_double): Directly handle register
31197         indexed memory operand.  Simplify handling of scaled register indexed
31198         memory operands.
31200 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31202         PR driver/65444
31203         * config/i386/linux-common.h (MPX_SPEC): New.
31204         (CHKP_SPEC): Add MPX_SPEC.
31205         * doc/invoke.texi (-fcheck-pointer-boudns): Document
31206         possible issues with '-z bndplt' support in linker.
31208 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
31210         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
31211         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
31212         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
31213         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
31214         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
31216 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
31218         * config/i386/sync.md (UNSPEC_MOVA): Remove.
31219         (atomic_load<mode>): Change operand 0 predicate to
31220         nonimmediate_operand and fix up the destination when needed.
31221         Use UNSPEC_LDA.
31222         (atomic_loaddi_fpu): Use UNSPEC_LDA.
31223         (atomic_store<mode>): Change operand 1 predicate to
31224         nonimmendate_operand and move the source to register when needed.
31225         Use UNSPEC_STA.
31226         (atomic_store<mode>_1): Use UNSPEC_STA.
31227         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
31228         Fix moves from memory operand.  Use UNSPEC_STA.
31230 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31232         * expmed.c (strict_volatile_bitfield_p): Check that the access will
31233         not cross a MODESIZE boundary.
31234         (store_bit_field, extract_bit_field): Added assertions in the
31235         strict volatile bitfields code path.
31237 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31239         PR target/65624
31240         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
31241         Increase args array size by one to avoid buffer overflow.
31243 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
31245         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
31246         split_part.
31247         * ipa-inline.c (edge_badness): Add wrapper penalty.
31248         (sum_callers): Move up.
31249         (inline_small_functions): Set single_caller.
31250         * ipa-inline.h (inline_summary): Add single_caller.
31251         * ipa-split.c (split_function): Set split_part.
31252         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
31253         * cgraph.h (cgraph_node): Add split_part.
31255 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
31257         PR target/58945
31258         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
31259         Do not split operands 0 and operands 2 to halfmode.
31260         (atomic_compare_and_swap<mode>): Update for
31261         atomic_compare_and_swap<dwi>_doubleword changes.
31263 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
31265         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
31266         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
31267         no caching is done.
31269 2015-03-31  Martin Liska  <mliska@suse.cz>
31271         PR ipa/65557
31272         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
31273         has already filled up function summary.
31274         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31276 2015-03-31  Richard Biener  <rguenther@suse.de>
31278         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
31279         of types.
31281 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31283         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
31284         nested functions.
31285         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
31286         (s390_asm_output_function_label): Adapt to new signature of
31287         s390_function_num_hotpatch_hw
31288         Optimise the code generating assembler output.
31289         Add comments to assembler file.
31291 2015-03-31  Richard Biener  <rguenther@suse.de>
31293         PR middle-end/65626
31294         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
31295         of the noreturn call so it is last and cleanup_control_flow_bb
31296         can do the CFG part.
31298 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
31300         PR target/65531
31301         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
31302         same_comdat_group for external symbols.
31303         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
31304         infinite same_comdat_group traversal loop.
31306 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
31308         PR plugins/61176
31309         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
31310         automatically to $headers.
31312 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
31314         PR ipa/65610
31315         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
31316         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
31317         function.
31318         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
31319         Use it.
31320         * ipa-prop.c (param_type_may_change_p): Likewise.
31321         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
31322         (remove_unused_scope_block_p): Add in_ctor_dtor_block
31323         argument.  Before inlining, preserve
31324         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
31325         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
31326         recursive calls.
31327         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
31329 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31331         PR ipa/65076
31332         * ipa-inline.c (edge_badness): Base denominator on callee's
31333         grwoth squared.
31335 2015-03-27  Martin Jambor  <mjambor@suse.cz>
31337         PR ipa/65478
31338         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
31339         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
31340         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
31341         node_calling_single_call.
31342         * ipa-cp.c (count_callers): New function.
31343         (set_single_call_flag): Likewise.
31344         (initialize_node_lattices): Count callers and set single_flag_call if
31345         necessary.
31346         (incorporate_penalties): New function.
31347         (good_cloning_opportunity_p): Use it, dump new flags.
31348         (propagate_constants_topo): Set node_within_scc flag if appropriate.
31349         * doc/invoke.texi (ipa-cp-recursion-penalty,
31350         ipa-cp-single-call-pentalty): Document.
31352 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31354         PR ipa/65588
31355         * symtab.c (symtab_node::get_partitioning_class): Register vars
31356         are duplicated.
31357         * varpool.c (symbol_table::output_variables) Do not assemble unefined
31358         decls for non-symbols.
31360 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
31362         PR target/65248
31363         * output.h (default_binds_local_p_2): New.
31364         * varasm.c (default_binds_local_p_2): Renamed to ...
31365         (default_binds_local_p_3): This.  Don't return true on protected
31366         data symbol if protected data may be external.
31367         (default_binds_local_p): Use default_binds_local_p_3.
31368         (default_binds_local_p_1): Likewise.
31369         (default_binds_local_p_2): New.
31370         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
31371         default_binds_local_p_2 if TARGET_MACHO is undefined.
31373 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
31375         PR target/65593
31376         * config/i386/i386.c (legitimize_pic_address): If base
31377         is SYMBOL_REF or LABEL_REF using %rip addressing, force
31378         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31380 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31382         PR target/65531
31383         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31384         comdat groups.
31386 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
31388         PR ipa/65600
31389         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31390         of optimized out indirect call.
31391         (redirect_to_unreachable): Always build symbol table node for
31392         BUILT_IN_UNREACHABLE
31394 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31396         PR target/65407
31397         * ira-costs.c (record_reg_classes): Process all constraint string
31398         containing 0-9.
31400 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
31402         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31403         memory_operand.
31405         PR target/65052
31406         * config/c6x/constraints.md (S3): New constraint.
31407         * config/c6x/c6x.md (real_jump): Use it.
31409 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31411         PR middle-end/65595
31412         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31413         do redirection if the call is not optimized out.
31415 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
31417         PR target/65495
31418         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31419         (fchkp-check-incomplete-type): Add LTO.
31420         (fchkp-zero-input-bounds-for-main): Likewise.
31421         (fchkp-first-field-has-own-bounds): Likewise.
31422         (fchkp-narrow-bounds): Likewise.
31423         (fchkp-narrow-to-innermost-array): Likewise.
31424         (fchkp-use-static-bounds): Likewise.
31425         (fchkp-use-static-const-bounds): Likewise.
31426         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31428 2015-03-27  Marek Polacek  <polacek@redhat.com>
31430         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31432 2015-03-27  Marek Polacek  <polacek@redhat.com>
31434         PR sanitizer/65583
31435         * ubsan.c (ubsan_create_edge): New function.
31436         (instrument_bool_enum_load): Call it.
31437         (instrument_nonnull_arg): Likewise.
31438         (instrument_nonnull_return): Likewise.
31439         (instrument_object_size): Likewise.
31441 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31443         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31444         auto_vec.
31446 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31448         PR lto/65536
31449         * lto-streamer.h (class lto_location_cache): New.
31450         (struct data_in): Add location_cache.
31451         (lto_input_location): Update prototype.
31452         (stream_input_location_now): New.
31453         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31454         pointer to location.
31455         (stream_input_location): Update.
31456         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31457         (warn_odr): Apply location cache before warning.
31458         (lto_input_location): Update prototype.
31459         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31460         Use stream_input_location_now.
31461         * lto-streamer-in.c (lto_location_cache::current_cache): New static
31462         variable.
31463         (lto_location_cache::cmp_loc): New function.
31464         (lto_location_cache::apply_location_cache): New function.
31465         (lto_location_cache::accept_location_cache): New function.
31466         (lto_location_cache::revert_location_cache): New function.
31467         (lto_location_cache::input_location): New function.
31468         (lto_input_location): Do location caching.
31469         (stream_input_location_now): New function.
31470         (input_eh_region, input_struct_function_base): Use
31471         stream_input_location_now.
31472         (lto_data_in_create): use new.
31473         (lto_data_in_delete): Use delete.
31474         * tree-streamer-in.c (unpack_ts_block_value_fields,
31475         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
31476         lto_input_ts_exp_tree_pointers): Update for cached location api.
31478 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31480         PR ipa/65076
31481         * passes.def: Add pass_nothrow.
31482         * ipa-pure-const.c: (pass_data_nothrow): New.
31483         (pass_nothrow): New.
31484         (pass_nothrow::execute): New.
31485         (make_pass_nothrow): New.
31486         * tree-pass.h (make_pass_nothrow): Declare.
31488 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31490         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
31491         edge to change by speculation resolution or redirection.
31492         (edge_set_predicate): Likewise.
31493         (inline_summary_t::duplicate): Likewise.
31494         (remap_edge_summaries): Likewise.
31496 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31498         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
31499         New macros.
31500         (can_inline_edge_p): Relax option matching for always inline functions.
31502 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
31504         PR target/65561
31505         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
31506         Check operand 4 and operand 0 for equality.
31507         (avx512f_vextract<shuffletype>32x4_1_maskm):
31508         Check operand 6 and operand 0 for equality.
31509         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31510         for equality.
31511         (vec_extract_hi_<mode>_maskm): Ditto.
31513 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31515         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31516         dead calls back to live.
31517         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31518         cross check to ...
31519         (cgraph_node::verify_node): ... here; verify only callee edges,
31520         not caller.
31521         * cif-code.def (CILK_SPAWN): New code.
31523 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31525         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31526         (edge_set_predicate): Use it to mark unreachable edges.
31527         (inline_summary_t::duplicate): Remove unnecesary code.
31528         (remap_edge_summaries): Likewise.
31529         (dump_inline_summary): Report contains_cilk_spawn.
31530         (compute_inline_parameters): Compute contains_cilk_spawn.
31531         (inline_read_section, inline_write_summary): Stream
31532         contains_cilk_spawn.
31533         * ipa-inline.c (can_inline_edge_p): Do not touch
31534         DECL_STRUCT_FUNCTION that may not be available;
31535         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31536         remove check for callee_fun->can_throw_non_call_exceptions and
31537         replace it by optimization attribute check; check for flag_exceptions.
31538         * ipa-inline-transform.c (inline_call): Maintain
31539         DECL_FUNCTION_PERSONALITY
31540         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31542 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31544         PR tree-optimization/65551
31545         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31546         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31548 2015-03-26  Richard Biener  <rguenther@suse.de>
31550         PR middle-end/65555
31551         * tree-cfg.c (verify_gimple_call): Do not require a call to
31552         have no LHS if it wasn't recognized as control altering yet.
31554 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31556         PR tree-optimization/64715
31557         * passes.def: Add another instance of pass_object_sizes before ccp1.
31558         * tree-object-size.c (pass_object_sizes::execute): In
31559         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31560         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31561         __bos result and the computed constant.  Remove redundant
31562         checks, obsoleted by gimple_call_builtin_p test.
31564         * var-tracking.c (variable_tracking_main_1): Don't track
31565         variables for targetm.no_register_allocation targets.
31567 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
31569         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31570         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31572 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31574         PR target/65569
31575         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31576         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
31577         0.0 is correctly setup.
31578         (extenddftf2_internal): Likewise.
31580 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
31582         PR tree-optimization/65177
31583         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31584         (bb_in_bbs): New.
31585         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
31586         edges not adjacent on the path to the original code.
31588 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
31590         PR bootstrap/65537
31591         * doc/install.texi (Building a native compiler): Document new
31592         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
31593         configuration assumes that the host supports the linker plugin.
31595 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
31597         PR target/65508
31598         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31599         chain for generated call.
31601 2015-03-25  Richard Biener  <rguenther@suse.de>
31603         * passes.c (pass_manager::execute_early_local_passes): Guard
31604         execution of pass_chkp_instrumentation_passes with
31605         flag_check_pointer_bounds.
31606         (pass_chkp_instrumentation_passes::gate): Likewise.
31608 2015-03-25  Martin Liska  <mliska@suse.cz>
31610         PR tree-optimization/65538
31611         * symbol-summary.h (function_summary::~function_summary):
31612         Relese memory for allocated summaries.
31613         (function_summary::release): New function.
31615 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
31617         PR lto/65515
31618         * lto-streamer-out.c (DFS::worklist): New struct.
31619         (DFS::worklist_vec): New data member.
31620         (DFS::next_dfs_num): Remove.
31621         (DFS::DFS): Rewritten using worklist instead of recursion,
31622         using most of code from DFS::DFS_write_tree.
31623         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31624         pass it to DFS_write_tree calls.
31625         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31626         quick initial checks push it into worklist_vec and return.
31628 2015-03-25  Richard Biener  <rguenther@suse.de>
31630         PR middle-end/65519
31631         * genmatch.c (expr::gen_transform): Re-write to avoid
31632         using gimple_build.
31634 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31636         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31638 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31640         * config/arm/arm.opt (print_tune_info): New option.
31641         * config/arm/arm.c (arm_print_tune_info): New function.
31642         (arm_file_start): Call arm_print_tune_info.
31643         * config/arm/arm-protos.h (struct tune_params): Add comment.
31644         * doc/invoke.texi (@item -mprint-tune-info): New item.
31645         (-mtune): mention it in ARM Option Summary.
31647 2015-03-25  DJ Delorie  <dj@redhat.com>
31649         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31650         correct clause.
31652 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
31653             Martin Liska  <mliska@suse.cz>
31655         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31656         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31657         (sem_item::add_type): New function.
31658         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31659         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31660         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31661         (sem_function::equals_wpa): Fix typo.
31662         * ipa-icf.h (sem_item::add_type): New function.
31663         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31664         order.
31666 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
31668         PR tree-optimization/65533
31669         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31670         with swapped operands, call vect_free_slp_tree on
31671         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31672         vector.
31674 2015-03-24  Richard Biener  <rguenther@suse.de>
31676         PR middle-end/65517
31677         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31678         for fixup if necessary.
31680 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
31682         * doc/extend.texi (Function Attributes): Add @cindex entries
31683         for all attributes and regularize their format.  Delete text
31684         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
31685         information about "eightbit_data", "tiny_data", and "model"
31686         variable attributes to the Variable Attributes section.  Fix
31687         some obvious typos and copy-editing issues.
31688         (Variable Attributes, Type Attributes): Likewise add/fix
31689         @cindex entries for all attributes.
31691 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31693         PR target/65523
31694         * tree-chkp.c (chkp_build_returned_bound): Ignore
31695         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31697 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
31699         PR target/65505
31700         * config/sh/predicates.md (simple_mem_operand,
31701         displacement_mem_operand): Add test for reg.
31702         (short_displacement_mem_operand): Test for displacement_mem_operand
31703         before invoking sh_disp_addr_displacement.
31704         * config/sh/constraints.md (Sdd, Sra): Simplify.
31705         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31706         Remove redundant displacement_mem_operand tests.
31708 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
31710         PR target/65296
31711         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31712         the same -mmcu=MCU more than once.
31714 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31716         PR bootstrap/65522
31717         * ipa-devirt.c: Remove duplicate demangle.h include.
31719         PR target/65504
31720         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31721         on the pseudo.
31722         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31723         REG_POINTER on *destptr after adjusting it for prologue size.
31725         PR ipa/65521
31726         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31727         ultimate_alias_target ()->order ints instead of
31728         ultimate_alias_target () pointers.
31730 2015-03-23  Richard Biener  <rguenther@suse.de>
31732         PR tree-optimization/65518
31733         * tree-vect-stmts.c (vectorizable_load): Reject single-element
31734         interleaving cases we generate absymal code for.
31736 2015-03-23  Richard Biener  <rguenther@suse.de>
31738         PR tree-optimization/65494
31739         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31740         matches here.
31741         (vect_analyze_slp_instance): But do that here, always and once.
31743 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31745         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31746         adding T or multiplying by T+1 and subracting T.
31748 2015-03-22  Jeff Law  <law@redhat.com>
31750         PR rtl-optimization/64317
31751         * Makefile.in (OBJS): Add gcse-common.c
31752         * gcse.c: Include gcse-common.h
31753         (struct modify_pair_s): Move structure definition to gcse-common.h
31754         (compute_transp): Move function to gcse-common.c.
31755         (canon_list_insert): Similarly.
31756         (record_last_mem_set_info): Break out some code and put it into
31757         gcse-common.c.  Call into the new common code.
31758         (compute_local_properties): Pass additional arguments to compute_transp.
31759         * postreload-gcse.c: Include gcse-common.h and df.h
31760         (modify_mem_list_set, blocks_with_calls): New variables.
31761         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31762         (get_bb_avail_insn): Pass in the expression index too.
31763         (alloc_mem): Allocate memory for the new bitmaps and lists.
31764         (free_mem): Free memory for the new bitmaps and lists.
31765         (insert_expr_in_table): Record a bitmap index for each entry we
31766         add to the table.
31767         (record_last_mem_set_info): Call into common code in gcse-common.c.
31768         (get_bb_avail_insn): If no available insn was found in the requested
31769         BB.  If BB has a single predecessor, see if the expression is
31770         transparent in BB and available in that single predecessor.
31771         (compute_expr_transp): New wrapper for compute_transp.
31772         (eliminate_partially_redundant_load): Pass expression's bitmap_index
31773         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
31774         (gcse_after_reload_main): If there are elements in the hash table,
31775         then compute transparency for all the elements in the hash table.
31776         * gcse-common.h: New file.
31777         * gcse-common.c: New file.
31779 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
31781         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31782         as an adjective.
31783         (System Headers): Likewise.
31784         (Ifdef): Likewise.
31785         (Traditional macros): Likewise.
31786         (Invocation): Likewise.
31787         (Option Index): Likewise.
31788         * doc/cppopts.texi (-M): Likewise.
31789         (-finput-charset): Likewise.
31790         (--help): Likewise.
31791         * doc.invoke.texi (AVR Options): Likewise.
31792         (V850 Options): Likewise.
31794 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
31796         PR ipa/65475
31797         * ipa-devirt.c: Include demangle.h
31798         (odr_type_d): Add field rtti_broken.
31799         (odr_subtypes_equivalent_p): Do not require name to match.
31800         (compare_virtual_tables): Fix typo; if type already has ODR violation,
31801         bypass the tests; be ready for function referneces in vtables that are
31802         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31803         (warn_odr): Give up for nameless types.
31804         (warn_types_mismatch): Report mismatch in mangled names;
31805         report mismatch in anonymous namespaces; look into component types to
31806         give useful error; report when mismatch is dragged in from other ODR
31807         type.
31808         (odr_types_equivalent_p): Match types for being polymorphic; avoid
31809         duplicated diagnostics.
31810         (add_type_duplicate): Reorder checks so more informative ones come
31811         first; fix typo; do not output "the extra base is defined here" when
31812         we did not warn.
31813         (BINFO_N_BASE_BINFOS): Relax sanity check.
31815 2015-03-22  Martin Liska  <mliska@suse.cz>
31816             Jakub Jelinek  <jakub@redhat.com>
31818         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31819         masks that can potentially include a builtin.
31820         (ix86_add_new_builtins): Introduce fast filter for isa values
31821         that cannot trigger builtin inclusion.
31823 2015-03-22  Martin Liska  <mliska@suse.cz>
31825         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31826         (sem_item::update_hash_by_local_refs): Likewise.
31827         (sem_variable::get_hash): Empty line is fixed.
31828         (sem_item_optimizer::execute): Include adding of hash references.
31829         (sem_item_optimizer::update_hash_by_addr_refs): New function.
31830         (sem_item_optimizer::build_hash_based_classes): Use local hash.
31831         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31832         (sem_item::update_hash_by_local_refs): Likewise.
31834 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31836         PR ipa/65502
31837         * ipa-comdats.c (enqueue_references): Walk through thunks.
31838         (ipa_comdats): Likewise.
31839         (set_comdat_group_1): New function.
31841 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31843         PR ipa/65475
31844         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31845         non-polymorphic
31847 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
31848             Gerald Pfeifer  <gerald@pfeifer.com>
31850         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31852 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31853             Sandra Loosemore  <sandra@codesourcery.com>
31855         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31856         function parameter declaration.
31857         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31858         Update arguments to nios2_adjust_call_address().
31859         (sibcall_internal): Rename from *sibcall.
31860         (sibcall_value_internal): Rename from *sibcall_value.
31861         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31862         (nios2_large_got_address): Add target temp reg parameter.
31863         (nios2_got_address): Adjust call to nios2_large_got_address, add
31864         force_reg around it.
31865         (nios2_load_pic_address): Add target temp reg parameter, replace call
31866         to nios2_got_address with corresponding code.
31867         (nios2_legitimize_constant_address): Update call to
31868         nios2_load_pic_address.
31869         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31870         to use temp reg for PIC loading purposes.
31871         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31872         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31873         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31875 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31877         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31878         usage of "the @option{...}".
31879         (-Wopenmp-simd): Likewise.
31880         (-fsanitize-recover): Likewise.
31881         (-fsanitize-undefined-trap-on-error): Likewise.
31882         (-flto): Likewise.
31883         (tracer-dynamic-coverage-feedback): Likewise.
31884         (reorder-block-duplicate-feedback): Likewise.
31885         (loop-unroll-jam-size): Likewise.
31886         (-B): Likewise.
31887         (-I-): Likewise.
31888         (-mabs=legacy): Likewise.
31889         (-mupper-regs-df): Likewise.
31890         (-mupper-regs-sf): Likewise.
31891         (-mpointers-to-nested-functions): Likewise.
31893 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31895         * doc/extend.texi (Cilk Plus Builtins): Add markup.
31897 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31899         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31900         additional index entries and cross-references.
31901         (-fchkp-check-incomplete-type): Likewise.
31902         (-fchkp-first-field-has-own-bounds): Likewise.
31903         (-fchkp-narrow-to-innermost-array): Likewise.
31904         (-fchkp-use-fast-string-functions): Likewise.
31905         (-fchkp-use-nochk-string-functions): Likewise.
31906         (-fchkp-use-static-const-bounds): Likewise.
31907         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31908         (-fchkp-instrument-marked-only): Likewise.
31909         (-fchkp-use-wrappers): Likewise.
31910         (-static-libmpx): Likewise.
31911         (-static-libmpxwrappers): Likewise.
31912         * doc/extend.texi (bnd_legacy): Likewise.
31913         (bnd_instrument): Likewise.
31914         (bnd_variable_size): Likewise.
31915         (Pointer Bounds Checker builtins): Likewise.
31917 2015-03-21  Tom de Vries  <tom@codesourcery.com>
31919         PR tree-optimization/65458
31920         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31921         * cgraph.h (cgraph_node): Add parallelized_function field.
31922         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31923         (input_overwrite_node): Read parallelized_function field.
31924         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31925         parallelized_function on cgraph_node for child_fn.
31926         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31927         Remove include of gt-tree-parloops.h.
31928         (parallelized_functions): Remove static variable.
31929         (parallelized_function_p): Rewrite using parallelized_function field of
31930         cgraph_node.
31931         (create_loop_fn): Remove adding to parallelized_functions.
31932         * Makefile.in (GTFILES): Remove tree-parloops.c
31934 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
31936         PR rtl-optimization/64366
31937         * lra.c (lra_update_insn_regno_info): Consider regs in
31938         CALL_INSN_FUNCTION_USAGE memory.
31940 2015-03-20  Richard Biener  <rguenther@suse.de>
31942         PR middle-end/64715
31943         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31944         for type comparison and gcc_checking_assert.
31945         (chrec_fold_plus_poly_poly): Likewise.
31946         (chrec_fold_multiply_poly_poly): Likewise.
31947         (chrec_convert_1): Likewise.
31948         * gimplify.c (gimplify_expr): Remove premature folding of
31949         &X + CST to &MEM[&X, CST].
31951 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31953         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31954         already is final.
31955         (ipa_inline): Recompute inline_failed codes.
31956         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31957         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31958         CIF_FINAL_ERROR.
31960 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
31962         PR rtl-optimization/60851
31963         * recog.c (constrain_operands): Accept a pseudo register before reload
31964         for LRA enabled targets.
31966 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31968         PR target/65240
31969         * config/rs6000/predicates.md (easy_fp_constant): Remove special
31970         -ffast-math handling that kept non-0 constants live in the RTL
31971         until reload.  Remove logic testing the number of instructions it
31972         took to create a constant in a GPR that was never used, due to a
31973         test for soft-float earlier.
31974         (memory_fp_constant): Delete, no longer used.
31976         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31977         alternatives for loading non-0 constants into GPRs for hard
31978         floating point that is no longer needed due to changes in
31979         easy_fp_constant.  Add support for loading 0.0 into GPRs.
31980         (mov<mode>_hardfloat32): Likewise.
31981         (mov<mode>_hardfloat64): Likewise.
31982         (mov<mode>_64bit_dm): Likewise.
31983         (movtd_64bit_nodm): Likewise.
31984         (pre-reload move FP constant define_split): Delete define_split,
31985         since it is no longer used.
31986         (extenddftf2_internal): Remove GHF constraints that are not valid
31987         for extenddftf2.
31989 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
31991         PR rtl-optimization/63491
31992         * lra-constraints.c (check_and_process_move): Use src instead of
31993         sreg.  Remove some dead code.
31995 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
31997         PR ipa/65380
31998         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31999         (sem_variable::merge): Likewise.
32001 2015-03-19  Martin Liska  <mliska@suse.cz>
32003         PR ipa/65465
32004         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
32005         all fields of cgraph_thunk_info.
32007 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
32009         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
32010         clone instrumented thunks.
32012 2015-03-19  Richard Biener  <rguenther@suse.de>
32014         Revert
32015         2015-03-10  Richard Biener  <rguenther@suse.de>
32017         PR middle-end/63155
32018         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32019         * tree-ssa-coalesce.c: Include timevar.h.
32020         (attempt_coalesce): Handle graph being NULL.
32021         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32022         Split out abnormal coalescing to ...
32023         (perform_abnormal_coalescing): ... this function.
32024         (coalesce_ssa_name): Perform abnormal coalescing without computing
32025         live/conflict.
32026         (verify_ssa_coalescing_worker): New function.
32027         (verify_ssa_coalescing): Likewise.
32029 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32030             Jakub Jelinek  <jakub@redhat.com>
32032         PR sanitizer/65400
32033         * tsan.c (instrument_gimple): Clear tail call flag on
32034         calls.
32036 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
32038         PR sanitizer/65400
32039         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
32040         call in the return bb.
32041         (find_split_points): Add RETURN_BB argument, don't call
32042         find_return_bb.
32043         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
32044         if true append TSAN_FUNC_EXIT internal call after the call to
32045         the split off function.
32046         (execute_split_functions): Call find_return_bb here.
32047         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
32048         Adjust find_split_points and split_function calls.
32050 2015-03-18  DJ Delorie  <dj@redhat.com>
32052         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
32053         (iorqi3_virt): Likewise.
32055 2015-03-18  Tom de Vries  <tom@codesourcery.com>
32057         * tree-parloops.c (parallelize_loops): Make static.
32058         * tree-parloops.h (parallelize_loops): Remove extern declaration.
32060 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
32062         PR middle-end/64491
32063         Revert:
32064         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
32066         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
32067         condition would be removed due to undefined behaviour.
32069 2015-03-18  Martin Liska  <mliska@suse.cz>
32071         PR ipa/65432
32072         * cgraph.c (cgraph_node::get_create): Remove unnecessary
32073         xstrdup_for_dump wrapper.
32074         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
32075         sem_item::name.
32076         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
32077         with xstrdup_for_dump.
32078         (sem_variable::equals): Likewise.
32079         (sem_item_optimizer::read_section): Use symtab_node::name instead of
32080         sem_item::name.
32081         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
32082         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
32083         symtab_node::asm_name with xstrdup_for_dump.
32084         (congruence_class::dump): Use symtab_node::name instead of
32085         sem_item::name.
32086         * ipa-icf.h (symtab_node::name): Remove.
32087         (symtab_node::asm_name): Likewise.
32089 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
32091         PR tree-optimization/65450
32092         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
32093         function.
32094         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
32095         it instead of duplicate_ssa_name_ptr_info.
32097         PR target/65222
32098         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
32100 2015-03-18  Richard Biener  <rguenther@suse.de>
32102         * tree-data-ref.h (struct access_matrix): Remove.
32103         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
32104         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
32105         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
32106         (am_vector_index_for_loop): Likewise.
32107         (struct data_reference): Remove access_matrix member.
32108         (DR_ACCESS_MATRIX): Remove.
32109         (lambda_vector_new): Add comment.
32110         (lambda_matrix_new): Use XOBNEWVEC.
32112 2015-03-18  Richard Biener  <rguenther@suse.de>
32114         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
32115         (pass_ch::execute): Cleanup the CFG only if we did sth.
32116         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
32118 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32120         * expmed.c (synth_mult): Use std::swap instead of manually
32121         swapping algorithms.
32123 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
32125         PR target/65078
32126         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
32128 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
32130         PR target/65296
32131         * config/avr/avr.opt (-nodevicelib): New option.
32132         * doc/invoke.texi (AVR Options): Document it.
32133         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
32134         libgcc.a, libc.a, libm.a.
32135         * config/avr/specs.h: Same.
32136         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
32137         which don't (directly) depend on the device.  Print more help.
32138         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
32139         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
32140         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
32141         case of an error.
32142         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
32143         for specs file name.
32144         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
32145         * config/avr/avr-mcus.def: Adjust initializers and comments.
32147 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
32149         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
32150         DECL_ONE_ONLY to check if decl is one only.
32151         * ipa-split.c (consider_split): Limit splitt of one only functions.
32153 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
32155         PR tree-optimization/65427
32156         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
32157         functions.
32158         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
32160 2015-03-16  Marek Polacek  <polacek@redhat.com>
32162         * cgraph.h (add_new_static_var): Remove declaration.
32163         * varpool.c (add_new_static_var): Remove function.
32165 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
32167         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
32168         instead of vec<tree> * with vec_alloc and release for args.
32169         Adjust all users.
32171         PR middle-end/65431
32172         * omp-low.c (delete_omp_context): Only splay_tree_delete
32173         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
32174         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
32176 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32178         PR sanitizer/64820
32179         * cfgexpand.c (align_base): New function.
32180         (alloc_stack_frame_space): Call it.
32181         (expand_stack_vars): Align prev_frame to be sure
32182         data->asan_vec elements aligned properly.
32184 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
32186         PR middle-end/65409
32187         * expr.c (store_field): Do not do a direct block copy if the source is
32188         a PARALLEL with BLKmode.
32190 2015-03-16  Tom de Vries  <tom@codesourcery.com>
32192         PR middle-end/65414
32193         Revert:
32194         2015-03-12  Tom de Vries  <tom@codesourcery.com>
32196         PR rtl-optimization/64895
32197         * lra-lives.c (check_pseudos_live_through_calls): Use
32198         actual_call_used_reg_set instead of call_used_reg_set, if available.
32200 2015-03-16  Alan Modra  <amodra@gmail.com>
32202         PR target/63150
32203         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
32204         Modify Z->r bswapdi splitter to use dest in place of scratch.
32205         In r->Z and Z->r bswapdi splitter rename word_high, word_low
32206         to word1, word2 and rearrange logic to suit.
32207         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
32208         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
32209         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
32210         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
32211         early clobber.
32213 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
32215         PR tree-optimization/65369
32216         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
32217         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
32218         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
32220         PR tree-optimization/65418
32221         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
32222         are casts in the first PLUS_EXPR operand, ensure tbias and
32223         *totallowp are in the inner type.
32225         PR rtl-optimization/65401
32226         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
32227         argument.  If true, adjust_address_nv of x with big-endian
32228         correction for the mode widening to GET_MODE (y).
32229         (make_field_assignment): Don't do MEM mode widening here.
32230         Use MEM_P instead of GET_CODE == MEM.
32232 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
32234         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
32235         the external decls.
32237 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32239         PR target/64600
32240         * config/arm/arm.c (arm_gen_constant, AND case): Use
32241         ARM_SIGN_EXTEND when constructing AND mask.
32243 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32245         * graph.c (print_graph_cfg): Make function names visible and append
32246         parenthesis to it.  Also make groups of basic blocks belonging to the
32247         same function visible.
32249 2015-03-12  Richard Biener  <rguenther@suse.de>
32251         PR middle-end/44563
32252         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
32253         to avoid quadratic behavior with inline expansion splitting blocks.
32254         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
32255         with the successor if the predecessor will be merged with it.
32256         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
32257         entry block with its successor.
32259 2015-03-13  Richard Biener  <rguenther@suse.de>
32261         PR middle-end/44563
32262         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
32263         (cleanup_tree_cfg_1): Do not call it.
32264         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
32265         (fixup_noreturn_call): Mark the stmt as control altering.
32266         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
32267         here.
32268         (pass_data_fixup_cfg): Produce a dump file.
32269         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
32270         (need_noreturn_fixup): New global.
32271         (pass_dominator::execute): Fixup queued noreturn calls.
32272         (optimize_stmt): Queue calls that became noreturn for fixup.
32273         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
32274         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
32275         (el_to_fixup): New global.
32276         (eliminate_dom_walker::before_dom_childre): Queue calls that
32277         became noreturn for fixup.
32278         (eliminate): Fixup queued noreturn calls.
32279         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
32280         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
32281         (substitute_and_fold_dom_walker::before_dom_children): Queue
32282         alls that became noreturn for fixup.
32283         (substitute_and_fold): Fixup queued noreturn calls.
32285 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
32287         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
32288         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
32289         are building; for methods check ODR type of class they belong to if
32290         they may lead to a polymorphic call.
32291         (sem_function::compare_polymorphic_p): Be bit smarter about testing
32292         when function may lead to a polymorphic call.
32293         (sem_function::compare_type_list): Remove.
32294         (sem_variable::equals): Update use of compatible_types_p.
32295         (sem_variable::parse_tree_refs): Remove.
32296         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
32297         cdtor.
32298         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
32299         matching here.
32300         (func_checker::compatible_polymorphic_types_p): Break out from ...
32301         (unc_checker::compatible_types_p): ... here.
32302         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
32303         Declare.
32304         (unc_checker::compatible_types_p): Update.
32305         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
32306         Remove.
32308 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32310         PR rtl-optimization/65235
32311         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
32312         When first element of vec_concat is const_int, calculate its size
32313         using second element.
32315 2015-03-12  Richard Biener  <rguenther@suse.de>
32317         PR middle-end/65270
32318         * fold-const.c (operand_equal_p): Fix ordering of resetting
32319         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
32321 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32323         * config/s390/s390.c (s390_reorg): Move code to output nops after label
32324         to s390_reorg ().
32325         (s390_asm_output_function_label): Likewise.
32326         * config/s390/s390.c (s390_asm_output_function_label):
32327         Fix function label alignment with -mhtopatch.
32328         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
32329         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
32330         ("nop_2_byte"): New define_insn.
32331         ("nop_4_byte"): Likewise.
32332         ("nop_6_byte"): Likewise.
32333         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
32334         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
32336 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32338         PR target/65103
32339         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
32340         register.
32342 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
32344         PR target/65044
32345         * toplev.c (process_options): Restrict Pointer Bounds Checker
32346         usage with Address Sanitizer.
32348 2015-03-12  Richard Biener  <rguenther@suse.de>
32350         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
32351         to split on.
32352         * omp-low.c (expand_omp_taskreg): Split block before removing
32353         the stmt.
32354         (expand_omp_target): Likewise.
32355         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
32356         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
32357         stmt to split_block.
32359 2015-03-12  Tom de Vries  <tom@codesourcery.com>
32361         PR rtl-optimization/64895
32362         * lra-lives.c (check_pseudos_live_through_calls): Use
32363         actual_call_used_reg_set instead of call_used_reg_set, if available.
32365 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32367         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
32368         (cgraph_node::remove): Likewise.
32369         (cgraph_node::get_untransformed_body): Likewise.
32370         * varpool.c (varpool_node::remove): Likewise.
32371         (varpool_node::get_constructor): Add sanity check.
32373 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
32375         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
32376         old GCC versions.
32377         (-fabi-compat-version): Likewise.
32378         (-ffriend-injection): Likewise.
32379         (-Wdeclaration-after-statement): Likewise.
32380         (-fomit-frame-pointer): Likewise.
32381         (-ftree-coalesce-inlined-vars): Likewise.
32382         (-fvisibility=): Likewise.
32383         * doc/extend.texi (Typeof): Likewise.
32384         (Zero Length): Likewise.
32385         (Escaped Newlines): Likewise.
32386         (Compound Literals): Likewise.
32387         (Function Attributes): Likewise.
32388         (Label Attributes): Likewise.
32389         (Type Attributes): Likewise.
32390         (Function Names): Likewise.
32391         (Other Builtins): Likewise.
32392         (Function Specific Option Pragmas): Likewise.
32393         (C++ Interface): Likewise.
32395 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
32397         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32399 2015-03-11  Marek Polacek  <polacek@redhat.com>
32401         PR tree-optimization/65388
32402         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32404 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
32406         PR target/65296
32407         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32408         * configure: Regenerate.
32409         * config.in: Regenerate.
32410         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32411         [-mn-flash]: Document it.
32412         [__AVR_ARCH__]: Document avrtiny.
32414         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32415         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32416         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32418 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32420         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32422 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32424         PR target/65242
32425         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32426         allow reloads of PLUS in floating point/VSX registers.
32428 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
32430         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32431         crypto_sha256_fast.
32432         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32434 2015-03-11  Richard Biener  <rguenther@suse.de>
32436         PR tree-optimization/65310
32437         * tree-sra.c (build_ref_for_offset): Also preserve larger
32438         alignment.
32440 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
32442         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32444 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32446         PR target/65368
32447         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32448         new define_expand.
32449         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32451 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32453         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32454         (sem_function::equals_wpa): ... here.
32456 2015-03-10  Marek Polacek  <polacek@redhat.com>
32457             Jakub Jelinek  <jakub@redhat.com>
32459         PR sanitizer/65367
32460         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32461         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
32462         separately.
32464 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32466         PR target/65286
32467         * config/rs6000/t-linux: For powerpc64* target set
32468         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32470 2015-03-10  Richard Biener  <rguenther@suse.de>
32472         PR middle-end/44563
32473         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
32474         for redirect_all_calls.
32476 2015-03-10  Marek Polacek  <polacek@redhat.com>
32478         * gdbinit.in (pcfun): Define and document.
32480 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
32482         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
32483         of libgomp-plugin.h.
32484         (find_target_compiler): Support a case when the path to gcc is
32485         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
32486         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
32487         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
32488         libgomp-plugin.h.
32489         (main): Use GCC_INSTALL_NAME as target_driver_name.
32490         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
32491         define.
32492         (mkoffload.o): Remove obsolete include path and defines.
32493         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
32495 2015-03-10  Richard Biener  <rguenther@suse.de>
32497         PR middle-end/63155
32498         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32499         * tree-ssa-coalesce.c: Include timevar.h.
32500         (attempt_coalesce): Handle graph being NULL.
32501         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32502         Split out abnormal coalescing to ...
32503         (perform_abnormal_coalescing): ... this function.
32504         (coalesce_ssa_name): Perform abnormal coalescing without computing
32505         live/conflict.
32506         (verify_ssa_coalescing_worker): New function.
32507         (verify_ssa_coalescing): Likewise.
32509 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
32511         PR target/65296
32512         * config.gcc (extra_options) [avr]: Remove.
32513         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32514         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32515         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32517         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32518         (-mmcu=): Add Var and MissingArgError properties.
32519         (-march=): Remove.
32520         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32521         * config/avr/t-multilib: Regenerate.
32522         * config/avr/specs.h: New file.
32523         * config/avr/driver-avr.c: New file.
32524         * config/avr/genopt.sh: Remove file.
32525         * config/avr/avr-tables.opt: Remove file.
32526         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32527         * config/avr/avr-c.c: Same.
32528         * avr-arch.h: Same.
32529         (avr_current_device): Remove proto.
32530         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32531         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32532         (EXTRA_SPEC_FUNCTIONS): Define.
32533         (avr_devicespecs_file): New specs function proto.
32534         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32535         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32536         (avr_current_device): Remove definition and usage.
32537         (avr_set_core_architecture): New static function.
32538         (avr_option_override): Use it.
32539         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32540         (mcu_name): New static array.
32541         (comparator, avr_archs_str, avr_mcus_str): New static functions.
32542         (avr_inform_devices, avr_inform_core_architectures): New functions.
32543         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32544         (avrlibc.h) [WITH_AVRLIBC]: Include.
32545         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32546         (print_mcu): Rewrite from scratch.
32547         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32548         Forward to avr-specific specs defined in device-specs file.
32549         * config/avr/t-avr (driver-avr.o): New rule.
32550         (avr-devices.o): Depend on avr-arch.h.
32551         (avr-mcus): No more depend on avr-tables.opt.
32552         (avr-tables.opt): Remove rule.
32553         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32555 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32557         * c-family/c.opt (fchkp-use-wrappers): New.
32558         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32559         (chkp_wrap_function): New.
32560         (chkp_build_instrumented_fndecl): Support wrapped
32561         functions.
32562         * doc/invoke.texi (-fcheck-pointer-bounds): New.
32563         (-fchkp-check-incomplete-type): New.
32564         (-fchkp-first-field-has-own-bounds): New.
32565         (-fchkp-narrow-bounds): New.
32566         (-fchkp-narrow-to-innermost-array): New.
32567         (-fchkp-optimize): New.
32568         (-fchkp-use-fast-string-functions): New.
32569         (-fchkp-use-nochk-string-functions): New.
32570         (-fchkp-use-static-bounds): New.
32571         (-fchkp-use-static-const-bounds): New.
32572         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32573         (-fchkp-check-read): New.
32574         (-fchkp-check-write): New.
32575         (-fchkp-store-bounds): New.
32576         (-fchkp-instrument-calls): New.
32577         (-fchkp-instrument-marked-only): New.
32578         (-fchkp-use-wrappers): New.
32579         (-static-libmpx): New.
32580         (-static-libmpxwrappers): New.
32582 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32584         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32585         (CHKP_SPEC): Add wrappers library.
32586         * c-family/c.opt (static-libmpxwrappers): New.
32588 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32590         * config/i386/linux-common.h (LIBMPX_LIBS): New.
32591         (LIBMPX_SPEC): New.
32592         (CHKP_SPEC): New.
32593         * gcc.c (CHKP_SPEC): New.
32594         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32595         * c-family/c.opt (static-libmpx): New.
32597 2015-03-10  Richard Biener  <rguenther@suse.de>
32599         PR middle-end/44563
32600         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32601         for compare_type.
32602         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32603         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32604         (cgraph_add_edge_to_call_site_hash): Likewise.
32605         (cgraph_node::get_edge): Likewise.
32606         (cgraph_edge::set_call_stmt): Likewise.
32607         (cgraph_edge::remove_caller): Likewise.
32609 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32611         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32612         (callee_saved_gpr_regs_size): ... this.
32613         (callee_saved_regs_first_regno): Rename to ...
32614         (callee_saved_first_gpr_regno): ... this.
32615         (callee_saved_regs_last_regno) Rename to ...
32616         (callee_saved_last_gpr_regno): ... this.
32617         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32618         variables.
32619         (nds32_initial_elimination_offset): Likewise.
32620         (nds32_expand_prologue): Likewise.
32621         (nds32_expand_epilogue): Likewise.
32622         (nds32_expand_prologue_v3push): Likewise.
32623         (nds32_expand_epilogue_v3pop): Likewise.
32624         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32625         Adjust renamed variables.
32626         (nds32_output_stack_pop): Likewise.
32628 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32630         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32631         code in comment.
32633 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32635         PR rtl-optimization/65321
32636         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32637         than shift mode.
32638         * var-tracking.c (use_narrower_mode): Likewise.
32640 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32642         PR tree-optimization/65355
32643         * varasm.c (notice_global_symbol): Do not produce RTL.
32644         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32645         anchor.
32646         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32647         check for section anchors.
32649 2015-03-10  Alan Modra  <amodra@gmail.com>
32651         PR target/65286
32652         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32653         to be single-arch by default.  Set cpu_is_64bit for powerpc64
32654         given --with-cpu=native.
32655         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32656         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32657         and powerpc64le.
32658         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32659         rs6000_isa_flags rather than TARGET_64BIT.
32661 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
32662             Kaz Kojima  <kkojima@gcc.gnu.org>
32664         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32666 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
32668         PR lto/65361
32669         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32670         on a TREE_BINFO, instead use BINFO_TYPE.
32672 2015-03-09  Richard Biener  <rguenther@suse.de>
32674         PR middle-end/65270
32675         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32676         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32677         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
32678         of that.  When comparing dereferences compare alignment.
32679         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32681 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32683         * ipa-inline-analysis.c (check_callers): Check
32684         node->can_remove_if_no_direct_calls_and_refs_p.
32685         (growth_likely_positive): Reorganize to call
32686         can_remove_if_no_direct_calls_p later.
32687         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32688         will_be_removed_from_program_if_no_direct_calls_p): Add
32689         will_inline parameter.
32690         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32691         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32692         Handle inliner case correctly.
32694 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32696         PR tree-optimization/63743
32697         * cfgexpand.c (reorder_operands): Also reorder if only second operand
32698         had its definition forwarded by TER.
32700 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32702         PR lto/65316
32703         * ipa-utils.h (types_odr_comparable): Add strict argument.
32704         * ipa-devirt.c: Fix whitespace;
32705         (odr_hasher): Remove.
32706         (odr_name_hasher, odr_vtable_hasher): New hashers.
32707         (can_be_name_hashed_p): New predicate.
32708         (hash_type_name): remove.
32709         (hash_odr_name): New.
32710         (odr_name_hasher::hash): new.
32711         (can_be_vtable_hashed_p): New.
32712         (hash_odr_vtable): New.
32713         (odr_vtable_hasher::hash): New.
32714         (types_same_for_odr): Add strict parameter.
32715         (types_odr_comparable): Likewise.
32716         (odr_name_hasher::equal): New.
32717         (odr_vtable_hasher::equal): New.
32718         (odr_name_hasher::remove): New.
32719         (odr_hash_type): Change to hash_table<odr_name_hasher>.
32720         (odr_vtable_hash_type): New.
32721         (odr_vtable_hash): New.
32722         (odr_subtypes_equivalent_p): Do strict comparsion.
32723         (add_type_duplicate): Merge type names; cleanup; avoid type
32724         duplicates.
32725         (register_odr_type): Initialize vtable hash.
32726         (build_type_inheritance_graph): Likewise
32727         (get_odr_type): Reorg to use two hashes.
32728         (dump_possible_polymorphic_call_targets): Move sanity check after debug
32729         output.
32730         (ipa_devirt): Dump type_inheritance_graph.
32731         (types_same_for_odr): Add strict mode.
32733 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32735         PR ipa/65334
32736         * cgraph.h (symtab_node): Add definition_alignment,
32737         can_increase_alignment_p and increase_alignment.
32738         * symtab.c (symtab_node::can_increase_alignment_p,
32739         increase_alignment_1, symtab_node::increase_alignment,
32740         symtab_node::definition_alignment): New.
32741         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32742         can_increase_alignment_p.
32743         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32744         * tree-vect-stmts.c (ensure_base_align): Likewise.
32745         * varasm.c (function_section_1): Use definition_alignment.
32746         (assemble_start_function): Likewise.
32747         (emit_local): likewise.
32748         (build_constant_desc): Likewsie.
32749         (output_constant_def_contents): Likewise.
32750         (place_block_symbol): Likewise.
32751         (output_object_block): Likewise.
32753 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32755         PR ipa/65316
32756         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32757         when outputting debug.
32759 2015-03-07  Marek Polacek  <polacek@redhat.com>
32760             Martin Uecker  <uecker@eecs.berkeley.edu>
32762         PR sanitizer/65280
32763         * doc/invoke.texi: Update description of -fsanitize=bounds.
32765 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
32767         * tree-ssa-phiopt.c (neg_replacement): Remove.
32768         (tree_ssa_phiopt_worker): Remove negate optimization.
32770 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32772         PR ipa/65302
32773         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32775 2015-03-06  Richard Biener  <rguenther@suse.de>
32777         PR middle-end/64928
32778         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32779         and liveout_obstack members.
32780         (calculate_live_on_exit): Remove.
32781         (calculate_live_ranges): Change declaration.
32782         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32783         (new_tree_live_info): Adjust.
32784         (calculate_live_ranges): Delete livein when not wanted.
32785         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32786         Deal with partly deleted live info.
32787         (loe_visit_block): Remove temporary bitmap by using
32788         bitmap_ior_and_compl_into.
32789         (live_worklist): Adjust accordingly.
32790         (calculate_live_on_exit): Make static.
32791         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32792         we do not need livein.
32794 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
32796         * real.c (real_from_string): Fix typo in assertion.
32798 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
32800         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32801         the patch.
32803 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32805         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32807 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
32809         PR target/64342
32810         * lra-assigns.c (find_hard_regno_for): Rename to
32811         find_hard_regno_for_1.  Add a new parameter.
32812         (find_hard_regno_for): New function using find_hard_regno_for_1.
32814 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32816         PR rtl-optimization/65067
32817         * expmed.c (store_bit_field, extract_bit_field): Reworked the
32818         strict volatile bitfield handling.
32820 2015-03-05  Martin Liska  <mliska@suse.cz>
32822         PR ipa/65318
32823         * ipa-icf.c (sem_variable::equals): Compare variables types.
32825 2015-03-05  Richard Henderson  <rth@redhat.com>
32827         PR target/65121
32828         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32829         correctly check weak symbol binding.
32831 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
32833         PR middle-end/65315
32834         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32835         needed alignment.
32837 2015-03-05  Martin Liska  <mliska@suse.cz>
32839         * ipa-inline.c (inline_small_functions): Set default value to
32840         prevent warning during bootstrap.
32841         * tree.h: Add pragma guard that ignores false positives during
32842         bootstrap.
32844 2015-03-05  Richard Biener  <rguenther@suse.de>
32846         PR tree-optimization/65310
32847         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32848         Properly preserve alignment of the base of the access.
32850 2015-03-05  Richard Biener  <rguenther@suse.de>
32852         PR ipa/65270
32853         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32854         Compare dependence info.
32856 2015-03-05  Richard Biener  <rguenther@suse.de>
32858         PR middle-end/65233
32859         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32860         tree-into-ssa.h.
32861         (walk_ssa_copies): Revert last chage.  Instead do not walk
32862         SSA names registered for SSA update.
32864 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32866         PR ipa/65270
32867         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32868         vtable references for their containing type.
32869         (sem_function::equals_wpa): Compare TYPE_RESTRICT
32870         and type attributes.
32872 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
32874         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32875         before negating it.
32876         * stor-layout.c (finalize_record_size): Revert latest change.
32878 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
32880         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32882 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32884         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32885         for correct comdat handling.
32886         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32887         Likewise.
32888         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32889         (used_from_object_file_p_worker): Remove.
32890         (cgraph_node::only_called_directly_or_alised): Add
32891         used_from_object_file_p.
32892         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32893         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32894         can_remove_if_no_direct_calls_and_refs_p.
32896 2015-03-04  Nick Clifton  <nickc@redhat.com>
32898         * config/rl78/rl78.h (enum reg_class): Remove real registers from
32899         General register class.
32900         * config/rl78/rl78-real.md: Replace general register constraints
32901         with real+virtual register constraints.
32903 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32905         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32906         from checking for -mhtm option.
32908 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32910         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32911         (struct ipa_sra_check_caller_data): Add has_thunk field.
32912         (ipa_sra_check_caller): Check for thunk.
32913         (ipa_sra_preliminary_function_checks): Give up on function with
32914         thunks.
32915         (ipa_early_sra): Use call_for_symbol_and_aliases.
32917 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
32919         PR target/65249
32920         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32921         called for __stack_chk_guard symbol.
32923 2015-03-03  DJ Delorie  <dj@redhat.com>
32925         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32926         inc/dec.
32927         (*addhi3_real): Likewise.
32928         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32929         pattern to match incrementing memory.
32930         * config/rl78/predicates.md (rl78_1_2_operand): New.
32931         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32932         it's the same and only mem.
32933         (rl78_alloc_physical_registers_op2): If there's effectively only
32934         one MEM, transcode it into HL.
32935         (rl78_far_p): Reject addresses that aren't legitimate.
32937 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32939         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32940         negating it.
32942         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32944 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32946         Implement call0 ABI for xtensa
32947         * config/xtensa/constraints.md ("a" constraint): Include stack
32948         pointer in case of call0 ABI.
32949         ("q" constraint): Make empty in case of call0 ABI.
32950         ("D" constraint): Include stack pointer in case of call0 ABI.
32951         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32952         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32953         prototypes.
32954         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32955         variable.
32956         (xtensa_regno_to_class): Make it a local variable in the
32957         function xtensa_regno_to_class.
32958         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32959         macro, function prototype and implementation.
32960         (reg_nonleaf_alloc_order): Make it a local variable in the
32961         function order_regs_for_local_alloc.
32962         (xtensa_conditional_register_usage): New function.
32963         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32964         (xtensa_valid_move): Allow direct moves to stack pointer
32965         register in call0 ABI.
32966         (xtensa_setup_frame_addresses): Only spill register windows in
32967         windowed ABI.
32968         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32969         call0 ABI respectively.
32970         (xtensa_function_arg_1): Only mark a7 register for copying in
32971         windowed ABI.
32972         (xtensa_call_save_reg): New function.
32973         (compute_frame_size): Add space for callee saved register
32974         storage to the frame size in call0 ABI.
32975         (xtensa_expand_prologue): Generate code to set up stack frame
32976         and save callee-saved registers in call0 ABI.
32977         (xtensa_expand_epilogue): New function.
32978         (xtensa_set_return_address): New function.
32979         (xtensa_return_addr): Calculate return address in call0 ABI.
32980         (xtensa_builtin_saveregs): Only mark a7 register for copying and
32981         emit copying code in windowed ABI.
32982         (order_regs_for_local_alloc): Add preferred register allocation
32983         order for non-leaf function in call0 ABI.
32984         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32985         (xtensa_asm_trampoline_template): Add trampoline generation for
32986         call0 ABI.
32987         (xtensa_trampoline_init): Add trampoline initialization for
32988         call0 ABI.
32989         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32990         functions.
32991         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32992         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32993         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32994         ABI call-used registers.
32995         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32996         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32997         call0 ABI.
32998         (REG_CLASS_CONTENTS): Include all registers into the preferred
32999         reload registers set, adjust the set in the
33000         xtensa_conditional_register_usage.
33001         (xtensa_regno_to_class): Drop variable declaration.
33002         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
33003         function.
33004         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
33005         respectively.
33006         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
33007         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
33008         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
33009         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
33010         location in call0 ABI.
33011         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
33012         stack adjustment size when handling exception.
33013         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
33014         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
33015         definitions.
33016         ("return" pattern): Generate ret.n/ret in call0 ABI.
33017         ("epilogue" pattern): Expand epilogue.
33018         ("nonlocal_goto" pattern): Use default in call0 ABI.
33019         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
33020         emit eh_set_a0_* depending on ABI.
33021         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
33022         ("eh_set_a0_call0", "blockage"): New patterns.
33024 2015-03-03  Martin Liska  <mliska@suse.cz>
33026         PR ipa/65287
33027         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
33029 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
33031         PR 65138/target
33032         * config/rs6000/rs6000-tables.opt: Regenerate table.
33034 2015-03-03  Renlin Li  <renlin.li@arm.com>
33036         * doc/md.texi (@item ^): Change ? into ^.
33038 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
33040         * doc/tm.texi: Regenerated.
33042 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
33044         * builtins.c (expand_builtin_return_addr): Add
33045         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
33046         surrounding #ifdef.
33047         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
33048         definition to 1.
33049         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
33050         Likewise.
33051         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
33052         undefined.
33053         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
33054         paragraph.
33056 2015-03-03  Martin Jambor  <mjambor@suse.cz>
33057             Eric Botcazou  <ebotcazou@adacore.com>
33059         * tree-sra.c (ipa_sra_check_caller_data): New type.
33060         (has_caller_p): Removed.
33061         (ipa_sra_check_caller): New function.
33062         (ipa_sra_preliminary_function_checks): Use it.
33064 2015-03-03  Martin Liska  <mliska@suse.cz>
33066         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
33067         instead of if branch.
33069 2015-03-03  Martin Liska  <mliska@suse.cz>
33071         PR ipa/65282
33072         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
33074 2015-03-23  Jeff Law  <law@redhat.com>
33076         PR tree-optimization/65241
33077         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
33078         hash table if INSERT is true.
33080 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33082         PR target/65296
33083         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
33085 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33087         PR target/64331
33088         * config/avr/avr.c (context.h, tree-pass.h): Include them.
33089         (avr_pass_data_recompute_notes): New static variable.
33090         (avr_pass_recompute_notes): New class.
33091         (avr_register_passes): New static function.
33092         (avr_option_override): Call it.
33094 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
33096         Fix various problems with specs file generation.
33098         PR target/65296
33099         * config.gcc (extra_gcc_objs) [avr]: Remove.
33100         * config/avr/driver-avr.c: Remove file.
33101         * config/avr/t-avr (driver-avr.o): Remove rule.
33102         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
33103         INCLUDES to build.  Depend on TM_H.
33104         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
33105         build warnings.  Fix non-matching types and non-existing %-codes.
33106         (tm.h): Include.
33107         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
33108         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
33109         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
33110         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
33111         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
33112         (LIBGCC_SPEC): Remove definitions.
33114 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
33116         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
33117         to create a register in testing mode.
33119 2015-03-03  Martin Liska  <mliska@suse.cz>
33120             Jan Hubicka  <hubicka@ucw.cz>
33122         PR ipa/65263
33123         * cgraph.c (cgraph_node::has_thunk_p): New function.
33124         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
33125         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
33126         (sem_function::merge): Assert is changed.
33128 2015-03-03  Martin Liska  <mliska@suse.cz>
33129             Martin Jambor  <mjambor@suse.cz>
33131         PR ipa/65087
33132         * ipa-icf.c (sem_item_optimizer::execute): Change function
33133         return value to boolean.
33134         (sem_item_optimizer::merge_classes): Likewise.
33135         (ipa_icf_driver): Return TODO_remove_functions in case there's
33136         a merge operation processed.
33137         * ipa-icf.h: Change function return value to boolean.
33139 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
33141         PR 65138/target
33142         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
33143         processor type for 64-bit little endian PowerPC.
33145         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
33146         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
33147         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
33148         printing built-in mask so it does not pass NULL pointers.
33150         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
33151         -mcpu=powerpc64le.
33153 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
33155         PR target/58158
33156         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
33157         !ISA_HAS_FP_CONDMOVE.
33159 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
33161         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
33162         reload_completed.
33164 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
33166         * doc/invoke.texi (Options for Code Generation Conventions):
33167         Fix URL of DSO paper.
33169 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33171         PR ipa/65130
33172         * ipa-inline.c (check_callers): Looks for recursion.
33173         (inline_to_all_callers): Give up on uninlinable or recursive edges.
33174         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
33175         summary of inline clones.
33176         (do_estimate_growth_1): Fix recursion check.
33178 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33180         PR ipa/64988
33181         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
33182         comdat groups.
33184 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
33185             Aldy Hernandez  <aldyh@redhat.com>
33187         PR lto/65276
33188         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
33189         when checking TYPE_BINFO.
33191 2015-03-02  Richard Biener  <rguenther@suse.de>
33193         PR ipa/65270
33194         * ipa-icf-gimple.c: Include builtins.h.
33195         (func_checker::compare_memory_operand): Compare base alignment.
33197 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33199         PR target/65184
33200         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
33201         passed by reference.
33203 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
33205         PR target/65183
33206         * tree-chkp.c (chkp_check_lower): Don't check against
33207         zero bounds for already instrumented functions.
33208         (chkp_check_upper): Likewise.
33209         (chkp_fini): Clean pass local data to avoid wrong reusage.
33211 2015-02-28  Martin Liska  <mliska@suse.cz>
33212             Jan Hubicka  <hubicka@ucw.cz>
33214         * ipa-icf.c (sem_variable::equals): Improve debug output;
33215         get variable constructor.
33216         (sem_variable::parse): Do not filter out too early; give up on
33217         volatile and register vars.
33218         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
33219         variables.
33220         * ipa-icf.h (sem_variable::init): Do not set ctor.
33221         (sem_variable::ctor): Remove.
33223 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
33225         PR middle-end/65233
33226         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
33228 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33230         * ipa-icf.c: Include stor-layout.h
33231         (sem_function::compare_cgraph_references): Rename to ...
33232         (sem_item::compare_cgraph_references): ... this one.
33233         (sem_variable::equals_wpa): New function
33234         (sem_variable::equals): Do not check stuff already verified by
33235         equals_wpa.
33236         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
33237         * ipa-icf.h (sem_item): Add compare_cgraph_references.
33238         (sem_function): Remove compare_cgraph_references.
33239         (sem_variable): Turns equals_wpa into non-inline.
33241 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33243         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
33244         (sem_item::add_expr): New function.
33245         (sem_function::hash_stmt): Handle operands of most statements.
33246         (sem_variable::get_hash): Hash the actual constructor.
33247         * ipa-icf.h (sem_item): Add add_expr.
33248         (sem_function): Update prototype of hash_stmt
33250 2015-02-28  Martin Liska  <mliska@suse.cz>
33251             Jan Hubicka  <hubicka@ucw.cz>
33253         PR ipa/65245
33254         * ipa-icf-gimple.c (func_checker::compare_function_decl):
33255         Remove.
33256         (func_checker::compare_variable_decl): Skip symtab vars.
33257         (func_checker::compare_cst_or_decl): Update.
33258         * ipa-icf.c (sem_function::parse): Do not consider aliases.
33259         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
33260         use correct symtab predicates.
33261         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
33262         (sem_variable::parse):  Update comment.
33263         (sem_item_optimizer::build_graph): Consider ultimate aliases
33264         for references.
33266 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33268         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
33269         of OBJ_TYPE_REF.
33271 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33273         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
33274         (sem_variable::merge) Likewise.
33276 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33278         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
33279         target; also match flag_ipa_devirt.
33281 2015-03-01  Martin Liska  <mliska@suse.cz>
33282             Jan Hubicka  <hubicka@ucw.cz>
33284         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
33285         Validate variable alignment.
33286         * ipa-icf.c (sem_function::equals_private): Be more precise
33287         about non-common function attributes.
33288         (sem_variable::equals): Likewise.
33290 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33292         PR ipa/65237
33293         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
33294         across COMDAT group boundary.
33296 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33298         PR ipa/65232
33299         * ipa-icf.c (clear_decl_rtl): New function.
33300         (sem_function::merge): Clear RTL before forming alias.
33301         (sem_variable::merge): Clear RTL before forming alias.
33303 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
33305         PR ipa/65236
33306         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
33308 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
33310         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
33311         to neon_to_gp<q>.
33313 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33315         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
33316         a typo in the description.
33318 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33320         PR target/64317
33321         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33322         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33323         * lra-constraints.c: Include "params.h".
33324         (EBB_PROBABILITY_CUTOFF): Use
33325         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
33326         (lra_inheritance): Use '<' instead of '<=' for
33327         EBB_PROBABILITY_CUTOFF.
33328         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
33329         Document change.
33331 2015-02-27  Martin Liska  <mliska@suse.cz>
33333         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
33334         vector length condition.
33336 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
33338         * doc/extend.texi (x86 transactional memory intrinsics):
33339         Reorganize discussion of _xbegin.  Clarify that the return
33340         value is a bit mask.  Expand example and move to end of section.
33342 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33343             Aldy Hernandez  <aldyh@redhat.com>
33345         PR rtl-optimization/65220
33346         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
33348 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
33350         PR target/65032
33351         * lra-remat.c (update_scratch_ops): New.
33352         (do_remat): Call it.
33353         * lra.c (lra_register_new_scratch_op): New. Take code from ...
33354         (remove_scratches): ... here.
33355         * lra-int.h (lra_register_new_scratch_op): New prototype.
33357 2015-02-27  Marek Polacek  <polacek@redhat.com>
33359         PR c/65040
33360         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
33361         -Wformat-signedness anymore.
33363 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33365         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
33366         function.
33367         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
33369 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33371         * config/s390/s390.c (enum s390_builtin):
33372         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
33373         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
33374         (s390_init_builtins): Generate new builtin functions.
33375         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
33376         (s390_sfpc, s390_efpc): New pattern definitions.
33378 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33380         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33381         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33382         (s390_builtin_decls): New array.
33383         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33384         (s390_builtin_decl): New function.
33385         (TARGET_BUILTIN_DECL): Define macro.
33387 2015-02-27  Richard Biener  <rguenther@suse.de>
33389         PR middle-end/63175
33390         * builtins.c (get_object_alignment_2): Make sure to re-apply
33391         the ANDed mask after recursing to its operand gets us a new
33392         misalignment bit position.
33394 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
33395             Martin Liska  <mliska@suse.cz>
33397         PR bootstrap/65150
33398         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33399         Use address_matters_p.
33400         (redirect_all_callers, set_addressable): New functions.
33401         (sem_function::merge): Reorganize and fix merging issues.
33402         (sem_variable::merge): Likewise.
33403         (sem_variable::compare_sections): Remove.
33404         * common.opt (fmerge-all-constants, fmerge-constants): Remove
33405         Optimization flag.
33406         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33407         redirect them.
33408         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33409         decl is used.
33410         (address_matters_1): New function.
33411         (symtab_node::address_matters_p): New function.
33412         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33413         check for merged flag.
33414         * cgraph.h (address_matters_p): Declare.
33415         (symtab_node::address_taken_from_non_vtable_p): Remove.
33416         (symtab_node::address_can_be_compared_p): New method.
33417         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33418         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33419         Remove.
33420         (comdat_can_be_unshared_p_1) Use address_matters_p.
33421         (update_vtable_references): Fix formating.
33422         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33423         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33424         * cgraphclones.c: Preserve merged and icf_merged flags.
33426 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
33428         * doc/extend.texi (Function Attributes): Fix spelling and typos.
33429         (Label Attributes): Likewise.
33430         (Cilk Plus Builtins): Likewise.
33431         (ARC SIMD Built-in Functions): Likewise.
33432         (ARM C Language Extensions (ACLE)): Likewise.
33433         (PowerPC Built-in Functions): Likewise.
33434         (PowerPC Hardware Transactional Memory Built-in Functions):
33435         Likewise.
33437 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33439         PR tree-optimization/65216
33440         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33441         new stmt and new SSA_NAME for lhs whenever the arguments have
33442         changed and weren't just swapped.  Fix comment typo.
33444         PR tree-optimization/65215
33445         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33446         for PDP endian targets.
33447         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33448         Fix up formatting issues.
33449         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
33450         size is smaller than the original, adjust MEM_REF offset by the
33451         difference of sizes.  Use is_gimple_mem_ref_addr instead of
33452         is_gimple_min_invariant test to avoid adding address temporaries.
33454 2015-02-26  Martin Liska  <mliska@suse.cz>
33455             Jan Hubicka  <hubicka@ucw.cz>
33457         PR ipa/64693
33458         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33459         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33460         (sem_item_optimizer::process_cong_reduction): Include division by
33461         sensitive references.
33462         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33463         * ipa-ref.c (ipa_ref::address_matters_p): New function.
33464         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33466 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
33468         PR target/65192
33469         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33470         Remove.
33471         * config/avr/avr.c: Same.
33472         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
33473         Refuse any constant address not in 0..0xbf.
33474         * config/avr/avr.md (*mov<mode>, *movsf): Remove
33475         tiny_valid_direct_memory_access_range from insn conditions.
33476         (mov<mode>): Don't special-case expansion of avrtiny addresses.
33478 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
33480         PR target/61142
33481         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
33482         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
33483         * config/sh/predicates.md (const_logical_operand): New predicate.
33484         * config/sh/sh.md: Add new peephole2 patterns.
33486 2015-02-26  Marek Polacek  <polacek@redhat.com>
33488         PR ipa/65008
33489         * ipa-inline.c (early_inliner): Recompute inline parameters.
33491 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33493         PR target/65171
33494         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
33495         instructions with TImode operands are included in the analysis.
33497 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
33499         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
33500         of an EDGE_FSM_THREAD.
33502 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33504         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
33506 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
33508         PR debug/46102
33509         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33511 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
33513         PR tree-optimization/65048
33514         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33515         (thread_through_all_blocks): Call valid_jump_thread_path.
33516         Remove invalid FSM jump-thread paths.
33518 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33520         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33521         (ipa_write_optimization_summaries): Likewise.
33522         * tree-streamer.h: Include data-streamer.h.
33523         (streamer_mode_table): Declare extern variable.
33524         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33525         * lto-streamer-out.c (lto_output_init_mode_table,
33526         lto_write_mode_table): New functions.
33527         (produce_asm_for_decls): Call lto_write_mode_table when streaming
33528         offloading LTO.
33529         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33530         (lto_create_simple_input_block): Add mode_table argument to the
33531         lto_input_block constructors.
33532         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33533         Likewise.
33534         * data-streamer-in.c (string_for_index): Likewise.
33535         * ipa-inline-analysis.c (inline_read_section): Likewise.
33536         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33537         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33538         * lto-streamer-in.c (lto_read_body_or_constructor,
33539         lto_input_toplevel_asms): Likewise.
33540         (lto_input_mode_table): New function.
33541         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33542         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33543         Use bp_pack_machine_mode.
33544         * real.h (struct real_format): Add name field.
33545         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33546         (class lto_input_block): Add mode_table member.
33547         (lto_input_block::lto_input_block): Add mode_table_ argument,
33548         initialize mode_table.
33549         (struct lto_file_decl_data): Add mode_table field.
33550         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33551         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33552         unpack_ts_decl_common_value_fields,
33553         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33554         * tree-streamer.c (streamer_mode_table): New variable.
33555         * real.c (ieee_single_format, mips_single_format,
33556         motorola_single_format, spu_single_format, ieee_double_format,
33557         mips_double_format, motorola_double_format,
33558         ieee_extended_motorola_format, ieee_extended_intel_96_format,
33559         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33560         ibm_extended_format, mips_extended_format, ieee_quad_format,
33561         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33562         decimal_single_format, decimal_double_format, decimal_quad_format,
33563         ieee_half_format, arm_half_format, real_internal_format): Add name
33564         field.
33565         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33567 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
33569         PR target/65161
33570         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33571         reordering for selective scheduling.
33573 2015-02-26  Terry Guo  <terry.guo@arm.com>
33575         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33576         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33577         (arm_arch_no_volatile_ce): Declare new global variable.
33578         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33579         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33580         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33581         (TARGET_NO_VOLATILE_CE): New macro.
33582         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33583         volatile memory access in IT block
33585 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33587         PR tree-optimization/61917
33588         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33589         that reduc_def_stmt is null.
33591 2015-02-25  Martin Liska  <mliska@suse.cz>
33593         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33594         hard register variables.
33596 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33598         PR target/64212
33599         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33600         (symtab::noninterposable_alias): Likewise.
33602 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33604         PR target/65167
33605         * config/i386/i386.c (ix86_function_arg_regno_p): Support
33606         bounds registers.
33607         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33609 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
33611         PR target/64997
33612         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33613         as split condition; force split via '#' in output pattern.
33615 2015-02-25  Richard Biener  <rguenther@suse.de>
33616             Kai Tietz  <ktietz@redhat.com>
33618         PR tree-optimization/61917
33619         * tree-vect-loop.c (vectorizable_reduction): Allow
33620         vect_internal_def without reduction to exit graceful.
33622 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33624         PR target/65196
33625         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33626         only with NONDEBUG_INSN_P.
33628 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33630         Use variadic macros with avr-log.c.
33632         * config/avr/avr-protos.h (avr_vdump): New prototype.
33633         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33634         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33635         * config/avr/avr-log.c: Adjust comments.
33636         (avr_vdump): New function.
33637         (avr_vadump): Pass caller as 2nd argument instead of format string.
33638         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33639         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33641 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
33643         PR lto/64374
33644         * target.def (target_option_stream_in): New target hook.
33645         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33646         targetm.target_option.post_stream_in if non-NULL.
33647         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33648         * doc/tm.texi: Updated.
33649         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33650         function.
33651         (TARGET_OPTION_POST_STREAM_IN): Redefine.
33653 2015-02-24  Jeff Law  <law@redhat.com>
33655         PR target/65117
33656         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33657         of operand 0 and operand 2.
33658         (zero_cost_loop_end, loop_end): Similarly.
33660 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
33662         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33663         CXX_MEM_STAT_INFO.
33665 2015-02-24  DJ Delorie  <dj@redhat.com>
33667         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33668         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33669         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33670         instead of hardcoding SImode.
33672 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
33674         * omp-low.c (create_omp_child_function): Tag entrypoint
33675         functions with a special attribute.
33677 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33679         PR target/65058
33680         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33682 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
33684         PR rtl-optimization/65123
33685         * lra-remat.c (operand_to_remat): Check hard regs in insn
33686         definition too.
33688 2015-02-24  Nick Clifton  <nickc@redhat.com>
33690         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33691         to the assembler.
33693 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
33695         PR libgomp/64625
33696         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33697         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33698         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33699         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33700         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33701         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33702         (BUILT_IN_GOACC_PARALLEL): Specify as
33703         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33704         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33705         * builtin-types.def
33706         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33707         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33708         Remove function types.
33709         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33710         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33711         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33712         New function types.
33714 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
33716         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33718 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
33720         PR tree-optimization/65170
33721         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33722         if val[1] < 0, clear also val[2] and return 3.
33724 2015-02-24  Alan Modra  <amodra@gmail.com>
33726         PR target/65172
33727         * config/rs6000/rs6000.c (get_memref_parts): Only return true
33728         when *base is a reg.  Handle nested plus addresses.  Simplify
33729         pre_modify test.
33731 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
33733         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33734         use natural alignment when optimizing for size.
33736 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
33738         PR target/65153
33739         * config/sh/sh.md (movsicc_true+3): Remove peephole.
33740         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33741         * config/sh/sh.c (replace_n_hard_rtx): Remove.
33743 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
33745         PR fortran/63427
33746         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33747         too big for a wide_int.  Implement missing wrapping operation.
33749 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
33751         PR target/65163
33752         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33753         instead of const_int 4294901760.
33755 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
33757         * config/avr/t-avr: Fix typo in comment.
33759 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
33761         * doc/rtl.texi (fma): Clarify documentation.
33763 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
33765         PR debug/58123
33766         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33767         over input_location.
33769 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33771         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33772         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33773         restrict alignments to absolute_biggest_alignment.
33774         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33775         Define.
33776         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33777         * doc/tm.texi: Regenerate.
33778         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33780 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
33782         PR target/64172
33783         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33785 2015-02-20  Richard Biener  <rguenther@suse.de>
33787         PR tree-optimization/65136
33788         * tree-ssa-propagate.c: Include cfgloop.h.
33789         (replace_phi_args_in): Avoid replacing loop latch edge PHI
33790         arguments with constants.
33792 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
33793             Martin Liska  <mliska@suse.cz>
33795         PR target/63892
33796         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33797         don't try to create_thunk if stdarg_p.  If
33798         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33799         redirect_callers if possible.
33800         (sem_item_optimizer::execute): Call unregister_hooks here...
33801         (ipa_icf_driver): ... instead of here.
33803 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33805         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33806         Mark operand 0 as earlyclobber in 2nd alternative.
33807         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33808         Write negated shift amount into QI lowpart operand 0 and use it
33809         in the shift step.
33810         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33812 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33814         * cgraph.h (clone_function_name_1): Declare.
33815         * cgraphclones.c (clone_function_name_1): New function.
33816         (clone_function_name): Use it.
33817         * lto-partition.c: Include "stringpool.h".
33818         (must_not_rename, maybe_rewrite_identifier)
33819         (validize_symbol_for_target): New static functions.
33820         (privatize_symbol_name): Use must_not_rename.
33821         (promote_symbol): Call validize_symbol_for_target.
33822         (lto_promote_cross_file_statics): Likewise.
33823         (lto_promote_statics_nonwpa): Likewise.
33825 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
33827         PR target/64452
33828         * config/avr/avr.md (pushhi_insn): New insn.
33829         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33831 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33832             Jakub Jelinek  <jakub@redhat.com>
33834         * tree-streamer.c (preload_common_nodes): Don't preload
33835         TI_VA_LIST* for offloading.
33836         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33837         in_lto_p.
33839 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
33841         * config/pa/pa.c (pa_emit_move_sequence): Always force
33842         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
33843         note on insn.
33845         * config/pa/pa.c (pa_reloc_rw_mask): New function.
33846         (TARGET_ASM_RELOC_RW_MASK): Define.
33847         (pa_cannot_force_const_mem): Revert previous change.
33849 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
33850             Jan Hubicka  <hubicka@ucw.cz>
33852         PR ipa/65028
33853         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33854         across jump functions.
33856 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
33858         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33860 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
33862         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33864 2015-02-19  Richard Henderson  <rth@redhat.com>
33866         PR middle-end/65074
33867         * varasm.c (default_binds_local_p_2): Don't test node->definition;
33868         test DECL_EXTERNAL independent of symtab_node.
33870 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
33872         PR lto/65012
33873         * varpool.c (varpool_node::get_constructor): Return early
33874         if this->lto_file_data is NULL.
33876 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33878         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33879         (rank_for_schedule_debug): Update.
33880         (ready_sort): Make static.  Move sorting logic to ...
33881         (ready_sort_debug, ready_sort_real): New static functions.
33882         (schedule_block): Sort both debug insns and real insns in preparation
33883         for ready list trimming.  Improve debug output.
33884         * sched-int.h (ready_sort): Remove global declaration.
33886 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
33888         * ipa-icf.c (sem_function::equals_private): Adjust.
33889         (sem_function::bb_dict_test): Take a vec<int> * instead of
33890         auto_vec<int>.
33891         * ipa-icf.h (bb_dict_test): Likewise.
33893 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33895         PR gcov-profile/64634
33896         * tree-eh.c (frob_into_branch_around): Fix up typos
33897         in function comment.
33898         (lower_catch): Put eh_seq resulting from EH lowering of
33899         the cleanup sequence after the cleanup rather than before it.
33901 2015-02-18  Tom de Vries  <tom@codesourcery.com>
33903         * common.opt (fstdarg-opt): New option.
33904         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33905         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33906         (@item -fstdarg-opt): New item.
33908 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
33910         PR target/65064
33911         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33912         for common symbols.
33914 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33916         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33917         insn-modes.h.
33918         (ALL_HOST_OBJS): Add mkoffload.o.
33919         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33921 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
33923         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33924         (compare_virtual_tables): Be smarter about skipping typeinfos;
33925         do sane output on virtual table table mismatch.
33926         (warn_odr): Be ready for forward declarations of enums;
33927         output sane info on base mismatch and virtual table mismatch.
33928         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33929         when only one type is polymorphic.
33930         (get_odr_type): Fix hashtable corruption.
33931         (dump_odr_type): Dump mangled names.
33933 2015-02-18  Richard Biener  <rguenther@suse.de>
33935         PR tree-optimization/65063
33936         * tree-predcom.c (determine_unroll_factor): Return 1 if we
33937         have replaced looparound PHIs.
33939 2015-02-18  Martin Liska  <mliska@suse.cz>
33941         * lto-streamer.c (lto_streamer_init): Encapsulate
33942         streamer_check_handled_ts_structures with checking macro.
33944 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33946         PR ipa/65087
33947         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33948         section if !implicit_section.
33949         (cgraph_node::create_version_clone_with_body): Likewise.
33950         * trans-mem.c (ipa_tm_create_version): Likewise.
33952 2015-02-18  Richard Biener  <rguenther@suse.de>
33954         PR tree-optimization/62217
33955         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33956         into BIVs.
33958 2015-02-18  Marek Polacek  <polacek@redhat.com>
33960         PR sanitizer/65081
33961         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33962         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33963         is in range [-16K, -1].  Don't issue run-time error if
33964         (ptr > ptr + offset).
33966 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
33968         * doc/install.texi (nvptx-*-none): New section.
33969         * doc/invoke.texi (Nvidia PTX Options): Likewise.
33970         * config/nvptx/nvptx.opt: Update.
33972         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33973         (access_check): New functions, copied from
33974         config/i386/intelmic-mkoffload.c.
33975         (main): For non-installed testing, look in all COMPILER_PATHs for
33976         GCC_INSTALL_NAME.
33978         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33980 2015-02-18  Andrew Pinski  <apinski@cavium.com>
33981             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33983         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33984         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33986 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33988         * ipa-visibility.c (function_and_variable_visibility): Only
33989         check locality if node is not already local.
33990         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33991         call_for_symbol_and_aliases instead of
33992         call_for_symbol_thunks_and_aliases.
33993         (ipa_inline): Likewise.
33994         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33995         first walk aliases.
33996         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33997         call_for_symbol_and_aliases.
33998         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33999         (ipa_propagate_frequency_1): Use it; use opt_for_fn
34000         (ipa_propagate_frequency): Update.
34001         (ipa_profile): Add opt_for_fn gueards.
34003 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
34005         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
34006         * doc/invoke.texi (SH options): Document it.
34007         * config/sh/sh.c (sh_insn_length_adjustment): Check
34008         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
34010 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
34012         * common.opt (fipa-cp-alignment): New.
34013         * ipa-cp.c (ipcp_store_alignment_results): Check
34014         flag_ipa_cp_alignment.
34015         * opts.c (default_options_table): Enable -fipa-cp-alignment for
34016         -O2.
34017         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
34018         * doc/invoke.texi: Document -fipa-cp-alignment.
34020 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
34022         PR target/64793
34023         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
34024         to nil.  Adjust comments.
34026 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
34028         * ipa-visibility.c (function_and_variable_visibility): Only
34029         check locality if node is not already local.
34030         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
34031         call_for_symbol_and_aliases instead of
34032         call_for_symbol_thunks_and_aliases.
34033         (ipa_inline): Likewise.
34034         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
34035         first walk aliases.
34036         * ipa.c (symbol_table::remove_unreachable_nodes): Use
34037         call_for_symbol_and_aliases.
34038         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
34039         (ipa_propagate_frequency_1): Use it; use opt_for_fn
34040         (ipa_propagate_frequency): Update.
34041         (ipa_profile): Add opt_for_fn guards.
34043 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
34045         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
34046         skipping of "strange" tokens.
34048 2015-02-17  Jeff Law  <law@redhat.com>
34050         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
34051         obsolete comment.
34053 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
34055         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
34056         as forcing a HARD_DEP between instructions, thereby
34057         disallowing rewriting to break dependencies.
34059 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
34061         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
34062         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
34063         variables in boundary that have no inlitalizer encoded and are
34064         not aliases.
34065         * varasm.c (default_binds_local_p_2): External definitions do not
34066         count as definitions here.
34068 2015-02-16  Jeff Law  <law@redhat.com>
34070         PR tree-optimization/64823
34071         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
34072         statements.
34073         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34074         threading through blocks with PHIs, but no statements.
34075         (thread_through_normal_block): Distinguish between blocks where
34076         we did not process all the statements and blocks with no statements.
34078 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
34079             James Greenhalgh  <james.greenhalgh@arm.com>
34081         PR ipa/64963
34082         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
34083         section if not linkonce.  Fix up formatting.
34084         (cgraph_node::create_version_clone_with_body): Copy section.
34085         * trans-mem.c (ipa_tm_create_version): Likewise.
34087 2015-02-16  Richard Biener  <rguenther@suse.de>
34089         PR tree-optimization/65077
34090         * tree-ssa-structalias.c (get_constraint_for_1): Handle
34091         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
34092         (find_func_aliases): Allow float values to carry pointers again.
34094 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
34096         * doc/install.texi (Specific): Reorder targets list to put
34097         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
34098         from the top menu.
34100 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
34101             David Edelsohn  <dje.gcc@gmail.com>
34103         PR target/65058
34104         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
34105         mapping class to external variable or function reference.
34106         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
34107         mapping class.
34109 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
34111         PR target/53348
34112         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
34113         ASM_WEAKEN_DECL if defined.
34115 2015-02-16  Richard Biener  <rguenther@suse.de>
34117         PR lto/65015
34118         * varasm.c (default_file_start): For LTO produced units
34119         emit <artificial> as file directive.
34121 2015-02-16  Richard Biener  <rguenther@suse.de>
34123         PR tree-optimization/63593
34124         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
34125         stmts and releasing SSA names until...
34126         (execute_pred_commoning): ... after processing all chains.
34128 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
34130         PR ipa/65059
34131         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
34132         external functions.
34134 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
34136         * doc/bugreport.texi: Adjust section titles throughout the file
34137         to use "Title Case".
34138         * doc/extend.texi: Likewise.
34139         * doc/gcov.texi: Likewise.
34140         * doc/implement-c.texi: Likewise.
34141         * doc/implement-cxx.texi: Likewise.
34142         * doc/invoke.texi: Likewise.
34143         * doc/objc.texi: Likewise.
34144         * doc/standards.texi: Likewise.
34145         * doc/trouble.texi: Likewise.
34147 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
34149         * cgraph.h (symtab_node::has_aliases_p): Simplify.
34150         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
34151         * tree.c (lookup_binfo_at_offset): Make static.
34152         (get_binfo_at_offset): Do not shadow offset; add explanatory
34153         comment.
34155 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
34157         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
34158         for all floading point loads and stores except those using a register
34159         index address.
34160         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
34161         to a register.
34163 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
34165         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
34166         (do_estimate_growth_1): Record if any uninlinable edge was seen.
34167         (estimate_growth): Handle uninlinable edges correctly.
34168         (check_callers): New.
34169         (growth_likely_positive): Handle aliases correctly.
34171 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
34173         * ipa-chkp.c: Use iterate_direct_aliases.
34174         * symtab.c (resolution_used_from_other_file_p): Move inline.
34175         (symtab_node::create_reference): Fix formating.
34176         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34177         (symtab_node::iterate_reference): Move inline.
34178         (symtab_node::iterate_referring): Move inline.
34179         (symtab_node::iterate_direct_aliases): Move inline.
34180         (symtab_node::used_from_object_file_p_worker): Inline into ...
34181         (symtab_node::used_from_object_file_p): ... this one; move inline.
34182         (symtab_node::call_for_symbol_and_aliases): Move inline;
34183         use iterate_direct_aliases.
34184         (symtab_node::call_for_symbol_and_aliases_1): New method.
34185         (cgraph_node::call_for_symbol_and_aliases): Move inline;
34186         use iterate_direct_aliases.
34187         (cgraph_node::call_for_symbol_and_aliases_1): New method.
34188         (varpool_node::call_for_node_and_aliases): Rename to ...
34189         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
34190         use iterate_direct_aliases.
34191         (varpool_node::call_for_symbol_and_aliases_1): New method.
34192         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
34193         (ipa_discover_readonly_nonaddressable_var): Update.
34194         * ipa-devirt.c: Fix formating.
34195         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
34196         Move inline.
34197         (cgraph_node::call_for_symbol_and_aliases): Move inline.
34198         (cgraph_node::call_for_symbol_and_aliases_1): New function..
34199         * cgraph.h (used_from_object_file_p_worker): Remove.
34200         (resolution_used_from_other_file_p): Move inline.
34201         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34202         (symtab_node::iterate_reference): Move inline.
34203         (symtab_node::iterate_referring): Move inline.
34204         (symtab_node::iterate_direct_aliases): Move inline.
34205         (symtab_node::used_from_object_file_p_worker): Inline into ...
34206         (symtab_node::used_from_object_file_p): Move inline.
34207         * tree-emutls.c (ipa_lower_emutls): Update.
34208         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
34209         (varpool_node::call_for_node_and_aliases): Remove.
34211 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
34213         PR tree-optimization/62209
34214         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
34215         op == range->exp, insert seq and gimplified code after labels
34216         instead of after the phi.
34218 2015-02-13  Jeff Law  <law@redhat.com>
34220         PR bootstrap/65060
34221         Revert my change for tree-optimization/64823.
34223 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
34225         PR tree-optimization/65053
34226         * tree-ssa-phiopt.c (value_replacement): When moving assign before
34227         cond, either reset VR on lhs or set it to phi result VR.
34229 2015-02-13  Jeff Law  <law@redhat.com>
34231         PR tree-optimization/64823
34232         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
34233         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34234         threading through blocks with PHIs, but no statements.
34235         (thread_through_normal_block): Distinguish between blocks where
34236         we did not process all the statements and blocks with no statements.
34238         PR rtl-optimization/47477
34239         * match.pd (convert (plus/minus (convert @0) (convert @1): New
34240         simplifier to narrow arithmetic.
34242 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
34244         PR ipa/65028
34245         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
34246         polymorphic call info when type is not known to be preserved.
34248 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
34250         PR ipa/65028
34251         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
34252         (inline_call): Use it.
34254 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
34256         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
34257         GOMP_DEVICE_NVIDIA_PTX.
34259 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
34261         PR ipa/65034
34262         * stmt.c (emit_case_nodes): Use void_type_node instead of
34263         NULL_TREE as LABEL_DECL type.
34265 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
34267         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
34268         constraints.
34269         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
34270         symbolic references to data to be forced to constant memory on the
34271         SOM target.
34273 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
34275         PR tree-optimization/65002
34276         * tree-cfg.c (pass_data_fixup_cfg): Don't update
34277         SSA on start.
34278         * tree-sra.c (some_callers_have_no_vuse_p): New.
34279         (ipa_early_sra): Reject functions whose callers
34280         assume function is read only.
34282 2015-02-13  Richard Biener  <rguenther@suse.de>
34284         PR lto/65015
34285         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
34286         for LTO produced CUs.
34288 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
34290         PR tree-optimization/64705
34291         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
34292         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
34293         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
34294         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
34295         expand_simple_operations.
34297 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
34298             Richard Henderson  <rth@redhat.com>
34300         PR rtl/32219
34301         * cgraphunit.c (cgraph_node::finalize_function): Set definition
34302         before notice_global_symbol.
34303         (varpool_node::finalize_decl): Likewise.
34304         * varasm.c (default_binds_local_p_2): Rename from
34305         default_binds_local_p_1, add weak_dominate argument.  Use direct
34306         returns instead of assigning to local variable.  Unify varpool and
34307         cgraph paths via symtab_node.  Reject undef weak variables before
34308         testing visibility.  Reorder tests for simplicity.
34309         (default_binds_local_p): Use default_binds_local_p_2.
34310         (default_binds_local_p_1): Likewise.
34311         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
34312         via symtab_node.
34313         (default_elf_asm_output_external): Emit visibility when specified.
34315 2015-02-13  Alan Modra  <amodra@gmail.com>
34317         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
34318         code setting up r11 for out-of-line fp restore.
34320 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
34322         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
34323         (muser-mode): Likewise.
34325 2015-02-13  Alan Modra  <amodra@gmail.com>
34327         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
34328         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
34330 2015-02-12  David Howells  <dhowells@redhat.com>
34332         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
34333         warning.
34334         * tree-ssa-uninit.c (dump_predicates): Likewise.
34335         * opts.c (print_filtered_help): Likewise.
34337 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34339         * dwarf2out.c (output_die): Use "%s", name instead of name to
34340         avoid -Wformat-security warning.
34342         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
34343         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34344         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
34345         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34347 2015-02-12  Jason Merrill  <jason@redhat.com>
34349         * common.opt (-flifetime-dse): New.
34351 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
34353         PR sanitizer/65019
34354         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
34356         PR tree-optimization/65014
34357         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
34358         use original second operand of arg0 or arg1 instead of
34359         that adjusted by STRIP_NOPS.
34361 2015-02-11  Jeff Law  <law@redhat.com>
34363         PR target/63347
34364         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
34365         that needs to be queued, just queue it for a single cycle.
34367 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
34369         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
34370         bodies of thunks; comment on why.
34371         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
34372         symbols are extern.
34374 2015-02-11  Richard Henderson  <rth@redhat.com>
34376         PR sanitize/65000
34377         * tree-eh.c (mark_reachable_handlers): Mark source and destination
34378         regions of __builtin_eh_copy_values.
34380 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34382         PR middle-end/65003
34383         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34384         ultimate alias is MEM with SYMBOL_REF satisfying
34385         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
34386         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34388 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
34390         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34391         "diagnostic-core.h".
34392         (main): Initialize progname, and call diagnostic_initialize.
34394         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34395         instead of __OPENMP_TARGET__.
34397         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34398         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34399         hard-coding PTX_ID.
34401 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
34403         * doc/sourcebuild.texi (pie_enabled): Document.
34405 2015-02-11  Martin Liska  <mliska@suse.cz>
34407         PR ipa/64813
34408         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34409         a return value for call to a function that is noreturn.
34411 2015-02-11  Richard Biener  <rguenther@suse.de>
34413         PR lto/65015
34414         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34415         and -fresolution.
34417 2015-02-11  Andrew Pinski  <apinski@cavium.com>
34419         PR target/64893
34420         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34421         Change the first argument type to size_type_node and add another
34422         size_type_node.
34423         (aarch64_simd_expand_builtin): Handle the new argument to
34424         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34425         print an out when the first two arguments are not
34426         nonzero integer constants.
34427         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34428         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34430 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
34432         PR target/61925
34433         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34434         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34435         (ix86_set_current_function): Rewritten.
34436         (ix86_add_new_builtins): Temporarily clear current_target_pragma
34437         when creating builtin fndecls.
34439 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34441         PR ipa/65005
34442         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34443         function.
34444         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34445         have no comdat group.
34446         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34447         (lto_output_varpool_node): Always output alias info.
34448         (output_refs): Output refs of boundary aliases, too.
34449         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34450         (output_symtab): Output call eges in thunks in boundary.
34451         (get_alias_symbol): Remove.
34452         (input_node, input_varpool_node): Do not special case weakrefs.
34453         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34454         alias and thunks targets in the boundary; do not take removed symbols
34455         from their comdat groups.
34456         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34457         (cgraph_node::global_info): Remove.
34458         (cgraph_node::rtl_info): Look through aliases and thunks.
34459         * cgrpah.h (global_info): Remove.
34460         (non_local_p): Remove.
34462 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34463             Sandra Loosemore  <sandra@codesourcery.com>
34465         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34466         to inline asm.  List dialects in proper order.
34468 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34469             Sandra Loosemore  <sandra@codesourcery.com>
34471         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
34473 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
34475         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
34476         modified) reference to Solaris.
34478 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
34480         * doc/extend.texi (Extended Asm): Fix typos.
34482 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
34484         PR sanitizer/65004
34485         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
34487 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
34489         PR target/64661
34490         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
34491         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
34492         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
34493         * config/sh/constraints.md (Ara, Add): New constraints.
34494         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
34495         predicates.
34496         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
34497         atomic_mem_operand_0.  Don't use force_reg on the memory address.
34498         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
34499         Sra constraint.  Convert to insn_and_split.  Add workaround for
34500         PR 64974.
34501         (atomic_compare_and_swap<mode>_hard): Copy to
34502         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
34503         Use atomic_mem_operand_0 predicate.
34504         (atomic_compare_and_swap<mode>_soft_gusa,
34505         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
34506         AraAdd constraints.
34507         (atomic_compare_and_swap<mode>_soft_tcb,
34508         atomic_compare_and_swap<mode>_soft_imask,
34509         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34510         atomic_mem_operand_0 predicate and SraSdd constraints.
34511         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34512         constraint.
34513         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34514         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
34515         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34516         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
34517         force_reg on the memory address.
34518         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34519         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34520         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34521         atomic_mem_operand_1 predicate and Sra constraint.
34522         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34523         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34524         Use atomic_mem_operand_1 predicate.
34525         (atomic_<fetchop_name><mode>_hard): Copy to
34526         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34527         Use atomic_mem_operand_1 predicate.
34528         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34529         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34530         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
34531         insn_and_split.  Use atomic_mem_operand_1 predicate.
34532         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34533         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
34534         Use atomic_mem_operand_1 predicate.
34535         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34536         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34537         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34538         in generated insn with original mem operand before emitting the insn.
34539         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34540         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34541         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34542         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34543         Use atomic_mem_operand_1 predicate and AraAdd constraints.
34544         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34545         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34546         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34547         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34548         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34549         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34550         atomic_not_fetch<mode>_soft_tcb,
34551         atomic_<fetchop_name>_fetch<mode>_soft_imask,
34552         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34553         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34554         Use atomic_mem_operand_1 predicate and SraSdd constraints.
34556 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
34558         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34559         and 3 earlyclobber operands.
34561 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34563         * common.opt (fstack-reuse): Mark as optimization.
34565 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34567         PR ipa/64982
34568         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34570 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
34572         PR tree-optimization/64326
34573         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34575 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
34577         PR gcov-profile/61889
34578         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34580 2015-02-10  Richard Biener  <rguenther@suse.de>
34582         PR tree-optimization/64995
34583         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34584         value we use is final.
34585         (visit_reference_op_store): Always valueize op.
34586         (visit_use): Properly valueize vuses.
34588 2015-02-10  Richard Biener  <rguenther@suse.de>
34590         PR tree-optimization/64909
34591         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34592         pass a scalar-stmt count estimate to the cost model.
34593         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34595 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
34597         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34598         enabled by default together with var-tracking.
34600 2015-02-10  Nick Clifton  <nickc@redhat.com>
34602         * config/rl78/rl78.c: Remove DIV attribute code accidentally
34603         included in previous rl78 commit.
34605 2015-02-10  Richard Biener  <rguenther@suse.de>
34607         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34608         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34609         return the bitpack.
34611 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34613         PR gcov-profile/61889
34614         * config.in: regenerate.
34615         * configure.in: Likewise.
34616         * configure.ac: Check for ftw.h.
34617         * gcov-tool.c: Check for ftw.h before using nftw.
34619 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34621         PR lto/64076
34622         * ipa-visibility.c (update_visibility_by_resolution_info): Only
34623         assert when not in lto mode.
34625 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34627         * ira-color.c (setup_left_conflict_sizes_p): Simplify
34628         initialization/assignment of conflict_size.
34630 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
34632         PR ipa/64978
34633         * ipa-cp.c (gather_caller_stats): Skip thunks.
34634         (propagate_constants_topo): Skip aliases.
34636 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
34638         PR target/64761
34639         * config/sh/sh.c (sh_option_override): Don't change
34640         -freorder-blocks-and-partition to -freorder-blocks even when
34641         unwinding is enabled.
34642         (sh_can_follow_jump): Return false if the followee jump is
34643         a crossing jump when -freorder-blocks-and-partition is specified.
34644         * config/sh/sh.md (*jump_compact_crossing): New insn.
34646 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
34647             Kaz Kojima  <kkojima@gcc.gnu.org>
34649         PR target/64761
34650         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34651         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34652         (sh_can_redirect_branch): Rename to ...
34653         (sh_can_follow_jump): ... this.  Constify argument types.
34654         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34655         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34656         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34657         * doc/tm.texi: Regenerate.
34659 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34661         PR sanitizer/64981
34662         * builtins.c (expand_builtin): Call targetm.expand_builtin
34663         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34665 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34667         PR ipa/61548
34668         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34670 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34672         PR ipa/63566
34673         * ipa-icf.c (set_local): New function.
34674         (sem_function::merge): Use it.
34676 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34678         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34679         (add_type_duplicate): Fix comparison of BINFOs.
34681 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34683         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34684         on getting VOID pointer.
34686 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34688         PR target/64979
34689         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34690         va_list escapes.
34692 2015-02-09  Richard Biener  <rguenther@suse.de>
34694         * genmatch.c (replace_id): Copy expr_type.
34696 2015-02-09  Richard Biener  <rguenther@suse.de>
34698         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34699         (streamer_write_tree_bitfields): Declare.
34700         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34701         properly unpack padding.
34702         (unpack_value_fields): Inline ...
34703         (streamer_read_tree_bitfields): ... here.
34704         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34705         and properly add padding bits.
34706         (streamer_pack_tree_bitfields): Fold into ...
34707         (streamer_write_tree_bitfields): ... this new function,
34708         exposing the bitpack object.
34709         * lto-streamer-out.c (lto_write_tree_1): Call
34710         streamer_write_tree_bitfields.
34712 2015-02-09  Richard Biener  <rguenther@suse.de>
34714         PR tree-optimization/54000
34715         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34716         (struct ivopts_data): Add loop_loc member.
34717         (tree_ssa_iv_optimize_loop): Dump loop location.
34718         (create_new_ivs): Likewise, also dump number of IVs generated.
34720 2015-02-09  Martin Liska  <mliska@suse.cz>
34722         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34723         just if not yet registered.
34724         (ipa_icf_generate_summary): Register callgraph hooks.
34726 2015-02-08  Andrew Pinski  <apinski@cavium.com>
34728         * config/aarch64/aarch64.c (gty_dummy): Delete.
34730 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34732         PR ipa/63566
34733         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34734         (cgraph_node::local_p): Remove thunk related FIXME.
34736 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34738         PR ipa/63566
34739         * i386.c (ix86_function_regparm): Look through aliases to see if callee
34740         is local and optimized.
34741         (ix86_function_sseregparm): Likewise; also use target's SSE math
34742         settings; error out instead of silently generating wrong code
34743         on mismatches.
34744         (init_cumulative_args): Look through aliases.
34746 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34748         PR ipa/63566
34749         * ipa-split.c (execute_split_functions): Split if function has aliases.
34751 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34753         PR ipa/63566
34754         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34755         aliases before trying to expand it.
34756         (cgraph_node::expand_thunk): Fix formating.
34758 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
34760         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34761         (Using Assembly Language with C): Expand introduction.
34762         (Basic Asm): Copy-edit.  Add more information about uses of
34763         basic asm.
34764         (Extended Asm): Copy-edit.  Document new escape syntax and
34765         %l[label] syntax.
34766         (Global Reg Vars): Copy-edit.
34767         (Local Reg Vars): Likewise.
34769 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
34771         PR debug/2714
34772         PR bootstrap/64256
34773         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34774         (DBX_CONTIN_CHAR): Define.
34776 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
34777             Brian Rzycki  <b.rzycki@samsung.com>
34779         PR tree-optimization/64878
34780         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34781         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34782         Stop recursion at loop phi nodes after having visited a loop phi node.
34784 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34786         * toplev.c (process_options): Change flag_ipa_ra before creating
34787         optimization_{default,current}_node.
34789         PR ipa/64896
34790         * cgraphunit.c (cgraph_node::expand_thunk): If
34791         restype is not is_gimple_reg_type nor the thunk_fndecl
34792         returns aggregate_value_p, set restmp to a temporary variable
34793         instead of resdecl.
34795 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
34797         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34799 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34801         PR target/64205
34802         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34803         add a general secondary reload handler for SDmode, unless we have
34804         both read/write support for SDmode.
34806 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34808         PR middle-end/64937
34809         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34810         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34811         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34812         1 before, push it to abstract_vec.
34813         (dwarf2out_abstract_function): Adjust caller.  Don't call
34814         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34815         DECL_ABSTRACT_P flags for all abstract_vec elts.
34817 2015-02-06  Renlin Li  <renlin.li@arm.com>
34819         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34820         complex gimple.
34821         * tree-ssa.c (execute_update_addresses_taken): Likewise.
34823 2015-02-06  Jeff Law  <law@redhat.com>
34825         PR target/64889
34826         * config/h8300/h8300.c (push): New argument "in_prologue".
34827         Pass "in_prologue" along to "F".
34828         (h8300_push_pop): Corresponding changes.
34829         (h8300_expand_prologue): Likewise.
34830         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
34832 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34834         PR rtl-optimization/64957
34835         PR debug/64817
34836         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34837         IOR rather than for AND.
34839 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
34841         PR target/62631
34842         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34843         of shift-add and (add + shift) operations.  Rename local variable.
34845 2015-02-05  Jeff Law  <law@redhat.com>
34847         PR target/17306
34848         * config/h8300/constraints.md (U): Correctly dectect
34849         "eightbit_data" memory addresses.
34850         * config/h8300/h8300.c (eightbit_constant_address_p): Also
34851         handle (const (plus (symbol_ref (x)))) where x is declared
34852         as an 8-bit data memory address.
34853         * config/h8300/h8300.md (call, call_value): Correctly detect
34854         "funcvec" functions.
34856         PR target/43264
34857         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34858         24 to 28 bits for the H8/300.
34860 2015-02-06  Alan Modra  <amodra@gmail.com>
34862         PR target/64876
34863         * config/rs6000/rs6000.c (chain_already_loaded): New function.
34864         (rs6000_call_aix): Use it.
34866 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
34868         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34869         check.
34871 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
34873         * config/h8300/constraints.md ("U" constraint): Use strict
34874         variant of REG_OK_FOR_BASE_P after reload has started.
34876 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
34878         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34879         define to zero if !TARGET_NEON.
34880         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34882 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34883             Trevor Saunders  <tsaunders@mozilla.com>
34885         PR ipa/61548
34886         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34888 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34890         PR ipa/61548
34891         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34892         when removing varpool nodes.
34894 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34896         PR ipa/61548
34897         * varpool.c (varpool_node::remove): Fix order of variables.
34899 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34901         PR ipa/64686
34902         * ipa-inline.c (inline_small_functions): Fix ordering issue between
34903         speculation resolution and key updates.
34905 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34907         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34908         about not letting any speculative edges unupdated.
34910 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34912         PR gcov/64123
34913         * gcov-io.c (gcov_var): Export.
34915 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34917         PR middle-end/64922
34918         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34919         edges that become speculative.
34921 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34923         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34924         or DW_LANG_Fortran08.
34925         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34926         DW_LANG_Fortran08.
34927         (gen_compile_unit_die): Handle "GNU Fortran2003" and
34928         "GNU Fortran2008" language strings.
34929         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34930         * langhooks.h (lang_GNU_Fortran): New prototype.
34931         * langhooks.c (lang_GNU_Fortran): New function.
34932         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34933         lang_GNU_Fortran.
34935 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34937         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34938         (RTX_OK_FOR_OLO10_P): Likewise.
34940 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34942         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34944 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34946         PR middle-end/64922
34947         * gimple.c: Include gimple-ssa.h.
34948         (maybe_remove_unused_call_args): New function.
34949         * gimple.h (maybe_remove_unused_call_args): Declare.
34950         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34951         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34952         * gimple-fold.c (gimple_fold_call): Likewise.
34954 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
34956         PR rtl-optimization/64905
34957         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34958         pointer alignment if it isn't needed.
34960 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34962         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34963         cortex-a72.cortex-a53.
34964         * config/aarch64/aarch64-tune.md: Regenerate.
34965         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34967 2015-02-04  Nick Clifton  <nickc@redhat.com>
34969         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34970         inside a MEM.
34972 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34974         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34975         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34976         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34977         of DEF_BUILTIN.
34978         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34979         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34980         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34981         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34982         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34983         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34984         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34985         * tree-core.h (enum built_in_function): In between
34986         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34987         for builtins that use DEF_BUILTIN_CHKP macro.
34989 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
34991         PR debug/64817
34992         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34993         operands for tcc_comparison exprs.  Fix typos.
34995         PR debug/64817
34996         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34997         of two XORs that have an intervening AND or IOR.
34999         PR debug/64817
35000         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
35001         simplification of XOR of AND to not allocate new rtx before
35002         committing to a simplification.
35004 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35006         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
35007         manual swaps in all peepholes.
35009 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35011         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
35012         of manual swapping implementation.
35013         (aarch64_expand_vec_perm_const_1): Likewise.
35015 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
35017         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
35018         (generic_addrcost_table): Remove NAMED_PARAM.
35019         (cortexa57_addrcost_table): Likewise.
35020         (xgene1_addrcost_table): Likewise.
35021         (generic_regmove_table): Likewise.
35022         (cortexa53_regmove_table): Likewise.
35023         (xgene1_regmove_table): Likewise.
35024         (generic_vector_table): Likewise.
35025         (cortexa57_vector_table): Likewise.
35026         (xgene1_vector_table): Likewise.
35027         (generic_tunings): Likewise.
35028         (cortexa53_tunings): Likewise.
35029         (cortexa57_tunings): Likewise.
35030         (xgene1_tunings): Likewise.
35032 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
35034         * config/arm/arm-cores.def: Add cortex-a72 and
35035         cortex-a72.cortex-a53.
35036         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
35037         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
35038         * config/arm/arm-tune.md: Regenerate.
35039         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
35040         "cortex-a72.cortex-a53".
35041         * doc/invoke.texi (ARM Options/-mtune): Likewise.
35043 2015-02-04  Nick Clifton  <nickc@redhat.com>
35045         PR target/64408
35046         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
35047         of accepted codes.
35048         (nonimmediate_di_operand): Likewise.
35050         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
35051         prefixes of known F5 using MSP430 MCUs.
35053 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35055         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
35056         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
35057         instead of __builtin_sqrt.
35059 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
35061         * varasm.c (do_assemble_alias): Follow transparent alias
35062         chain for target.
35063         (default_assemble_visibility): Follow transparent alias
35064         chain for decl name.
35066 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35068         PR middle-end/62103
35069         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
35070         to compute size of referenced value in the constant case.
35072 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
35074         PR rtl-optimization/64756
35075         * cse.c (invalidate_dest): New function.
35076         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
35077         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
35078         invalidate and do not record it.
35080 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
35082         PR target/64660
35083         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
35084         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
35085         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
35086         atomic_nand<mode>_soft_tcb): New insns.
35087         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
35088         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
35089         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
35090         Split into atomic_not_fetchsi_hard if operands[0] is unused.
35091         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
35092         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35093         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
35094         atomic_not<mode>_hard if operands[0] is unused.
35095         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
35096         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
35097         if operands[0] is unused.
35098         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
35099         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
35100         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
35101         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35102         unused.
35103         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
35104         into atomic_not<mode>_soft_tcb if operands[0] is unused.
35105         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
35106         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
35107         if operands[0] is unused.
35108         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
35109         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
35110         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
35111         atomic_nand_fetchsi_hard if operands[0] is unused.
35112         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
35113         atomic_nand<mode>_hard if operands[0] is unused.
35114         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
35115         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
35116         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
35117         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35118         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
35119         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
35120         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
35121         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35122         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
35123         atomic_not<mode>_hard if operands[0] is unused.
35124         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
35125         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35126         unused.
35127         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
35128         into atomic_not<mode>_soft_tcb if operands[0] is unused.
35129         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
35130         atomic_nand<mode>_hard if operands[0] is unused.
35131         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
35132         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35134 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
35136         PR jit/64810
35137         * Makefile.in (GCC_OBJS): Add gcc-main.o.
35138         * gcc-main.c: New file, containing "main" taken from gcc.c.
35139         * gcc.c (do_self_spec): Free decoded_options.
35140         (class driver): Move declaration to gcc.h.
35141         (main): Move declaration and implementation to new file
35142         gcc-main.c.
35143         (driver_get_configure_time_options): New function.
35144         * gcc.h (class driver): Move this declaration here, from
35145         gcc.c.
35146         (driver_get_configure_time_options): New declaration.
35148 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
35150         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
35151         cross-module inlining.
35152         * cgraph.h (cgraph_node): Add flag merged.
35153         * ipa-icf.c (sem_function::merge): Maintain it.
35155 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
35157         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
35158         instead of OBJECT_P.
35160 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
35162         PR target/62631
35163         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
35164         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
35165         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
35166         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
35168 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
35170         PR other/63504
35171         * combine.c (reg_n_sets_max): New variable.
35172         (can_change_dest_mode, reg_nonzero_bits_for_combine,
35173         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
35174         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
35175         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
35176         (rest_of_handle_combine): Initialize reg_n_sets_max.
35178 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
35180         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
35181         if some always_inline was inlined, apply changes before inlining
35182         heuristically.
35184 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
35186         PR jit/64810
35187         * config/arm/arm.c (arm_option_override): Set
35188         arm_selected_arch/cpu/tune to NULL on entry.
35190 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
35191             Andrew Pinski  <pinskia@gcc.gnu.org>
35192             Jakub Jelinek  <jakub@gcc.gnu.org>
35194         PR target/64231
35195         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
35196         integer typing for small model. Use IN_RANGE.
35198 2015-02-02  Richard Biener  <rguenther@suse.de>
35200         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
35201         * tree-vrp.c (vrp_valueize_1): Likewise.
35203 2015-02-02  Alan Modra  <amodra@gmail.com>
35205         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
35206         than mem for toc_restore.
35207         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
35208         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
35209         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
35211 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
35213         PR target/64047
35214         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
35215         explicit default options.
35217 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
35219         PR ipa/64872
35220         * ipa-utils.c (ipa_merge_profiles): Add release argument.
35221         * ipa-icf.c (sem_function::merge): Do not release body when merging.
35222         * ipa-utils.h (ipa_merge_profiles): Update prototype.
35224 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
35226         PR debug/64817
35227         * cfgexpand.c (deep_ter_debug_map): New variable.
35228         (avoid_deep_ter_for_debug): New function.
35229         (expand_debug_expr): If TERed SSA_NAME is in
35230         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
35231         instead of trying to expand SSA_NAME's def stmt.
35232         (expand_debug_locations): When expanding debug bind
35233         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
35234         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
35235         value.
35236         (pass_expand::execute): Call avoid_deep_ter_for_debug on
35237         all debug bind stmts.  Delete deep_ter_debug_map after
35238         expand_debug_location if non-NULL and clear it.
35240 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
35242         PR target/64851
35243         * config/sh/sync.md (atomic_fetch_notsi_hard,
35244         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
35245         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
35246         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
35247         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
35248         atomic_not_fetch<mode>_soft_imask): New insns.
35250 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35252         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
35253         (rank_for_schedule_debug): Split from ...
35254         (rank_for_schedule): ... this.
35255         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
35256         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
35258 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
35260         * doc/md.texi (Machine Constraints): Alphabetize table by target.
35261         * doc/extend.texi (x86 Variable Attributes): Move section to
35262         correct alphabetization after renaming.
35263         (x86 Type Attributes): Likewise.
35264         (Target Builtins): Re-alphabetize menu.
35265         (x86 Built-in Functions): Move section to correct alphabetization
35266         after renaming.
35267         (x86 transactional memory intrinsics): Likewise.
35268         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
35269         and x86 Windows Options in table and menu.
35270         (x86 Options): Move section to correct alphabetization after
35271         renaming.
35272         (x86 Windows Options): Likewise.
35274 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
35276         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
35277         preferred names of the architecture and its 32- and 64-bit
35278         variants.
35279         * doc/invoke.texi: Likewise.
35280         * doc/md.texi: Likewise.
35282 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
35284         PR target/64882
35285         * config/i386/predicates.md (address_no_seg_operand): Reject
35286         non-CONST_INT_P operands in invalid mode.
35288 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
35290         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
35291         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
35292         * config/i386/predicates.md (address_no_seg_operand): Call
35293         address_operand with VOIDmode.
35294         (vsib_address_operand): Ditto.
35295         (address_mpx_no_base_operand): Ditto.
35296         (address_mpx_no_index_operand): Ditto.
35298 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35300         PR target/64688
35301         * lra-constraints.c (original_subreg_reg_mode): New.
35302         (simplify_operand_subreg): Try to simplify subreg of const.  Use
35303         original_subreg_reg_mode for it.
35304         (swap_operands): Update original_subreg_reg_mode.
35305         (curr_insn_transform): Set up original_subreg_reg_mode.
35307 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
35309         PR target/64617
35310         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
35311         function.
35312         (process_alt_operands): Use it.
35313         (curr_insn_transform): Check the optional reload pseudo class is
35314         ok for the mode.
35316 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
35318         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
35319         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
35320         prototype.
35321         * toplev.h (init_asm_output): Update comment on use of
35322         UNKNOWN_LOCATION with fatal_error.
35323         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
35324         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
35325         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
35326         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
35327         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
35328         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
35329         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
35330         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
35331         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
35332         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
35333         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
35334         fatal_error changed to pass input_location as first argument.
35336 2015-01-30  Martin Liska  <mliska@suse.cz>
35338         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
35339         in #pragma GCC diagnostic guards.
35341 2015-01-30  Richard Biener  <rguenther@suse.de>
35343         PR tree-optimization/64829
35344         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
35345         not add a widening conversion pattern but hand off extra
35346         widenings to callers.
35347         (vect_recog_widen_mult_pattern): Handle extra widening produced
35348         by vect_handle_widen_op_by_const.
35349         (vect_recog_widen_shift_pattern): Likewise.
35350         (vect_pattern_recog_1): Remove excess vertical space in dumping.
35351         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
35352         (vect_init_vector_1): Likewise.
35353         (vect_get_vec_def_for_operand): Likewise.
35354         (vect_finish_stmt_generation): Likewise.
35355         (vectorizable_load): Likewise.
35356         (vect_analyze_stmt): Likewise.
35357         (vect_is_simple_use): Likewise.
35359 2015-01-29  Jeff Law  <law@redhat.com>
35361         * combine.c (try_combine): Fix typo in comment.
35363 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
35365         PR target/64580
35366         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
35367         (rs6000_stack_info): Add assert.
35368         (rs6000_output_savres_externs): New function, split off from...
35369         (rs6000_output_function_prologue): ... here.  Do not call it for
35370         thunks.
35372 2015-01-29  Jeff Law  <law@redhat.com>
35374         PR target/15184
35375         * combine.c (try_combine): If I0 is a memory load and I3 a store
35376         to a related address, increase the "goodness" of doing a 4-insn
35377         combination with I0-I3.
35378         (make_field_assignment): Handle SUBREGs in the ior+and case.
35380 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
35382         PR tree-optimization/64746
35383         * tree-if-conv.c (mask_exists): New function.
35384         (predicate_mem_writes): Save created mask with given size for further
35385         use.
35386         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35387         (ifcvt_repair_bool_pattern): Collect all statements that are root
35388         of bool pattern and use iterative algorithm to remove multiple uses
35389         of predicates, display number of required iterations.
35391 2015-01-29  Richard Biener  <rguenther@suse.de>
35393         PR tree-optimization/64853
35394         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35395         stmt will get simulated again.
35396         * tree-ssa-ccp.c (valueize_op_1): Likewise.
35398 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35400         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35401         return_in_pc.  Remove redundant assignments.
35402         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35403         (arm_expand_epilogue): Don't compare boolean with true in if condition.
35405 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
35407         * config/i386/i386.c (ix86_mode_after): Make static.
35409 2015-01-29  Richard Biener  <rguenther@suse.de>
35411         PR tree-optimization/64844
35412         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35413         dump cost model analysis.
35414         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35415         Do not register adjusted load/store costs here.
35417 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35418             Uros Bizjak  <ubizjak@gmail.com>
35420         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35421         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35422         using x86_use_pseudo_pic_reg.
35423         * config/i386/i386.c (ix86_conditional_register_usage): Remove
35424         support for fixed PIC register.
35425         (ix86_use_pseudo_pic_reg): Not static any more.
35427 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
35429         PR middle-end/64805
35430         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35431         to avoid error in cgraph node verification.
35433 2015-01-29  Marek Polacek  <polacek@redhat.com>
35435         * doc/standards.texi: Reflect that the default for C is gnu11.
35437 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
35439         PR target/64761
35440         * reorg.c (switch_text_sections_between_p): New function.
35441         (relax_delay_slots): Call it when testing if the jump insn
35442         is removable.  Use targetm.can_follow_jump when testing if
35443         the conditional branch can follow an unconditional jump.
35445 2015-01-27  Caroline Tice  <cmtice@google.com>
35447         Committing VTV Cywin/Ming patch for Patrick Wollgast
35448         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35449         if -fvtable-verify=preinit/std is used.
35450         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35451         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35452         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35453         if -fvtable-verify=preinit/std is used.
35454         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35455         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35456         if -fvtable-verify=preinit/std is used.
35457         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35458         * config/i386/mingw32.h (LIB_SPEC): Likewise.
35459         * varasm.c (assemble_variable): Add code to properly set the comdat
35460         section and name for the .vtable_map_vars section in case the
35461         target is PE or COFF.
35463 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
35465         PR ipa/64801
35466         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35467         make sane BB profile.
35468         (cgraph_node::expand_thunk): Make sane BB profile.
35469         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35470         * cgraph.h (init_lowered_empty_function): Update prototype.
35471         * config/i386/i386.c (make_resolver_func): Update call.
35472         * predict.c (gate): Disable branch prediction pass if
35473         profile is already there.
35475 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
35477         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
35478         * opth-gen.awk: Likewise.
35479         * common.opt: Mark flag_fp_contract_mode as Optimization.
35481 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35483         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
35484         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
35486 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
35488         PR target/64659
35489         * config/sh/predicates.md (atomic_arith_operand,
35490         atomic_logical_operand): Remove.
35491         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
35492         (atomic_arith_operand_0): New predicate.
35493         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
35494         Use atomic_arith_operand_0 for input values.
35495         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
35496         atomic_compare_and_swap<mode>_soft_gusa,
35497         atomic_compare_and_swap<mode>_soft_tcb,
35498         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
35499         arith_reg_operand instead of register_operand.
35500         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
35501         atomic_arith_operand_0 for newval input.
35502         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
35503         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
35504         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
35505         arith_reg_operand instead of register_operand.
35506         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
35507         fetchop_predicate_1, fetchop_constraint_1_llcs,
35508         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35509         fetchop_constraint_1_imask): New code iterator attributes.
35510         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35511         register_operand.  Use fetchop_predicate_1.
35512         (atomic_fetch_<fetchop_name>si_hard,
35513         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35514         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35515         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35516         and arith_reg_operand instead of register_operand.  Use
35517         fetchop_predicate_1, fetchop_constraint_1_gusa.
35518         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35519         and arith_reg_operand instead of register_operand.  Use
35520         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
35521         to allow R0 usage.
35522         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35523         and arith_reg_operand instead of register_operand.  Use
35524         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
35525         to allow R0 usage.
35526         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35527         register_operand.  Use atomic_logical_operand_1.
35528         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35529         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35530         arith_reg_operand instead of register_operand.
35531         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35532         Use arith_reg_dest and arith_reg_operand instead of register_operand.
35533         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
35534         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35535         register_operand.  Use fetchop_predicate_1.
35536         (atomic_<fetchop_name>_fetchsi_hard,
35537         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35538         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35539         fetchop_constraint_1_llcs.
35540         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35541         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35542         fetchop_constraint_1_gusa.
35543         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35544         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35545         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
35546         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35547         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35548         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
35549         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35550         register_operand.  Use atomic_logical_operand_1.
35551         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35552         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35553         arith_reg_operand instead of register_operand.
35554         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35555         arith_reg_operand instead of register_operand.  Use logical_operand
35556         and K08.  Adjust asm sequence to allow R0 usage.
35557         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35558         arith_reg_operand instead of register_operand.  Use logical_operand
35559         and K08.
35561 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35563         PR other/63504
35564         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35565         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35566         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35567         only get_full_len HOST_WIDE_INTs from get_val () array rather than
35568         all bits in *val_wide.
35570 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
35572         * varpool.c (tls_model_names): Fix names.
35573         (varpool_node::dump): Dump tls- prefix for tls models.
35575 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
35576             Bernd Schmidt  <bernds@codesourcery.com>
35577             Nathan Sidwell  <nathan@codesourcery.com>
35579         * config/nvptx/mkoffload.c: New file.
35580         * config/nvptx/t-nvptx: Add build rules for it.
35581         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35582         (extra_programs): Add mkoffload.
35583         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35584         function.
35585         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35587 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
35589         PR middle-end/64809
35590         * cfgexpand.c (reorder_operands): Skip debug gimples.
35592 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
35594         PR tree-optimization/64277
35595         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35596         range info when possible to refine estimation.
35598 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35600         PR tree-optimization/64718
35601         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35602         be a 16bit unsigned integer when n->range is 16.
35603         (bswap_replace): Convert src to that type if necessary for all bswap
35604         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
35605         set in pass_optimize_bswap::execute ().
35607 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
35609         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35610         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35611         integer and floating point variants.
35612         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35614 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
35616         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35617         for all vector modes.
35619 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35621         PR bootstrap/64612
35622         * doc/sourcebuild.texi (comdat_group): Document.
35624 2015-01-28  Terry Guo  <terry.guo@arm.com>
35626         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35628 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
35630         * toplev.c (print_version): Add param "show_global_state", and
35631         only print GGC and plugin information if it is true.
35632         (init_asm_output): Pass in "true" for the new param when calling
35633         print_version.
35634         (process_options): Likewise.
35635         (toplev::main): Likewise.
35636         * toplev.h (print_version): Add new param to decl.
35638 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35640         PR ipa/60871
35641         PR ipa/64139
35642         * tree.c (lookup_binfo_at_offset): New function.
35643         (get_binfo_at_offset): Use it.
35645 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35647         PR ipa/64282
35648         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35649         on vtable being vtable.
35651 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35653         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35654         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35655         -mhotpatch= option.
35656         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35657         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
35658         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35659         Renamed.
35660         (s390_hotpatch_trampoline_halfwords_max): Renamed.
35661         (s390_hotpatch_hw_max): New name.
35662         (s390_hotpatch_trampoline_halfwords): Renamed.
35663         (s390_hotpatch_hw_before_label): New name.
35664         (get_hotpatch_attribute): Removed.
35665         (s390_hotpatch_hw_after_label): New name.
35666         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35667         attribute.
35668         (s390_attribute_table): Ditto.
35669         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35670         (s390_function_num_hotpatch_hw): New name.
35671         Remove special handling of inline functions and hotpatching.
35672         Return number of nops before and after the function label.
35673         (s390_can_inline_p): Removed.
35674         (s390_asm_output_function_label): Emit a configurable number of nops
35675         after the function label.
35676         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35677         (TARGET_CAN_INLINE_P) Removed.
35678         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35680 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35681             Jiong Wang  <jiong.wang@arm.com>
35683         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35684         of scratch reg.
35685         (cb<optab><mode>1): Likewise.
35686         * config/aarch64/iterators.md (bcond): New define_code_attr.
35688 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35690         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35691         memory accesses.
35693 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35695         * config/s390/s390.c (s390_register_move_cost): Increase costs for
35696         FPR->GPR moves.
35698 2015-01-27  Richard Biener  <rguenther@suse.de>
35700         * tree-vrp.c (update_value_range): Intersect the range with
35701         old recorded SSA name range information.
35703 2015-01-27  Nick Clifton  <nickc@redhat.com>
35705         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35706         BC, DE and HL registers directly, not via AX.
35707         When decrementing the stack pointer by a large amount, transfer SP
35708         into AX and perform the subtraction there.
35709         (rl78_expand_epilogue): Perform the inverse of the above
35710         enhancements.
35712 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35714         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35716 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35717             Yury Gribov  <y.gribov@samsung.com>
35719         PR ubsan/64741
35720         * ubsan.c (ubsan_source_location): Refactor code.
35721         (ubsan_type_descriptor): Update type size. Refactor code.
35723 2015-01-27  Richard Biener  <rguenther@suse.de>
35725         PR tree-optimization/56273
35726         PR tree-optimization/59124
35727         PR tree-optimization/64277
35728         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35729         from the first VRP pass.
35731 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35733         PR ipa/64776
35734         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35735         handle the first argument in the same loop as all the other arguments.
35737         PR rtl-optimization/61058
35738         * jump.c (cleanup_barriers): Update basic block boundaries
35739         if BLOCK_FOR_INSN is non-NULL on PREV.
35741 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35743         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35744         bounds narrowing, already instrumented calls and calls to
35745         not instrumentable functions.
35747 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35749         PR tree-optimization/64807
35750         * wide-int.cc (wi::divmod_internal): Clear
35751         b_dividend[dividend_blocks_needed].
35753 2015-01-26  DJ Delorie  <dj@redhat.com>
35755         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35756         volatile memory references.
35758 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
35760         PR target/49263
35761         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35762         remove_insn.
35763         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35764         shifts if it already fits into K08.
35766 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35768         PR ipa/64730
35769         * ipa-inline.c (inline_small_functions): Print "unknown" even
35770         if edge->call_stmt is non-NULL, but has builtins or unknown
35771         location.
35773         PR middle-end/64421
35774         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35775         with asterisk, skip the first character.
35777 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35779         PR target/64806
35780         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35781         order change.
35783 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
35785         PR target/64795
35786         * config/i386/i386.md (*movdi_internal): Also check operand 0
35787         to determine TYPE_LEA operand.
35788         (*movsi_internal): Ditto.
35790 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35792         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35793         OPTION_MASK_QUAD_MEMORY_ATOMIC.
35795 2015-01-26  Renlin Li  <renlin.li@arm.com>
35797         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35798         the comment.
35799         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35800         for higher part.
35802 2015-01-26  Richard Biener  <rguenther@suse.de>
35804         PR middle-end/64764
35805         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35806         combining two BIT_AND_EXPR predicates.
35808 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35810         PR bootstrap/64754
35811         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35813 2015-01-26  Terry Guo  <terry.guo@arm.com>
35815         * config/arm/arm.c (arm_file_start): Update the assignment of
35816         Tag_ABI_HardFP_use.
35818 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
35820         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35821         pipeline model.
35822         config/arm/arm.md: Include the new Cortex-A57 model.
35823         (generic_sched): Don't use generic_sched when tuning for
35824         Cortex-A57.
35826 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
35827             Uros Bizjak  <ubizjak@gmail.com>
35829         * config/i386/i386.c (get_builtin_code_for_version): Add
35830         support for BMI and BMI2 multiversion functions.
35832 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35834         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35835         (extract_bit_field): Likewise.
35836         (extract_low_bits): Likewise.
35837         (expand_mult): Likewise.
35838         (expand_mult_highpart_adjust): Likewise.
35840 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35842         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35843         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35844         * config/i386/i386.c (processor_model): Add
35845         M_INTEL_COREI7_BROADWELL.
35846         (arch_names_table): Add "broadwell".
35848 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
35850         PR target/49263
35851         PR target/53987
35852         PR target/64345
35853         PR target/59533
35854         PR target/52933
35855         PR target/54236
35856         PR target/51244
35857         * config/sh/sh-protos.h
35858         (sh_extending_set_of_reg::can_use_as_unextended_reg,
35859         sh_extending_set_of_reg::use_as_unextended_reg,
35860         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35861         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35862         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35863         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35864         (sh_treg_insns): New class.
35865         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35866         (scope_counter): New class.
35867         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35868         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35869         sh_extending_set_of_reg::can_use_as_unextended_reg,
35870         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35871         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35872         sh_split_treg_set_expr): New functions.
35873         (addsubcosts): Handle treg_set_expr.
35874         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35875         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35876         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35877         (sh_insn_operands_modified_between_p): Make non-static.
35878         * config/sh/predicates.md (zero_extend_movu_operand): Allow
35879         simple_mem_operand in addition to displacement_mem_operand.
35880         (zero_extend_operand): Don't allow zero_extend_movu_operand.
35881         (treg_set_expr, treg_set_expr_not_const01,
35882         arith_reg_or_treg_set_expr): New predicates.
35883         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35884         arith_or_int_operand instead of logical_operand.  Convert to
35885         insn_and_split.  Try to optimize constant operand in splitter.
35886         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
35887         (*tstqi_t_zero): Delete.
35888         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35889         (tstsi_t_and_not): Delete.
35890         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35891         Convert to insn_and_split.
35892         (unnamed split, tstsi_t_zero_extract_xor,
35893         tstsi_t_zero_extract_subreg_xor_little,
35894         tstsi_t_zero_extract_subreg_xor_big): Delete.
35895         (*tstsi_t_shift_mask): New insn_and_split.
35896         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35897         to recombine with surrounding insns when splitting.
35898         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35899         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35900         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35901         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35902         (*cbranch_div0s: Delete.
35903         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35904         Try to recombine with surrounding insns when splitting.  Add operand
35905         order variants.
35906         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35907         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35908         *addc_r_r_msb, *addc_2r_msb): Delete.
35909         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
35910         order variant.
35911         (*addc_negreg_t): New insn_and_split.
35912         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35913         Try to recombine with surrounding insns when splitting.
35914         Add operand order variants.
35915         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35916         insn_and_split patterns.
35917         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
35918         surrounding insns when splitting.
35919         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35920         (*rotcl): Likewise.  Add zero_extract variant.
35921         (*ashrsi2_31): New insn_and_split.
35922         (*negc): Convert to insn_and_split.  Use treg_set_expr.
35923         (*zero_extend<mode>si2_disp_mem): Update comment.
35924         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35925         condition.
35926         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
35927         with surrounding insns when splitting.
35928         (any_treg_expr_to_reg): New insn_and_split.
35929         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35930         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35931         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35932         *zero_extract_2): New single bit zero extract patterns.
35933         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35934         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35935         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35936         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35937         set destination.
35938         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35939         register_operand for set source.
35941 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
35943         * i386.opt (prefetch_sse): New targetsave.
35944         * i386.c (ix86_function_specific_save): Save prefetch_sse.
35945         (ix86_function_specific_restore): Restore prefetch_sse and initialize
35946         ix86_cost/ix86_tune_cost.
35948 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35950         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35951         Support the JIT by using 0 as the language type.
35953 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35955         PR target/64317
35956         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
35957         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35958         (mark_regno_live, process_bb_lives): Pass new parameter value to
35959         make_hard_regno_born.
35961 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35963         PR rtl-optimization/63637
35964         PR rtl-optimization/60663
35965         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35966         if elt->cost is MAX_COST for ASM_OPERANDS.
35967         (find_sets_in_insn): Fix up comment typo.
35968         (cse_insn): Don't set src_volatile for all non-volatile
35969         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35970         or with "memory" clobber.  Set elt->cost to MAX_COST
35971         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
35972         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35974 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35976         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35977         alternative 1.
35979 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35981         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35982         libgcc/config/i386/elf-lib.h.
35984 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35986         PR driver/64737
35987         * gcc.c (print_configuration): Don't print a blank line at the end
35988         here...
35989         (run_attempt): ... but here unstead.
35991         PR middle-end/64734
35992         * omp-low.c (scan_sharing_clauses): Don't ignore
35993         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35994         on target data/update constructs.
35996 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35998         PR target/50928
35999         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
36000         (DEBUG_RELOAD): Removed define.
36001         (m32c_limit_reload_class): Enable traces with if DEBUG0.
36002         (m32c_function_arg): Added a type cast.
36003         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
36004         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
36005         * config/m32c/bitops.md (andqi3_16): Likewise.
36006         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
36007         (push_a01_l): Likewise.
36009 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36011         PR jit/64721
36012         * main.c (main): Construct toplev instances with init_signals=true.
36013         * toplev.c (general_init): Add param "init_signals", and use it to
36014         conditionalize the calls to signal and host_hooks.extra_signals.
36015         (toplev::toplev): Add param "init_signals".
36016         (toplev::main): When invoking general_init, pass m_init_signals
36017         to control whether signal-handlers are installed.
36018         * toplev.h (toplev::toplev): Add param "init_signals".
36019         (toplev::m_init_signals): New field.
36021 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
36023         PR jit/64722
36024         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
36025         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
36026         latter may be affected by the former (e.g. on i686).
36028 2015-01-23  Martin Liska  <mliska@suse.cz>
36030         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
36031         false positive during profiledbootstrap.
36033 2015-01-23  Tom de Vries  <tom@codesourcery.com>
36035         PR libgomp/64672
36036         * lto-opts.c (lto_write_options): Output non-explicit conservative
36037         -fno-openacc.
36038         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
36039         (append_compiler_options): Pass -fopenacc through.
36041 2015-01-23  Tom de Vries  <tom@codesourcery.com>
36043         PR libgomp/64707
36044         * lto-opts.c (lto_write_options): Output non-explicit conservative
36045         -fno-openmp.
36046         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
36047         (append_compiler_options): Pass -fopenmp through.
36049 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
36051         PR debug/64511
36052         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
36053         GTY markup.
36055         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
36056         * diagnostic.def (DK_ICE_NOBT): New kind.
36057         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
36058         like DK_ICE, but never print backtrace.
36059         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
36060         (internal_error_no_backtrace): New function.
36061         * gcc.c (execute): Use internal_error_no_backtrace instead of
36062         internal_error.
36064 2015-01-22  Jeff Law  <law@redhat.com>
36066         PR target/52076
36067         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
36068         improve code density for small immediate to memory case.
36069         (insv): Better handle bitfield assignments when the field is
36070         being set to all ones.
36071         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
36072         operand predicate.
36074 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36075             Jakub Jelinek  <jakub@redhat.com>
36077         PR middle-end/64729
36078         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
36079         for !TARGET_LIBC_PROVIDES_SSP version and
36080         -fstack-protector-{all,strong,explicit} otherwise.
36081         * config/freebsd.h (LINK_SSP_SPEC): Handle
36082         -fstack-protector-{strong,explicit}.
36084 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
36085             H.J. Lu  <hongjiu.lu@intel.com>
36087         PR ipa/64694
36088         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
36089         heap.
36091 2015-01-22  Wei Mi  <wmi@google.com>
36093         PR rtl-optimization/64557
36094         * dse.c (record_store): Call get_addr for mem_addr.
36095         (check_mem_read_rtx): Likewise.
36097 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
36099         * fold-const.c (const_binop): Add early return for non-tcc_binary.
36101 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
36103         * toplev.c (init_local_tick): Process the failure when read
36104         fails for random_seed.
36106         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
36107         'pretty_name' to avoid memory overflow.
36109 2015-01-22  Richard Biener  <rguenther@suse.de>
36111         PR middle-end/64728
36112         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
36113         abnormal coalescing on undefined SSA names.
36115 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
36117         PR target/64688
36118         PR target/64477
36119         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
36120         for alternative 3.
36121         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
36123 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
36125         PR middle-end/63325
36126         * fold-const.c (fold_checksum_tree): Don't include value of
36127         expr->decl_with_vis.symtab_node in the checksum.
36129 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36131         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
36133 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36135         PR driver/64690
36136         * gcc.c (insert_comments): New function.
36137         (try_generate_repro): Call it.
36138         (append_text): Removed.
36140 2015-01-22  Richard Biener  <rguenther@suse.de>
36142         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
36143         with IL incompatible options.  Properly honor user optimize
36144         attributes.
36146 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
36148         PR rtl-optimization/64682
36149         * combine.c (distribute_notes): When moving a death note for
36150         a register that is set in the new I2, make sure to put it
36151         before that new I2.
36153 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
36155         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
36156         not TARGET_DEFAULT.
36158 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
36160         PR debug/64511
36161         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
36162         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
36163         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
36165         PR sanitizer/64706
36166         * doc/invoke.texi (-fsanitize=vptr): Document.
36168         PR rtl-optimization/62078
36169         * dse.c: Include cfgcleanup.h.
36170         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
36171         anything call purge_all_dead_edges and cleanup_cfg at the end
36172         of the pass.
36174 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
36176         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
36177         edges.
36179 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36181         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
36182         decl attribute.
36184 2015-01-21  David Sherwood  <david.sherwood@arm.com>
36185             Tejas Belagod <Tejas.Belagod@arm.com>
36187         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
36188         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
36189         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
36190         Removed.
36192 2015-01-21  David Sherwood  <david.sherwood@arm.com>
36193             Tejas Belagod <Tejas.Belagod@arm.com>
36195         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
36196         (aarch64_reverse_mask): New decls.
36197         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
36198         (insn_count): New mode_attr.
36199         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
36200         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
36201         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
36202         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
36203         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
36204         (aarch64_simd_st4): New patterns.
36205         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
36206         (aarch64_reverse_mask): New functions.
36208 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
36210         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
36211         Declare.
36212         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
36213         addressing modes for BE.
36214         (aarch64_print_operand): Add 'R' specifier.
36215         (aarch64_simd_disambiguate_copy): Delete.
36216         (aarch64_simd_emit_reg_reg_move): New function.
36217         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
36218         in define_splits for structural moves.
36219         (mov<mode>): Use less restrictive predicates.
36220         (*aarch64_mov<mode>): Simplify and only allow for LE.
36221         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
36223 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
36225         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
36227 2015-01-21  Richard Henderson  <rth@redhat.com>
36229         PR target/64669
36230         * ccmp.c (used_in_cond_stmt_p): Remove.
36231         (expand_ccmp_expr): Don't use it.
36233 2015-01-21  Nick Clifton  <nickc@redhat.com>
36235         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
36236         PARALLELs.
36238 2015-01-21  Richard Biener  <rguenther@suse.de>
36240         PR middle-end/64313
36241         * tree-core.h (builtin_info, builtin_info_type): Turn from
36242         an object with two arrays into an array of an object with
36243         decl and two flags, implicit_p and declared_p.
36244         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
36245         set_builtin_decl, set_builtin_decl_implicit_p,
36246         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
36247         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
36248         * builtins.c (builtin_info): Adjust.
36249         * gimplify.c (gimplify_addr_expr): References to builtins
36250         that have been declared by the user makes them eligible for
36251         use by the compiler.  Call set_builtin_decl_implicit_p on them.
36253 2015-01-20  Jeff Law  <law@redhat.com>
36255         PR target/59946
36256         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
36257         allow pc-relative addresses in operand predicates or constraints.
36259 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
36261         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
36262         neon on aarch32 processors for stringops.
36264 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36266         PR ipa/63576
36267         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
36269 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36271         PR lto/45375
36272         * ipa-inline.c: Include lto-streamer.h
36273         (report_inline_failed_reason): Output source file differences and
36274         flags on optimization/target node mismatch.
36275         (can_inline_edge_p): Consider caller to be the outer inline function;
36276         be less restrictive about matching opimize and optimize_size attributes.
36277         (inline_account_function_p): Break out from ...
36278         (inline_small_functions): ... here.
36279         * ipa-inline-transform.c (clone_inlined_nodes): Use
36280         inline_account_function_p.
36281         (inline_call): Use optimize attribution; use inline_account_function_p.
36282         (inline_transform): Use opt_for_fn.
36283         * ipa-inline.h (inline_account_function_p): Declare.
36285 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
36287         PR debug/64663
36288         * dwarf2out.c (decl_piece_node): Don't put bitsize into
36289         mode if bitsize <= 0.
36290         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
36291         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
36292         sizes and positions.
36294 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
36296         * config/nios2/nios2.c (nios2_asm_file_end): Implement
36297         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
36298         needed.
36299         (TARGET_ASM_FILE_END): Define.
36301 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36303         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
36304         (struct tune_params): Use the enum.
36305         * arm.c (arm_*_tune): Update.
36306         (arm_option_override): Update.
36308 2015-01-20  Richard Biener  <rguenther@suse.de>
36310         PR ipa/64684
36311         * ipa-reference.c (add_static_var): Inline ...
36312         (analyze_function): ... here after splitting out from ...
36313         (is_proper_for_analysis): ... this.
36315 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
36317         PR target/64149
36318         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
36319         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
36320         replace the conditional with it's true branch.
36321         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
36322         (arm_lra_p): Remove.
36324 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
36326         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
36328 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36330         * config/tilegx/mul-tables.c: Move symtab.h include after
36331         coretypes.h include.
36332         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
36333         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
36334         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
36335         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
36336         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36338 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
36340         PR bootstrap/64676
36341         Revert:
36342         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36344         PR rtl-optimization/64081
36345         * loop-iv.c (def_pred_latch_p): New function.
36346         (latch_dominating_def): Allow specific cases with non-single
36347         definitions.
36348         (iv_get_reaching_def): Likewise.
36349         (check_complex_exit_p): New function.
36350         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36351         with exits not executing on any iteration.
36353 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36355         PR lto/45375
36356         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
36357         to set branch cost.
36359 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36361         PR lto/45375
36362         * i386.c (gate): Check flag_expensive_optimizations and
36363         optimize_size.
36364         (ix86_option_override_internal): Drop optimize_size condition
36365         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
36366         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
36367         MASK_PREFER_AVX128.
36368         (ix86_avx256_split_vector_move_misalign,
36369         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
36370         * sse.md (all uses of TARGET_PREFER_AVX128): Add
36371         optimize_insn_for_speed_p check.
36373 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
36375         * config/mips/mips.h (FP_ASM_SPEC): New define.
36376         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36377         instead.
36379 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
36381         PR target/53988
36382         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36383         nullptr for insn when reaching the first insn.
36384         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36385         (sh_insn_operands_modified_between_p): Add nullptr check.
36386         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
36387         sign extending mem load if the insn contains any UNSPEC or
36388         UNSPEC_VOLATILE.
36390 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36392         * params.def (inline-unit-growth): Drop to 15%.
36393         * invoke.texi (inline-unit-growth): Document change.
36395 2015-01-19  Martin Liska  <mliska@suse.cz>
36397         PR ipa/64668
36398         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36399         function for second argument of OBJ_TYPE_REF.
36401 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36403         PR ipa/64218
36404         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36405         whether function is an alias.
36407 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
36409         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36410         cases.
36412 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
36414         PR rtl-optimization/64671
36415         * lra-remat.c (operand_to_remat): Don't consider jump and call
36416         insns.
36418 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
36420         PR target/59828
36421         * config/rs6000/default64.h: Include rs6000-cpus.def.
36422         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36423         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36424         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36425         and POWER8.
36426         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36427         POWER8.
36428         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36429         pseudo-op to specify assembler dialect.
36431 2015-01-19  Martin Liska  <mliska@suse.cz>
36433         PR ipa/64664
36434         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36435         Handle safe potentially removed nodes during filtering.
36437 2015-01-19  Martin Liska  <mliska@suse.cz>
36439         * doc/extend.texi (no_icf): Add new attribute description.
36440         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36441         where the pass attempts to merge a function with no_icf attribute.
36443 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36445         PR target/64532
36446         * doc/md.texi (ARM Options): Document register constraints.
36448 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
36449             Andrew Pinski  <apinski@cavium.com>
36451         PR target/64304
36452         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36453         (ashl<mode>3): Don't expand if operands[2] is not constant.
36455 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36457         PR target/64448
36458         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36459         Match xor-and-xor RTL pattern.
36461 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
36463         PR rtl-optimization/64081
36464         * loop-iv.c (def_pred_latch_p): New function.
36465         (latch_dominating_def): Allow specific cases with non-single
36466         definitions.
36467         (iv_get_reaching_def): Likewise.
36468         (check_complex_exit_p): New function.
36469         (check_simple_exit): Use check_complex_exit_p to allow certain cases
36470         with exits not executing on any iteration.
36472 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
36474         * common.opt (fgraphite): Fix a typo.
36476 2015-01-19  Felix Yang  <felix.yang@huawei.com>
36478         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
36479         pattern.
36480         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
36481         uminp, smax_nanp, smin_nanp): New builtins.
36482         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36483         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
36484         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
36485         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
36486         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
36487         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
36488         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
36489         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
36490         vpminnms_f32): Rewrite using builtin functions.
36492 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
36494         PR libgomp/64625
36495         * omp-low.c (offload_symbol_decl): Remove variable.
36496         (get_offload_symbol_decl): Remove function.
36497         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
36498         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
36499         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
36500         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
36501         BUILT_IN_GOACC_UPDATE don't pass it at all.
36503 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36505         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
36506         callers.
36508 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36510         * ipa-chkp.c (chkp_produce_thunks): Add early param
36511         to split thunks production into two passes.  Keep
36512         'always_inline' function bodies after the first pass.
36513         (pass_data_ipa_chkp_early_produce_thunks): New.
36514         (pass_ipa_chkp_early_produce_thunks): New.
36515         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36516         chkp_produce_thunks signature.
36517         (make_pass_ipa_chkp_early_produce_thunks): New.
36518         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36519         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36520         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36522 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36524         * cgraph.c (cgraph_node::dump): Dump profile flags.
36526 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
36528         PR target/64652
36529         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36530         reg appear first in the parallel.
36532 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36534         * ipa-reference.c (set_reference_optimization_summary,
36535         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36536         disabled.
36537         (ignore_module_statics): New static var.
36538         (propagate_bits): If ipa-reference is disabled, do not look into local
36539         properties.
36540         (analyze_function): Disable analysis when ipa_reference is disabled.
36541         (generate_summary): Do not dump when reference is disabled;
36542         collect vars accessed from functions with ipa-reference disabled.
36543         (get_read_write_all_from_node): When ipa-reference is disabled, use the
36544         node flags.
36545         (gate): Enable for LTO.
36546         (ignore_edge_p): New function.
36547         (propagate): Skip functions w/o ipa-reference analysis.
36548         * optc-save-gen.awk: Handle optimize_debug correctly.
36549         * opth-gen.awk: Likewise.
36550         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36551         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36552         fira-share-save-slots, fira-share-spill-slots,
36553         fmodulo-sched-allow-regmoves, fpartial-inlining,
36554         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36555         ftracer, ftree-parallelize-loops, fassociative-math,
36556         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36557         Optimization
36558         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36559         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36560         Optimization.
36561         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36562         Fix for IPA.
36564 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36566         PR ipa/64378
36567         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36568         flag correctly.
36569         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36571 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
36573         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36574         Remove duplicate option listings.
36576 2015-01-18  Felix Yang  <felix.yang@huawei.com>
36578         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36579         (autofdo_source_profile::get_callsite_total_count,
36580         function_instance::get_function_instance_by_decl,
36581         string_table::get_index, string_table::get_index_by_decl,
36582         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36583         Fix comment typos. Reformatting and minor code rearrangement.
36585 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36587         * config/rs6000/rs6000.md (probe_stack): Delete.
36588         (probe_stack_address): New.
36590 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36592         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36593         to test for 32-bit ABIs, not !TARGET_POWERPC64.
36595 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36597         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36598         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
36599         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
36600         snafu.
36601         (rs6000_libcall_value): Use the new function.
36603 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
36605         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36607 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
36609         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36610         implement a more precise life analysis for it during backward scan.
36612 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
36614         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36616 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
36618         PR rtl-optimization/52773
36619         * calls.c (emit_library_call_value): When pushing arguments use
36620         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36621         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
36622         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36624 2015-01-17  Jeff Law  <law@redhat.com>
36626         PR rtl-optimization/32790
36627         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36628         not ZERO_EXTEND in SET_DESTs.
36630 2015-01-17  Alan Modra  <amodra@gmail.com>
36632         * cprop.c (do_local_cprop): Revert last change.
36634 2015-01-16  DJ Delorie  <dj@redhat.com>
36635             Nick Clifton  <nickc@redhat.com>
36637         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36638         (addhi3_real): Likewise.  Fix [HL+0] syntax.
36639         (subqi3_real): Likewise.
36640         (subhi3_real): Likewise.
36641         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
36642         (cbranchhi4_real): Likewise.
36643         (cbranchhi4_real_inverted): Likewise.
36644         (cbranchsi4_real_lt): Likewise.
36645         (cbranchsi4_real_ge): Likewise.
36646         (cbranchsi4_real_ge): Likewise.
36647         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36648         (sub<mode>3_virt): Likewise.
36649         (cbranchqi4_virt): Likewise.
36650         (cbranchhi4_virt): Likewise.
36651         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36652         always use '[reg+imm]' even when imm is zero.
36653         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36654         (rl78_general_operand): New.
36655         (rl78_nonimmediate_operand): New.
36656         (rl78_nonfar_operand): Use them.
36657         (rl78_nonfar_nonimm_operand): Likewise.
36658         (rl78_stack_based_mem): Fix.
36659         * config/rl78/constraints.md (Ibqi): New.
36660         (IBqi): New.
36661         (Wsa): New.
36662         (Wsf): New.
36663         (Cs1): Fix.
36664         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36665         (iorqi3): Likewise.
36666         (xorqi3): Likewise.
36667         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36669         * config/rl78/constrains (Qs8): New constraint.
36670         * config/rl78/rl78.c (rl78_flags_already_set): New function.
36671         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36672         * config/rl78/rl78-real.md (update_Z): New attribute.
36673         Update patterns to set it.
36674         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36675         shorter compare and branch sequence can be used.
36676         (cbranchhi4_real): Likewise.
36677         (cbranchhi4_real_inverted): Likewise.
36679         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36680         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36681         address space.
36682         * config/rl78/rl78.c (rl78_get_name_encoding): New.
36683         (rl78_option_override): Allow -mes0 only if C.
36684         (characterize_address): Support subregs of symbol_refs.
36685         (rl78_addr_space_address_mode): Move.  Add __near.
36686         (rl78_far_p): Likewise.
36687         (rl78_addr_space_pointer_mode): Likewise.
36688         (rl78_as_legitimate_address): Likewise.
36689         (rl78_addr_space_subset_p): Likewise.
36690         (rl78_addr_space_convert): Likewise.
36691         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36692         symbols with -mes0.
36693         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
36694         addressing.
36695         (rl78_alloc_physical_registers_op1): Change logic to prefer
36696         symbol[BC] addressing.
36697         (frodata_section): New.
36698         (rl78_asm_init_sections): Initialize it.
36699         (rl78_select_section): Put __far readonly symbols in .frodata.
36700         (rl78_make_type_far): New.
36701         (rl78_insert_attributes): Force all readonly symbols to be
36702         __far when -mes0.
36703         (rl78_asm_out_integer): New.
36704         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36705         * config/rl78/rl78.opt (-mes0): New.
36707         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36708         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36709         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36710         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36711         (rl78_saddr_p): New.
36712         (rl78_output_aligned_common): New.
36713         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36714         (rl78_handle_saddr_attribute): New.
36715         (rl78_handle_naked_attribute): New.
36716         (rl78_attribute_table): Add saddr.
36717         (rl78_print_operand_1): Don't print '!' on saddr operands.
36718         (rl78_print_operand_1): Strip encodings.
36719         (rl78_sfr_p): New.
36720         (rl78_strip_name_encoding): New.
36721         (rl78_attrlist_to_encoding): New.
36722         (rl78_encode_section_info): New.
36723         (rl78_asm_init_sections): New.
36724         (rl78_select_section): New.
36725         (rl78_output_labelref): New.
36726         (rl78_output_aligned_common): New.
36727         (rl78_asm_out_integer): New.
36728         (rl78_asm_ctor_dtor): New.
36729         (rl78_asm_constructor): New.
36730         (rl78_asm_destructor): New.
36732         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36733         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36734         (transcode_memory_rtx): Update.
36735         (rl78_expand_epilogue): Use A_REG instead of 0.
36737 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36739         * config/arm/arm-protos.h (struct tune_params): New field
36740         sched_autopref_queue_depth.
36741         * config/arm/arm.c (sched-int.h): Include header.
36742         (arm_first_cycle_multipass_dfa_lookahead_guard,)
36743         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36744         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36745         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36746         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36747         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36748         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36749         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36750         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
36751         * config/arm/t-arm (arm.o): Update.
36752         * haifa-sched.c (update_insn_after_change): Update.
36753         (rank_for_schedule): Use auto-prefetcher model, if requested.
36754         (autopref_multipass_init): New static function.
36755         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36756         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36757         variable for debug dumps.
36758         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36759         (autopref_multipass_dfa_lookahead_guard): New global function that
36760         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36761         (init_h_i_d): Update.
36762         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36763         * sched-int.h (enum autopref_multipass_data_status): New const enum.
36764         (autopref_multipass_data_): Structure for auto-prefetcher data.
36765         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36766         (struct _haifa_insn_data:autopref_multipass_data): New field.
36767         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36768         (autopref_multipass_dfa_lookahead_guard): Declare.
36770 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36772         * rtlanal.c (get_base_term): Handle SCRATCH.
36774 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36776         * config/aarch64/aarch64.c
36777         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36778         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36779         * config/arm/arm.c
36780         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36781         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36783 2015-01-17  Alan Modra  <amodra@gmail.com>
36785         * cprop.c (do_local_cprop): Disallow replacement of fixed
36786         hard registers.
36788 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36790         PR target/62066
36791         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36792         early return 0.
36794 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36796         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36797         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36799 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36801         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36802         * config/arm/thumb1.md: ... Here.
36804 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36806         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36807         TImode for TARGET_32BIT.
36809 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36811         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36812         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36813         as ...
36814         (rs6000_abi_word_mode): New function.
36816 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36818         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36819         instead of UNITS_PER_WORD to describe the size of stack slots.
36821 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36823         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36824         as rs6000_promote_function_mode.  Move comment to there.
36825         (rs6000_promote_function_mode): New function.
36827 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36829         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36830         -mpowerpc64 is active.
36832 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36834         PR middle-end/64353
36835         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36836         virtuals on start.
36838 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36840         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36841         introduced in revision 219724.
36843 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36844             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36846         PR target/64263
36847         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36848         destination is not a GP reg.
36849         (*movdi_aarch64): Likewise.
36851 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
36853         PR target/64623
36854         * config/rs6000/default64.h: Revert ISA change.
36856 2015-01-16  Richard Biener  <rguenther@suse.de>
36858         PR middle-end/64614
36859         * tree-ssa-uninit.c: Include tree-cfg.h.
36860         (MAX_SWITCH_CASES): New define.
36861         (convert_control_dep_chain_into_preds): Handle switch statements.
36862         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36863         (normalize_one_pred_1): Do not split bit-manipulations.
36864         Record (x & CST).
36866 2015-01-16  Richard Biener  <rguenther@suse.de>
36868         PR tree-optimization/64568
36869         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36870         complex load rewriting for TARGET_MEM_REFs.
36872 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
36874         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36876 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
36878         PR target/64149
36879         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36880         variable.
36881         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36882         (aarch64_lra_p): Remove.
36884 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36886         PR target/64363
36887         * ipa-chkp.h (chkp_instrumentable_p): New.
36888         * ipa-chkp.c: Include tree-inline.h.
36889         (chkp_instrumentable_p): New.
36890         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36891         Fix processing of not instrumentable functions.
36892         (chkp_versioning): Use chkp_instrumentable_p. Warn about
36893         not instrumentable functions.
36894         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36895         chkp_instrumentable_p.
36896         * tree-inline.h (copy_forbidden): New.
36897         * tree-inline.c (copy_forbidden): Not static anymore.
36899 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36901         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36902         ptr1, ptr2 unused.
36904 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36906         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36907         type OP_OUT to OP_INOUT.
36909 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36911         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36912         (high x) y) to y if x and y have the same base.
36914 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36916         * config/arm/cortex-a57.md: New.
36917         * config/aarch64/aarch64.md: Include it.
36918         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36919         * config/aarch64/aarch64-tune.md: Regenerate.
36921 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
36923         PR target/64015
36924         * ccmp.c (expand_ccmp_next): New function.
36925         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36926         and compare insn sequence.
36927         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36928         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36929         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36930         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36931         (*ccmp_ior): Changed to ccmp_ior<mode>.
36932         (cmp<mode>): New pattern.
36933         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36934         parameters.
36935         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36937 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
36939         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36940         _mm256_bsrli_epi128): New.
36941         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36943 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36945         * expmed.c (store_bit_field_using_insv): Improve warning message.
36946         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36948 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36950         PR rtl-optimization/64011
36951         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36952         there is partial overflow.
36954 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36956         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36957         prototype.
36958         (nds32_expand_epilogue_v3pop): Likewise.
36959         * config/nds32/nds32.md (sibcall): Define this for sibling call
36960         optimization.
36961         (sibcall_register): Likewise.
36962         (sibcall_immediate): Likewise.
36963         (sibcall_value): Likewise.
36964         (sibcall_value_register): Likewise.
36965         (sibcall_value_immediate): Likewise.
36966         (sibcall_epilogue): Likewise.
36967         (epilogue): Pass false to indicate this is not a sibcall epilogue.
36968         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36969         (nds32_expand_epilogue_v3pop): Likewise.
36971 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36973         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36974         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36975         (return_internal): New.
36976         (return): Define this named pattern.
36977         (simple_return): Define this named pattern.
36978         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36979         pattern instead of unspec_volatile_func_return.
36980         (nds32_expand_epilogue_v3pop): Likewise.
36981         (nds32_can_use_return_insn): New function.
36983 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36985         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36986         * config/nds32/nds32.md (pop25return): New.
36987         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36988         pop25return pattern.
36990 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36992         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36993         -mforbid-fp-as-gp, and -mex9 options.
36995 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36997         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36998         remove -mgp-direct option.
37000 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37002         * doc/invoke.texi (--param early-inlining-insns): Update default value.
37003         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
37005 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37007         * ipa-inline.c (inline_small_functions): Work around hints
37008         cache issue.
37010 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
37012         PR target/59710
37013         * doc/invoke.texi (Option Summary): Document new Nios II
37014         -mgpopt= syntax.
37015         (Nios II Options): Likewise.
37016         * config/nios2/nios2.opt: Add -mgpopt= option support.
37017         Modify existing -mgpopt and -mno-gpopt options to be aliases.
37018         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
37019         * config/nios2/nios2.c (nios2_option_override): Adjust
37020         -mgpopt defaulting.
37021         (nios2_in_small_data_p): Return true for explicit small data
37022         sections even with -G0.
37023         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
37024         option choices.
37026 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37028         PR ipa/64612
37029         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
37030         of comdat locals.
37031         (inline_call): Fix removal of aliases.
37033 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
37035         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
37036         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
37037         * opts.c (common_handle_option): Add -fsanitize=vptr.
37038         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
37039         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
37040         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
37041         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
37042         (ubsan_expand_vptr_ifn): New prototype.
37043         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
37044         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
37045         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
37046         expand_LOOP_VECTORIZED): Make argument nameless, remove
37047         ATTRIBUTE_UNUSED.
37048         (expand_UBSAN_VPTR): New function.
37049         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
37050         in fn spec.
37051         (UBSAN_VPTR): New internal function.
37052         * sanopt.c (tree_map_traits): Renamed to ...
37053         (sanopt_tree_map_traits): ... this.
37054         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
37055         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
37056         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
37057         (maybe_optimize_ubsan_vptr_ifn): New function.
37058         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
37059         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
37060         -fsanitize=vptr.
37061         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
37062         internal calls like pure functions for aliasing, even when they
37063         have other side-effects that prevent making them ECF_PURE.
37064         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
37065         (ubsan_expand_vptr_ifn): New function.
37067 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
37069         PR rtl-optimization/64110
37070         * stmt.c (parse_output_constraint): Process '^' and '$'.
37071         (parse_input_constraint): Ditto.
37072         * lra-constraints.c (process_alt_operands): Process the new
37073         constraints.
37074         * ira-costs.c (record_reg_classes): Process the new constraint
37075         '^'.
37076         * genoutput.c (indep_constraints): Add '^' and '$'.
37077         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
37078         * doc/md.texi: Add description of the new constraints.
37080 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
37081             Bernd Schmidt  <bernds@codesourcery.com>
37082             Cesar Philippidis  <cesar@codesourcery.com>
37083             James Norris  <jnorris@codesourcery.com>
37084             Tom de Vries  <tom@codesourcery.com>
37085             Ilmir Usmanov  <i.usmanov@samsung.com>
37086             Dmitry Bocharnikov  <dmitry.b@samsung.com>
37087             Evgeny Gavrin  <e.gavrin@samsung.com>
37088             Jakub Jelinek  <jakub@redhat.com>
37090         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
37091         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37092         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37093         New function types.
37094         * builtins.c: Include "gomp-constants.h".
37095         (expand_builtin_acc_on_device): New function.
37096         (expand_builtin, is_inexpensive_builtin): Handle
37097         BUILT_IN_ACC_ON_DEVICE.
37098         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
37099         New macros.
37100         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
37101         flag_openmp.
37102         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
37103         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
37104         i386/intelmic-offload.h.
37105         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
37106         to libgomp and its dependencies.
37107         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
37108         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
37109         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
37110         * config/ia64/hpux.h (LIB_SPEC): Likewise.
37111         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37112         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
37113         * doc/generic.texi: Update for OpenACC changes.
37114         * doc/gimple.texi: Likewise.
37115         * doc/invoke.texi: Likewise.
37116         * doc/sourcebuild.texi: Likewise.
37117         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
37118         GF_OMP_FOR_KIND_OACC_LOOP.
37119         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
37120         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
37121         GF_OMP_TARGET_KIND_OACC_UPDATE,
37122         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37123         Dump more data.
37124         * gimple.c: Update comments for OpenACC changes.
37125         * gimple.def: Likewise.
37126         * gimple.h: Likewise.
37127         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
37128         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37129         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
37130         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37131         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
37132         appropriate place.
37133         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
37134         * gimplify.c: Include "gomp-constants.h".
37135         Update comments for OpenACC changes.
37136         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
37137         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
37138         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37139         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
37140         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37141         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37142         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
37143         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37144         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
37145         OMP_CLAUSE_SEQ.
37146         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
37147         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
37148         OMP_CLAUSE_SET_MAP_KIND.
37149         (gimplify_oacc_cache): New function.
37150         (gimplify_omp_for): Handle OACC_LOOP.
37151         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
37152         OACC_DATA.
37153         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
37154         OACC_EXIT_DATA, OACC_UPDATE.
37155         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
37156         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
37157         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
37158         (gimplify_body): Consider flag_openacc next to flag_openmp.
37159         * lto-streamer-out.c: Include "gomp-constants.h".
37160         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
37161         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
37162         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
37163         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
37164         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
37165         (BUILT_IN_ACC_ON_DEVICE): New builtins.
37166         * omp-low.c: Include "gomp-constants.h".
37167         Update comments for OpenACC changes.
37168         (struct omp_context): Add reduction_map, gwv_below, gwv_this
37169         members.
37170         (extract_omp_for_data, use_pointer_for_field, install_var_field)
37171         (new_omp_context, delete_omp_context, scan_sharing_clauses)
37172         (create_omp_child_function, scan_omp_for, scan_omp_target)
37173         (check_omp_nesting_restrictions, lower_reduction_clauses)
37174         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
37175         Update for OpenACC changes.
37176         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
37177         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
37178         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
37179         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37180         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
37181         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
37182         OMP_CLAUSE_MAP_*.
37183         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
37184         Handle GF_OMP_FOR_KIND_OACC_LOOP.
37185         (expand_omp_target, lower_omp_target): Handle
37186         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37187         GF_OMP_TARGET_KIND_OACC_UPDATE,
37188         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
37189         GF_OMP_TARGET_KIND_OACC_DATA.
37190         (pass_expand_omp::execute, execute_lower_omp)
37191         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
37192         flag_openmp.
37193         (offload_symbol_decl): New variable.
37194         (oacc_get_reduction_array_id, oacc_max_threads)
37195         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
37196         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
37197         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
37198         (oacc_gimple_assign, oacc_initialize_reduction_data)
37199         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
37200         functions.
37201         (is_targetreg_ctx): Remove function.
37202         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
37203         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
37204         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37205         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
37206         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
37207         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
37208         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
37209         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
37210         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
37211         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
37212         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
37213         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
37214         * tree-core.h: Update comments for OpenACC changes.
37215         (enum omp_clause_map_kind): Remove.
37216         (struct tree_omp_clause): Change type of map_kind member from enum
37217         omp_clause_map_kind to unsigned char.
37218         * tree-inline.c: Update comments for OpenACC changes.
37219         * tree-nested.c: Likewise.  Include "gomp-constants.h".
37220         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
37221         (convert_tramp_reference_stmt, convert_gimple_call): Update for
37222         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
37223         OMP_CLAUSE_SET_MAP_KIND.
37224         * tree-pretty-print.c: Include "gomp-constants.h".
37225         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
37226         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
37227         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
37228         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
37229         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37230         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
37231         instead of OMP_CLAUSE_MAP_*.
37232         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
37233         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
37234         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37235         * tree-streamer-in.c: Include "gomp-constants.h".
37236         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
37237         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
37238         * tree-streamer-out.c: Include "gomp-constants.h".
37239         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
37240         OMP_CLAUSE_MAP_*.
37241         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
37242         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
37243         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
37244         * tree.c (omp_clause_num_ops): Update accordingly.
37245         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
37246         Likewise.
37247         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
37248         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
37249         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
37250         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
37251         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
37252         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
37253         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
37254         (OMP_CLAUSE_SET_MAP_KIND): New macro.
37255         * varpool.c (varpool_node::get_create): Consider flag_openacc next
37256         to flag_openmp.
37257         * config/i386/intelmic-offload.h: New file.
37258         * config/nvptx/offload.h: Likewise.
37260 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37262         * explow.h: Remove duplicate contents.
37263         * dojump.h: Likewise.
37265 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
37267         * arm.c (arm_xgene_tune): Add default initializer for instruction
37268         fusion.
37270 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
37272         PR ipa/64068
37273         PR ipa/64559
37274         * ipa.c (symbol_table::remove_unreachable_nodes):
37275         Do not put abstract origins into boundary.
37277 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
37279         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
37280         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
37282 2015-01-15  Steve Ellcey  <sellcey@mips.com>
37284         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
37285         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
37286         builtins.def, and chkp-builtins.def.
37288 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
37290         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
37291         ISA 2.7 (POWER8).
37293 2015-01-15  Richard Biener  <rguenther@suse.de>
37295         PR tree-optimization/61743
37296         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
37297         information on PHIs for some simple cases.
37299 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37301         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
37302         Include xgene1.md.
37303         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
37304         * config/arm/arm-cores.def (xgene1): New entry.
37305         * config/arm/arm-tables.opt: Regenerate.
37306         * config/arm/arm-tune.md: Regenerate.
37307         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
37309 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
37311         * tree-if-conv.c: Include hash-map.h.
37312         (aggressive_if_conv): New variable.
37313         (fold_build_cond_expr): Add simplification of non-zero condition.
37314         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
37315         destination block is not always executed.
37316         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
37317         than two predecessors if AGGRESSIVE_IF_CONV is true.
37318         (if_convertible_stmt_p): Fix commentary.
37319         (all_preds_critical_p): New function.
37320         (has_pred_critical_p): New function.
37321         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
37322         BB can have more than two predecessors and all incoming edges can be
37323         critical.
37324         (predicate_bbs): Skip predication for loop exit block, use build2_loc
37325         to compute predicate for true edge.
37326         (find_phi_replacement_condition): Delete this function.
37327         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
37328         Allow interchange PHI arguments if EXTENDED is false.
37329         Change check that block containing reduction statement candidate
37330         is predecessor of phi-block since phi may have more than two arguments.
37331         (phi_args_hash_traits): New helper structure.
37332         (struct phi_args_hash_traits): New type.
37333         (phi_args_hash_traits::hash): New function.
37334         (phi_args_hash_traits::equal_keys): New function.
37335         (gen_phi_arg_condition): New function.
37336         (predicate_scalar_phi): Add handling of phi nodes with more than two
37337         arguments, delete COND and TRUE_BB arguments, insert body of
37338         find_phi_replacement_condition to predicate ordinary phi nodes.
37339         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
37340         delete call of find_phi_replacement_condition and invoke
37341         predicate_scalar_phi with two arguments.
37342         (insert_gimplified_predicates): Add assert that non-predicated block
37343         don't have statements to insert.
37344         (ifcvt_split_critical_edges): New function.
37345         (ifcvt_split_def_stmt): Likewise.
37346         (ifcvt_walk_pattern_tree): Likewise.
37347         (stmt_is_root_of_bool_pattern): Likewise.
37348         (ifcvt_repair_bool_pattern): Likewise.
37349         (ifcvt_local_dce): Likewise.
37350         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
37351         is copy of inner or outer loop force_vectorize field, invoke
37352         ifcvt_split_critical_edges, ifcvt_local_dce and
37353         ifcvt_repair_bool_pattern for aggressive if-conversion.
37355 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
37357         * config/aarch64/aarch64.md: Include xgene1.md.
37358         * config/aarch64/xgene1.md: New file.
37360 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
37362         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
37363         xgene1 (APM XGene-1) core definition.
37364         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
37365         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
37366         * doc/invoke.texi: Document -mcpu=xgene1.
37368 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37370         * dojump.h: New header file.
37371         * explow.h: Likewise.
37372         * expr.h: Remove includes.
37373         Move expmed.c prototypes to expmed.h.
37374         Move dojump.c prototypes to dojump.h.
37375         Move alias.c prototypes to alias.h.
37376         Move explow.c prototypes to explow.h.
37377         Move calls.c prototypes to calls.h.
37378         Move emit-rtl.c prototypes to emit-rtl.h.
37379         Move varasm.c prototypes to varasm.h.
37380         Move stmt.c prototypes to stmt.h.
37381         (saved_pending_stack_adjust): Move to dojump.h.
37382         (adjust_address): Move to explow.h.
37383         (adjust_address_nv): Move to emit-rtl.h.
37384         (adjust_bitfield_address): Likewise.
37385         (adjust_bitfield_address_size): Likewise.
37386         (adjust_bitfield_address_nv): Likewise.
37387         (adjust_automodify_address_nv): Likewise.
37388         * explow.c (expr_size): Move to expr.c.
37389         (int_expr_size): Likewise.
37390         (tree_expr_size): Likewise.
37391         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37392         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37393         * genemit.c (main): Generate includes statistics.h, real.h,
37394         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37395         stmt.h.
37396         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37397         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37398         explow.h, emit-rtl.h, stmt.h.
37399         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37400         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37401         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37402         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37403         emit-rtl.h, varasm.h, stmt.h.
37404         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37405         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37406         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37407         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37408         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37409         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37410         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37411         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37412         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37413         tm.h tree.h varasm.h vec.h wide-int.h.
37414         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37415         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37416         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37417         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37418         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37419         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37420         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37421         * loop-iv.c: Likewise.
37422         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37423         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37424         statistics.h stmt.h tree.h varasm.h wide-int.h.
37425         * lra-constraints.c: Likewise.
37426         * lra-eliminations.c: Likewise.
37427         * lra-lives.c: Likewise.
37428         * lra-remat.c: Likewise.
37429         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37430         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37431         statistics.h stmt.h tree.h varasm.h wide-int.h.
37432         * hw-doloop.c: Likewise.
37433         * ira-color.c: Likewise.
37434         * ira-emit.c: Likewise.
37435         * loop-doloop.c: Likewise.
37436         * loop-invariant.c: Likewise.
37437         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37438         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37439         statistics.h stmt.h tree.h varasm.h wide-int.h.
37440         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37441         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37442         statistics.h stmt.h tree.h varasm.h wide-int.h.
37443         * combine-stack-adj.c: Likewise.
37444         * cse.c: Likewise.
37445         * ddg.c: Likewise.
37446         * ifcvt.c: Likewise.
37447         * ira-costs.c: Likewise.
37448         * jump.c: Likewise.
37449         * lra-coalesce.c: Likewise.
37450         * lra-spills.c: Likewise.
37451         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37452         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37453         stmt.h varasm.h wide-int.h.
37454         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37455         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37456         varasm.h.
37457         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37458         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37459         statistics.h stmt.h varasm.h wide-int.h.
37460         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37461         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37462         varasm.h wide-int.h.
37463         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37464         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37465         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37466         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37467         statistics.h stmt.h.
37468         * config/tilepro/tilepro.c: Likewise.
37469         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37470         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
37471         * config/pdp11/pdp11.c: Likewise.
37472         * config/xtensa/xtensa.c: Likewise.
37473         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
37474         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37475         varasm.h.
37476         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37477         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37478         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
37479         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37480         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37481         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
37482         * rtl-chkp.c: Likewise.
37483         * tree-chkp-opt.c: Likewise.
37484         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
37485         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37486         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
37487         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37488         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37489         statistics.h stmt.h.
37490         * tree-vect-data-refs.c: Likewise.
37491         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
37492         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37493         rtl.h statistics.h stmt.h varasm.h.
37494         * internal-fn.c: Likewise.
37495         * ipa-icf-gimple.c: Likewise.
37496         * lto-section-out.c: Likewise.
37497         * tree-data-ref.c: Likewise.
37498         * tree-nested.c: Likewise.
37499         * tree-outof-ssa.c: Likewise.
37500         * tree-predcom.c: Likewise.
37501         * tree-pretty-print.c: Likewise.
37502         * tree-scalar-evolution.c: Likewise.
37503         * tree-ssa-strlen.c: Likewise.
37504         * tree-vect-loop.c: Likewise.
37505         * tree-vect-patterns.c: Likewise.
37506         * tree-vect-slp.c: Likewise.
37507         * tree-vect-stmts.c: Likewise.
37508         * tsan.c: Likewise.
37509         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37510         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37511         stmt.h.
37512         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37513         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37514         statistics.h stmt.h varasm.h.
37515         * loop-unroll.c: Likewise.
37516         * ubsan.c: Likewise.
37517         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37518         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37519         stmt.h varasm.h.
37520         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37521         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37522         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37523         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37524         statistics.h stmt.h.
37525         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37526         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37527         statistics.h stmt.h varasm.h.
37528         * gimple-match-head.c: Likewise.
37529         * lto-cgraph.c: Likewise.
37530         * lto-section-in.c: Likewise.
37531         * lto-streamer-in.c: Likewise.
37532         * lto-streamer-out.c: Likewise.
37533         * tree-affine.c: Likewise.
37534         * tree-cfg.c: Likewise.
37535         * tree-cfgcleanup.c: Likewise.
37536         * tree-if-conv.c: Likewise.
37537         * tree-into-ssa.c: Likewise.
37538         * tree-ssa-alias.c: Likewise.
37539         * tree-ssa-copyrename.c: Likewise.
37540         * tree-ssa-dse.c: Likewise.
37541         * tree-ssa-forwprop.c: Likewise.
37542         * tree-ssa-live.c: Likewise.
37543         * tree-ssa-math-opts.c: Likewise.
37544         * tree-ssa-pre.c: Likewise.
37545         * tree-ssa-sccvn.c: Likewise.
37546         * tree-tailcall.c: Likewise.
37547         * tree-vect-generic.c: Likewise.
37548         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37549         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37550         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37551         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37552         * varasm.c: Likewise.
37553         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37554         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37555         varasm.h.
37556         * init-regs.c: Likewise.
37557         * ira.c: Likewise.
37558         * omp-low.c: Likewise.
37559         * stack-ptr-mod.c: Likewise.
37560         * tree-ssa-reassoc.c: Likewise.
37561         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37562         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37563         varasm.h.
37564         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37565         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37566         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37567         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37568         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37569         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37570         * tree-ssa-phiopt.c: Likewise.
37571         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37572         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37573         * config/fr30/fr30.c: Likewise.
37574         * config/frv/frv.c: Likewise.
37575         * expr.c: Likewise.
37576         * final.c: Likewise.
37577         * optabs.c: Likewise.
37578         * passes.c: Likewise.
37579         * simplify-rtx.c: Likewise.
37580         * stmt.c: Likewise.
37581         * toplev.c: Likewise.
37582         * var-tracking.c: Likewise.
37583         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37584         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37585         * lower-subreg.c: Likewise.
37586         * postreload-gcse.c: Likewise.
37587         * ree.c: Likewise.
37588         * reginfo.c: Likewise.
37589         * store-motion.c: Likewise.
37590         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37591         fixed-value.h hashtab.h real.h stmt.h varasm.h.
37592         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37593         fixed-value.h hashtab.h statistics.h stmt.h.
37594         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37595         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37596         * except.c: Likewise.
37597         * explow.c: Likewise.
37598         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37599         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37600         varasm.h.
37601         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37602         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37603         * tree-ssa-structalias.c: Likewise.
37604         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37605         fixed-value.h insn-config.h real.h statistics.h.
37606         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37607         fixed-value.h insn-config.h real.h statistics.h stmt.h.
37608         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37609         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37610         * cfgbuild.c: Likewise.
37611         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37612         fixed-value.h real.h rtl.h statistics.h stmt.h.
37613         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37614         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37615         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37616         fixed-value.h real.h statistics.h stmt.h.
37617         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37618         fixed-value.h real.h statistics.h stmt.h varasm.h.
37619         * cprop.c: Likewise.
37620         * modulo-sched.c: Likewise.
37621         * postreload.c: Likewise.
37622         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37623         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37624         statistics.h stmt.h varasm.h.
37625         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37626         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37627         rtl.h statistics.h stmt.h varasm.h.
37628         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37629         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37630         varasm.h.
37631         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37632         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37633         varasm.h.
37634         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37635         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37636         varasm.h.
37637         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37638         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37639         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37640         function.h real.h statistics.h stmt.h varasm.h.
37641         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37642         insn-config.h real.h statistics.h stmt.h.
37643         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37644         statistics.h stmt.h.
37645         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37646         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37647         statistics.h stmt.h varasm.h.
37648         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37649         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37650         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37651         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37652         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37653         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37654         statistics.h stmt.h varasm.h.
37655         * ipa-polymorphic-call.c: Likewise.
37656         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37657         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37658         statistics.h stmt.h.
37659         * config/c6x/c6x.c: Likewise.
37660         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37661         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37662         statistics.h stmt.h varasm.h.
37663         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37664         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37665         stmt.h varasm.h.
37666         * ipa-split.c: Likewise.
37667         * tree-eh.c: Likewise.
37668         * tree-ssa-dce.c: Likewise.
37669         * tree-ssa-loop-niter.c: Likewise.
37670         * tree-vrp.c: Likewise.
37671         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37672         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37673         stmt.h.
37674         * config/nds32/nds32-fp-as-gp.c: Likewise.
37675         * config/nds32/nds32-intrinsic.c: Likewise.
37676         * config/nds32/nds32-isr.c: Likewise.
37677         * config/nds32/nds32-md-auxiliary.c: Likewise.
37678         * config/nds32/nds32-memory-manipulation.c: Likewise.
37679         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37680         * config/nds32/nds32-predicates.c: Likewise.
37681         * config/nds32/nds32.c: Likewise.
37682         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37683         fixed-value.h hashtab.h real.h statistics.h.
37684         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37685         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37686         * config/arm/arm.c: Likewise.
37687         * config/avr/avr.c: Likewise.
37688         * config/bfin/bfin.c: Likewise.
37689         * config/h8300/h8300.c: Likewise.
37690         * config/i386/i386.c: Likewise.
37691         * config/ia64/ia64.c: Likewise.
37692         * config/iq2000/iq2000.c: Likewise.
37693         * config/m32c/m32c.c: Likewise.
37694         * config/m32r/m32r.c: Likewise.
37695         * config/m68k/m68k.c: Likewise.
37696         * config/mcore/mcore.c: Likewise.
37697         * config/mep/mep.c: Likewise.
37698         * config/mips/mips.c: Likewise.
37699         * config/mn10300/mn10300.c: Likewise.
37700         * config/moxie/moxie.c: Likewise.
37701         * config/pa/pa.c: Likewise.
37702         * config/rl78/rl78.c: Likewise.
37703         * config/rx/rx.c: Likewise.
37704         * config/s390/s390.c: Likewise.
37705         * config/sh/sh.c: Likewise.
37706         * config/sparc/sparc.c: Likewise.
37707         * config/spu/spu.c: Likewise.
37708         * config/stormy16/stormy16.c: Likewise.
37709         * config/v850/v850.c: Likewise.
37710         * config/vax/vax.c: Likewise.
37711         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37712         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37713         * config/msp430/msp430.c: Likewise.
37714         * predict.c: Likewise.
37715         * value-prof.c: Likewise.
37716         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37717         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37718         * config/microblaze/microblaze.c: Likewise.
37719         * config/nios2/nios2.c: Likewise.
37720         * config/rs6000/rs6000.c: Likewise.
37721         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37722         insn-config.h real.h rtl.h statistics.h stmt.h.
37723         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37724         insn-config.h real.h statistics.h stmt.h.
37725         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37726         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37727         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37728         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37729         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37730         fixed-value.h real.h statistics.h stmt.h.
37731         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37732         fixed-value.h statistics.h stmt.h.
37733         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37734         stmt.h.
37736 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
37738         * gengtype.c (create_user_defined_type): Workaround
37739         -Wmaybe-uninitialized false positives.
37740         * cse.c (fold_rtx): Likewise.
37741         * loop-invariant.c (gain_for_invariant): Likewise.
37743 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37745         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37746         set the memory attributes in all cases but clear MEM_EXPR if need be.
37748 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
37750         PR tree-optimization/64434
37751         * cfgexpand.c (reorder_operands): New function.
37752         (expand_gimple_basic_block): Insert call of reorder_operands if
37753         optimized is true.
37755 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
37757         * config/mips/micromips.md (*swp): Remove explicit parallel.
37758         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37759         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37760         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37761         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37762         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37763         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37764         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37765         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37766         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37767         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37768         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37769         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37770         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37771         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37772         (mips_wrdsp): Likewise.
37773         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37774         parallel.
37775         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37776         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37777         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37778         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37779         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37780         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37781         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37782         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37783         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37785 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37787         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37788         (mips_print_operand): Support 'y' to print exact log2 in decimal
37789         of a const_int.
37790         * config/mips/mips.h (ISA_HAS_LSA): New define.
37791         (ISA_HAS_DLSA): Likewise.
37792         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37793         * config/mips/predicates.md (const_immlsa_operand): New predicate.
37795 2015-01-15  Martin Liska  <mliska@suse.cz>
37797         PR target/64377
37798         * optc-save-gen.awk: Add support for array types.
37800 2015-01-15  Richard Biener  <rguenther@suse.de>
37802         PR middle-end/64365
37803         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37804         for MEM_REF access functions with the same base can never partially
37805         overlap.
37807 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
37809         * common.opt: New option -fstack-protector-explicit.
37810         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37811         (stack_protect_decl_phase): Handle stack_protect attribute for
37812         explicit stack protection requests.
37813         (expand_used_vars): Similarly.
37814         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37815         * doc/extend.texi: Add documentation for "stack_protect" attribute.
37816         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37818 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
37820         PR target/53988
37821         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37822         reg-reg copies.
37823         (sh_extending_set_of_reg): New struct.
37824         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37825         sh_remove_reg_dead_or_unused_notes): New Declarations.
37826         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37827         sh_find_extending_set_of_reg, sh_split_tst_subregs,
37828         sh_extending_set_of_reg::use_as_extended_reg): New functions.
37829         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37830         convert to insn_and_split and use new function sh_split_tst_subregs.
37832 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
37834         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37835         option.
37836         (Optimization Options): Move -fuse-ld documentation to...
37837         (Link Options): ...here.
37839 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37841         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37842         offsets.
37843         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37844         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37845         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37846         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37847         instead of ZR for the memory operand of LL/SC.
37848         (compare_and_swap_12, sync_add<mode>): Likewise.
37849         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37850         (sync_new_<optab>_12, sync_nand_12): Likewise.
37851         (sync_old_nand_12, sync_new_nand_12): Likewise.
37852         (sync_sub<mode>, sync_old_add<mode>): Likewise.
37853         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37854         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37855         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37856         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37857         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37858         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37859         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37860         * doc/md.texi (ZC): Update description.
37862 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37864         * builtins.c (expand_builtin_atomic_exchange): Remove error when
37865         memory model is CONSUME.
37866         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37867         expand_builtin_atomic_store): Change invalid memory model errors to
37868         warnings.
37869         (expand_builtin_atomic_clear): Change invalid model errors to warnings
37870         and issue warning for CONSUME.
37872 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
37874         * lto-cgraph: Update function comments for
37875         lto_symtab_encoder_encode_*.
37877 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37879         * Makefile.in (site.exp): Do not set ENABLE_LTO.
37881 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37883         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37884         * lto-cgraph.c (select_what_to_stream): Remove argument, use
37885         lto_stream_offload_p instead.
37886         * lto-streamer.h (select_what_to_stream): Remove argument.
37887         * passes.c (ipa_write_summaries): Likewise.
37888         * tree-pass.h (ipa_write_summaries): Likewise.
37890 2015-01-14  Richard Biener  <rguenther@suse.de>
37892         PR tree-optimization/59354
37893         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37894         groups larger than the slp group size as having gaps.
37896 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37898         PR middle-end/59448
37899         * builtins.c (get_memmodel): Promote consume to acquire always.
37901 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37903         PR target/64386
37904         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37905         V32HImode.
37907 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37909         PR target/64393
37910         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37911         Enable AVX512BW.
37912         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37913         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37914         AVX512VBMI, as it implies AVX512BW.
37916 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37918         PR target/64387
37919         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37920         (vec_unpacks_hi_v16sf): Ditto.
37922 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37924         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37925         is not available.
37927 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37929         * doc/invoke.texi (mapcs): Mention deprecation.
37930         (mapcs-frame): Likewise.
37932 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37934         PR target/64453
37935         * config/arm/arm.c (callee_saved_reg_p): Define.
37936         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37937         register is callee saved instead of !call_used_regs[reg].
37938         (thumb1_compute_save_reg_mask): Likewise.
37940 2015-01-14  Hale Wang  <hale.wang@arm.com>
37942         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37943         Cortex-M7.
37945 2015-01-14  Richard Biener  <rguenther@suse.de>
37947         PR lto/64415
37948         * tree-inline.c (insert_debug_decl_map): Check destination
37949         function MAY_HAVE_DEBUG_STMTS.
37950         (insert_init_debug_bind): Likewise.
37951         (insert_init_stmt): Remove redundant check.
37952         (remap_gimple_stmt): Drop debug stmts if the destination
37953         function has var-tracking assignments disabled.
37955 2015-01-14  Martin Liska  <mliska@suse.cz>
37957         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37958         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37960 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37962         PR target/64460
37963         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37964         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37966 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37968         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37969         level from an ARCH; do not inject the default.
37970         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37971         MIPS_ISA_LEVEL_SPEC.
37972         (MIPS_ISA_NAN2008_SPEC): Update comment.
37973         (BASE_DRIVER_SELF_SPECS): Likewise.
37974         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37975         MIPS_DEFAULT_ISA_LEVEL_SPEC.
37976         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37977         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37978         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37980 2015-01-14  Richard Biener  <rguenther@suse.de>
37982         PR tree-optimization/64493
37983         PR tree-optimization/64495
37984         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37985         assign the proper vectorized PHI to the inner loop exit PHIs.
37987 2015-01-14  Joey Ye  <joey.ye@arm.com>
37989         * config/arm/arm.c (arm_compute_save_reg_mask):
37990         Do not save lr in case of tail call.
37991         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37993 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
37995         * tree-vrp.c (check_array_ref): Emit more warnings
37996         for warn_array_bounds >= 2.
37997         * common.opt: New option -Warray-bounds=.
37998         * doc/invoke.texi: Document -Warray-bounds=.
38000 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
38002         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
38003         (mforbid-fp-as-gp): Remove.
38004         (mex9): Remove.
38005         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
38006         (nds32_symbol_load_store_p): Remove.
38007         (nds32_fp_as_gp_check_available): Clean up implementation.
38008         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
38009         cases.
38010         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
38011         fp-as-gp and ex9 cases.
38013 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38015         * tree-profile.c (init_ic_make_global_vars): Drop workaround
38016         for bintuils bug 14342.
38017         (init_ic_make_global_vars): Likewise.
38018         (gimple_init_edge_profiler): Likewise.
38019         (gimple_gen_ic_func_profiler): Likewise.
38021 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38023         * ipa-inline.c (inline_small_functions): Swap the operands in
38024         enum.
38026 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38028         PR ipa/64481
38029         * ipa-inline-analysis.c (node_growth_cache): Remove.
38030         (initialize_growth_caches): Do not initialize it.
38031         (free_growth_caches): Do not free it.
38032         (do_estimate_growth): Rename to ...
38033         (estimate_growth): ... this one; drop growth cache code.
38034         (growth_likely_positive): Always go the heuristics way.
38035         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
38036         (reset_edge_caches): Do not reset node growth.
38037         (heap_edge_removal_hook): Do not maintain cache.
38038         (inline_small_functions): Likewise; strenghten sanity check.
38039         (ipa_inline): Do not maintain caches.
38040         * ipa-inline.h (node_growth_cache): Remove.
38041         (do_estimate_growth): Remove to ...
38042         (estimate_growth): this one; remove inline version.
38043         (reset_node_growth_cache): Remove.
38045 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
38047         PR ipa/64565
38048         * ipa-inline.c (inline_small_functions): Update callee keys after
38049         resolving speculation
38050         (inline_small_functions): Always check monotonicity of the queue.
38052 2015-01-13  Marek Polacek  <polacek@redhat.com>
38054         PR middle-end/64391
38055         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
38057 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
38059         PR rtl-optimization/64286
38060         * ree.c (combine_reaching_defs): Move part of comment earlier,
38061         remove !SCALAR_INT_MODE_P check.
38062         (add_removable_extension): Don't add vector mode
38063         extensions if all uses of the source register aren't the same
38064         vector extensions.
38066 2015-01-13  Renlin Li  <renlin.li@arm.com>
38068         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
38069         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
38071 2015-01-13  Martin Liska  <mliska@suse.cz>
38073         * ipa-icf.c (sem_function::equals_private): Call new functions
38074         cl_target_option_print_diff and cl_optimization_print_diff.
38075         * optc-save-gen.awk (cl_target_option_print_diff): New function.
38076         (cl_optimization_print_diff): Likewise.
38077         * opth-gen.awk: Likewise.
38079 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
38081         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
38082         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
38083         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
38084         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
38085         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
38086         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
38088 2015-01-13  Andrew Pinski  <apinski@cavium.com>
38090         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
38091         instead of src mode.
38093 2015-01-13  Richard Biener  <rguenther@suse.de>
38095         PR lto/64373
38096         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
38097         DECL_CONTEXT.
38099 2015-01-13  Andrew Pinski  <apinski@cavium.com>
38101         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
38102         volatile mems.
38103         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
38105 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
38107         PR middle-end/63974
38108         * cfgexpand.c (expand_computed_goto): Don't call
38109         convert_memory_address here.
38111 2015-01-13  Richard Biener  <rguenther@suse.de>
38113         PR tree-optimization/64406
38114         * tree-loop-distibution.c (pass_loop_distribution::execute):
38115         Reset the SCEV hashtable if we distributed anything.
38117 2015-01-13  Richard Biener  <rguenther@suse.de>
38119         PR tree-optimization/64404
38120         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
38121         SLP types for CSEd loads.
38123 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38125         PR tree-optimization/64436
38126         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
38127         merge of two symbolic numbers for a bitwise OR to ...
38128         (perform_symbolic_merge): This. Also fix computation of the range and
38129         end of the symbolic number corresponding to the result of a bitwise OR.
38131 2015-01-13  Richard Biener  <rguenther@suse.de>
38133         PR tree-optimization/64568
38134         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
38135         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
38137 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38139         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
38140         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
38142 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38144         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
38145         target-specific symbol_ref flag.
38146         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
38147         resides in rodata section.
38148         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
38149         (nds32_encode_section_info): New function.
38151 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38153         * config/nds32/nds32.md (call): Use pseudo instruction bal which
38154         clobbers TA_REGNUM if large code model is specified.
38155         (call_register): Likewise.
38156         (call_immediate): Likewise.
38157         (call_value): Likewise.
38158         (call_value_register): Likewise.
38159         (call_value_immediate): Likewise.
38161 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38163         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
38164         (TARGET_CMODEL_MEDIUM): New macro.
38165         (TARGET_CMODEL_LARGE): New macro.
38166         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
38167         code model setting in assembly code.
38169 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38171         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
38172         Remove MASK_GP_DIRECT flag.
38173         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
38174         one of the multilib default options.
38175         * config/nds32/nds32.opt (mgp-direct): Remove.
38176         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
38177         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
38179 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
38181         * config/nds32/nds32.opt (mcmodel): Add new option.
38182         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
38183         to describe code model.
38185 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
38187         PR target/64479
38188         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
38190 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
38192         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
38193         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
38194         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
38195         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
38196         __builtin_sh_set_fpscr.
38198 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
38200         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
38201         after a funtion name just to indicate it is a function.
38202         ([-fsanitize-undefined-trap-on-error]): Likewise.
38203         ([-fdbg-cnt=]): Likewise.
38204         ([-mmemcpy]): Likewise.
38205         ([-mflush-func]): Likewise.
38206         ([-msynci]): Likewise.
38208 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
38210         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
38211         example.
38213 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
38215         PR tree-optimization/64563
38216         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
38217         instead of != VR_VARYING.
38219         PR target/64513
38220         * config/i386/i386.c (ix86_expand_prologue): Add
38221         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
38223         PR tree-optimization/64454
38224         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
38225         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
38226         for signed or [0, op1 - 1] for unsigned modulo.
38227         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
38228         even if op1 does not satisfy integer_pow2p.
38230         PR other/64370
38231         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
38233 2015-01-12  Jeff Law  <law@redhat.com>
38235         PR target/64461
38236         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
38237         (trunchiqi2, truncsihi2): Similarly.
38239         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
38240         rather than calling F.
38242 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38244         * tsan.c (instrument_expr): Use force_gimple_operand.
38245         Use may_be_nonaddressable_p instead of is_gimple_addressable.
38247 2015-01-12  Richard Biener  <rguenther@suse.de>
38249         PR tree-optimization/64530
38250         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
38251         back dr1.
38253 2015-01-12  Richard Biener  <rguenther@suse.de>
38255         PR middle-end/64357
38256         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
38257         latches properly.
38259 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38261         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
38262         Cortex-A17 tuning parameters.
38263         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
38265 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38267         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
38268         * config/arm/arm.c (arm_macro_fusion_p): New function.
38269         (arm_macro_fusion_pair_p): Likewise.
38270         (TARGET_SCHED_MACRO_FUSION_P): Define.
38271         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
38272         (ARM_FUSE_NOTHING): Likewise.
38273         (ARM_FUSE_MOVW_MOVT): Likewise.
38274         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
38275         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
38276         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
38277         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
38278         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
38279         arm_cortex_a5_tune): Specify fuseable_ops value.
38281 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
38283         PR bootstrap/64561
38284         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
38285         test for PIE with copy reloc.
38286         * configure: Regenerated.
38288 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38290         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
38291         in gen_rtx_REG.
38292         (arm_tls_descseq_addr): Likewise.
38293         (arm_gen_movmemqi): Likewise.
38294         (arm_expand_epilogue_apcs_frame): Likewise.
38295         (arm_expand_epilogue): Likewise.
38296         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
38297         in gen_rtx_REG.
38299 2015-01-12  Martin Liska  <mliska@suse.cz>
38301         PR ipa/64550
38302         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
38303         volatility for correct operands.
38305 2015-01-12  Martin Liska  <mliska@suse.cz>
38307         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
38308         indication that a function is not leaf.
38309         (sem_function::compare_polymorphic_p): Likewise.
38311 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38313         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
38314         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
38315         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
38316         fold-const.h, tree-check.h.
38318 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38320         PR ipa/63967
38321         PR ipa/64425
38322         * ipa-inline.c (compute_uninlined_call_time,
38323         compute_inlined_call_time): Use counts for extra precision when
38324         needed possible.
38325         (big_speedup_p): Fix formating.
38326         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
38327         (relative_time_benefit): Remove.
38328         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
38329         merge guessed and read profile paths.
38330         (inline_small_functions): Count only !optimize_size functions into
38331         initial size; be more lax about sanity check when profile is used;
38332         be sure to update inlined function profile when profile is read.
38334 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
38336         PR ipa/63470
38337         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
38338         cost when edge becomes direct.
38339         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
38340         is resolved or when introducing new speculation.
38342 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
38344         PR ipa/64551
38345         PR ipa/64552
38346         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
38347         '||' to fix typo issue.
38349         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
38350         accept and return NULL.
38352 2015-01-12  Martin Liska  <mliska@suse.cz>
38354         * cgraph.c (cgraph_edge::remove_callee): Move function to header
38355         file for being inlined.
38356         (cgraph_set_edge_callee): Delete.
38357         (cgraph_edge::redirect_callee): Move function to header file
38358         for being inlined.
38359         (cgraph_edge::make_direct): Use new function.
38360         (cgraph_edge::dump_edge_flags): New function created from
38361         static dump_edge_flags function.
38362         (cgraph_node::dump): Use new function.
38363         (cgraph_edge::verify_count_and_frequency): New function created
38364         from verify_edge_count_and_frequency.
38365         (cgraph_edge::verify_corresponds_to_fndecl): New function created
38366         from verify_edge_corresponds_to_fndecl.
38367         (verify_edge_corresponds_to_fndecl): Delete.
38368         (cgraph_node::verify_node): Use new function.
38369         * cgraph.h (cgraph_edge::set_callee): New function.
38370         (cgraph_edge::dump_edge_flags): Likewise.
38371         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
38373 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
38375         * ipa-utils.c (estimate_function_body_sizes): Do not
38376         free node params when called late with early=true.
38378 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
38380         * doc/md.texi (Instruction Patterns): Rewrite text for
38381         clarity.
38382         (Example): Likewise.
38384 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
38386         * doc/invoke.texi (Option Summary): Break long lines.
38387         [(-fdiagnostics-color)]: Put long literal in @smallexample
38388         instead of inline.
38389         [(-fsanitize-recover)]: Likewise.
38390         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38391         [(-ffast-math)]: Likewise.
38392         [(--param max-inline-insns-recursive)]: Likewise.
38393         [(--param max-inline-recursive-depth)]: Likewise.
38394         [(-mno-text-section-literals)]: Likewise.
38396 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
38398         * doc/install.texi: Update for libgomp being renamed from "GNU
38399         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38400         Runtime Library".
38401         * doc/sourcebuild.texi: Likewise.
38403 2015-01-10  Anthony Green  <green@moxielogic.com>
38405         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38406         mul.x availability for moxiebox configuration.
38408 2015-01-09  Anthony Green  <green@moxielogic.com>
38410         * config/moxie/moxie.md: Tabify assembly output.
38412 2015-01-09  Anthony Green  <green@moxielogic.com>
38414         * config/moxie/moxie.md (CC_REG): Correct register definition.
38416 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
38418         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38419         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
38420         of log files.
38422 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38424         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38426 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
38427             Jakub Jelinek  <jakub@redhat.com>
38429         PR middle-end/64412
38430         * lto-streamer.h (lto_stream_offload_p): New declaration.
38431         * lto-streamer.c (lto_stream_offload_p): New variable.
38432         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38433         at the same time as section_name_prefix.
38434         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38435         if lto_stream_offload_p.
38436         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38437         stream TREE_TARGET_OPTION if lto_stream_offload_p.
38438         (write_ts_function_decl_tree_pointers): Don't
38439         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38440         * tree-streamer-in.c (unpack_value_fields): Don't stream
38441         TREE_TARGET_OPTION in if ACCEL_COMPILER.
38442         (lto_input_ts_function_decl_tree_pointers): Don't stream
38443         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38444         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38445         instead of section_name_prefix string comparisons.
38447 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
38449         PR rtl-optimization/64536
38450         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38451         tablejumps.
38453 2015-01-09  Michael Collison  <michael.collison@linaro.org>
38455         PR tree-optimization/64322
38456         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38457         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38459 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38461         PR rtl-optimization/64539
38462         * regcprop.c (kill_clobbered_values): Factor out of ...
38463         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
38464         instead of note_stores with kill_clobbered_value.
38466 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38468          * ginclude/unwind-arm-common.h: Revert previous commit.
38470 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
38472         * config.gcc (arm*-*-freebsd*): New configuration.
38473         * config/arm/freebsd.h: New file.
38474         * config.host: Add extra components for arm*-*-freebsd*.
38475         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
38476         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
38478 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38480         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
38481         for -mcpu=e6500.
38482         * config/rs6000/t-rtems: Add e6500 multilibs.
38484 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38486         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
38487         MPC8540.
38489 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38491         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
38492         MULTILIB_EXCEPTIONS.
38494 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38496         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
38497         MULTILIB_EXCEPTIONS.
38499 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38501         * config/arm/t-rtems-eabi: Rename to...
38502         * config/arm/t-rtems: ...this.
38503         * config/arm/rtems-eabi.h: Rename to...
38504         * config/arm/rtems.h: ...this.
38505         * config.gcc (arm*-*-rtems*): Reflect changes above.
38507 2015-01-09  Richard Biener  <rguenther@suse.de>
38509         PR tree-optimization/64410
38510         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38511         on the LHS.
38512         (execute_update_addresses_taken): Deal with that.
38513         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38514         loads/stores for complex variables.
38516 2015-01-09  Martin Liska  <mliska@suse.cz>
38518         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38519         name comparison.
38520         (func_checker::compare_memory_operand): New function.
38521         (func_checker::compare_operand): Split case to newly
38522         added functions.
38523         (func_checker::compare_cst_or_decl): New function.
38524         (func_checker::compare_gimple_call): Identify
38525         memory operands.
38526         (func_checker::compare_gimple_assign): Likewise.
38527         * ipa-icf-gimple.h: New function.
38529 2015-01-09  Martin Liska  <mliska@suse.cz>
38531         PR ipa/64503
38532         * sreal.c (sreal::dump): Change unsigned format to signed for
38533         m_exp value.
38534         (sreal::to_double): Replace exp2 with scalbln.
38536 2015-01-09  Martin Liska  <mliska@suse.cz>
38538         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38539         * ipa-icf.c (sem_function::equals_private): Add support for target and
38540         (sem_item_optimizer::merge_classes): Remove redundant function
38541         optimization flags comparison.
38542         * tree.h (target_opts_for_fn): New function.
38544 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38546         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38548 2015-01-09  Kito Cheng  <kito@0xlab.org>
38550         PR rtl-optimization/64348
38551         * lra-constraints.c (split_reg): Fix caller-save store/restore
38552         instruction generation.
38554 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
38556         PR gcov-profile/61790
38557         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38558         long long.  Fallback to int64_t if host doesn't have long long and
38559         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
38561 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38563         PR tree-optimization/63989
38564         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38565         from 1000 to 10000.
38566         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38567         (get_stridx): If we don't have a record for certain SSA_NAME,
38568         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38569         constant offset, call get_stridx_plus_constant.
38570         (get_stridx_plus_constant): New function.
38571         (zero_length_string): Don't use get_stridx here.
38573         PR target/55023
38574         PR middle-end/64388
38575         * dse.c (struct insn_info): Mention frame_read set also
38576         before reload for tail calls on some targets.
38577         (scan_insn): Revert 2014-12-22 change.  Set frame_read
38578         also before reload for tail calls if
38579         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
38580         instead of add_non_frame_wild_read for non-const/memset
38581         tail calls after reload.
38583 2015-01-08  Jason Merrill  <jason@redhat.com>
38585         * ubsan.c (do_ubsan_in_current_function): New.
38586         (pass_ubsan::gate): Use it.
38587         * ubsan.h: Declare it.
38588         * convert.c (convert_to_integer): Use it.
38590 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38592         PR target/64338
38593         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38594         compare_code when it is unconditionally overwritten afterwards.
38595         Use ix86_reverse_condition instead of reverse_condition.  Don't
38596         change code if *reverse_condition* returned UNKNOWN and don't
38597         swap ct/cf and negate diff in that case.
38599 2015-01-08  Mike Stump  <mikestump@comcast.net>
38601         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38602         (pass_tsan_O0::gate): Likewise.
38603         * extend.texi (Function Attributes): Add no_sanitize_thread
38604         documentation.
38606 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
38608         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38609         for registering builtins.
38610         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38611         add -fopenmp to the argv_obstack used when invoking
38612         compile_for_target.
38614         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38615         add "-m32" or "-m64" to argv_obstack.
38616         (generate_host_descr_file): Likewise, when invoking host_compiler.
38617         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38618         ld.
38620 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38622         * config/sh/sh-mem.cc: Use constant as second operand when emitting
38623         tstsi_t insns.
38625 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38627         PR target/55212
38628         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38629         constant load if constant operand fits into I08.
38631 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38633         PR sanitizer/64336
38634         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38635         and TREE_THIS_VOLATILE for MEM_REFs.
38636         (build5_stat): Fix up initialization of TREE_READONLY and
38637         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38639 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
38641         PR target/64533
38642         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38643         of r for the second alternative of the destination operand.
38645 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
38647         PR target/36557
38648         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38650 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38652         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38653         keywords.
38654         ([-fivar-visibility], [-fvisibility]): Likewise.
38656 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38658         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38659         the file where @code, @command, etc is more appropriate.
38661 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
38663         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38664         of -mrecip= documentation.
38666 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38668         PR target/64505
38669         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38670         correct reload handler if -m32 -mpowerpc64 is used.
38672 2015-01-06  Tom de Vries  <tom@codesourcery.com>
38674         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38676 2015-01-08  Christian Bruel  <christian.bruel@st.com>
38678         PR target/64507
38679         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38681 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38683         PR tree-optimization/63259
38684         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38685         if optab exists for 16bit byteswap.
38687 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
38689         * opts.c (common_handle_option): Add support for
38690         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38691         * doc/invoke.texi: Document -fno-sanitize=all,
38692         -f{,no-}sanitize-recover=all.  Document that
38693         -fsanitize=float-cast-overflow is not enabled
38694         by -fsanitize=undefined.  Fix up documentation
38695         of -f{,no-}sanitize-recover.
38697 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
38699         * config.gcc: Add Visium support.
38700         * configure.ac: Likewise.
38701         * configure: Regenerate.
38702         * doc/extend.texi (interrupt attribute): Add Visium.
38703         * doc/invoke.texi: Document Visium options.
38704         * doc/install.texi: Document Visium target.
38705         * doc/md.texi: Document Visium constraints.
38706         * common/config/visium: New directory.
38707         * config/visium: Likewise.
38709 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38711         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38712         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38714 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38716         * combine.c (combine_validate_cost): Do not count the cost of a
38717         split I2 twice.  Do not display it twice in the dump, either.
38719 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38721         Revert parts of r219199.
38722         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38723         <inttypes.h>.
38724         ([-Wtraditional]): Restore markup on <limits.h>.
38726 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
38728         PR c++/31397
38729         * doc/invoke.texi: Document -Wsuggest-override.
38731 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
38733         PR rtl-optimization/64287
38734         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38735         (process_options): Disable flag_ipa_ra if profiling.
38737 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38739         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38741 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
38743         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38744         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38745         put under #if TARGET_LOOPS guard.
38747 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
38749         * config/i386/i386.c (output_387_binary_op): Use std::swap.
38751 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
38753         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38754         * rtl.h (refers_to_regno_p): Add overload.
38755         * cse.c: Use it.
38756         * bt-load.c: Likewise.
38757         * combine.c: Likewise.
38758         * df-scan.c: Likewise.
38759         * sched-deps.c: Likewise.
38760         * config/s390/s390.c: Likewise.
38761         * config/m32r/m32r.c: Likewise.
38762         * config/rs6000/spe.md: Likewise.
38763         * config/rs6000/rs6000.c: Likewise.
38764         * config/pa/pa.c: Likewise.
38765         * config/stormy16/stormy16.c: Likewise.
38766         * config/cris/cris.c: Likewise.
38767         * config/arc/arc.md: Likewise.
38768         * config/arc/arc.c: Likewise.
38769         * config/sh/sh.md: Likewise.
38770         * config/sh/sh.c: Likewise.
38771         * config/frv/frv.c: Likewise.
38773 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38775         PR sanitizer/64265
38776         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38777         call as cleanup of the whole body.
38778         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38779         * tsan.c (replace_func_exit): New function.
38780         (instrument_func_exit): Moved earlier.
38781         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38782         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38783         been found.
38784         (tsan_pass): Don't call instrument_func_exit.
38785         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38786         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38787         inlining.
38789         PR sanitizer/64344
38790         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38791         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38792         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
38793         if the result is integer_zerop, return NULL_TREE.
38794         * convert.c (convert_to_integer): Pass expr as ARG.
38796         PR tree-optimization/64465
38797         * tree-inline.c (redirect_all_calls): During inlining
38798         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38799         changed the stmt to a non-throwing call.
38801 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38803         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38804         etc markup throughout the file.
38806 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38808         Enable experimental TSAN support for Ada.
38809         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38811 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38813         PR tree-optimization/64494
38814         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38815         clear SSA_NAME_ANTI_RANGE_P flag.
38817 2015-01-05  Marek Polacek  <polacek@redhat.com>
38819         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38821 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38823         Update copyright years.
38825         * gcc.c (process_command): Update copyright notice dates.
38826         * gcov-dump.c: Ditto.
38827         * gcov.c: Ditto.
38828         * doc/cpp.texi: Bump @copying's copyright year.
38829         * doc/cppinternals.texi: Ditto.
38830         * doc/gcc.texi: Ditto.
38831         * doc/gccint.texi: Ditto.
38832         * doc/gcov.texi: Ditto.
38833         * doc/install.texi: Ditto.
38834         * doc/invoke.texi: Ditto.
38836         * auto-profile.c, auto-profile.h: Fix up Copyright line.
38838 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
38840         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38841         verb tense, etc.
38842         ([-fvtable-verify], [-fvtv-debug]): Likewise.
38843         ([-Wabi]): Likewise.
38844         ([-fmessage-length]): Likewise.
38845         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38846         ([-Wno-discarded-qualifiers]): Likewise.
38847         ([-Wnodiscarded-array-qualifiers]): Likewise.
38848         ([-Wno-virtual-move-assign]): Likewise.
38849         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38850         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38851         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38852         ([-fsanitize-undefined-trap-on-error]): Likewise.
38853         ([-floop-interchange]): Likewise.
38854         ([-ftree-coalesce-inlined-vars]): Likewise.
38855         ([-fvect-cost-model]): Likewise.
38856         ([-flto]): Likewise.
38857         ([--param]): Likewise.
38858         (Spec Files): Likewise.
38859         ([-mstrict-align]): Likewise.
38860         ([-mfix-cortex-a53-835769]): Likewise.
38861         ([-march], [-mtune]): Likewise.
38862         ([-mpic-register]): Likewise.
38863         ([-munaligned-access]): Likewise.
38864         ([-msp8]): Likewise.
38865         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38866         (AVR Built-in Macros): Likewise.
38867         ([-mpreferred-stack-boundary]): Likewise.
38868         ([-mtune-crtl]): Likewise.
38869         ([-mashf]): Likewise.
38870         ([-mmcu=]): Likewise.
38871         ([-minrt]): Likewise.
38872         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38873         ([-mupper-regs]): Likewise.
38874         ([-matomic-model]): Likewise.
38875         ([-mdiv]): Likewise.
38876         ([-mzdcbranch]): Likewise.
38877         ([-mdisable-callt]): Likewise.
38878         ([-msoft-float]): Likewise.
38879         ([-m8byte-align]): Likewise.
38880         ([-fstack-reuse]): Likewise.
38882 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38884         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38885         Fix markup, light copy-editing.
38886         ([-fauto-profile]): Rewrite to fix formatting and content
38887         problems.
38889 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38891         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38892         Copy-edit description.
38893         ([-fisolate-erroneous-paths-attribute]): Likewise.
38894         * common.opt (fisolate-erroneous-paths-dereference):
38895         Copy-edit description.
38896         (fisolate-erroneous-paths-attribute): Likewise.
38898 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38900         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38901         tidy grammar.
38903 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38905         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38906         ([-fvtv-debug]): Likewise.
38907         ([-Wc++-compat]): Likewise.
38908         ([-Wc++11-compat]): Likewise.
38909         ([-Wc++14-compat]): Likewise.
38910         ([-Wno-sized-deallocation]): Likewise.
38911         ([-femit-class-debug-always]): Likewise.
38912         ([-femit-struct-debug-detailed]): Likewise.
38913         ([-fno-keep-inline-dllexport]): Likewise.
38914         ([-fira-algorithm]): Likewise.
38915         ([-fira-region]): Likewise.
38916         ([-flra-remat]): Likewise.
38917         ([-fipa-ra]): Likewise.
38918         ([-fhoist-adjacent-loads]): Likewise.
38919         ([-fisolate-erroneous-paths-dereference]): Likewise.
38920         ([-fisolate-erroneous-paths-attribute]): Likewise.
38921         ([-ftree-switch-conversion]): Likewise.
38922         ([-ftree-tail-merge]): Likewise.
38923         ([-ftree-loop-if-convert]): Likewise.
38924         ([-ftree-loop-if-convert-stores]): Likewise.
38925         ([-ftree-loop-distribution]): Likewise.
38926         ([-ftree-loop-distribute-patterns]): Likewise.
38927         ([-flto-compression-level]): Likewise.
38928         ([-flto-report]): Likewise.
38929         ([-flto-report-wpa]): Likewise.
38930         ([-fuse-linker-plugin]): Likewise.
38931         ([-mfix-cortex-a53-835769]): Likewise.
38932         ([-mno-fix-cortex-a53-835769]): Likewise.
38933         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38934         explicit listing; add a note to the discussion indicating they
38935         exist.  Reorder table to group similar options.  Add missing
38936         @opindex entries.  Add @need commands throughout the table to
38937         allow it to be split across multiple pages.
38938         ([-m8bit-idiv]): Fix @opindex.
38939         ([-mavx256-split-unaligned-load]): Likewise.
38940         ([-mavx256-split-unaligned-store]): Likewise.
38941         ([-mstack-protector-guard]): Likewise.
38942         ([-mcpu=]): Likewise.
38943         ([-mcpu]): Likewise.
38944         ([-mpointer-size=]): Likewise.
38946 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
38948         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38949         instead of `m' constraint.  Likewise for unnamed movb comparison
38950         patterns using reg_before_reload_operand predicate.
38951         * config/pa/predicates.md (reg_before_reload_operand): Tighten
38952         predicate to reject register index and LO_SUM DLT memory forms
38953         after reload.
38955 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38957         * doc/invoke.texi (Option Summary): Fix spelling of
38958         -fdevirtualize-at-ltrans.
38959         ([-fdevirtualize]): Fix markup.
38960         ([-fdevirtualize-speculatively]): Fix typo.
38961         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
38962         implementor-speaky.
38963         * common.opt (fdevirtualize-at-ltrans): Likewise.
38964         * ipa-devirt.c: Fix typos in comments throughout the file.
38965         (ipa_devirt): Fix typos in format strings for dump output.
38967 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38969         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38970         discussion of defaults, light copy-editing.
38972 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38974         * tsan.c (instrument_expr): corrected previous checkin.
38976 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38978         Instrument bit field and unaligned accesses for TSAN.
38979         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38980         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38981         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38982         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38983         unaligned memory regions.
38985 2015-01-01  Anthony Green  <green@moxielogic.com>
38987         * config/moxie/predicates.md (moxie_general_movsrc_operand):
38988         Restrict move source register offsets to 16 bits.
38990 Copyright (C) 2015 Free Software Foundation, Inc.
38992 Copying and distribution of this file, with or without modification,
38993 are permitted in any medium without royalty provided the copyright
38994 notice and this notice are preserved.