[AArch64] PR target/68129: Define TARGET_SUPPORTS_WIDE_INT
[official-gcc.git] / gcc / ChangeLog
blobc07c5d6257b0bc41d2c8001cc63a601a0a4531f5
1 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         PR target/68129
4         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6         Delete VOIDmode case.  Assert that mode is not VOIDmode.
7         * config/aarch64/predicates.md (const0_operand): Remove const_double
8         match.
10 2015-11-09  Martin Liska  <mliska@suse.cz>
12         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
13         body_info release function.
14         * ipa-prop.c (ipa_release_body_info): New function.
15         (ipa_analyze_node): Call the function.
16         (ipa_node_params::~ipa_node_params): Release known_csts.
17         * ipa-prop.h (ipa_release_body_info): Declare.
19 2015-11-09  Martin Liska  <mliska@suse.cz>
21         * gcc.c (record_temp_file): Release name string.
22         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
23         of vec.
24         * lra-lives.c (free_live_range_list): Utilize
25         lra_live_range_pool for allocation and deallocation.
26         (create_live_range): Likewise.
27         (copy_live_range): Likewise.
28         (lra_merge_live_ranges): Likewise.
29         (remove_some_program_points_and_update_live_ranges): Likewise.
30         (lra_create_live_ranges_1): Release point_freq_vec that can
31         be not freed from previous iteration of the function.
32         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
33         vec.
34         * tree-sra.c (sra_deinitialize): Release all vectors in
35         base_access_vec.
36         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
37         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
38         Release edge_info for a removed edge.
39         (thread_through_all_blocks): Free region vector.
40         * tree-ssa.h (free_dom_edge_info): Declare function extern.
42 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
44         * optabs.c (expand_vec_cond_expr): Always get sign from type.
45         * tree.c (wide_int_to_tree): Support negative values for boolean.
46         (build_nonstandard_boolean_type): Use signed type for booleans.
48 2015-11-09  Richard Biener  <rguenther@suse.de>
50         PR tree-optimization/68248
51         * tree-vect-generic.c (expand_vector_operations_1): Handle
52         scalar rhs2.
54 2015-11-09  Richard Biener  <rguenther@suse.de>
56         PR tree-optimization/56118
57         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
58         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
59         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
60         function.
61         (vect_slp_analyze_data_ref_dependences): Instead of computing
62         all dependences of the region DRs just analyze the code motions
63         SLP vectorization will perform.  Remove SLP instances that
64         cannot have their store/load motions applied.
65         (vect_analyze_data_refs): Allow DRs without a vectype
66         in BB vectorization.
68 2015-11-09  Julian Brown  <julian@codesourcery.com>
70         * final.c (output_asm_insn): Pass VOIDmode to output_address.
71         (output_address): Add MODE argument. Pass to print_operand_address
72         hook.
73         * targhooks.c (default_print_operand_address): Add MODE argument.
74         * targhooks.h (default_print_operand_address): Update prototype.
75         * output.h (output_address): Update prototype.
76         * target.def (print_operand_address): Add MODE argument.
77         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
78         output_address.
79         (print_operand): Pass access mode to output_address.
80         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
81         argument.
82         (mcore_print_operand): Update calls to mcore_print_operand_address.
83         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
84         output_address.
85         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
86         output_address.
87         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
88         global.
89         (tilegx_print_operand): Don't set above global. Update calls to
90         output_address.
91         (tilegx_print_operand_address): Add MODE argument. Use instead of
92         output_memory_reference_mode global.
93         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
94         (frv_print_operand): Pass mode to frv_print_operand_address calls.
95         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
96         output_address.
97         * config/cris/cris.c (cris_print_operand_address): Add MODE
98         argument.
99         (cris_print_operand): Pass mode to output_address calls.
100         * config/spu/spu.c (print_operand): Pass mode to output_address
101         calls.
102         * config/aarch64/aarch64.h (aarch64_print_operand)
103         (aarch64_print_operand_address): Remove prototypes.
104         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
105         global.
106         (aarch64_print_operand): Make static. Update calls to
107         output_address.
108         (aarch64_print_operand_address): Add MODE argument. Use instead of
109         aarch64_memory_reference_mode global.
110         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
111         hooks.
112         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
113         Delete macro definitions.
114         * config/pa/pa.c (pa_print_operand): Pass mode in output_address
115         calls.
116         * config/xtensa/xtensa.c (print_operand): Pass mode in
117         output_address calls.
118         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
119         argument.
120         (h83000_print_operand): Update calls to h8300_print_operand_address
121         and output_address.
122         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
123         argument.
124         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
125         global.
126         (tilepro_print_operand): Pass mode to output_address.
127         (tilepro_print_operand_address): Add MODE argument. Use instead of
128         output_memory_reference_mode.
129         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
130         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
131         to output_address calls.
132         (nvptx_print_operand_address): Add MODE argument.
133         * config/alpha/alpha.c (print_operand): Pass mode argument in
134         output_address calls.
135         * config/m68k/m68k.c (print_operand): Pass mode argument in
136         output_address call.
137         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
138         (avr_print_operand): Update calls to avr_print_operand_address.
139         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
140         argument. Update calls to output_address.
141         (sparc_print_operand): Pass mode to output_address.
142         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
143         argument.
144         (iq2000_print_operand): Pass mode in output_address calls.
145         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
146         MODE argument.
147         (xstormy16_print_operand): Pass mode to
148         xstormy16_print_operand_address calls.
149         * config/mips/mips.c (mips_print_operand): Update calls to
150         output_address.
151         (mips_print_operand_address): Add MODE argument.
152         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
153         to output_address.
154         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
155         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
156         output_address.
157         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
158         (rx_print_operand): Update calls to output_address,
159         rx_print_operand_address.
160         * config/nds32/nds32.c (nds32_print_operand): Update calls to
161         output_address.
162         (nds32_print_operand_address): Add MODE argument.
163         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
164         output_address calls.
165         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
166         output_address call.
167         (c6x_print_address_operand): Update calls to output_address.
168         (c6x_print_operand_address): Pass mode to above.
169         * config/v850/v850.c (v850_print_operand_address): Add MODE
170         argument.
171         (v850_print_operand): Pass mode to v850_print_operand_address,
172         output_address.
173         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
174         argument.
175         (mmix_print_operand): Pass mode in output_address calls.
176         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
177         (sh_print_operand): Pass mem mode to output_address,
178         sh_print_operand_address.
179         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
180         argument.
181         (cr16_print_operand): Pass mode to output_address,
182         cr16_print_operand_address.
183         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
184         output_address.
185         * config/microblaze/microblaze.c (print_operand): Pass mode to
186         output_address.
187         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
188         output_address.
189         (nios2_print_operand_address): Add MODE argument. Update call to
190         nios2_print_operand_address.
191         * config/s390/s390.c (print_operand): Pass mode to output_address.
192         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
193         argument.
194         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
195         output_address.
196         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
197         Use instead of output_memory_reference_mode.
198         (output_memory_reference_mode): Delete global.
199         (arm_print_operand): Pass mem mode to output_address.
200         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
201         argument.
202         (m32r_print_operand): Pass mode to output_address.
203         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
204         argument.
205         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
206         * config/i386/i386.c (ix86_print_operand): Pass mode to
207         output_address calls.
208         (ix86_print_operand_address): Add MODE argument.
210 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
212         PR middle-end/68251
213         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
214         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
215         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
216         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
218 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
220         PR rtl-optimization/67749
221         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
222         case before emitting the two blocks.  Instead modify the register
223         in the corresponding final insn of the basic block.
225 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
227         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
228         assembler syntax.
229         Support Solaris ld.
230         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
232         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
233         HAVE_INITFINI_ARRAY_SUPPORT.
234         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
235         value.
237         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
238         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
239         Don't check HAVE_AS_SPARC_NOBITS.
240         Heed SECTION_NOTYPE.
242         * configure: Regenerate.
243         * config.in: Regenerate.
245 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
247         PR middle-end/68253
248         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
250 2015-11-09  Richard Henderson  <rth@redhat.com>
252         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
253         __SEG_GS, __SEG_TLS.
254         (ix86_register_pragmas): Register address spaces __seg_fs,
255         __seg_gs, __seg_tls.
256         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
257         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
258         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
259         * config/i386/i386.c (ix86_decompose_address): Likewise.
260         (ix86_legitimate_address_p): Likewise.
261         (memory_address_length): Likewise.  Check mem address space too.
262         (ix86_print_operand): Use ix86_print_operand_address_as.
263         (ix86_print_operand_address_as): Rename from
264         ix86_print_operand_address, add new addr_space_t parameter.
265         Validate that either the parameter or the ix86_address segment
266         is default address space.  Handle ADDR_SPACE_SEG_TLS.
267         (ix86_print_operand_address): New.
268         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
269         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
270         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
271         (ix86_addr_space_zero_address_valid): New.
272         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
273         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
274         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
275         * config/i386/predicates.md (address_no_seg_operand): Likewise.
276         (vsib_address_operand): Likewise.
277         (address_mpx_no_base_operand): Likewise.
278         (address_mpx_no_index_operand): Likewise.
279         * doc/extend.texi (x86 Named Address Spaces): New section.
281         * config/i386/i386.c (ix86_check_no_addr_space): New.
282         (decide_alg): Add have_as parameter.
283         (alg_usable_p): Likewise; disable rep algorithms if set.
284         (ix86_expand_set_or_movmem): Notice if either MEM has a
285         non-default address space.
286         (ix86_expand_strlen): Likewise.
287         * config/i386/i386.md (strmov, strset): Likewise.
288         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
289         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
290         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
291         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
292         *cmpstrnqi_1, *strlenqi_1): Likewise.
294         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
295         (*movabs<mode>_2): Likewise.
297         * dwarf2out.c (modified_type_die): Pass the address space number
298         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
299         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
300         * targhooks.c (default_addr_space_debug): New.
301         * targhooks.h (default_addr_space_debug): Declare.
302         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
303         * doc/tm.texi: Rebuild.
305         * gimple.c (check_loadstore): Return false when 0 is a valid address.
306         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
307         null when 0 is valid in the source address space.
308         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
309         * targhooks.c (default_addr_space_zero_address_valid): New.
310         * targhooks.h (default_addr_space_zero_address_valid): Declare.
311         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
312         * doc/tm.texi: Rebuild.
314         * cselib.c (add_mem_for_addr): Compare address spaces when
315         matching memories.
316         (cselib_lookup_mem): Likewise.
317         * fold-const.c (operand_equal_p): Check address spaces of
318         pointer types before checking integer constants.
320         PR tree-opt/66768
321         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
322         the correct type for the base.
324 2015-11-09  Jeff Law  <law@redhat.com>
326         * tree-into-ssa.c (names_to_release): No longer static.
327         * tree-into-ssa.h (names_to_release): Declare.
328         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
329         (release_free_names_and_compact_live_names): New function extracted
330         from pass_release_ssa_names::execute.
331         (pass_release_ssa_names::execute): Use it.
333 2015-11-09  Alan Modra  <amodra@gmail.com>
335         * gensupport.c (add_mnemonic_string): Make len param a size_t.
336         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
337         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
338         return value.
340 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
342         PR rtl-optimization/68182
343         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
344         branch with only one successor just like unconditional branches.
346 2015-11-08  Jeff Law  <law@redhat.com>
348         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
349         non-FSM path has no edges marked with EDGE_DFS_BACK.
350         (ssa_redirect_edges): No longer call mark_loop_for_removal.
351         (thread_single_edge, def_split_header_continue_p): Remove.
352         (bb_ends_with_multiway_branch): Likewise.
353         (thread_through_loop_header): Remove cases of threading from
354         latch through the header.  Simplify knowing we won't thread
355         the latch.
356         (thread_through_all_blocks): Simplify knowing that only the FSM
357         threader needs to handle backedges.
359 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
361         * doc/extend.texi (type attributes): Document scalar_storage_order.
362         (Structure-Packing Pragmas): Rename into...
363         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
364         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
365         (Warnings): Document -Wno-scalar-storage-order.
366         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
367         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
368         extract_bit_field and store_bit_field.
369         (initialize_argument_information): Adjust call to store_expr.
370         (load_register_parameters): Adjust call to extract_bit_field.
371         * expmed.c (check_reverse_storage_order_support): New function.
372         (check_reverse_float_storage_order_support): Likewise.
373         (flip_storage_order): Likewise.
374         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
375         of the value if it is true.  Pass REVERSE to recursive call after
376         adjusting the target offset.
377         Do not use extraction or movstrict instruction if REVERSE is true.
378         Pass REVERSE to store_fixed_bit_field.
379         (store_bit_field): Add REVERSE parameter and pass to it to above.
380         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
381         store_split_bit_field and store_fixed_bit_field_1.
382         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
383         order of the value if it is true and adjust the target offset.
384         (store_split_bit_field): Add REVERSE parameter and pass it to
385         store_fixed_bit_field.  Adjust the target offset if it is true.
386         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
387         of the value if it is true.  Pass REVERSE to recursive call after
388         adjusting the target offset.
389         Do not use extraction or subreg instruction if REVERSE is true.
390         Pass REVERSE to extract_fixed_bit_field.
391         (extract_bit_field): Add REVERSE parameter and pass to it to above.
392         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
393         extract_split_bit_field and extract_fixed_bit_field_1.
394         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
395         order of the value if it is true and adjust the target offset.
396         (extract_split_bit_field): Add REVERSE parameter and pass it to
397         extract_fixed_bit_field.  Adjust the target offset if it is true.
398         * expmed.h (flip_storage_order): Declare.
399         (store_bit_field): Adjust prototype.
400         (extract_bit_field): Likewise.
401         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
402         (emit_group_store): Adjust call to store_bit_field.
403         (copy_blkmode_from_reg): Likewise.
404         (copy_blkmode_to_reg): Likewise.
405         (write_complex_part): Likewise.
406         (read_complex_part): Likewise.
407         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
408         that it isn't true if the target is a register.
409         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
410         and flip the storage order of the value.
411         <BIT_IOR_EXPR>: Flip the storage order of the value.
412         (get_bit_range): Adjust call to get_inner_reference.
413         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
414         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
415         with reverse storage order.
416         (store_expr_with_bounds): Add REVERSE parameter and pass it to
417         recursive calls and call to store_bit_field.  Force the value into a
418         register if it is true and then flip the storage order of the value.
419         (store_expr): Add REVERSE parameter and pass it to above.
420         (categorize_ctor_elements_1): Adjust call to
421         initializer_constant_valid_p.
422         (store_constructor_field): Add REVERSE parameter and pass it to
423         recursive calls and call to store_field.
424         (store_constructor): Add REVERSE parameter and pass it to calls to
425         store_constructor_field and store_expr.  Set it to true for an
426         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
427         (store_field): Add REVERSE parameter and pass it to recursive calls
428         and calls to store_expr and store_bit_field.  Temporarily flip the
429         storage order of the value with record type and integral mode and
430         adjust the shift if it is true.
431         (get_inner_reference): Add PREVERSEP parameter and set it to true
432         upon encoutering a reference with reverse storage order.
433         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
434         (expand_constructor): Adjust call to store_constructor.
435         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
436         of the union type to store_expr in the MEM case and assert that it
437         isn't set in the REG case.  Adjust call to store_field.
438         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
439         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
440         get_inner_reference and extract_bit_field. Temporarily flip the
441         storage order of the value with record type and integral mode and
442         adjust the shift if it is true.  Flip the storage order of the value
443         at the end if it is true.
444         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
445         get_inner_reference.  Do not fetch an inner reference if it is true.
446         * expr.h (store_expr_with_bounds): Ajust prototype.
447         (store_expr): Likewise.
448         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
449         REF_REVERSE_STORAGE_ORDER on the reference according to it.
450         (optimize_bit_field_compare): Deal with reverse storage order.
451         Adjust calls to get_inner_reference and make_bit_field_ref.
452         (decode_field_reference): Add PREVERSEP parameter and adjust call to
453         get_inner_reference.
454         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
455         to decode_field_reference and make_bit_field_ref.
456         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
457         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
458         (fold_comparison): Adjust call to get_inner_reference.
459         (split_address_to_core_and_offset): Adjust call to
460         get_inner_reference.
461         * gimple-expr.c (useless_type_conversion_p): Return false for array
462         types with different TYPE_REVERSE_STORAGE_ORDER flag.
463         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
464         REF_REVERSE_STORAGE_ORDER flag.
465         * lto-streamer-out.c (hash_tree): Deal with
466         TYPE_REVERSE_STORAGE_ORDER.
467         * output.h (assemble_real): Adjust prototype.
468         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
469         * stor-layout.c (finish_record_layout): Propagate the
470         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
471         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
472         (TYPE_SATURATING): Adjust.
473         (REF_REVERSE_STORAGE_ORDER): Document.
474         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
475         set it to true upon encoutering a reference with reverse storage
476         order.
477         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
478         * tree-inline.c (remap_gimple_op_r): Propagate the
479         REF_REVERSE_STORAGE_ORDER flag.
480         (copy_tree_body_r): Likewise.
481         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
482         store_expr.
483         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
484         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
485         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
486         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
487         REF_REVERSE_STORAGE_ORDER flag.
488         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
489         (gimple_canonical_types_compatible_p): Likewise.
490         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
491         (TYPE_SATURATING): Adjust.
492         (REF_REVERSE_STORAGE_ORDER): New flag.
493         (reverse_storage_order_for_component_p): New inline predicate.
494         (storage_order_barrier_p): Likewise.
495         (get_inner_reference): Adjust prototype.
496         * varasm.c: Include expmed.h.
497         (assemble_variable_contents): Adjust call to output_constant.
498         (assemble_real): Add REVERSE parameter.  Flip the storage
499         order of the value if REVERSE is true.
500         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
501         (assemble_constant_contents): Adjust call to output_constant.
502         (output_constant_pool_2): Adjust call to assemble_real.
503         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
504         TYPE_REVERSE_STORAGE_ORDER.
505         (initializer_constant_valid_p): Add REVERSE parameter.
506         (output_constant): Add REVERSE parameter.
507         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
508         <REAL_TYPE>: Adjust call to assemble_real.
509         <COMPLEX_TYPE>: Pass it to recursive calls.
510         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
511         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
512         (struct oc_local_state): Add REVERSE field.
513         (output_constructor_array_range): Adjust calls to output_constant.
514         (output_constructor_regular_field): Likewise.
515         (output_constructor_bitfield): Adjust call to output_constructor.
516         Flip the storage order of the value if REVERSE is true.
517         (output_constructor): Add REVERSE parameter.  Set it to true for an
518         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
519         output_constructor_bitfield.
520         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
521         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
522         * builtins.c (get_object_alignment_2): Likewise.
523         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
524         and get_ref_base_and_extent.
525         * dbxout.c (dbxout_expand_expr): Likewise.
526         * dwarf2out.c (add_var_loc_to_decl): Likewise.
527         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
528         (loc_list_from_tree): Likewise.
529         (fortran_common): Likewise.
530         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
531         get_ref_base_and_extent.
532         (get_base_constructor): Likewise.
533         (fold_const_aggregate_ref_1): Likewise.
534         * gimple-laddress.c (pass_laddress::execute): Adjust call to
535         get_inner_reference.
536         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
537         get_inner_reference and bail out on reverse storage order.
538         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
539         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
540         build_ref_for_offset.
541         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
542         get_ref_base_and_extent.
543         (ipa_polymorphic_call_context): Likewise.
544         (extr_type_from_vtbl_ptr_store): Likewise.
545         (check_stmt_for_type_change): Likewise.
546         (get_dynamic_type): Likewise.
547         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
548         get_ref_base_and_extent.
549         (compute_complex_assign_jump_func): Likewise.
550         (get_ancestor_addr_info): Likewise.
551         (compute_known_type_jump_func): Likewise.
552         (determine_known_aggregate_parts): Likewise.
553         (ipa_get_adjustment_candidate): Likewise.
554         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
555         MEM_REF.
556         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
557         (build_ref_for_offset): Adjust prototype.
558         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
559         get_inner_reference.
560         * tree-affine.c (tree_to_aff_combination): Adjust call to
561         get_inner_reference.
562         (get_inner_reference_aff): Likewise.
563         * tree-data-ref.c (split_constant_offset_1): Likewise.
564         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
565         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
566         get_inner_reference.
567         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
568         (dump_access): Print new fields.
569         (create_access): Adjust call to get_ref_base_and_extent and set the
570         REVERSE flag according to the result.
571         (completely_scalarize_record): Set the REVERSE flag.
572         (scalarize_elem): Add REVERSE parameter.
573         (build_access_from_expr_1): Preserve storage order barriers.
574         (build_accesses_from_assign): Likewise.
575         (build_ref_for_offset): Add REVERSE parameter and set the
576         REF_REVERSE_STORAGE_ORDER flag accordingly.
577         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
578         the REF_REVERSE_STORAGE_ORDER flag if there are components.
579         (analyze_access_subtree): Likewise.
580         (create_artificial_child_access): Set the REVERSE flag.
581         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
582         (turn_representatives_into_adjustments): Propagate REVERSE flag.
583         (ipa_sra_check_caller): Adjust call to get_inner_reference.
584         * tree-ssa-alias.c (ao_ref_base): Adjust call to
585         get_ref_base_and_extent.
586         (aliasing_component_refs_p): Likewise.
587         (stmt_kills_ref_p_1): Likewise.
588         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
589         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
590         Return true if reverse storage order.
591         <BIT_FIELD_REF>: Likewise.
592         <COMPONENT_REF>: Likewise.
593         <ARRAY_REF>: Likewise.
594         <ARRAY_RANGE_REF>: Likewise.
595         (split_address_cost): Likewise.  Bail out if reverse storage order.
596         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
597         get_inner_reference.  Bail out if reverse storage order.
598         (bswap_replace): Adjust call to get_inner_reference.
599         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
600         the REF_REVERSE_STORAGE_ORDER flag.
601         <BIT_FIELD_REF>: Likewise.
602         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
603         barriers.
604         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
605         to the REF_REVERSE_STORAGE_ORDER flag.
606         <BIT_FIELD_REF>: Likewise.
607         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
608         (contains_storage_order_barrier_p): New predicate.
609         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
610         Punt on storage order barriers if necessary.
611         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
612         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
613         call to get_ref_base_and_extent.
614         (do_structure_copy): Likewise.
615         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
616         get_inner_reference.
617         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
618         order.
619         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
620         * ubsan.c (instrument_bool_enum_load): Likewise.
621         (instrument_object_size): Likewise.
622         * var-tracking.c (track_expr_p): Adjust call to
623         get_ref_base_and_extent
624         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
625         get_inner_reference.
626         * config/s390/s390.c (s390_expand_atomic): Adjust call to
627         store_bit_field.
628         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
629         extract_bit_field.
630         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
632 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
634         * config/sparc/sparc.opt (mfix-at697f): Add final period.
636 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
638         PR rtl-optimization/67864
639         * common/config/i386/i386-common.c (ix86_option_optimization_table)
640         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
641         at -Os and up.
643 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
645         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
646         internal functions.
648 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
650         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
651         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
653 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
655         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
656         * internal-fn.c: Don't undef it here.
657         * tree-core.h: Likewise.
659 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
661         * builtins.c (fold_builtin_nan): Delete.
662         (fold_builtin_memcmp): Remove case where both arguments are constant.
663         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
664         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
665         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
666         * fold-const-call.c: Include fold-const.h.
667         (host_size_t_cst_p): New function.
668         (build_cmp_result, fold_const_builtin_nan): Likewise.
669         (fold_const_call_1): New function, split out from...
670         (fold_const_call): ...here (for all three interfaces).  Handle
671         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
673 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
675         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
676         (fold_builtin_1): Don't call them.
677         * fold-const-call.c: Include tm.h.
678         (fold_const_call_ss): New variant for integer-to-integer folds.
679         (fold_const_call): Call it.
681 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
683         * builtins.c (fold_builtin_classify): Move constant cases to...
684         * fold-const-call.c (fold_const_call_ss): ...here.
686 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
688         * builtins.h (c_getstr): Move to...
689         * fold-const.h (c_getstr): ...here.
690         * builtins.c (c_getstr): Move to...
691         * fold-const.c (c_getstr): ...here.
693 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
695         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
696         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
698 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
700         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
701         the dominance info; free it if we can't.
702         (pass_call_cdce::execute): Don't free the dominance info here.
704 2015-11-06  Jeff Law <law@redhat.com>
706         * tree-ssa-threadedge.c (dummy_simplify): Remove.
707         (thread_around_empty_blocks): Remove backedge_seen_p argument.
708         If we thread to a backedge, then return false.  Update recursive
709         call to eliminate backedge_seen_p argument.
710         (thread_through_normal_block): Remove backedge_seen_p argument.
711         Remove backedge_seen_p argument from calls to
712         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
713         If we thread to a backedge, then return 0.
714         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
715         pass it to thread_through_normal_block or thread_through_empty_blocks.
716         For joiner handling, if we see a backedge, do not try normal
717         threading.
719 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
721         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
722         * graphite-poly.c (new_scop): Initialize original_schedule.
723         (free_scop): Free original_schedule.
724         * graphite-poly.h (struct scop): Add field original_schedule.
725         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
726         (build_poly_scop): Call build_scop_original_schedule.
728 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
730         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
731         (build_pbb_minimal_scattering_polyhedrons): New.
732         (build_scop_scattering): Remove.
733         (build_scop_minimal_scattering): New.
734         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
735         (build_poly_scop): Call build_scop_minimal_scattering.
737 2015-11-06  Jeff Law <law@redhat.com>
739         * cfg-flags.def (IGNORE): New edge flag.
740         * tree-vrp.c (identify_jump_threads): Mark and clear edges
741         scheduled for removal with EDGE_IGNORE around call into
742         jump threader.  Do no thread across edges with EDGE_IGNORE,
743         but do allow threading across those with EDGE_DFS_BACK.
745 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
747         * doc/md.texi (multi-alternative constraints): Don't document
748         alternatives inherently tied to reload for the user documentation.
750 2015-11-06  Michael Collison  <michael.collison@linaro.org
751             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
753         Revert:
754         2015-08-01  Michael Collison  <michael.collison@linaro.org
755                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
757         * config/arm/arm.md (*arm_smin_cmp): New pattern.
758         (*arm_umin_cmp): Likewise.
760 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
762         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
763         wording.
764         * omp-low.c (check_omp_nesting_restrictions): Update for the
765         various new OpenMP 4.5 nesting restrictions, clarified
766         nesting glossary, closely nested region relationship clarified
767         to mean explicit or implicit parallel regions (target/teams),
768         use %</%> or %qs where appropriate.
770 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
771             Sebastian Pop  <s.pop@samsung.com>
773         * graphite-scop-detection.c (loop_is_valid_scop): Call
774         optimize_loop_nest_for_speed_p.
776 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
777             Sebastian Pop  <s.pop@samsung.com>
779         * graphite-optimize-isl.c (optimize_isl): Call
780         isl_options_set_schedule_maximize_band_depth.
782 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
783             Sebastian Pop  <s.pop@samsung.com>
785         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
786         and exit edges should not be a part of irreducible loop.
787         (scop_detection::can_represent_loop_1): Loops should not be
788         irreducible.
789         (scop_detection::harmful_stmt_in_region): All the basic block
790         should belong to reducible loops.
792 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
794         * config/aarch64/aarch64-simd-builtins.def: Update builtins
795         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
796         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
797         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
798         (aarch64_tbx4v8qi): Rename to...
799         aarch64_tbx4<mode>): ... this.
800         (aarch64_qtbl3<mode>): New pattern.
801         (aarch64_qtbx3<mode>): New pattern.
802         (aarch64_qtbl4<mode>): New pattern.
803         (aarch64_qtbx4<mode>): New pattern.
804         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
805         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
806         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
807         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
808         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
809         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
810         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
811         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
812         functions.
814 2015-11-06  Mike Stump  <mikestump@comcast.net>
816         PR debug/66728
817         * dwarf2out.c (get_full_len): Return a value based upon the actual
818         precision needed for the value.
819         (add_const_value_attribute): Use a maximal wide-int for
820         CONST_WIDE_INTs, not VOIDmode.
821         (output_die): Don't ever output NULL with printf.
823         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
824         BLKmode nor VOIDmode values.
826 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
828         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
829         and "range2".
830         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
831         * diagnostic-core.h (warning_at_rich_loc): New declaration.
832         (error_at_rich_loc): New declaration.
833         (permerror_at_rich_loc): New declaration.
834         (inform_at_rich_loc): New declaration.
835         * diagnostic-show-locus.c (adjust_line): Delete.
836         (struct point_state): New struct.
837         (class colorizer): New class.
838         (class layout_point): New class.
839         (class layout_range): New class.
840         (struct line_bounds): New.
841         (class layout): New class.
842         (colorizer::colorizer): New ctor.
843         (colorizer::~colorizer): New dtor.
844         (layout::layout): New ctor.
845         (layout::print_source_line): New method.
846         (layout::print_annotation_line): New method.
847         (layout::get_state_at_point): New method.
848         (layout::get_x_bound_for_row): New method.
849         (diagnostic_show_locus): Reimplement in terms of class layout.
850         (diagnostic_print_caret_line): Delete.
851         * diagnostic.c (diagnostic_initialize): Replace
852         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
853         (diagnostic_set_info_translated): Convert param from location_t
854         to rich_location *.  Eliminate calls to set_location on the
855         message in favor of storing the rich_location ptr there.
856         (diagnostic_set_info): Convert param from location_t to
857         rich_location *.
858         (diagnostic_build_prefix): Break out array into...
859         (diagnostic_kind_color): New variable.
860         (diagnostic_get_color_for_kind): New function.
861         (diagnostic_report_diagnostic): Colorize the option_text
862         using the color for the severity.
863         (diagnostic_append_note): Update for change in signature of
864         diagnostic_set_info.
865         (diagnostic_append_note_at_rich_loc): New function.
866         (emit_diagnostic): Update for change in signature of
867         diagnostic_set_info.
868         (inform): Likewise.
869         (inform_at_rich_loc): New function.
870         (inform_n): Update for change in signature of diagnostic_set_info.
871         (warning): Likewise.
872         (warning_at): Likewise.
873         (warning_at_rich_loc): New function.
874         (warning_n): Update for change in signature of diagnostic_set_info.
875         (pedwarn): Likewise.
876         (permerror): Likewise.
877         (permerror_at_rich_loc): New function.
878         (error): Update for change in signature of diagnostic_set_info.
879         (error_n): Likewise.
880         (error_at): Likewise.
881         (error_at_rich_loc): New function.
882         (sorry): Update for change in signature of diagnostic_set_info.
883         (fatal_error): Likewise.
884         (internal_error): Likewise.
885         (internal_error_no_backtrace): Likewise.
886         (source_range::debug): New function.
887         * diagnostic.h (struct diagnostic_info): Eliminate field
888         "override_column".  Add field "richloc".
889         (struct diagnostic_context): Add field "colorize_source_p".
890         (diagnostic_override_column): Delete.
891         (diagnostic_set_info): Convert param from location_t to
892         rich_location *.
893         (diagnostic_set_info_translated): Likewise.
894         (diagnostic_append_note_at_rich_loc): New function.
895         (diagnostic_num_locations): New function.
896         (diagnostic_expand_location): Get the location from the
897         rich_location.
898         (diagnostic_print_caret_line): Delete.
899         (diagnostic_get_color_for_kind): New declaration.
900         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
901         (error_cb): Update for change in signature of "error" callback.
902         (fatal_at): Likewise.
903         (warning_at): Likewise.
904         * input.c (linemap_client_expand_location_to_spelling_point): New.
905         * pretty-print.c (text_info::set_range): New method.
906         (text_info::get_location): New method.
907         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
908         (struct text_info): Eliminate "locations" array in favor of
909         "m_richloc", a rich_location *.
910         (textinfo::set_location): Add a "caret_p" param, and reimplement
911         in terms of a call to set_range.
912         (textinfo::get_location): Eliminate inline implementation in favor of
913         an out-of-line reimplementation.
914         (textinfo::set_range): New method.
915         * rtl-error.c (diagnostic_for_asm): Update for change in signature
916         of diagnostic_set_info.
917         * tree-diagnostic.c (default_tree_printer): Update for new
918         "caret_p" param for textinfo::set_location.
919         * tree-pretty-print.c (percent_K_format): Likewise.
921 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
923         Properly apply.
924         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
925         * config/aarch64/aarch64.c
926         (aarch64_can_use_per_function_literal_pools_p): New.
927         (aarch64_use_blocks_for_constant_p): Adjust declaration
928         and use aarch64_can_use_function_literal_pools_p.
929         (aarch64_select_rtx_section): Update.
931 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
933         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
934         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
935         (arm_output_multireg_pop): Likewise.
936         (output_move_double):  Likewise.
937         (output_move_quad):  Likewise.
938         (output_return_instruction): Likewise.
939         (arm_print_operand): Remove support for %( and %. print modifiers.
940         (arm_output_shift): Make unified asm.
941         (arm_declare_function_name): Likewise.
942         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
943         (ASM_APP_OFF): Adjust.
944         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
945         (ASM_OUTPUT_REG_POP): Likewise.
946         * config/arm/arm.md: Adjust uses of %., %(, %)
947         * config/arm/sync.md: Likewise.
948         * config/arm/thumb2.md: Likewise.
949         * config/arm/ldmstm.md: Regenerate.
950         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
951         * doc/invoke.texi (masm-unified-syntax): Update documentation.
953 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
955         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
957 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
959         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
960         add OEP_MATCH_SIDE_EFFECTS.
961         * fold-const.c (operand_equal_p): Update documentation; handle
962         OEP_MATCH_SIDE_EFFECTS.
963         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
964         OEP_MATCH_SIDE_EFFECTS.
966 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
967             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
969         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
970         * config/aarch64/aarch64-protos.h: Declare.
971         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
972         frsqrts.
973         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
974         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation code when
975         applicable.
976         * config/aarch64/aarch64.md: Added enum entries.
977         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
978         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common macros for
979         assembly checks.
980         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
981         frsqrts and frsqrte are not emitted.
982         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure frsqrts and
983         frsqrte are emitted.
984         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
986 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
988         PR ipa/68057
989         PR ipa/68220
990         * ipa-polymorphic-call.c
991         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
992         issue when offset is out of range.
993         (contains_type_p): Fix out of range check, clear dynamic flag.
995 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
997         * config.gcc (e6500): Fix cpu_is_64bit typo.
999 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
1001         * tree-sra.c (completely_scalarize): Properly handle negative array
1002         indices using offset_int.
1004 2015-11-06  Richard Biener  <rguenther@suse.de>
1006         * alloc-pool.h (object_allocator::allocate): Default-initialize
1007         object.
1009 2015-11-06  Richard Biener  <rguenther@suse.de>
1011         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1012         * lra.c (init_reg_info): Truncate copy_vec instead of
1013         re-allocating a new one and leaking the old.
1014         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1015         bb_infos vec.
1016         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1017         * postreload-gcse.c (free_mem): Free modify_mem_list and
1018         canon_modify_mem_list.
1020 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
1022         PR tree-optimization/68145
1023         * tree-vect-stmts.c (vectorizable_operation): Fix
1024         determination for booleans.
1026 2015-11-06  Tom de Vries  <tom@codesourcery.com>
1028         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1029         cond_jump, instead of split after last nondebug insn before cond_jump.
1030         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1031         returning.
1033 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1035         PR target/68088
1036         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1037         subregs from accumulator and make sure it's a register.
1039 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
1041         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1042         low part to scalar.
1043         (reduc_uplus_<mode>): Remove.
1044         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1045         loongson_extract_lo_<mode>.
1046         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1047         reduc_smax_<mode>, reduc_smax_<mode>, use vec
1048         loongson_extract_lo_<mode>.
1049         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1051 2015-11-06  Richard Biener  <rguenther@suse.de>
1053         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1054         members.
1055         (vect_stmt_in_region_p): Declare.
1056         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1057         (destroy_bb_vec_info): Likewise.
1058         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1059         (vect_get_and_check_slp_defs): Likewise.
1060         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1061         (vect_slp_bb): Likewise.
1062         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1063         in terms of vect_stmt_in_region_p.
1064         (vect_pattern_recog): Iterate over the BB region.
1065         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1066         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1067         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1068         * config/i386/i386.c: Include gimple-iterator.h.
1069         * config/aarch64/aarch64.c: Likewise.
1071 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
1073         PR rtl-optimization/67753
1074         PR rtl-optimization/64164
1075         * function.c (assign_parm_setup_block): Avoid allocating a
1076         stack slot if we don't have an ABI-reserved one.  Emit the
1077         copy to target_reg in the conversion seq if the copy from
1078         entry_parm is in it too.  Don't use the conversion seq to copy
1079         a PARALLEL to a REG or a CONCAT.
1081 2015-11-06  Richard Biener  <rguenther@suse.de>
1083         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1084         equal_keys.
1086 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
1087             Thomas Schwinge  <thomas@codesourcery.com>
1088             James Norris  <jnorris@codesourcery.com>
1091         * gimplify.c (gimplify_scan_omp_clauses): Add support for
1092         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
1093         (gimplify_adjust_omp_clauses): Likewise.
1094         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1095         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1096         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1097         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1098         (omp_clause_code_name): Likewise.
1099         (walk_tree_1): Handle OMP_CLAUSE_TILE.
1100         * tree.h (OMP_TILE_LIST): New macro.
1102 2015-11-05  Martin Sebor  <msebor@redhat.com>
1104         PR c++/67942
1105         * doc/invoke.texi (-Wplacement-new): Document new option.
1107 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
1109         PR tree-optimization/65963
1110         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1111         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1113 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
1115         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1116         (noce_convert_multiple_sets): Likewise.
1117         (noce_process_if_block): Call them.
1119 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1121         * gimple-fold.c: Include omp-low.h.
1122         (fold_internal_goacc_dim): New.
1123         (gimple_fold_call): Call it.
1125 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
1126             Ilya Verbin  <ilya.verbin@intel.com>
1128         * builtin-types.def
1129         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1130         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1131         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1132         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1133         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1134         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1135         (struct cgraph_simd_clone_arg): Adjust comment.
1136         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1137         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
1138         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1139         to GOMP_target_data_ext.
1140         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1141         to GOMP_target_update_ext.
1142         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1143         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1144         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1145         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1146         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1147         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1148         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1149         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1150         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1151         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1152         * tree-core.h (enum omp_clause_schedule_kind): Add
1153         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1154         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1155         OMP_CLAUSE_SCHEDULE_LAST value.
1156         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1157         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1158         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1159         OMP_FOR_CHECK.  Remove comment.
1160         * tree-pretty-print.c (dump_omp_clause): Handle
1161         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1162         Simplify.  Print schedule clause modifiers.
1163         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1164         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1165         cases.
1166         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1167         (omp_default_clause): Tweak for
1168         private/firstprivate/is_device_ptr variables on target
1169         construct and use_device_ptr on target data.
1170         (omp_check_private): Likewise.
1171         (omp_notice_variable): For references check whether what it refers
1172         to has mappable type, rather than the reference itself.
1173         (omp_is_private): Diagnose linear iteration variables on non-simd
1174         constructs.
1175         (omp_no_lastprivate): Return true only for Fortran.
1176         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1177         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1178         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1179         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1180         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
1181         lastprivate and linear when combined with distribute.  Gimplify
1182         variable low-bound for array reduction.  Look through
1183         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1184         reductions.
1185         (gimplify_adjust_omp_clauses_1): For implicit references to
1186         variables with reference type and when not ref to scalar or
1187         ref to pointer, map what they refer to using tofrom and
1188         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1189         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1190         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1191         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
1192         Diagnose the same var on both firstprivate and lastprivate on
1193         distribute construct.
1194         (gimplify_omp_for): Fix up handling of predetermined
1195         lastprivate or linear iter vars when combined with distribute.
1196         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1197         functions.
1198         (gimplify_omp_workshare): Call optimize_target_teams.
1199         * omp-low.c (struct omp_region): Add sched_modifiers field.
1200         (struct omp_for_data): Likewise.
1201         (omp_any_child_fn_dumped): New variable.
1202         (extract_omp_for_data): Fill in sched_modifiers, and mask out
1203         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1204         from sched_kind.
1205         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1206         bits of OMP_CLAUSE_SCHED_KIND.
1207         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1208         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
1209         for array section reductions.
1210         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1211         for distribute parallel for, if there are lastprivate clauses on the
1212         for.
1213         (lower_rec_input_clauses): Handle non-zero low-bound on array
1214         section reductions.
1215         (lower_reduction_clauses): Likewise.
1216         (lower_send_clauses): Look through POINTER_PLUS_EXPR
1217         for array section reductions.
1218         (expand_parallel_call): Use nonmonotonic entrypoints for
1219         nonmonotonic: dynamic/guided.
1220         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1221         child_fn if current_function_decl has assembler name set, but child_fn
1222         does not.  Dump the header and IL of the child function when not in SSA
1223         form.
1224         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
1225         arguments to BUILT_IN_GOMP_TARGET.
1226         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1227         Initialize the extra _looptemp_ clause to fd->loop.n2.
1228         (expand_omp_for): Use nonmonotonic entrypoints for
1229         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
1230         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
1231         again if we have dumped any child functions.
1232         (lower_omp_for_lastprivate): Determine the right count variable
1233         for distribute simd, or distribute parallel for{, simd}.
1234         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1235         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
1236         support.
1237         (simd_clone_clauses_extract): Handle variable step
1238         for references and arguments passed by reference.
1239         (simd_clone_mangle): Mangle ref/uval/val variable steps.
1240         (simd_clone_adjust_argument_types): Handle
1241         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1242         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1243         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1244         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1245         (simd_clone_linear_addend): New function.
1246         (simd_clone_adjust): Handle variable step like similarly
1247         to constant step, use simd_clone_linear_addend to determine
1248         the actual step at runtime.
1250 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1252         * target.def (goacc.dim_limit): New hook.
1253         * targhooks.h (default_goacc_dim_limit): Declare.
1254         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1255         * doc/tm.texi: Rebuilt.
1256         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1257         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1258         (default_goacc_dim_limit): New.
1259         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1260         (nvptx_goacc_dim_limit) New.
1261         (TARGET_GOACC_DIM_LIMIT): Override.
1262         * tree-vrp.c: Include omp-low.h, target.h.
1263         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1264         IFN_GOACC_DIM_POS.
1266 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
1268         * tree-vect-generic.c (do_compare): Use -1 for true
1269         result instead of 1.
1271 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1273         * config/aarch64/aarch64.c
1274         (aarch64_can_use_per_function_literal_pools_p): New.
1275         (aarch64_use_blocks_for_constant_p): Adjust declaration
1276         and use aarch64_can_use_function_literal_pools_p.
1277         (aarch64_select_rtx_section): Update.
1279 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
1281         * targhooks.c (default_get_mask_mode): Use BLKmode in
1282         case target doesn't support required vector mode.
1283         * stor-layout.c (layout_type); Check for BLKmode.
1285 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
1286             Sebastian Pop  <s.pop@samsung.com>
1288         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1289         Remove use of parameter_rename_map.
1290         (copy_def): Remove.
1291         (copy_internal_parameters): Remove.
1292         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1293         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1294         (free_sese_info): Do not free parameter_rename_map.
1295         (set_rename): Do not use parameter_rename_map.
1296         (rename_uses): Update call to set_rename.
1297         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1298         * sese.h (parameter_rename_map_t): Remove.
1299         (struct sese_info_t): Remove field parameter_rename_map.
1301 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
1302             Sebastian Pop  <s.pop@samsung.com>
1304         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1305         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1306         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1307         anonymous namespace.
1308         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1309         (isl_id_for_pbb): Use a buffer of size 10.
1310         (isl_id_for_ssa_name): Same.
1311         * sese.c (set_rename): Add more dumps.
1313 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1315         * omp-low.c (struct omp_context): Remove reduction_map field.
1316         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1317         (new_omp_context, delete_omp_context, scan_omp_target): Remove
1318         reduction_map handling.
1319         (lower_omp_target): Remove obsolete openacc reduction handling.
1321 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1323         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1325 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1326             Cesar Philippidis  <cesar@codesourcery.com>
1328         * config/nvptx/nvptx.c: Include gimple headers.
1329         (worker_red_size, worker_red_align, worker_red_name,
1330         worker_red_sym): New.
1331         (nvptx_option_override): Initialize worker reduction buffer.
1332         (nvptx_file_end): Write out worker reduction buffer var.
1333         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1334         nvptx_expand_cmp_swap): New builtin expanders.
1335         (enum nvptx_builtins): New.
1336         (nvptx_builtin_decls): New.
1337         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1338         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1339         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1340         nvptx_lockless_update): New helpers.
1341         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1342         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1343         (nvptx_goacc_reduction): New.
1344         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1345         TARGET_BUILTIN_DECL): Override.
1346         (TARGET_GOACC_REDUCTION): Override.
1348 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
1349             Cesar Philippidis  <cesar@codesourcery.com>
1351         * internal-fn.def (GOACC_REDUCTION): New.
1352         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1353         * internal-fn.c (expand_GOACC_REDUCTION): New.
1354         * target.def (goacc.reduction): New OpenACC hook.
1355         * targhooks.h (default_goacc_reduction): Declare.
1356         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1357         * doc/tm.texi: Rebuilt.
1358         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1359         scan_sharing_clauses): Remove oacc reduction handling here.
1360         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1361         (oacc_lower_reduction_var_helper): Delete.
1362         (lower_oacc_reductions): New.
1363         (lower_reduction_clauses): Don't handle OpenACC reductions here.
1364         (lower_oacc_head_tail): Call lower_oacc_reductions.
1365         (oacc_gimple_assign, oacc_init_reduction_array,
1366         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1367         oacc_process_reduction_data): Delete.
1368         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
1369         dummy OpenACC gang reduction for reductions at outer level.
1370         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1371         (default_goacc_reduction): New.
1372         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1374 2015-11-04  Martin Liska  <mliska@suse.cz>
1376         * cgraphunit.c (cgraph_node::expand_thunk): Call
1377         allocate_struct_function before init_function_start.
1378         (cgraph_node::expand): Use push_cfun and pop_cfun.
1379         * config/i386/i386.c (ix86_code_end): Call
1380         allocate_struct_function before init_function_start.
1381         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1382         * function.c (init_function_start): Move preamble to all
1383         callers.
1384         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1385         (execute_one_pass): Handle newly added TODO_discard_function.
1386         (execute_pass_list_1): Terminate if cfun equals to NULL.
1387         (execute_pass_list): Do not push and pop cfun, expect that
1388         cfun is set.
1389         * tree-pass.h (TODO_discard_function): Define.
1391 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
1393         * cfganal.c (inverted_post_order_compute): Remove conditional
1394         compilation, use flag_checking.
1395         * config.in: Regenerate.
1396         * configure: Regenerate.
1397         * configure.ac: Remove ENABLE_CHECKING.
1398         * genconditions.c: Do not #undef ENABLE_CHECKING.
1399         * sese.h (bb_in_region): Comment out broken check.
1400         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1401         conditional compilation, use flag_checking.
1403 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1405         PR tree-optimization/67742
1406         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1407         field.
1408         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1409         (create_variable_info_for_1): Add and handle handle_param parameter.
1410         Add restrict handling.
1411         (create_variable_info_for): Call create_variable_info_for_1 with extra
1412         arg.
1413         (make_param_constraints): Drop restrict_name parameter.  Ignore
1414         vi->only_restrict_pointers.
1415         (intra_create_variable_infos): Call create_variable_info_for_1 with
1416         extra arg.  Remove restrict handling.  Call make_param_constraints with
1417         one fewer arg.
1419 2015-11-04  Tom de Vries  <tom@codesourcery.com>
1421         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1422         variable.
1424 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1426         * config/arm/coff.h: Remove.
1428 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1430         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1431         check for aggregate types and beef up comment for mode check.
1433 2015-11-03  Richard Biener  <rguenther@suse.de>
1435         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1436         data references here.
1437         * tree-vect-loop.c: Include cgraph.h.
1438         (vect_analyze_loop_2): Collect data references here.
1439         * tree-vect-slp.c (find_bb_location): Inline ...
1440         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
1441         Factor in vect_slp_transform_bb.
1442         (vect_slp_transform_bb): Removed.
1443         (vect_slp_analyze_bb_1): Collect data references here.
1444         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1445         vect_slp_bb.
1446         * tree-vectorizer.h (vect_slp_bb): Declare.
1447         (vect_slp_analyze_bb): Remove.
1448         (vect_slp_transform_bb): Remove.
1449         (find_bb_location): Remove.
1450         (vect_analyze_data_refs): Remove stmt count reference parameter.
1452 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
1454         * multiple_target.c (create_dispatcher_calls): Add target check
1455         on ifunc.
1456         (create_target_clone): Change assembler name for versioned declarations.
1458 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
1459             Chung-Lin Tang  <cltang@codesourcery.com>
1461         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1462         * omp-low.c (check_omp_nesting_restrictions): Allow
1463         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1464         contexts.
1466 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
1468         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1469         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1470         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1471         builtin.
1472         (vmulxq_f32): Likewise.
1473         (vmulx_f64): New.
1474         (vmulxq_f64): Rewrite to call fmulx builtin.
1475         (vmulxs_f32): Likewise.
1476         (vmulxd_f64): Likewise.
1477         (vmulx_lane_f32): Remove.
1478         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1480 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
1482         * config/aarch64/aarch64.md (*movhf_aarch64): Use
1483         aarch64_reg_or_fp_zero for second operand.
1485 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
1487         * gimple-expr.c: Include hash-set.h and rtl.h.
1488         (mark_addressable_queue): New var.
1489         (mark_addressable): Factor actual marking into...
1490         (mark_addressable_1): ... this.  Queue it up during expand.
1491         (mark_addressable_2): New.
1492         (flush_mark_addressable_queue): New.
1493         * gimple-expr.h (flush_mark_addressable_queue): Declare.
1494         * cfgexpand.c: Include gimple-expr.h.
1495         (pass_expand::execute): Flush mark_addressable queue.
1497 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
1499         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1500         bb_no_side_effects_p tests...
1501         (tree_ssa_ifcombine_bb): ... here.
1503         PR tree-optimization/68083
1504         * tree-ssa-ifcombine.c: Include tree-ssa.h.
1505         (bb_no_side_effects_p): Test for undefined uses too.
1506         * tree-ssa.c (gimple_uses_undefined_value_p): New.
1507         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1509 2015-11-02  Jeff Law <law@redhat.com>
1511         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1512         cases where the loop latch edge is in the middle of an FSM path.
1514 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1516         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1517         (make_param_constraints): ... this.  Add and handle restrict_name
1518         parameter.  Handle is_full_var case.
1519         (intra_create_variable_infos): Use make_param_constraints.
1521 2015-11-03  Tom de Vries  <tom@codesourcery.com>
1523         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1524         make_copy_constraint call with make_constraint_from call.
1526 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
1528         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1529         PIE executables.
1531 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
1533         * builtins.h (fold_fma): Move to fold-const-call.h.
1534         * builtins.c: Include fold-const-call.h.
1535         (mathfn_built_in_2): New function, split out from...
1536         (mathfn_built_in_1): ...here.
1537         (do_real_to_int_conversion, fold_const_builtin_pow)
1538         (fold_const_builtin_logb, fold_const_builtin_significand)
1539         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1540         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1541         (fold_builtin_sincos): Use fold_const_call to handle constants.
1542         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1543         checks for ERROR_MARK.  Use fold_const_call to handle constant
1544         folds for math functions.
1545         (fold_fma): Move to fold-const-call.c.
1546         * fold-const.c: Include fold-const-call.h.
1547         * Makefile.in (OBJS): Add fold-const-call.o.
1548         (PLUGIN_HEADERS): Add fold-const-call.h.
1549         * realmpfr.h (real_from_mpfr): Allow the format to be specified
1550         directly.
1551         * realmpfr.c (real_from_mpfr): Likewise.
1552         * fold-const-call.h, fold-const-call.c: New files.
1554 2015-11-02  Julian Brown  <julian@codesourcery.com>
1556         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1557         brackets and semicolon.
1559 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
1561         Revert:
1562         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1564         PR tree-optimization/65963
1565         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1566         LSHIFT_EXPRs as equivalent MULT_EXPRs.
1568 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1570         PR middle-end/68166
1571         * fold-const.c: Include "md5.h".
1573 2015-11-01  Jeff Law <law@redhat.com>
1575         * vmsdbgout.c: Revert unused header file reduction patch.
1577         * config/mcore/mcore.c: Include regs.h.
1579 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
1581         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1583 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
1585         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1586         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1587         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1589 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
1591         * ggc-common.c: Restore needed header for checking=release.
1593 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1595         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1597 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1599         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1600         existing varinfo for arguments.
1602 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1604         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1605         create_function_info_for.  Dump constraints generated during
1606         create_function_info_for. Move intra_create_variable_infos call and
1607         function-return-values-escape bit to ...
1608         (create_function_info_for): ... here, and merge
1609         intra_create_variable_infos call with argument loop.  Add and handle
1610         nonlocal_p parameter.
1612 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1614         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1615         updating is alap, and seperated from preceding code.  Make sure
1616         insert_vi_for_tree is seperated from surrounding code.
1618 2015-10-31  Tom de Vries  <tom@codesourcery.com>
1620         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1622 2015-10-30  Jeff Law <law@redhat.com>
1623             Nathan Sidwell  <nathan@acm.org>
1625         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1626         args.
1627         (MOVE_MAX): Set to 8.
1629 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
1631         * cgraph.c: Include context.h for offloading.
1632         * varpool.c: Include context.h and omp-low.h.
1634 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
1636         * rtl.h (contains_symbol_ref_p): Declare.
1637         (SYMBOL_REF_P): Define.
1638         * rtlanal.c (contains_symbol_ref_p: New function.
1639         * lra-constraints.c (contains_symbol_ref_p): Remove.
1640         * var-tracking.c (contains_symbol_ref): Remove.
1641         (track_expr_p): Use contains_symbol_ref_p instead of
1642         contains_symbol_ref.
1644 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
1646         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1647         * fold-const.c (get_array_ctor_element_at_index): New.
1648         (fold): Remove binary-search through CONSTRUCTOR, call previous.
1650         * fold-const.h (get_array_ctor_element_at_index): New.
1652 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
1654         * Makefile.in (OBJS): Add multiple_target.o.
1655         * attrib.c (make_attribute): Moved from config/i386/i386.c
1656         * config/i386/i386.c (make_attribute): Deleted.
1657         * multiple_target.c (create_dispatcher_calls): New.
1658         (get_attr_len): Ditto.
1659         (get_attr_str): Ditto.
1660         (separate_attrs): Ditto.
1661         (is_valid_asm_symbol): Ditto.
1662         (create_new_asm_name): Ditto.
1663         (create_target_clone): Ditto.
1664         (expand_target_clones): Ditto.
1665         (ipa_target_clone): Ditto.
1666         (ipa_dispatcher_calls): Ditto.
1667         * passes.def (pass_target_clone): Two new ipa passes.
1668         * tree-pass.h (make_pass_target_clone): Ditto.
1669         * doc/extend.texi (target_clones): New attribute description.
1671 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
1673         PR rtl-optimization/68106
1674         * lra-remat.c (input_regno_present_p): Process hard regs
1675         explicitly present in machine description insns.
1676         (call_used_input_regno_present_p): Ditto.
1677         (calculate_gen_cands): Ditto.
1678         (do_remat): Ditto.
1680 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
1682         * config/arm/neon-testgen.ml: Fix comment typo.
1684 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1686         * rtlanal.c (reg_set_p): Expand function comment.
1688 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
1690         * alias.c: Remove unused headers.
1691         * asan.c: Likewise.
1692         * attribs.c: Likewise.
1693         * auto-inc-dec.c: Likewise.
1694         * auto-profile.c: Likewise.
1695         * bb-reorder.c: Likewise.
1696         * bitmap.c: Likewise.
1697         * bt-load.c: Likewise.
1698         * builtins.c: Likewise.
1699         * caller-save.c: Likewise.
1700         * calls.c: Likewise.
1701         * ccmp.c: Likewise.
1702         * cfg.c: Likewise.
1703         * cfganal.c: Likewise.
1704         * cfgbuild.c: Likewise.
1705         * cfgcleanup.c: Likewise.
1706         * cfgexpand.c: Likewise.
1707         * cfghooks.c: Likewise.
1708         * cfgloop.c: Likewise.
1709         * cfgloopanal.c: Likewise.
1710         * cfgloopmanip.c: Likewise.
1711         * cfgrtl.c: Likewise.
1712         * cgraph.c: Likewise.
1713         * cgraphbuild.c: Likewise.
1714         * cgraphclones.c: Likewise.
1715         * cgraphunit.c: Likewise.
1716         * cilk-common.c: Likewise.
1717         * combine-stack-adj.c: Likewise.
1718         * combine.c: Likewise.
1719         * compare-elim.c: Likewise.
1720         * convert.c: Likewise.
1721         * coverage.c: Likewise.
1722         * cppbuiltin.c: Likewise.
1723         * cprop.c: Likewise.
1724         * cse.c: Likewise.
1725         * cselib.c: Likewise.
1726         * data-streamer-in.c: Likewise.
1727         * data-streamer-out.c: Likewise.
1728         * data-streamer.c: Likewise.
1729         * dbxout.c: Likewise.
1730         * dce.c: Likewise.
1731         * ddg.c: Likewise.
1732         * debug.c: Likewise.
1733         * df-core.c: Likewise.
1734         * df-problems.c: Likewise.
1735         * df-scan.c: Likewise.
1736         * dfp.c: Likewise.
1737         * dojump.c: Likewise.
1738         * dominance.c: Likewise.
1739         * domwalk.c: Likewise.
1740         * double-int.c: Likewise.
1741         * dse.c: Likewise.
1742         * dumpfile.c: Likewise.
1743         * dwarf2asm.c: Likewise.
1744         * dwarf2cfi.c: Likewise.
1745         * dwarf2out.c: Likewise.
1746         * emit-rtl.c: Likewise.
1747         * except.c: Likewise.
1748         * explow.c: Likewise.
1749         * expmed.c: Likewise.
1750         * expr.c: Likewise.
1751         * final.c: Likewise.
1752         * fixed-value.c: Likewise.
1753         * fold-const.c: Likewise.
1754         * function.c: Likewise.
1755         * fwprop.c: Likewise.
1756         * gcse.c: Likewise.
1757         * generic-match-head.c: Likewise.
1758         * ggc-common.c: Likewise.
1759         * gimple-builder.c: Likewise.
1760         * gimple-expr.c: Likewise.
1761         * gimple-fold.c: Likewise.
1762         * gimple-iterator.c: Likewise.
1763         * gimple-low.c: Likewise.
1764         * gimple-match-head.c: Likewise.
1765         * gimple-pretty-print.c: Likewise.
1766         * gimple-ssa-isolate-paths.c: Likewise.
1767         * gimple-ssa-strength-reduction.c: Likewise.
1768         * gimple-streamer-in.c: Likewise.
1769         * gimple-streamer-out.c: Likewise.
1770         * gimple-walk.c: Likewise.
1771         * gimple.c: Likewise.
1772         * gimplify-me.c: Likewise.
1773         * gimplify.c: Likewise.
1774         * godump.c: Likewise.
1775         * graph.c: Likewise.
1776         * graphds.c: Likewise.
1777         * haifa-sched.c: Likewise.
1778         * hw-doloop.c: Likewise.
1779         * ifcvt.c: Likewise.
1780         * init-regs.c: Likewise.
1781         * internal-fn.c: Likewise.
1782         * ipa-chkp.c: Likewise.
1783         * ipa-comdats.c: Likewise.
1784         * ipa-cp.c: Likewise.
1785         * ipa-devirt.c: Likewise.
1786         * ipa-icf-gimple.c: Likewise.
1787         * ipa-icf.c: Likewise.
1788         * ipa-inline-analysis.c: Likewise.
1789         * ipa-inline-transform.c: Likewise.
1790         * ipa-inline.c: Likewise.
1791         * ipa-polymorphic-call.c: Likewise.
1792         * ipa-profile.c: Likewise.
1793         * ipa-prop.c: Likewise.
1794         * ipa-pure-const.c: Likewise.
1795         * ipa-ref.c: Likewise.
1796         * ipa-reference.c: Likewise.
1797         * ipa-split.c: Likewise.
1798         * ipa-utils.c: Likewise.
1799         * ipa-visibility.c: Likewise.
1800         * ipa.c: Likewise.
1801         * ira-build.c: Likewise.
1802         * ira-color.c: Likewise.
1803         * ira-conflicts.c: Likewise.
1804         * ira-costs.c: Likewise.
1805         * ira-emit.c: Likewise.
1806         * ira-lives.c: Likewise.
1807         * ira.c: Likewise.
1808         * jump.c: Likewise.
1809         * langhooks.c: Likewise.
1810         * lcm.c: Likewise.
1811         * lists.c: Likewise.
1812         * loop-doloop.c: Likewise.
1813         * loop-init.c: Likewise.
1814         * loop-invariant.c: Likewise.
1815         * loop-iv.c: Likewise.
1816         * loop-unroll.c: Likewise.
1817         * lower-subreg.c: Likewise.
1818         * lra-assigns.c: Likewise.
1819         * lra-coalesce.c: Likewise.
1820         * lra-constraints.c: Likewise.
1821         * lra-eliminations.c: Likewise.
1822         * lra-lives.c: Likewise.
1823         * lra-remat.c: Likewise.
1824         * lra-spills.c: Likewise.
1825         * lra.c: Likewise.
1826         * lto-cgraph.c: Likewise.
1827         * lto-compress.c: Likewise.
1828         * lto-opts.c: Likewise.
1829         * lto-section-in.c: Likewise.
1830         * lto-section-out.c: Likewise.
1831         * lto-streamer-in.c: Likewise.
1832         * lto-streamer-out.c: Likewise.
1833         * lto-streamer.c: Likewise.
1834         * mcf.c: Likewise.
1835         * mode-switching.c: Likewise.
1836         * modulo-sched.c: Likewise.
1837         * optabs.c: Likewise.
1838         * opts-global.c: Likewise.
1839         * passes.c: Likewise.
1840         * plugin.c: Likewise.
1841         * postreload-gcse.c: Likewise.
1842         * postreload.c: Likewise.
1843         * predict.c: Likewise.
1844         * print-tree.c: Likewise.
1845         * profile.c: Likewise.
1846         * real.c: Likewise.
1847         * realmpfr.c: Likewise.
1848         * recog.c: Likewise.
1849         * ree.c: Likewise.
1850         * reg-stack.c: Likewise.
1851         * regcprop.c: Likewise.
1852         * reginfo.c: Likewise.
1853         * regrename.c: Likewise.
1854         * regstat.c: Likewise.
1855         * reload.c: Likewise.
1856         * reload1.c: Likewise.
1857         * reorg.c: Likewise.
1858         * resource.c: Likewise.
1859         * rtl-chkp.c: Likewise.
1860         * rtl-error.c: Likewise.
1861         * rtlanal.c: Likewise.
1862         * rtlhooks.c: Likewise.
1863         * sanopt.c: Likewise.
1864         * sched-deps.c: Likewise.
1865         * sched-ebb.c: Likewise.
1866         * sched-rgn.c: Likewise.
1867         * sdbout.c: Likewise.
1868         * sel-sched-dump.c: Likewise.
1869         * sel-sched-ir.c: Likewise.
1870         * sel-sched.c: Likewise.
1871         * sese.c: Likewise.
1872         * shrink-wrap.c: Likewise.
1873         * simplify-rtx.c: Likewise.
1874         * stack-ptr-mod.c: Likewise.
1875         * statistics.c: Likewise.
1876         * stmt.c: Likewise.
1877         * stor-layout.c: Likewise.
1878         * store-motion.c: Likewise.
1879         * stringpool.c: Likewise.
1880         * symtab.c: Likewise.
1881         * target-globals.c: Likewise.
1882         * targhooks.c: Likewise.
1883         * toplev.c: Likewise.
1884         * tracer.c: Likewise.
1885         * trans-mem.c: Likewise.
1886         * tree-affine.c: Likewise.
1887         * tree-call-cdce.c: Likewise.
1888         * tree-cfg.c: Likewise.
1889         * tree-cfgcleanup.c: Likewise.
1890         * tree-chkp-opt.c: Likewise.
1891         * tree-chkp.c: Likewise.
1892         * tree-chrec.c: Likewise.
1893         * tree-complex.c: Likewise.
1894         * tree-data-ref.c: Likewise.
1895         * tree-dfa.c: Likewise.
1896         * tree-diagnostic.c: Likewise.
1897         * tree-dump.c: Likewise.
1898         * tree-eh.c: Likewise.
1899         * tree-emutls.c: Likewise.
1900         * tree-if-conv.c: Likewise.
1901         * tree-inline.c: Likewise.
1902         * tree-into-ssa.c: Likewise.
1903         * tree-iterator.c: Likewise.
1904         * tree-loop-distribution.c: Likewise.
1905         * tree-nested.c: Likewise.
1906         * tree-nrv.c: Likewise.
1907         * tree-object-size.c: Likewise.
1908         * tree-outof-ssa.c: Likewise.
1909         * tree-parloops.c: Likewise.
1910         * tree-phinodes.c: Likewise.
1911         * tree-predcom.c: Likewise.
1912         * tree-pretty-print.c: Likewise.
1913         * tree-profile.c: Likewise.
1914         * tree-scalar-evolution.c: Likewise.
1915         * tree-sra.c: Likewise.
1916         * tree-ssa-address.c: Likewise.
1917         * tree-ssa-alias.c: Likewise.
1918         * tree-ssa-ccp.c: Likewise.
1919         * tree-ssa-coalesce.c: Likewise.
1920         * tree-ssa-copy.c: Likewise.
1921         * tree-ssa-dce.c: Likewise.
1922         * tree-ssa-dse.c: Likewise.
1923         * tree-ssa-forwprop.c: Likewise.
1924         * tree-ssa-ifcombine.c: Likewise.
1925         * tree-ssa-live.c: Likewise.
1926         * tree-ssa-loop-ch.c: Likewise.
1927         * tree-ssa-loop-im.c: Likewise.
1928         * tree-ssa-loop-ivcanon.c: Likewise.
1929         * tree-ssa-loop-ivopts.c: Likewise.
1930         * tree-ssa-loop-manip.c: Likewise.
1931         * tree-ssa-loop-niter.c: Likewise.
1932         * tree-ssa-loop-prefetch.c: Likewise.
1933         * tree-ssa-loop-unswitch.c: Likewise.
1934         * tree-ssa-loop.c: Likewise.
1935         * tree-ssa-math-opts.c: Likewise.
1936         * tree-ssa-operands.c: Likewise.
1937         * tree-ssa-phiopt.c: Likewise.
1938         * tree-ssa-phiprop.c: Likewise.
1939         * tree-ssa-pre.c: Likewise.
1940         * tree-ssa-propagate.c: Likewise.
1941         * tree-ssa-reassoc.c: Likewise.
1942         * tree-ssa-scopedtables.c: Likewise.
1943         * tree-ssa-sink.c: Likewise.
1944         * tree-ssa-strlen.c: Likewise.
1945         * tree-ssa-structalias.c: Likewise.
1946         * tree-ssa-tail-merge.c: Likewise.
1947         * tree-ssa-ter.c: Likewise.
1948         * tree-ssa-threadupdate.c: Likewise.
1949         * tree-ssa-uncprop.c: Likewise.
1950         * tree-ssa-uninit.c: Likewise.
1951         * tree-ssa.c: Likewise.
1952         * tree-ssanames.c: Likewise.
1953         * tree-stdarg.c: Likewise.
1954         * tree-streamer-in.c: Likewise.
1955         * tree-streamer-out.c: Likewise.
1956         * tree-streamer.c: Likewise.
1957         * tree-switch-conversion.c: Likewise.
1958         * tree-tailcall.c: Likewise.
1959         * tree-vect-data-refs.c: Likewise.
1960         * tree-vect-generic.c: Likewise.
1961         * tree-vect-loop-manip.c: Likewise.
1962         * tree-vect-loop.c: Likewise.
1963         * tree-vect-patterns.c: Likewise.
1964         * tree-vect-slp.c: Likewise.
1965         * tree-vect-stmts.c: Likewise.
1966         * tree-vectorizer.c: Likewise.
1967         * tree-vrp.c: Likewise.
1968         * tree.c: Likewise.
1969         * tsan.c: Likewise.
1970         * ubsan.c: Likewise.
1971         * value-prof.c: Likewise.
1972         * var-tracking.c: Likewise.
1973         * varasm.c: Likewise.
1974         * varpool.c: Likewise.
1975         * vmsdbgout.c: Likewise.
1976         * vtable-verify.c: Likewise.
1977         * web.c: Likewise.
1978         * wide-int-print.cc: Likewise.
1979         * wide-int.cc: Likewise.
1980         * xcoffout.c: Likewise.
1982 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
1984         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
1985         between pass numbering and execution order.
1987 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1989         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
1990         check for dependencies.
1992 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1994         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
1995         CDI_DOMINATORS.
1997 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
1999         * real.h (format_helper): New.
2000         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2001         (real_from_target, real_nan, real_2expN, real_value_truncate)
2002         (significand_size, real_from_string2, exact_real_inverse)
2003         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2004         (real_round, real_isinteger, real_from_integer): Replace
2005         machine_mode arguments with format_helper arguments.
2006         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2007         (real_from_integer, real_nan, real_2expN, real_convert)
2008         (real_value_truncate, exact_real_truncate, real_to_target)
2009         (real_from_target, significand_size, real_powi, real_trunc)
2010         (real_floor, real_ceil, real_round, real_isinteger): Replace
2011         machine_mode arguments with format_helper arguments.
2012         (real_to_target_fmt, real_from_target_fmt): Delete.
2013         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2014         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2015         argument with real_format.
2016         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2018 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2020         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2021         (fixed_to_decimal, fixed_convert_from_real)
2022         (real_convert_from_fixed): Fix mode arguments to real_2expN.
2024 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
2026         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2027         SCALAR_FLOAT_MODE_P.
2029 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2031         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2032         (completely_scalarize): Comment zero-length arrays.
2033         (get_access_replacement): Correct comment re. precondition.
2035 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2037         * config/i386/i386.c (get_builtin_code_for_version): Set priority
2038         for PROCESSOR_ZNVER1.
2039         (enum processor_model): Add M_AMDFAM17H_znver1.
2040         (struct arch_names_table): Likewise.
2041         * doc/extend.texi: ADD znver1.
2043 2015-10-30  Richard Biener  <rguenther@suse.de>
2045         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2046         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
2047         zeros to be folded to VECTOR_CSTs.
2048         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2049         * fold-const.c (fold): Use build_vector_from_ctor.
2051 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
2053         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2054         "mov %0.h[0], %1.h[0] to "neon_move".
2055         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2056         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2057         "mov_imm".
2058         (*cmovsi_insn_uxtw): Likewise.
2060 2015-10-30  Tom de Vries  <tom@codesourcery.com>
2062         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2063         unsigned, and initialize, and use initial value instead of hardcoded
2064         constant.  Add generic constraints dumping section.  Don't dump global
2065         initializers constraints dumping section if empty.  Don't update
2066         variable from if unused.
2068 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
2070         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2071         flag_checking and/or CHECKING_P to eliminate conditional compilation
2072         on ENABLE_CHECKING.
2073         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2074         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2075         * config/i386/i386.c (ix86_print_operand_address): Likewise.
2076         (output_387_binary_op): Likewise.
2077         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2078         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2079         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2080         Likewise.
2081         * config/rs6000/rs6000.h: Likewise.
2082         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2084 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2086         * config/sh/sh.opt (mfdpic): Add missing period.
2088 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
2090         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2091         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2092         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2093         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2094         mcore_base_register_rtx_p, mcore_legitimate_index_p,
2095         mcore_legitimate_address_p): New functions.
2096         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2098 2015-10-29  Jeff Law  <law@redhat.com>
2100         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2101         method.
2102         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2103         * tree-ssa-threadedge.c
2104         (record_temporary_equivalences_from_stmts_at_dest): Remove
2105         backedge_seen argument and associated code which invalidated
2106         equivalences based on the value of that argument.
2107         (thread_through_normal_block): Corresponding changes.
2109 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2111         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2112         function earlier in the file.
2113         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2114         df_regs_ever_live_p.
2116 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
2118         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2119         by ignoring it.
2121 2015-10-29  Richard Henderson  <rth@redhat.com>
2123         PR target/68124
2124         PR rtl-opt/67609
2125         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2126         sse check to the exact conditions of PR 67609.
2128 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2130         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2131         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2132         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2133         of the traditional names that TFmode uses for handling IEEE
2134         extended double. If -mfloat128, add KFmode functions for all of
2135         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2136         make TFmode use the same emulation functions as KFmode.
2137         (init_float128_ibm): Likewise.
2138         (init_float128_ieee): Likewise.
2139         (rs6000_generate_compare): For IEEE 128-bit floating point
2140         comparisons, call the unordered comparison function instead of the
2141         ordered comparison function.
2142         (rs6000_expand_float128_convert): Deal with operands that are
2143         memory operands. Restructure the code to use a switch statement on
2144         the mode. Add support for TFmode defaulting to either IBM extended
2145         double or IEEE 128-bit floating point. If the underlying types are
2146         the same, use a move instead of a conversion function.
2147         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2148         use for IEEE 128-bit floating point constants with -mfloat128.
2149         (rs6000_c_mode_for_suffix): Likewise.
2150         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2151         128-bit floating point with IBM extended double floating point.
2152         (rs6000_invalid_binary_op): Likewise.
2153         (rs6000_gen_le_vsx_permute): On little endian systems generate a
2154         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2155         types that can go in vector registers.
2156         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2157         point types that can go in vector registers on little endian
2158         PowerPC systems.
2159         (mark_swaps_for_removal): Likewise.
2160         (rs6000_analyze_swaps): Likewise.
2161         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2163         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2164         rework IEEE 128-bit floating point insns to deal with TFmode being
2165         either IBM extended double or IEEE 128-bit floating point.
2166         (IFKF): Likewise.
2167         (IBM128): Update iterator to add condition that the mode is IBM
2168         extended double.
2169         (IEEE128): New iterator for IEEE 128-bit floating point.
2170         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2171         (FLOAT128): Likewise.
2172         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2173         iterator.
2174         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2175         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2176         instead of hard coding TFmode or KFmode.
2177         (negtf2_internal): Likewise.
2178         (neg<mode>2_internal): Likewise.
2179         (abs<mode>2): Likewise.
2180         (abstf2_internal): Likewise.
2181         (abs<mode>2_internal): Likewise.
2182         (ieee_128bit_neg<mode>2): Likewise.
2183         (ieee_128bit_neg<mode>2_internal): Likewise.
2184         (ieee_128bit_abs<mode>2): Likewise.
2185         (ieee_128bit_abs<mode>2_internal): Likewise.
2186         (ieee_128bit_nabs<mode>2): Likewise.
2187         (ieee_128bit_nabs<mode>2_internal): Likewise.
2188         (extendiftf2): Add explicit conversions between 128-bit floating
2189         point types. Drop the old conversions that had become unwieldy.
2190         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2191         (extendifkf2): Likewise.
2192         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2193         (extendtfkf2): Likewise.
2194         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2195         (trunciftf2): Likewise.
2196         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2197         (truncifkf2): Likewise.
2198         (float<SDI:mode><IFKF:mode>2): Likewise.
2199         (trunckftf2): Likewise.
2200         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2201         (trunctfif2): Likewise.
2202         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2203         (extenddftf2): Rework 128-bit floating point conversions to
2204         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2205         KFmode expanders into one function.
2206         (extenddf<mode>2): Likewise.
2207         (extenddftf2_fprs): Likewise.
2208         (extenddf<mode>2_fprs): Likewise.
2209         (extenddftf2_vsx): Likewise.
2210         (extenddf<mode>2_vsx): Likewise.
2211         (extendsftf2): Likewise.
2212         (extendsf<mode>2): Likewise.
2213         (trunctfdf2): Likewise.
2214         (trunc<mode>df2): Likewise.
2215         (trunctfdf2_internal1): Likewise.
2216         (trunc<mode>df2_internal1): Likewise.
2217         (trunctfdf2_internal2): Likewise.
2218         (trunc<mode>df2_internal2): Likewise.
2219         (trunctfsf2): Likewise.
2220         (trunc<mode>sf2): Likewise.
2221         (trunctfsf2_fprs): Likewise.
2222         (trunc<mode>sf2_fprs): Likewise.
2223         (floatsit2f): Likewise.
2224         (floatsi<mode>2): Likewise.
2225         (fix_trunc_helper): Likewise.
2226         (fix_trunc_helper<mode>): Likewise.
2227         (fix_trunctfsi2): Likewise.
2228         (fix_trunc<mode>si2): Likewise.
2229         (fix_trunctfsi2_fprs): Likewise.
2230         (fix_trunc<mode>si2_fprs): Likewise.
2231         (fix_trunctfsi2_internal): Likewise.
2232         (fix_trunc<mode>si2_internal): Likewise.
2233         (fix_trunctfdi2): Likewise.
2234         (fix_trunc<mode>di2): Likewise.
2235         (fixuns_trunctf<mode>2): Likewise.
2236         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2237         (floatditf2): Likewise.
2238         (floatdi<mode>2): Likewise.
2239         (floatuns<mode>tf2): Likewise.
2240         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2241         (cmptf_internal1): Use a mode iterator to add support for both
2242         types (IFmode, TFmode) that support IBM extended double.
2243         (cmp<mode>_internal1): Likewise.
2244         (cmptf_internal2): Likewise.
2245         (cmp<mode>_internal2): Likewise.
2247         * doc/extend.texi (Floating Types): Document __ibm128 and
2248         __float128 on PowerPC.
2250         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2251         -mfloat128 and -mno-float128.
2253 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2255         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2256         floating point modes that can go in vector registers.
2257         (MODES_TIEABLE_P): Move tests for vector modes before tests for
2258         scalar floating point, so that IEEE 128-bit floating point that
2259         can go in vector registers bind with vectors and not FP.
2260         (struct rs6000_args): Add libcall field.
2262         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2263         and -mfloat128-software switches.  Replace them with a binary
2264         -mfloat128 switch.
2265         (-mfloat128): Likewise.
2267         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2268         128-bit floating point types in GPRs, even if the appropriate
2269         option enabling the type was not used.
2270         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2271         debugging.
2272         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2273         pre-decrement on IEEE 128-bit floating point values.
2274         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2275         is IEEE 128-bit floating point.
2276         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2277         128-bit floating point types that can go in vector registers.
2278         (rs6000_option_override_internal): Change -mfloat128-none and
2279         -mfloat128-software to -mfloat128, and move code to be near other
2280         VSX option handling.
2281         (rs6000_option_override_internal): Disable -mfloat128 if we don't
2282         have the Altivec ABI.
2283         (rs6000_init_builtins): Don't make TFmode use either IFmode or
2284         KFmode floating point nodes. Instead, have three separate nodes.
2285         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2286         eventually moving the long double default to IEEE 128-bit floating
2287         point.
2288         (rs6000_opt_masks): Add -mfloat128.
2289         (struct rs6000_opt_var): Fix typo in comment.
2290         (init_cumulative_args): Initialize libcall field in
2291         CUMULATIVE_ARGS.
2292         (rs6000_function_arg): Treat library functions as if they had
2293         prototypes to prevent IEEE 128-bit support functions from passing
2294         arguments in both GPRs and vector registers.
2295         (rs6000_arg_partial_bytes): Likewise.
2297         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2298         an option that can be turned on via -mcpu=<xxx>.
2300         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2301         longer used.
2303         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2304         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2305         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2306         double is IBM extended double.
2308         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2309         SUBREGs.
2311 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
2313         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2314         * genconditions.c: Define CHECKING_P in the generated code.
2315         * genextract.c: Use flag_checking in insn_extract.
2316         * gengtype.c (main): Remove conditional compilation.
2317         * gengtype.h: Likewise.
2319 2015-10-29  Jeff Law  <law@redhat.com>
2321         PR tree-optimization/67892
2322         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2323         in comment.
2324         (thread_through_normal_block): If we have seen a backedge, then
2325         do nothing.  No longer call find_jump_threads_backwards here.
2326         (thread_across_edge): Use find_jump_threads_backwards to find
2327         jump threads if the old style threader was not successful.
2328         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2329         gsi_last_nondebug_bb.  Return NULL if the block does not end
2330         with a control statement.
2331         (find_jump_threads_backwards): Setup code moved here from
2332         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
2333         single edge argument instead of name & block.
2334         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2335         prototype.
2337 2015-10-29  Tom de Vries  <tom@codesourcery.com>
2339         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2340         types.
2342 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
2344         * omp-low.c (lower_omp_target): Remove unreachable code & merge
2345         ifs.
2347 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
2349         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2351 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2353         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2354         guard_bb0 and use guard_bb throughout.
2356 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
2358         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2359         unnecessary label.
2361 2015-10-29  Richard Biener  <rguenther@suse.de>
2363         PR middle-end/68142
2364         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2365         overflow.
2367 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
2369         * alias.c: Reorder #include statements and remove duplicates.
2370         * asan.c: Likewise.
2371         * attribs.c: Likewise.
2372         * auto-inc-dec.c: Likewise.
2373         * auto-profile.c: Likewise.
2374         * bb-reorder.c: Likewise.
2375         * bt-load.c: Likewise.
2376         * builtins.c: Likewise.
2377         * caller-save.c: Likewise.
2378         * calls.c: Likewise.
2379         * ccmp.c: Likewise.
2380         * cfg.c: Likewise.
2381         * cfganal.c: Likewise.
2382         * cfgbuild.c: Likewise.
2383         * cfgcleanup.c: Likewise.
2384         * cfgexpand.c: Likewise.
2385         * cfghooks.c: Likewise.
2386         * cfgloop.c: Likewise.
2387         * cfgloopanal.c: Likewise.
2388         * cfgloopmanip.c: Likewise.
2389         * cfgrtl.c: Likewise.
2390         * cgraph.c: Likewise.
2391         * cgraphbuild.c: Likewise.
2392         * cgraphclones.c: Likewise.
2393         * cgraphunit.c: Likewise.
2394         * cilk-common.c: Likewise.
2395         * combine-stack-adj.c: Likewise.
2396         * combine.c: Likewise.
2397         * compare-elim.c: Likewise.
2398         * convert.c: Likewise.
2399         * coverage.c: Likewise.
2400         * cppbuiltin.c: Likewise.
2401         * cprop.c: Likewise.
2402         * cse.c: Likewise.
2403         * cselib.c: Likewise.
2404         * data-streamer-in.c: Likewise.
2405         * data-streamer-out.c: Likewise.
2406         * data-streamer.c: Likewise.
2407         * dbxout.c: Likewise.
2408         * dce.c: Likewise.
2409         * ddg.c: Likewise.
2410         * debug.c: Likewise.
2411         * df-core.c: Likewise.
2412         * df-problems.c: Likewise.
2413         * df-scan.c: Likewise.
2414         * dfp.c: Likewise.
2415         * dojump.c: Likewise.
2416         * dominance.c: Likewise.
2417         * double-int.c: Likewise.
2418         * dse.c: Likewise.
2419         * dumpfile.c: Likewise.
2420         * dwarf2asm.c: Likewise.
2421         * dwarf2cfi.c: Likewise.
2422         * dwarf2out.c: Likewise.
2423         * emit-rtl.c: Likewise.
2424         * except.c: Likewise.
2425         * explow.c: Likewise.
2426         * expmed.c: Likewise.
2427         * expr.c: Likewise.
2428         * final.c: Likewise.
2429         * fixed-value.c: Likewise.
2430         * fold-const.c: Likewise.
2431         * function.c: Likewise.
2432         * fwprop.c: Likewise.
2433         * gcse.c: Likewise.
2434         * generic-match-head.c: Likewise.
2435         * ggc-common.c: Likewise.
2436         * gimple-builder.c: Likewise.
2437         * gimple-expr.c: Likewise.
2438         * gimple-fold.c: Likewise.
2439         * gimple-iterator.c: Likewise.
2440         * gimple-low.c: Likewise.
2441         * gimple-match-head.c: Likewise.
2442         * gimple-pretty-print.c: Likewise.
2443         * gimple-ssa-isolate-paths.c: Likewise.
2444         * gimple-ssa-strength-reduction.c: Likewise.
2445         * gimple-streamer-in.c: Likewise.
2446         * gimple-streamer-out.c: Likewise.
2447         * gimple-walk.c: Likewise.
2448         * gimple.c: Likewise.
2449         * gimplify-me.c: Likewise.
2450         * gimplify.c: Likewise.
2451         * godump.c: Likewise.
2452         * graph.c: Likewise.
2453         * graphite-poly.c: Likewise.
2454         * haifa-sched.c: Likewise.
2455         * hw-doloop.c: Likewise.
2456         * ifcvt.c: Likewise.
2457         * incpath.c: Likewise.
2458         * init-regs.c: Likewise.
2459         * internal-fn.c: Likewise.
2460         * ipa-chkp.c: Likewise.
2461         * ipa-comdats.c: Likewise.
2462         * ipa-cp.c: Likewise.
2463         * ipa-devirt.c: Likewise.
2464         * ipa-icf-gimple.c: Likewise.
2465         * ipa-icf.c: Likewise.
2466         * ipa-inline-analysis.c: Likewise.
2467         * ipa-inline-transform.c: Likewise.
2468         * ipa-inline.c: Likewise.
2469         * ipa-polymorphic-call.c: Likewise.
2470         * ipa-profile.c: Likewise.
2471         * ipa-prop.c: Likewise.
2472         * ipa-pure-const.c: Likewise.
2473         * ipa-ref.c: Likewise.
2474         * ipa-reference.c: Likewise.
2475         * ipa-split.c: Likewise.
2476         * ipa-utils.c: Likewise.
2477         * ipa-visibility.c: Likewise.
2478         * ipa.c: Likewise.
2479         * ira-build.c: Likewise.
2480         * ira-color.c: Likewise.
2481         * ira-conflicts.c: Likewise.
2482         * ira-costs.c: Likewise.
2483         * ira-emit.c: Likewise.
2484         * ira-lives.c: Likewise.
2485         * ira.c: Likewise.
2486         * jump.c: Likewise.
2487         * langhooks.c: Likewise.
2488         * lcm.c: Likewise.
2489         * lists.c: Likewise.
2490         * loop-doloop.c: Likewise.
2491         * loop-init.c: Likewise.
2492         * loop-invariant.c: Likewise.
2493         * loop-iv.c: Likewise.
2494         * loop-unroll.c: Likewise.
2495         * lower-subreg.c: Likewise.
2496         * lra-assigns.c: Likewise.
2497         * lra-coalesce.c: Likewise.
2498         * lra-constraints.c: Likewise.
2499         * lra-eliminations.c: Likewise.
2500         * lra-lives.c: Likewise.
2501         * lra-remat.c: Likewise.
2502         * lra-spills.c: Likewise.
2503         * lra.c: Likewise.
2504         * lto-cgraph.c: Likewise.
2505         * lto-compress.c: Likewise.
2506         * lto-opts.c: Likewise.
2507         * lto-section-in.c: Likewise.
2508         * lto-section-out.c: Likewise.
2509         * lto-streamer-in.c: Likewise.
2510         * lto-streamer-out.c: Likewise.
2511         * lto-streamer.c: Likewise.
2512         * mode-switching.c: Likewise.
2513         * modulo-sched.c: Likewise.
2514         * omp-low.c: Likewise.
2515         * optabs.c: Likewise.
2516         * opts-global.c: Likewise.
2517         * passes.c: Likewise.
2518         * plugin.c: Likewise.
2519         * postreload-gcse.c: Likewise.
2520         * postreload.c: Likewise.
2521         * predict.c: Likewise.
2522         * print-tree.c: Likewise.
2523         * profile.c: Likewise.
2524         * real.c: Likewise.
2525         * realmpfr.c: Likewise.
2526         * recog.c: Likewise.
2527         * ree.c: Likewise.
2528         * reg-stack.c: Likewise.
2529         * regcprop.c: Likewise.
2530         * reginfo.c: Likewise.
2531         * regrename.c: Likewise.
2532         * regstat.c: Likewise.
2533         * reload.c: Likewise.
2534         * reload1.c: Likewise.
2535         * reorg.c: Likewise.
2536         * resource.c: Likewise.
2537         * rtl-chkp.c: Likewise.
2538         * rtl-error.c: Likewise.
2539         * rtlanal.c: Likewise.
2540         * rtlhooks.c: Likewise.
2541         * sanopt.c: Likewise.
2542         * sched-deps.c: Likewise.
2543         * sched-ebb.c: Likewise.
2544         * sched-rgn.c: Likewise.
2545         * sese.c: Likewise.
2546         * shrink-wrap.c: Likewise.
2547         * simplify-rtx.c: Likewise.
2548         * stack-ptr-mod.c: Likewise.
2549         * statistics.c: Likewise.
2550         * stmt.c: Likewise.
2551         * stor-layout.c: Likewise.
2552         * store-motion.c: Likewise.
2553         * stringpool.c: Likewise.
2554         * symtab.c: Likewise.
2555         * target-globals.c: Likewise.
2556         * targhooks.c: Likewise.
2557         * toplev.c: Likewise.
2558         * tracer.c: Likewise.
2559         * trans-mem.c: Likewise.
2560         * tree-affine.c: Likewise.
2561         * tree-call-cdce.c: Likewise.
2562         * tree-cfg.c: Likewise.
2563         * tree-cfgcleanup.c: Likewise.
2564         * tree-chkp-opt.c: Likewise.
2565         * tree-chkp.c: Likewise.
2566         * tree-chrec.c: Likewise.
2567         * tree-complex.c: Likewise.
2568         * tree-data-ref.c: Likewise.
2569         * tree-dfa.c: Likewise.
2570         * tree-diagnostic.c: Likewise.
2571         * tree-dump.c: Likewise.
2572         * tree-eh.c: Likewise.
2573         * tree-emutls.c: Likewise.
2574         * tree-if-conv.c: Likewise.
2575         * tree-inline.c: Likewise.
2576         * tree-into-ssa.c: Likewise.
2577         * tree-iterator.c: Likewise.
2578         * tree-loop-distribution.c: Likewise.
2579         * tree-nested.c: Likewise.
2580         * tree-nrv.c: Likewise.
2581         * tree-object-size.c: Likewise.
2582         * tree-outof-ssa.c: Likewise.
2583         * tree-parloops.c: Likewise.
2584         * tree-phinodes.c: Likewise.
2585         * tree-predcom.c: Likewise.
2586         * tree-pretty-print.c: Likewise.
2587         * tree-profile.c: Likewise.
2588         * tree-scalar-evolution.c: Likewise.
2589         * tree-sra.c: Likewise.
2590         * tree-ssa-address.c: Likewise.
2591         * tree-ssa-alias.c: Likewise.
2592         * tree-ssa-ccp.c: Likewise.
2593         * tree-ssa-coalesce.c: Likewise.
2594         * tree-ssa-copy.c: Likewise.
2595         * tree-ssa-dce.c: Likewise.
2596         * tree-ssa-dom.c: Likewise.
2597         * tree-ssa-dse.c: Likewise.
2598         * tree-ssa-forwprop.c: Likewise.
2599         * tree-ssa-ifcombine.c: Likewise.
2600         * tree-ssa-live.c: Likewise.
2601         * tree-ssa-loop-ch.c: Likewise.
2602         * tree-ssa-loop-im.c: Likewise.
2603         * tree-ssa-loop-ivcanon.c: Likewise.
2604         * tree-ssa-loop-ivopts.c: Likewise.
2605         * tree-ssa-loop-manip.c: Likewise.
2606         * tree-ssa-loop-niter.c: Likewise.
2607         * tree-ssa-loop-prefetch.c: Likewise.
2608         * tree-ssa-loop-unswitch.c: Likewise.
2609         * tree-ssa-loop.c: Likewise.
2610         * tree-ssa-math-opts.c: Likewise.
2611         * tree-ssa-operands.c: Likewise.
2612         * tree-ssa-phiopt.c: Likewise.
2613         * tree-ssa-phiprop.c: Likewise.
2614         * tree-ssa-pre.c: Likewise.
2615         * tree-ssa-propagate.c: Likewise.
2616         * tree-ssa-reassoc.c: Likewise.
2617         * tree-ssa-sccvn.c: Likewise.
2618         * tree-ssa-scopedtables.c: Likewise.
2619         * tree-ssa-sink.c: Likewise.
2620         * tree-ssa-strlen.c: Likewise.
2621         * tree-ssa-structalias.c: Likewise.
2622         * tree-ssa-tail-merge.c: Likewise.
2623         * tree-ssa-ter.c: Likewise.
2624         * tree-ssa-threadedge.c: Likewise.
2625         * tree-ssa-threadupdate.c: Likewise.
2626         * tree-ssa-uncprop.c: Likewise.
2627         * tree-ssa-uninit.c: Likewise.
2628         * tree-ssa.c: Likewise.
2629         * tree-ssanames.c: Likewise.
2630         * tree-stdarg.c: Likewise.
2631         * tree-streamer-in.c: Likewise.
2632         * tree-streamer-out.c: Likewise.
2633         * tree-streamer.c: Likewise.
2634         * tree-switch-conversion.c: Likewise.
2635         * tree-tailcall.c: Likewise.
2636         * tree-vect-data-refs.c: Likewise.
2637         * tree-vect-generic.c: Likewise.
2638         * tree-vect-loop-manip.c: Likewise.
2639         * tree-vect-loop.c: Likewise.
2640         * tree-vect-patterns.c: Likewise.
2641         * tree-vect-slp.c: Likewise.
2642         * tree-vect-stmts.c: Likewise.
2643         * tree-vectorizer.c: Likewise.
2644         * tree-vrp.c: Likewise.
2645         * tree.c: Likewise.
2646         * tsan.c: Likewise.
2647         * ubsan.c: Likewise.
2648         * value-prof.c: Likewise.
2649         * var-tracking.c: Likewise.
2650         * varasm.c: Likewise.
2651         * varpool.c: Likewise.
2652         * vtable-verify.c: Likewise.
2653         * web.c: Likewise.
2654         * wide-int-print.cc: Likewise.
2655         * wide-int.cc: Likewise.
2656         * xcoffout.c: Likewise.
2658 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
2660         * Makefile.in (NO_PIE_CFLAGS): New.
2661         (NO_PIE_FLAG): Likewise.
2662         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2663         (NO_PIE_FLAG_FOR_BUILD): Likewise.
2664         (BUILD_NO_PIE_CFLAGS): Likewise.
2665         (BUILD_NO_PIE_FLAG): Likewise.
2666         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2667         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2668         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2669         $(BUILD_NO_PIE_CFLAGS).
2670         (BUILD_CXXFLAGS): Likewise.
2671         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2672         $(BUILD_NO_PIE_FLAG).
2673         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
2674         (BUILD_NO_PIE_FLAG): Likewise.
2675         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2676         (NO_PIE_FLAG_FOR_BUILD): Likewise.
2677         * configure: Regenerated.
2679 2015-10-29  Richard Biener  <rguenther@suse.de>
2681         PR middle-end/56956
2682         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2683         unsigned conditonal negation to ABS_EXPR.
2685 2015-10-29  Richard Biener  <rguenther@suse.de>
2687         * gimple-match-head.c (gimple_simplify): Remove premature checking
2688         of builtin_decl_implicit of function calls we simplify.
2690 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
2692         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2693         (get_computation_cost_at): Ditto.
2694         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2695         and inv_expr_id.
2697 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2699         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2700         superfluous code.
2702 2015-10-28  Jason Merrill  <jason@redhat.com>
2704         * Makefile.in (TAGS): Include libcpp and libiberty.
2706 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2708         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2709         (extract_omp_for_data): Remove OpenACC special handling of
2710         chunking.
2712         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2713         (struct parallel): Update comment.
2714         (nvptx_reorg): Likewise.
2715         (nvptx_neuter): Cleanup whitespace.
2717 2015-10-28  Richard Henderson  <rth@redhat.com>
2719         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2721 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2723         PR target/67839
2724         * config/avr/predicates.md (low_io_address_operand): Don't
2725         consider MODE when computing upper bound.
2726         (io_address_operand): Likewise.
2728 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
2730         * fold-const.c (operand_equal_p): Do not verify that types are
2731         compatible for MEM_REFs.
2733 2015-10-28  Richard Biener  <rguenther@suse.de>
2735         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2736         in simplifying VEC_COND_EXPR conditions.
2738 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2740         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2741         into vi_next of a full_var.
2743 2015-10-28  Tom de Vries  <tom@codesourcery.com>
2745         * tree-ssa-structalias.c (new_var_info, make_heapvar)
2746         (make_constraint_from_restrict, make_constraint_from_global_restrict)
2747         (create_function_info_for, create_variable_info_for_1)
2748         (create_variable_info_for): Add and handle add_id parameter.
2749         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2750         (init_base_vars): Add extra argument to calls to new_var_info.
2751         (get_vi_for_tree): Add extra argument to call to
2752         create_variable_info_for.
2753         (process_constraint, do_deref, process_all_all_constraints): Add extra
2754         argument to calls to new_scalar_tmp_constraint_exp.
2755         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2756         argument to calls to make_heapvar.
2757         (make_restrict_var_constraints): Add extra argument to call to
2758         make_constraint_from_global_restrict.
2759         (intra_create_variable_infos): Add extra argument to call to
2760         create_variable_info_for_1.
2761         (ipa_pta_execute): Add extra argument to call to
2762         create_function_info_for.
2764 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2766         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2767         (sibcall_value): Likewise.
2769 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2771         * config/nvptx/nvptx.h (struct machine_function): Add
2772         axis_predicate.
2773         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
2774         nvptx_expand_oacc_join): Declare.
2775         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
2776         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
2777         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
2778         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
2779         UNSPECV_JOINING, UNSPECV_JOIN): New.
2780         (BITS, BITD): New mode iterators.
2781         (br_true_uni, br_false_uni): New.
2782         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
2783         (oacc_dim_size, oacc_dim_pos): New.
2784         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
2785         (oacc_fork, oacc_join): New.
2786         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
2787         (worker_load<mode>, worker_store<mode>): New.
2788         (nvptx_barsync): New.
2789         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
2790         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
2791         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
2792         worker_bcast_sym): New.
2793         (nvptx_option_override): Initialize worker broadcast buffer.
2794         (nvptx_emit_forking, nvptx_emit_joining): New.
2795         (nvptx_init_axis_predicate): New.
2796         (nvptx_declare_function_name): Init axis predicates.
2797         (nvptx_expand_call): Add fork/join markers around routine call.
2798         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
2799         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
2800         (nvptx_gen_vcast): New.
2801         (struct wcast_data_t): New.
2802         (enum propagate_mask): New.
2803         (nvptx_gen_wcast): New.
2804         (nvptx_print_operand): Add 'S' case.
2805         (struct parallel): New.
2806         (parallel::parallel, parallel::~parallel): New.
2807         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
2808         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
2809         nvptx_find_par, nvptx_discover_pars): New.
2810         (nvptx_propagate): New.
2811         (vprop_gen, nvptx_vpropagate): New.
2812         (wprop_gen, nvptx_wpropagate): New.
2813         (nvptx_wsync): New.
2814         (nvptx_single, nvptx_skip_par): New.
2815         (nvptx_process_pars, nvptx_neuter_pars): New.
2816         (ntptx_reorg): Split blocks, generate parallel structure, apply
2817         neutering.
2818         (nvptx_cannot_copy_insn_p): New.
2819         (nvptx_file_end): Emit worker broadcast decl.
2820         (nvptx_goacc_fork_join): New.
2821         (TARGET_CANNOT_COPY_INSN_P): Override.
2822         (TARGET_GOACC_FORK_JOIN): Override.
2824 2015-10-28  Richard Biener  <rguenther@suse.de>
2826         * fold-const.c (negate_expr_p): Adjust the division case to
2827         properly avoid introducing undefined overflow.
2828         (fold_negate_expr): Likewise.
2830 2015-10-28  Richard Biener  <rguenther@suse.de>
2832         PR tree-optimization/65962
2833         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2834         Avoid creating loop carried dependences also for outer loops
2835         of the loop a use to replace is in.
2837 2015-10-28  Richard Biener  <rguenther@suse.de>
2839         * common.opt (fchecking): New flag controlling flag_checking.
2840         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
2841         * timevar.c (timer::print): Adjust output.
2842         * doc/invoke.texi (fchecking): Document.
2844 2015-10-28  Richard Biener  <rguenther@suse.de>
2846         PR middle-end/68067
2847         * fold-const.c (negate_expr_p): We cannot negate plus or minus
2848         if overflow is not wrapping.  Likewise multiplication unless
2849         one operand is constant and not power of two.
2850         (fold_negate_expr): Adjust accordingly.
2852 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
2854         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
2855         fields.
2856         (is_oacc_parallel, is_oacc_kernels): New.
2857         (enclosing_target_ctx): May return NULL.
2858         (ctx_in_oacc_kernels_region): New.
2859         (check_oacc_kernel_gwv): New.
2860         (oacc_loop_or_target_p): Delete.
2861         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
2862         operands.  Strip reductions fro kernels.
2863         (scan_omp_target): Don't calculate gwv mask.
2864         (lower_oacc_head_mark, lower_oacc_loop_marker,
2865         lower_oacc_head_tail): New.
2866         (struct oacc_collapse): New.
2867         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
2868         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2869         Remove OpenACC handling.
2870         (expand_oacc_for): New.
2871         (expand_omp_for): Call expand_oacc_for.
2872         (lower_omp_for): Call lower_oacc_head_tail.
2874 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
2876         * attribs.c (check_attribute_tables): New function, broken out from...
2877         (init_attributes): Use it.
2878         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
2879         gcc_checking_assert and checking_* functions to eliminate
2880         ENABLE_CHECKING conditionals.
2881         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
2882         (pass_expand::execute): Likewise.
2883         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2884         * cgraphunit.c (mark_functions_to_output): Likewise.
2885         (cgraph_node::expand_thunk): Likewise.
2886         (symbol_table::compile): Likewise.
2887         * ddg.c (add_cross_iteration_register_deps): Likewise.
2888         (create_ddg_all_sccs): Likewise.
2889         * df-core.c (df_finish_pass, df_analyze): Likewise.
2890         * diagnostic-core.h: Likewise.
2891         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
2892         * dominance.c (calculate_dominance_info): Likewise.
2893         * dwarf2out.c (add_AT_die_ref): Likewise.
2894         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
2895         (loc_list_from_tree, gen_lexical_block_die): Likewise.
2896         gen_type_die_with_usage, gen_type_die): Likewise.
2897         (dwarf2out_decl): Likewise.
2898         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
2899         * except.c (duplicate_eh_regions): Likewise.
2900         * fwprop.c (register_active_defs, update_df_init): Likewise.
2901         (fwprop_init, fwprop_done): Likewise.
2902         (update_uses): Likewise.
2903         * ggc-page.c (ggc_grow): Likewise.
2904         * gimplify.c (gimplify_body): Likewise.
2905         (gimplify_hasher::equal): Likewise.
2906         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
2907         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
2908         Likewise.
2909         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
2910         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
2911         * hash-table.h (::find_empty_slot_for_expand): Likewise.
2912         * ifcvt.c (if_convert): Likewise.
2913         * ipa-cp.c (ipcp_propagate_stage): Likewise.
2914         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
2915         (odr_type_p, odr_types_equivalent_p): Likewise.
2916         (add_type_duplicate, get_odr_type): Likewise.
2917         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2918         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
2919         (sem_item_optimizer::verify_classes): Likewise.
2920         (sem_item_optimizer::traverse_congruence_split): Likewise.
2921         (sem_item_optimizer::checking_verify_classes): New.
2922         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
2923         method.
2924         * cfgrtl.c (commit_edge_insertions): Likewise.
2925         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
2926         (rtl_flow_call_edges_add): Likewise.
2927         * cgraph.c (symbol_table::create_edge): Likewise.
2928         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2929         * cgraph.h (symtab_node): Likewise.
2930         (symtab_node::checking_verify_symtab_nodes): Define.
2931         (cgraph_node::checking_verify_cgraph_nodes): Define.
2932         * cfghooks.h (checking_verify_flow_info): Define.
2933         * cfgloop.h (checking_verify_loop_structure): Define.
2934         * dominance.h (checking_verify_dominators): Define.
2935         * et-forest.c: Fix comment.
2936         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
2937         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2938         ENABLE_CHECKING conditionals.
2939         * ipa-inline-transform.c (save_inline_function_body): Likewise.
2940         * ipa-inline.c (inline_small_functions): Likewise.
2941         (early_inliner): Likewise.
2942         * ipa-inline.h (estimate_edge_growth): Likewise.
2943         * ipa-visibility.c (function_and_variable_visibility): Likewise.
2944         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2945         (ipa_single_use): Likewise.
2946         * ira-int.h: Likewise.
2947         * ira.c (ira): Likewise.
2948         * loop-doloop.c (doloop_optimize_loops): Likewise.
2949         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
2950         * loop-invariant.c (move_loop_invariants): Likewise.
2951         * lra-assigns.c (lra_assign): Likewise.
2952         * lra-constraints.c (lra_constraints): Likewise.
2953         * lra-eliminations.c (lra_eliminate): Likewise.
2954         * lra-int.h (struct lra_reg): Likewise.
2955         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2956         (lra_create_live_ranges_1): Likewise.
2957         * lra-remat.c (create_remat_bb_data): Likewise.
2958         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
2959         (lra): Likewise.
2960         (check_rtl): Always define. Remove incorrect guard around
2961         extract_constrain_insn call.
2962         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
2963         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2964         ENABLE_CHECKING conditionals.
2965         * lto-streamer-out.c (DFS::DFS): Likewise.
2966         (lto_output): Likewise.
2967         * lto-streamer.c (lto_streamer_init): Likewise.
2968         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
2969         expand_omp_target, execute_expand_omp): Likewise.
2970         (lower_omp_target): Likewise.
2971         * passes.c (execute_function_todo): Likewise.
2972         (execute_todo, execute_one_pass): Likewise.
2973         (verify_curr_properties): Always define.
2974         * predict.c (tree_estimate_probability: Use flag_checking,
2975         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2976         ENABLE_CHECKING conditionals.
2977         (propagate_freq): Likewise.
2978         * pretty-print.c (pp_format): Likewise.
2979         * real.c (real_to_decimal_for_mode): Likewise.
2980         * recog.c (split_all_insns): Likewise.
2981         * regcprop.c (kill_value_one_regno): Likewise.
2982         (copy_value): Likewise.
2983         (validate_value_data): Define unconditionally.
2984         * reload.c: Fix comment.
2985         * timevar.c: Include options.h
2986         * tree-ssa.h (checking_verify_ssa): Define.
2987         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
2988         * sched-deps.c (CHECK): Remove unused macro.
2989         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
2990         gcc_checking_assert and checking_* functions to eliminate
2991         ENABLE_CHECKING conditionals.
2992         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
2993         * sel-sched.c (struct moveop_static_params): Likewise.
2994         (find_best_reg_for_expr, move_cond_jump): Likewise.
2995         (move_op_orig_expr_not_found): Likewise.
2996         (code_motion_process_successors, move_op): Likewise.
2997         * ssa-iterators.h (first_readonly_imm_use): Likewise.
2998         (next_readonly_imm_use): Likewise.
2999         * store-motion.c (compute_store_table): Likewise.
3000         * symbol-summary.h (function_summary::function_summary): Likewise.
3001         * target.h (cumulative_args_t): Likewise.
3002         (get_cumulative_args, pack_cumulative_args): Likewise.
3003         * timevar.c: (timer::print): Likewise.
3004         * trans-mem.c (ipa_tm_execute): Likewise.
3005         * tree-cfg.c (move_stmt_op): Likewise.
3006         (move_sese_region_to_fn): Likewise.
3007         (gimple_flow_call_edges_add): Likewise.
3008         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3009         Likewise.
3010         * tree-eh.c (remove_unreachable_handlers): Likewise.
3011         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3012         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3013         * tree-into-ssa.c (update_ssa): Likewise.
3014         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3015         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3016         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3017         * tree-predcom.c (suitable_component_p): Likewise.
3018         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3019         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3020         * tree-ssa-live.c (verify_live_on_entry): Likewise.
3021         * tree-ssa-live.h (register_ssa_partition): Likewise.
3022         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3023         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3024         (tree_transform_and_unroll_loop): Likewise.
3025         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3026         * tree-ssa-operands.c (get_expr_operands): Likewise.
3027         * tree-ssa-propagate.c (replace_exp_1): Likewise.
3028         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3029         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3030         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3031         * tree-ssanames.c (release_ssa_name_fn): Likewise.
3032         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3033         * tree-vect-loop-manip.c
3034         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3035         (slpeel_checking_verify_cfg_after_peeling): Likewise.
3036         (vect_do_peeling_for_loop_bound): Likewise.
3037         (vect_do_peeling_for_alignment): Likewise.
3038         * tree-vrp.c (supports_overflow_infinity): Likewise.
3039         (set_value_range): Likewise.
3040         * tree.c (free_lang_data_in_cgraph): Likewise.
3041         * value-prof.c (gimple_remove_histogram_value): Likewise.
3042         (free_hist): Likewise.
3043         * var-tracking.c (canonicalize_values_star): Likewise.
3044         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3046 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3048         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3049         IFN_GOACC_LOOP): New.
3050         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3051         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3052         IFN_UNIQUE_OACC_TAIL_MARK.
3053         (enum ifn_goacc_loop_kind): New.
3054         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3055         IFN_UNIQUE_OACC_JOIN cases.
3056         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3057         (expand_GOACC_LOOP): New.
3058         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3059         * omp-low.c: Include gimple-pretty-print.h.
3060         (struct oacc_loop): New.
3061         (enum oacc_loop_flags): New.
3062         (oacc_thread_numbers): New.
3063         (oacc_xform_loop): New.
3064         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3065         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3066         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3067         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3068         oacc_loop_discovery): New.
3069         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3070         oacc_loop_process): New.
3071         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3072         (execute_oacc_device_lower): Discover & process loops.  Process
3073         internal fns.
3074         * target.def (goacc.fork_join): Change sense of hook, clarify
3075         documentation.
3076         * doc/tm.texi: Regenerated.
3078 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3080         * target-insns.def (oacc_fork, oacc_join): Define.
3081         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3082         (goacc.fork_join): New GOACC hook.
3083         * targhooks.h (default_goacc_fork_join): Declare.
3084         * omp-low.c (default_goacc_forkjoin): New.
3085         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3086         * doc/tm.texi: Regenerate.
3088 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3090         * omp-low.c (oacc_init_rediction_array): New.
3091         (oacc_initialize_reduction_data): Initialize array.
3093 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3095         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3097 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3099         * internal-fn.c (expand_UNIQUE): New.
3100         * internal-fn.h (enum ifn_unique_kind): New.
3101         * internal-fn.def (IFN_UNIQUE): New.
3102         * target-insns.def (unique): Define.
3103         * gimple.h (gimple_call_internal_unique_p): New.
3104         * gimple.c (gimple_call_same_target_p): Check internal fn
3105         uniqueness.
3106         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3107         * tree-ssa-threadedge.c
3108         (record_temporary_equivalences_from_stmts): Likewise.
3109         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3111 2015-10-27  Richard Henderson  <rth@redhat.com>
3113         PR rtl-opt/67609
3114         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3115         narrowing subregs on SSE and MMX registers.
3116         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3117         appear to be sub-words of multi-register pseudos must be rejected.
3118         * doc/tm.texi: Regenerate.
3120 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3122         PR target/68102
3123         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3124         operands[0] is a reg before taking its REGNO in split condition.
3125         (*movdi_aarch64): Likewise.
3127 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3129         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3130         Handle floating point inner modes properly.
3132 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
3134         * tree-vect-looop.c
3135         (vectorizable_live_operation): Change iterator.
3137 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3138             Aditya Kumar  <aditya.k7@samsung.com>
3140         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3141           function to schedule based on isl_schedule_node.
3142         (get_schedule_map_st): New schedule optimizer based on
3143         isl_schedule_node.
3144         (scop_get_domains): New. Return the isl_union_set containing the
3145         domains of all the pbbs.
3146         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3148 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
3150         PR target/67215
3151         * calls.c (prepare_call_address): Don't handle -fno-plt here.
3152         * config/i386/i386.c (ix86_expand_call): Generate indirect call
3153         via GOT for -fno-plt.  Support indirect call via GOT for x32.
3154         * config/i386/predicates.md (sibcall_memory_operand): Allow
3155         GOT memory operand.
3157 2015-10-27  Richard Biener  <rguenther@suse.de>
3159         PR tree-optimization/68104
3160         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3161         strided access check ...
3162         (vect_compute_data_refs_alignment): ... here.
3164 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
3165             Joseph Myers  <joseph@codesourcery.com>
3166             Mark Shinwell  <shinwell@codesourcery.com>
3167             Andrew Stubbs  <ams@codesourcery.com>
3168             Rich Felker <dalias@libc.org>
3170         * config.gcc: Handle --enable-fdpic.
3171         * config/sh/constraints.md (Ccl): New constraint.
3172         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3173         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3174         __SH_FDPIC__.
3175         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3176         library functions.
3177         * config/sh/sh-protos.h (function_symbol_result): New struct.
3178         (function_symbol): Return function_symbol_result.
3179         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3180         declarations.
3181         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3182         target hook.
3183         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3184         (sh_option_override): Force -fPIC if FDPIC is in effect.
3185         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3186         UNSPEC_GOTOFFFUNCDESC cases.
3187         (prepare_move_operands): Use FDPIC initial GOT register for
3188         TLS-related GOT access; inhibit cross-section address offset constants
3189         for FDPIC.
3190         (sh_assemble_integer): New function.
3191         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3192         PC-relative call sites.
3193         (expand_ashiftrt): Adapt invocation of function_symbol.
3194         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3195         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3196         UNSPEC_GOTOFFFUNCDESC.
3197         (legitimize_pic_address): Resolve function symbols to function
3198         descriptors for FDPIC.  Do not use GOT-relative addressing for local
3199         data that may be read-only on FDPIC.
3200         (sh_emit_storesi, sh_emit_storehi): New functions.
3201         (sh_trampoline_init): Generate FDPIC trampolines.
3202         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3203         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3204         (sh_output_mi_thunk): Generate FDPIC call.
3205         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
3206         FDPIC, generate call site labels to use PC-relative addressing rather
3207         than GOT-relative addressing.
3208         (sh_conditional_register_usage): Make PIC register fixed and call used
3209         when FDPIC is in effect.
3210         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3211         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3212         sh_get_fdpic_reg_initial_val): New functions.
3213         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3214         Handle -mfdpic.
3215         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3216         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3217         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3218         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3219         FDPIC_SELF_SPECS.
3220         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3221         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3222         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3223         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3224         constants.
3225         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3226         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3227         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3228         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3229         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3230         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3231         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3232         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3233         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3234         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3235         block_move_real, block_lump_real, block_move_real_i4,
3236         block_lump_real_i4): Add support for FDPIC calls.
3237         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3238         call_value_pop): Adjust for new function_symbol signature.
3239         * config/sh/sh.opt (-mfdpic): New option.
3240         * doc/install.texi (Options specification): Document --enable-fdpic.
3241         * doc/invoke.texi (SH Options): Document -mfdpic.
3244 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3246         PR tree-optimization/65963
3247         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3248         LSHIFT_EXPRs as equivalent MULT_EXPRs.
3250 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3252         PR target/67929
3253         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3254         * config/arm/constraints.md (Dp): Update callsite.
3255         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3257 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3259         * builtins.c (fold_builtin_load_exponent): Rename to...
3260         (fold_const_builtin_load_exponent): ...this and only handle
3261         constant arguments.
3262         (fold_builtin_2): Update accordingly.
3263         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3265 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3267         * builtins.c (fold_builtin_logb): Rename to...
3268         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3269         (fold_builtin_significand): Rename to...
3270         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3271         (fold_builtin_1): Update accordingly.
3273 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3275         * builtins.c (fold_builtin_fmin_fmax): Delete.
3276         (fold_builtin_2): Handle constant fmin and fmax arguments here.
3277         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3279 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
3281         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3282         for register extension into sign and zero register extension.
3283         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3284         for sign and zero register extension.
3285         (cortexa57_addrcost_table): Likewise.
3286         (xgene1_addrcost_table): Likewise.
3288 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3290         * fold-const.c (fold_minmax): Delete.
3291         (fold_binary_loc): Don't call it.
3292         * match.pd: Add rules previously handled by fold_minmax.
3294 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3296         * builtins.c (fold_builtin_fma): Remove constant handling.
3297         (fold_builtin_3): Handle constant fma arguments here.
3299 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3301         * builtins.c (fold_builtin_fabs): Remove constant handling.
3302         (fold_builtin_abs): Likewise.
3304 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3306         * builtins.c (fold_builtin_copysign): Delete.
3307         (fold_builtin_2): Handle constant copysign arguments here.
3308         * match.pd: Add rules previously handled by fold_builtin_copysign.
3310 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3312         * builtins.c (fold_builtin_signbit): Delete.
3313         (fold_builtin_2): Handle constant signbit arguments here.
3314         * match.pd: Add rules previously handled by fold_builtin_signbit.
3316 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3318         * match.pd: Handle sqrt(x) cmp 0 specially.
3320 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
3322         * tree-vect-generic.c (expand_vector_operations_1): Check
3323         optab type before using it.
3325 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3327         * config/aarch64/aarch64-protos.h
3328         (struct tune_params): Add autoprefetcher_model field.
3329         * config/aarch64/aarch64.c: Include params.h
3330         (generic_tunings): Specify autoprefetcher_model value.
3331         (cortexa53_tunings): Likewise.
3332         (cortexa57_tunings): Likewise.
3333         (cortexa72_tunings): Likewise.
3334         (thunderx_tunings): Likewise.
3335         (xgene1_tunings): Likewise.
3336         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3337         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3338         (aarch64_override_options_internal): Set
3339         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3341 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3343         * builtins.c (fold_builtin_exponent): Delete.
3344         (fold_builtin_2): Handle constant expN arguments here.
3345         * match.pd: Fold expN(logN(x)) -> x.
3347 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3349         * builtins.c (fold_builtin_powi): Delete.
3350         (fold_builtin_2): Handle constant powi arguments here.
3351         * match.pd: Add rules previously handled by fold_builtin_powi.
3353 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3355         * builtins.c (fold_builtin_pow): Delete in favor of...
3356         (fold_const_builtin_pow): ...this new function.  Only handle constant
3357         arguments.
3358         (fold_builtin_2): Update accordingly.
3359         * match.pd: Add rules previously handled by fold_builtin_pow.
3361 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3363         * builtins.c (fold_builtin_hypot): Delete.
3364         (fold_builtin_2): Handle constant hypot arguments here.
3365         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
3366         hypot(x, x) to fabs(x)*sqrt(2).
3368 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
3370         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3371         instead of make_ssa_name if not yet in SSA form.
3373 2015-10-27  Richard Biener  <rguenther@suse.de>
3375         * cfg.c (free_edge): Add function argument and use it instead of cfun.
3376         (clear_edges): Likewise.
3377         * cfg.h (clear_edges): Adjust prototype.
3378         * cfgexpand.c (pass_expand::execute): Adjust.
3379         * cfgloop.c (release_recorded_exits): Add function argument and use
3380         it instead of cfun.
3381         * cfgloop.h (release_recorded_exits): Adjust prototype.
3382         (loops_state_satisfies_p): Add overload with function argument.
3383         (loops_state_set): Likewise.
3384         (loops_state_clear): Likewise.
3385         (struct loop_iterator): Add function argument to constructor
3386         and iterator and use it instead of cfun.
3387         (FOR_EACH_LOOP_FN): New macro.
3388         (loop_optimizer_finalize): Add overload with function argument.
3389         * loop-init.c (loop_optimizer_init): Adjust.
3390         (fix_loop_structure): Likewise.
3391         (loop_optimizer_finaliz): Add function argument and use it
3392         instead of cfun.
3393         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3394         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3395         * cgraph.c (release_function_body): Do not push/pop cfun.
3396         * final.c (rest_of_clean_state): Adjust.
3397         * graphite.c (graphite_finalize): Likewise.
3398         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3399         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3400         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3401         (tree_unroll_loops_completely): Likewise.
3402         (pass_complete_unrolli::execute): Likewise.
3403         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3404         Add function argument and use it instead of cfun.
3405         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3406         Adjust prototype.
3407         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3408         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3409         instead of cfun.
3410         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3411         * tree-ssanames.c (fini_ssanames): Add function argument and use it
3412         instead of cfun.
3413         * tree-ssanames.c (fini_ssanames): Adjust prototype.
3414         * tree-vrp.c (execute_vrp): Adjust.
3415         * value-prof.c (free_histograms): Add function argument and use it
3416         instead of cfun.
3417         * value-prof.h (free_histograms): Adjust prototype.
3419 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
3421         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3422         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3423         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
3425 2015-10-27  Tom de Vries  <tom@codesourcery.com>
3427         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3428         field_type.
3430 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
3432         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3433         (inv_can_prop_to_addr_use): New function.
3434         (record_use): Call can_prop_to_addr_uses, set the new field.
3435         (get_inv_cost): Count cost if inv can't be propagated into its
3436         address uses.
3438 2015-10-26  Doug Evans  <dje@google.com>
3440         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3442 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
3444         * match.pd (fold_widened_comparison): Apply simplifications to all
3445         integral types.
3447 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
3449         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3450         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3451         * doc/tm.texi: Regenerated.
3452         * reorg.c (dbr_schedule): Use new hook.
3453         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3455 2015-10-26  Jeff Law  <law@redhat.com>
3457         PR tree-optimization/68013
3458         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3459         Make sure the first block in the path is in VISITED_BBs.
3461 2015-10-26  Richard Biener  <rguenther@suse.de>
3462         Dominik Vogt  <vogt@linux.vnet.ibm.com>
3464         PR middle-end/67443
3465         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3466         Properly prune ref->ref for accesses outside of ref.
3468 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3470         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3471         new statements to be inserted if inplace.  Allow calls to have
3472         nonempty sequences.
3474 2015-10-26  Richard Biener  <rguenther@suse.de>
3476         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3477         (do_valueize): New function.
3478         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3479         replace_uses_by.
3480         * tree-ssa-threadedge.c: Remove builtins.h include, include
3481         gimple-fold.h
3482         (fold_assignment_stmt): Remove.
3483         (threadedge_valueize): New function.
3484         (record_temporary_equivalences_from_stmts): Use
3485         gimple_fold_stmt_to_constant_1, note additional cleanup
3486         opportunities.
3488 2015-10-26  Richard Biener  <rguenther@suse.de>
3490         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3491         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3493 2015-10-26  Alan Hayward <alan.hayward@arm.com>
3495         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3496         VEC_COND_EXPR types.
3498 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3500         * auto-inc-dec.c (insert_move_insn_before): Delete.
3501         (attempt_change): Remember to cost the simple move in the
3502         FORM_PRE_ADD and FORM_POST_ADD cases.
3504 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3506         PR target/68091
3507         * config/sh/sh.c (sh_vector_mode_supported_p): Use
3508         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3510 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3512         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3513         factored out of ...
3514         (intra_create_variable_infos): ... here.
3516 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3518         * tree-ssa-structalias.c (intra_create_variable_infos): Add
3519         restrict_pointer_p and recursive_restrict_p variables.
3521 2015-10-26  Tom de Vries  <tom@codesourcery.com>
3523         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3524         get_vi_for_tree call.
3526 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3528         PR middle-end/67989
3529         * optabs.c (expand_atomic_compare_and_swap): Handle case when
3530         ptarget_oval or ptarget_bool are const0_rtx.
3532 2015-10-26  Christian Bruel  <christian.bruel@st.com>
3534         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3535         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3536         * cp/method.c (implicitly_declare_fn): Likewise.
3537         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3538         * java/class.c (add_method_1): Likewise.
3540 2015-10-26  Richard Biener  <rguenther@suse.de>
3542         * alloc-pool.h (base_pool_allocator): Use placement new.
3543         (base_pool_allocator::remove): Likewise.  Compute size outside of
3544         flag_checking.
3546 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3548         * builtins.c (do_real_to_int_conversion): New function.
3549         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3550         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3551         arguments here.
3552         * match.pd: Add rules previously handled by fold_fixed_mathfn
3553         and fold_builtin_int_roundingfn.
3555 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3557         * match.pd: Use macros to define built-in operator lists.
3559 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
3560             Richard Biener  <rguenther@suse.de>
3562         * genmatch.c (dt_simplify::gen): Skip captures that are
3563         part of the result.
3564         (parser::parse_expr): Allow captures in results too.
3565         * builtins.c (fold_builtin_cexp): Delete.
3566         (fold_builtin_1): Handle constant cexp arguments here.
3567         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3569 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
3571         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3572         conditional compilation.
3573         (base_pool_allocator::remove): Use flag_checking.
3575 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
3577         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3579         PR middle-end/68079
3580         * dojump.c (do_compare_and_jump): Canonicalize both function and
3581         method types.
3583 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
3585         PR target/68084
3586         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3587         for =@ccae.
3589 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3591         PR ipa/pr67600
3592         * ipa-polymorphic-call.c
3593         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3594         instance offset with offset of outer type.
3596 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3598         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3600 2015-10-23  Caroline Tice  <cmtice@google.com>
3602         (from Richard Biener
3603         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
3604         call to iterative_hash_host_wide_int.
3606 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
3608         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3609         Define as yes.
3611 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3613         * tree-vect-generic.c (expand_vector_operations_1): Check
3614         optab exists before use it.
3616 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3618         * tree-vect-generic.c (expand_vector_condition): Avoid
3619         uninitialized variable warning.
3621 2015-10-23  Jeff Law  <law@redhat.com>
3623         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3624         here.  Instead...
3625         (execute_todo): Call it here.
3626         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3627         statistics
3628         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3630 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
3631             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3633         * config.gcc (enable_secureplt): Add *-linux*-musl*.
3635 2015-10-23  Jeff Law  <law@redhat.com>
3637         PR tree-optimization/67830
3638         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3639         Explicitly verify the mask has no bits outside the type of
3640         the innermost operands.
3642 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
3643             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3645         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3646         (MUSL_DYNAMIC_LINKER64): Define.
3647         (GNU_USER_DYNAMIC_LINKER32): Update.
3648         (GNU_USER_DYNAMIC_LINKER64): Update.
3649         (CHOOSE_DYNAMIC_LINKER): Update.
3651         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3652         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3653         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3654         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3655         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3656         (CHOOSE_DYNAMIC_LINKER): Update.
3657         (INCLUDE_DEFAULTS): Redefine.
3659         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3661 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3663         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3664         comparing addresses.
3666 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
3668         * fold-const.c (operand_equal_p): Handle matching of vector
3669         constructors.
3671 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
3673         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3675 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
3676             Andrew Pinski  <apinski@cavium.com>
3678         PR rtl-optimization/67736
3679         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3680         of gen_lowpart.
3682 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3684         PR middle-end/68066
3685         * tree.c (build_truth_vector_type): Support BLK mode
3686         returned for boolean vector.
3688 2015-10-23  Alan Hayward <alan.hayward@arm.com>
3690         PR tree-optimization/65947
3691         * tree-vect-loop.c
3692         (vect_is_simple_reduction_1): Find condition reductions.
3693         (vect_model_reduction_cost): Add condition reduction costs.
3694         (get_initial_def_for_reduction): Add condition reduction initial var.
3695         (vect_create_epilog_for_reduction): Add condition reduction epilog.
3696         (vectorizable_reduction): Condition reduction support.
3697         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3698         * doc/sourcebuild.texi (Vector-specific attributes): Document
3699         vect_max_reduc
3701 2015-10-23  Richard Biener  <rguenther@suse.de>
3703         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3704         and builtins.def.
3706 2015-10-23  Richard Biener  <rguenther@suse.de>
3707             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3709         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3710         into (A ^ B) - B to match.pd
3711         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3713         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3714         New simplifier.
3715         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3716         New simplifier.
3717         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3718         New simplifier.
3719         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3720         New simplifier.
3721         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3722         INTEGER_CST@1)): New simplifier.
3724 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
3726         * builtins.c (integer_valued_real_p): Move to fold-const.c.
3727         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3728         (fold_builtin_ceil, fold_builtin_round): Delete.
3729         (fold_builtin_1): Handle constant trunc, floor, ceil and round
3730         arguments here.
3731         * convert.c (convert_to_real): Remove narrowing of rounding
3732         functions.
3733         * fold-const.h (integer_valued_real_unary_p)
3734         (integer_valued_real_binary_p, integer_valued_real_call_p)
3735         (integer_valued_real_single_p, integer_valued_real_p): Declare.
3736         * fold-const.c (tree_single_nonnegative_warnv_p): Move
3737         name_registered_for_update_p check to SSA_NAME case statement.
3738         Don't call tree_simple_nonnegative_warnv_p for SSA names.
3739         (integer_valued_real_unary_p, integer_valued_real_binary_p)
3740         (integer_valued_real_call_p, integer_valued_real_single_p)
3741         (integer_valued_real_invalid_p): New functions.
3742         (integer_valued_real_p): Move from fold-const.c and rework
3743         to call the functions above.  Handle SSA names.
3744         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3745         * gimple-fold.c (gimple_assign_integer_valued_real_p)
3746         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3747         (gimple_stmt_integer_valued_real_p): New functions.
3748         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3749         Fold f(x)->x for the same f if x is known to be integer-valued.
3750         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3751         the result.  Canonicalize floor(x) as trunc(x) if x is
3752         nonnegative.
3754 2015-10-23  Tom de Vries  <tom@codesourcery.com>
3756         * tree-ssa-structalias.c (intra_create_variable_infos): Use
3757         make_constraint_from.
3759 2015-10-23  Tom de Vries  <tom@codesourcery.com>
3761         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3762         setting of is_full_var in case of a single field.
3764 2015-10-22  Martin Sebor  <msebor@redhat.com>
3766         PR driver/68043
3767         * config/i386/i386.opt: Add missing periods to the ends of sentences.
3768         * config/msp430/msp430.opt: Same.
3770 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
3772         * doc/extend.exp (Global Register Variables): Rewrite.
3774 2015-10-22  Jeff Law  <law@redhat.com>
3776         * genattrtab.c (main): If we do not have any annul-true or annul-false
3777         slots, then write out a dummy eligible_for_annul_true or
3778         eligible_for_annul_false as needed.
3780 2015-10-22  Nick Clifton  <nickc@redhat.com>
3782         * config/msp430/msp430.opt: Add -msilicon-errata and
3783         -msilicon-errata-warn.
3784         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
3785         assembler.
3786         * doc/invoke.texi: Document new options.
3788 2015-10-22  Richard Biener  <rguenther@suse.de>
3790         PR tree-optimization/58497
3791         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
3792         (expand_vector_operations_1): Use it.  Lower operations on
3793         all uniform vectors to scalar operations if the HW supports it.
3795 2015-10-22  Richard Biener  <rguenther@suse.de>
3797         PR tree-optimization/19049
3798         PR tree-optimization/65962
3799         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
3800         to strided accesses if single-element interleaving doesn't work.
3802 2015-10-22  Richard Biener  <rguenther@suse.de>
3804         PR middle-end/68046
3805         PR middle-end/61893
3806         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
3807         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
3808         (expand_unop): Likewise.
3810 2015-10-22  Richard Biener  <rguenther@suse.de>
3812         * fold-const.c (fold_addr_of_array_ref_difference): Properly
3813         convert operands before folding a MINUS_EXPR.
3814         (fold_binary_loc): Move simplification of MINUS_EXPR on
3815         converted POINTER_PLUS_EXPRs ...
3816         * match.pd: ... here.
3818 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3820         * builtins.c (fold_builtin_tan): Delete.
3821         (fold_builtin_1): Handle constant tan arguments here.
3822         * match.pd: Simplify (tan (atan x)) to x.
3824 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3826         * builtins.c (fold_builtin_cproj): Delete.
3827         (fold_builtin_1): Handle constant arguments here.
3828         (build_complex_cproj): Move and rename to...
3829         * tree.c: (build_complex_inf): ...this.
3830         * tree.h (build_complex_inf): Declare.
3831         * match.pd: Fold cproj(x)->x if x has no infinity.
3832         Use build_complex_inf for existing cproj rules.
3834 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3836         PR target/68015
3837         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
3838         already have a comparison result.
3840 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3842         PR target/63304
3843         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
3844         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
3845         (aarch64_classify_address): Likewise.
3846         (aarch64_secondary_reload): Likewise.
3847         (aarch64_override_options_after_change_1): Adjust.
3848         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3849         Use aarch64_nopcrelative_literal_loads.
3850         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3851         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3852         Declare.
3854 2015-10-21  Martin Sebor  <msebor@redhat.com>
3856         PR driver/68043
3857         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
3858         (print_filtered_help): Reference aliased option's name and encourage
3859         readers to use it in preference to the alias if the former is not
3860         documented.  Mention when using an option is diagnosed.
3861         * gcc.c (display_help): End each sentence with a period.
3863         * common.opt: End each sentence that describes an option with
3864         a period.
3865         * config/aarch64/aarch64.opt: Same.
3866         * config/alpha/alpha.opt: Same.
3867         * config/arc/arc.opt: Same.
3868         * config/arm/arm.opt: Same.
3869         * config/avr/avr.opt: Same.
3870         * config/bfin/bfin.opt: Same.
3871         * config/c6x/c6x.opt: Same.
3872         * config/cr16/cr16.opt: Same.
3873         * config/cris/cris.opt: Same.
3874         * config/cris/linux.opt: Same.
3875         * config/darwin.opt: Same.
3876         * config/epiphany/epiphany.opt: Same.
3877         * config/fr30/fr30.opt: Same.
3878         * config/frv/frv.opt: Same.
3879         * config/ft32/ft32.opt: Same.
3880         * config/g.opt: Same.
3881         * config/h8300/h8300.opt: Same.
3882         * config/i386/cygming.opt: Same.
3883         * config/i386/djgpp.opt: Same.
3884         * config/i386/i386.opt: Same.
3885         * config/i386/interix.opt: Same.
3886         * config/i386/mingw-w64.opt: Same.
3887         * config/i386/mingw.opt: Same.
3888         * config/ia64/ia64.opt: Same.
3889         * config/ia64/ilp32.opt: Same.
3890         * config/iq2000/iq2000.opt: Same.
3891         * config/linux.opt: Same.
3892         * config/lm32/lm32.opt: Same.
3893         * config/lynx.opt: Same.
3894         * config/m32c/m32c.opt: Same.
3895         * config/m32r/m32r.opt: Same.
3896         * config/m68k/ieee.opt: Same.
3897         * config/m68k/m68k.opt: Same.
3898         * config/mcore/mcore.opt: Same.
3899         * config/mep/mep.opt: Same.
3900         * config/microblaze/microblaze.opt: Same.
3901         * config/mips/mips.opt: Same.
3902         * config/mmix/mmix.opt: Same.
3903         * config/mn10300/mn10300.opt: Same.
3904         * config/moxie/moxie.opt: Same.
3905         * config/msp430/msp430.opt: Same.
3906         * config/nios2/elf.opt: Same.
3907         * config/nios2/nios2.opt: Same.
3908         * config/nvptx/nvptx.opt: Same.
3909         * config/pa/pa-hpux.opt: Same.
3910         * config/pa/pa-hpux1010.opt: Same.
3911         * config/pa/pa-hpux1111.opt: Same.
3912         * config/pa/pa-hpux1131.opt: Same.
3913         * config/pa/pa.opt: Same.
3914         * config/pa/pa64-hpux.opt: Same.
3915         * config/pdp11/pdp11.opt: Same.
3916         * config/rl78/rl78.opt: Same.
3917         * config/rs6000/476.opt: Same.
3918         * config/rs6000/aix64.opt: Same.
3919         * config/rs6000/darwin.opt: Same.
3920         * config/rs6000/linux64.opt: Same.
3921         * config/rs6000/rs6000.opt: Same.
3922         * config/rs6000/sysv4.opt: Same.
3923         * config/s390/s390.opt: Same.
3924         * config/s390/tpf.opt: Same.
3925         * config/sh/sh.opt: Same.
3926         * config/sol2.opt: Same.
3927         * config/sparc/long-double-switch.opt: Same.
3928         * config/sparc/sparc.opt: Same.
3929         * config/spu/spu.opt: Same.
3930         * config/stormy16/stormy16.opt: Same.
3931         * config/tilegx/tilegx.opt: Same.
3932         * config/tilepro/tilepro.opt: Same.
3933         * config/v850/v850.opt: Same.
3934         * config/vax/vax.opt: Same.
3935         * config/visium/visium.opt: Same.
3936         * config/vms/vms.opt: Same.
3937         * config/vxworks.opt: Same.
3938         * config/xtensa/xtensa.opt: Same.
3940 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3941             Sebastian Pop  <s.pop@samsung.com>
3943         * graphite-scop-detection.c (parameter_index_in_region): Update call to
3944         invariant_in_sese_p_rec.
3945         * graphite-sese-to-poly.c (extract_affine): Same.
3946         * sese.c (invariant_in_sese_p_rec): Pass in an extra
3947         parameter has_vdefs.
3948         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
3949         variable depends on virtual definitions in the current region.
3950         * sese.h (invariant_in_sese_p_rec): Update declaration.
3952 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
3953             Sebastian Pop  <s.pop@samsung.com>
3955         * graphite-scop-detection.c (build_scops): Do not handle scops
3956         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
3957         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
3959 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
3961         * config.in: Regenerate.
3962         * configure: Regenerate.
3963         * configure.ac (CHECKING_P): Define.
3964         * system.h: Use CHECKING_P.
3966 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3968         PR ipa/67056
3969         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
3970         is negative we don't know the type.
3971         (check_stmt_for_type_change): Skip constructors of non-polymorphic
3972         types as those won't help devirutalization.
3974 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3976         * fold-const.c (operand_equal_p): Add code matching empty constructors.
3978 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3980         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
3981         comments.
3982         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
3983         Add comments on sign of the result.
3984         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
3985         Recurse on operand #1 instead of operand #0.
3986         <CEIL_MOD_EXPR>: Do not recurse.
3987         <ROUND_MOD_EXPR>: Likewise.
3989 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3991         * cfgrtl.c (pass_free_cfg::execute): Adjust.
3992         * final.c (dbr_sequence_length): Always define.
3993         (shorten_branches): Adjust.
3994         * genattr-common.c (main): Always define DELAY_SLOTS.
3995         * genattr.c (main): Unconditionally declare functions and define
3996         macros related to delay slots.
3997         * genattrtab.c (write_eligible_delay): Adjust.
3998         (main): Always write out delay slot functions.
3999         * opts.c (default_options_table): Adjust.
4000         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4001         (redirect_with_delay_list_safe_p): Likewise.
4002         (fill_simple_delay_slots): Likewise.
4003         (fill_slots_from_thread): Likewise.
4004         (make_return_insns): Likewise.
4005         (dbr_schedule): Likewise.
4006         (rest_of_handle_delay_slots): Likewise.
4007         (pass_delay_slots::gate): Likewise.
4008         * toplev.c (process_options): Likewise.
4010 2015-10-21  Richard Henderson  <rth@redhat.com>
4012         * targhooks.c (default_addr_space_pointer_mode): Remove check
4013         for generic address space.
4014         (default_addr_space_address_mode): Likewise.
4015         (default_addr_space_valid_pointer_mode): Likewise.
4016         (default_addr_space_legitimate_address_p): Likewise.
4017         (default_addr_space_legitimize_address): Likewise.
4018         * target.def (addr_space.pointer_mode): Update documentation
4019         of default behavior.
4020         (addr_space.address_mode): Likewise.
4021         * tm.texi: Update.
4023         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4024         address spaces.
4026 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4028         * builtins.c (fold_builtin_cabs): Delete.
4029         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
4030         * match.pd: Add rules previously handled by fold_builtin_cabs.
4032 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4034         * fold-const.h (fold_strip_sign_ops): Delete.
4035         * fold-const.c (fold_strip_sign_ops): Likewise.
4036         (fold_unary_loc, fold_binary_loc): Remove calls to it.
4037         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4038         (fold_builtin_ccos): Delete.
4039         (fold_builtin_pow): Don't call fold_strip_sign_ops.
4040         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4041         Remove fndecl argument.
4042         (fold_builtin_1): Update calls accordingly.  Handle constant
4043         cos, cosh, ccos and ccosh here.
4045 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4047         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4048         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4049         * common.opt (fssa-backprop): New option.
4050         * fold-const.h (negate_mathfn_p): Declare.
4051         * fold-const.c (negate_mathfn_p): Make public.
4052         * timevar.def (TV_TREE_BACKPROP): New.
4053         * tree-pass.h (make_pass_backprop): Declare.
4054         * passes.def (pass_backprop): Add.
4055         * gimple-ssa-backprop.c: New file.
4057 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4058             Sebastian Pop  <s.pop@samsung.com>
4060         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4061         Do not call create_empty_if_region_on_edge when cond_expr is true.
4062         (translate_isl_ast_node_for): Check whether a guard has been generated.
4064 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4066         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4067         (operator=): Removed.
4068         (dr_info): Make alias_set number the last argument with default
4069         value of invalid_alias_set.
4070         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4071         of dr_info.
4072         (rewrite_reductions_out_of_ssa): Iterate only through the
4073         basic blocks which are inside region.
4074         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4075         * sese.h (struct sese_l): Removed assignment operator.
4076         (split_region_for_bb): Removed dead code.
4078 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
4080         * graphite-poly.h (struct dr_info): Removed conversion constructor.
4081         (struct scop): Renamed scop::region to scop::scop_info
4082         (scop_set_region): Same.
4083         (SCOP_REGION): Removed
4084         (SCOP_CONTEXT): Removed.
4085         (POLY_SCOP_P): Removed.
4086         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4087         Rename scop->region to scop->scop_info.
4088         (add_parameters_to_ivs_params): Same.
4089         (graphite_regenerate_ast_isl): Same.
4090         * graphite-poly.c (new_scop): Same.
4091         (free_scop): Same.
4092         (print_scop_params): Same.
4093         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4094         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4095         (dot_all_scops_1): Rename scop->region to scop->scop_info.
4096         (scop_detection::nb_pbbs_in_loops): Same.
4097         (find_scop_parameters): Same.
4098         (try_generate_gimple_bb): Same.
4099         (gather_bbs::before_dom_children): Same.
4100         (gather_bbs::after_dom_children): Same.
4101         (build_scops): Same.
4102         * graphite-sese-to-poly.c (build_scop_scattering): Same.
4103         (extract_affine_chrec): Same.
4104         (extract_affine): Same.
4105         (set_scop_parameter_dim): Same.
4106         (build_loop_iteration_domains): Same.
4107         (create_pw_aff_from_tree): Same.
4108         (add_param_constraints): Same.
4109         (build_scop_iteration_domain): Same.
4110         (build_scop_drs): Same.
4111         (analyze_drs_in_stmts): Same.
4112         (insert_out_of_ssa_copy_on_edge): Same.
4113         (rewrite_close_phi_out_of_ssa):Same.
4114         (rewrite_reductions_out_of_ssa):Same.
4115         (handle_scalar_deps_crossing_scop_limits):Same.
4116         (rewrite_cross_bb_scalar_deps):Same.
4117         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4118         (build_poly_scop):Same.
4119         (build_alias_set): Use pointer to dr_info.
4120         * graphite.c (print_graphite_scop_statistics):
4121         (graphite_transform_loops):
4122         * sese.h (struct sese_l): Remove conversion constructor.
4124 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4126         PR middle-end/67966
4127         * tree.c (verify_type): Verify that TYPE_MODE match
4128         between TYPE_CANONICAL and type.
4129         * expr.c (store_expr_with_bounds): Revert my previous change.
4130         * expmed.c (store_bit_field_1): Revert prevoius change.
4131         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4132         to match for all types.
4134 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
4136         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4137         nesting.
4139 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4141         * doc/tm.texi: Regenerated.
4142         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4143         * stor-layout.c (layout_type): Use mode to get vector mask size.
4144         * target.def (get_mask_mode): New.
4145         * targhooks.c (default_get_mask_mode): New.
4146         * targhooks.h (default_get_mask_mode): New.
4147         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4148         for boolean vector.
4149         * tree.c (MAX_BOOL_CACHED_PREC): New.
4150         (nonstandard_boolean_type_cache): New.
4151         (build_nonstandard_boolean_type): New.
4152         (make_vector_type): Vector mask has no canonical type.
4153         (build_truth_vector_type): New.
4154         (build_same_sized_truth_vector_type): New.
4155         (truth_type_for): Support vector masks.
4156         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4157         (build_truth_vector_type): New.
4158         (build_same_sized_truth_vector_type): New.
4159         (build_nonstandard_boolean_type): New.
4160         * tree-cfg.c (verify_gimple_comparison) Require boolean
4161         vector type for vector comparison.
4162         (verify_gimple_assign_ternary): Likewise.
4163         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4164         condition operand.
4165         * tree-vect-stmts.c (vectorizable_condition): Use boolean
4166         vector type for vector comparison.
4167         * tree-vect-generic.c (elem_op_func): Add new operand to hold
4168         vector type.
4169         (do_unop): Adjust to modified function type.
4170         (do_binop): Likewise.
4171         (do_plus_minus): Likewise.
4172         (do_negate); Likewise.
4173         (expand_vector_piecewise): Likewise.
4174         (do_cond): Likewise.
4175         (do_compare): Use comparison instead of condition.
4176         (expand_vector_divmod): Use boolean vector type for comparison.
4177         (expand_vector_operations_1): Skip scalar mask operations.
4179 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4181         * omp-low.c (simd_clone_create): Set in_other_partition
4182         for created clones.
4184 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4186         * doc/extend.exp (Local Register Variables): Rewrite.
4188 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
4190         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4191         and x*x in cases where the operands are sign ops.  Extend these
4192         rules to handle copysign as a sign op (including for cos, cosh
4193         and pow, which already treated negate and abs as sign ops).
4195 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
4197         PR target/68018
4198         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4199         for 64-bit MS_ABI targets also when default incoming stack boundary
4200         is overriden.
4202 2015-10-21  Richard Biener  <rguenther@suse.de>
4204         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4205         cond stmts, enhanced and split out from ...
4206         (vn_phi_eq): ... here.
4208 2015-10-21  Richard Biener  <rguenther@suse.de>
4210         PR middle-end/68031
4211         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4212         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4213         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
4214         make sure they are not registered for update.
4216 2015-10-21  Richard Biener  <rguenther@suse.de>
4218         PR tree-optimization/68026
4219         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4220         unsigned VARYING values.
4222 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
4224         * asan.c (asan_emit_stack_protection): Don't pass local stack to
4225         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4226         NULL and use local stack than.
4227         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4228         in addition to __asan_init.
4229         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4230         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4231         * asan.h (asan_intercepted_p): Handle new string builtins.
4232         * ubsan.c (ubsan_use_new_style_p): New function.
4233         (ubsan_instrument_float_cast): If location is unknown, assign
4234         input_location to loc. Propagate loc to ubsan_create_data if
4235         ubsan_use_new_style_p returned true.
4237 2015-10-21  Jeff Law  <law@redhat.com>
4239         * Makefile.in (OBJS): Remove sched-vis.c
4240         * sched-vis.c: Removed.  Code moved into...
4241         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
4242         * rtl.h: Remove prototypes for functions now living in print-rtl.c
4243         * print-rtl.h Add prototypes for new functions in print-rtl.c.
4244         * auto-inc-dec.c: Include print-rtl.h
4245         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4246         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4248         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4249         ATTRIBUTE_UNUSED.
4251 2015-10-21  Richard Biener  <rguenther@suse.de>
4252             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4254         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4255         to match.pd.
4256         Move (a * (1 << b)) is (a << b) to match.pd.
4257         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4258         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4259         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4261         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4262         New simplifier.
4263         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4264         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4265         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4266         : New simplifier.
4267         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4268         New simplifier.
4269         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4271 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
4272             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4273             Alan Modra  <amodra@gmail.com>
4275         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4276         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4277         (LINK_SPEC): Add %(link_secure_plt).
4278         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4279         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4281 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
4282             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4284         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4285         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4287 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4289         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4290         New function.
4291         (fusion_load_store): Use it.
4292         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4293         ldp and stp in VD modes.
4294         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4295         (store_pair<mode>, VD): Likewise.
4297 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
4299         PR rtl-optimization/67609
4300         * lra-splill.c (lra_final_code_change): Don't remove all
4301         sub-registers.
4303 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4305         * simplify-rtx.c (simplify_binary_operation): If either operand was
4306         a constant pool reference use them if all other simplifications failed.
4308 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4310         * config/aarch64/aarch64.md
4311         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4312         * config/aarch64/aarch64-simd.md
4313         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4314         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4315         (aarch64_fpconst_pow_of_2): New function.
4316         (aarch64_vec_fpconst_pow_of_2): Likewise.
4317         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4318         prototype.
4319         (aarch64_vec_fpconst_pow_of_2): Likewise.
4320         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4321         (aarch64_fp_vec_pow2): Likewise.
4323 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
4325         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4326         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
4327         * config/alpha/alpha.c (alpha_function_arg_advance): Update
4328         ALPHA_ARG_SIZE usage.
4329         (alpha_arg_partial_bytes): Ditto.
4331 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4333         PR target/66810
4334         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4335         error_mark_node decls.
4337 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4339         PR target/67963
4340         PR target/67985
4341         * common/config/i386/i386-common.c (ix86_handle_option): Remove
4342         OPT_miamcu handling.
4343         * config/i386/i386.c (PTA_NO_80387): New macro.
4344         (processor_alias_table): Add PTA_NO_80387 to lakemont.
4345         (ix86_option_override_internal): Update MASK_80387 from
4346         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
4347         SSE math only if 80387 is supported.  Don't change
4348         MASK_FLOAT_RETURNS.
4349         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4350         80387 is supported.
4351         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4352         if TARGET_80387 is true and TARGET_IAMCU is false.
4353         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4354         is true and TARGET_IAMCU_P is false.
4356 2015-10-20  Richard Biener  <rguenther@suse.de>
4358         PR tree-optimization/68017
4359         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4361 2015-10-20  Martin Liska  <mliska@suse.cz>
4363         * cgraphclones.c (cgraph_node::create_virtual_clone):
4364         Verify cgraph_node.local.versionable instead of calling
4365         tree_versionable_function_p.
4366         * ipa-cp.c (determine_versionability): Save the information
4367         to ipa_node_params summary.
4368         (ipcp_versionable_function_p): Use it.
4369         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4370         (ipcp_generate_summary): Do not compute cgraph_node
4371         versionability.
4372         * ipa-inline-analysis.c (inline_generate_summary): Compute
4373         versionability for all cgraph nodes.
4374         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4375         ipa_node_params::versionability.
4376         * ipa-prop.h (struct ipa_node_params): Declare it.
4378 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4380         PR other/67868
4381         * varasm.c (assemble_variable): Move special vtv handling to..
4382         (handle_vtv_comdat_sections): .. here. New function.
4383         (output_object_block): Handle vtv sections.
4385 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4387         PR target/66912
4388         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4390 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
4392         * doc/extend.texi: Update documentation WRT inline functions.
4394 2015-10-20  Alan Modra  <amodra@gmail.com>
4396         PR go/66870
4397         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4398         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4399         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4401 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
4403         PR rtl-optimization/66790
4404         * df.h (DF_MIR): New macro.
4405         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4406         (DF_MIR_INFO_BB): New macro.
4407         (DF_MIR_IN, DF_MIR_OUT): New macros.
4408         (struct df_mir_bb_info): New.
4409         (df_mir): New macro.
4410         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4411         declarations.
4412         (df_mir_get_bb_info): New.
4413         * df-problems.c (struct df_mir_problem_data): New.
4414         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4415         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4416         df_mir_confluence_0, df_mir_confluence_n,
4417         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4418         df_mir_bottom_dump, df_mir_verify_solution_start,
4419         df_mir_verify_solution_end): New.
4420         (problem_MIR): New.
4421         (df_mir_add_problem, df_mir_simulate_one_insn): New.
4422         * timevar.def (TV_DF_MIR): New.
4423         * ree.c: Include bitmap.h
4424         (add_removable_extension): Add an INIT_REGS parameter.  Use it
4425         to skip zero-extensions that may get an uninitialized register.
4426         (find_removable_extensions): Compute must-initialized registers
4427         using the MIR dataflow problem. Update the call to
4428         add_removable_extension.
4429         (find_and_remove_re): Call df_mir_add_problem.
4431 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
4433         * common/config/mn10300/mn10300-common.c
4434         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4435         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4437 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
4439         * doc/extend.texi (Explicit Register Variables): Simplify and
4440         avoid unnecessary and confusion abbreviations.  Update cross
4441         references.
4442         doc/implement-c.tex: Update cross reference.
4444 2015-10-19  Jeff Law  <law@redhat.com>
4446         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4447         that create irreducible loops unless the path elimiantes a multiway
4448         branch.
4450 2015-10-19  Richard Biener  <rguenther@suse.de>
4452         PR tree-optimization/67975
4453         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4454         * tree-cfg.c (extract_true_false_controlled_edges): Split out
4455         core worker from ...
4456         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4457         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4458         instead of block number for PHIs with two or one args.
4459         (vn_phi_eq): Compare edge predicates of PHIs that are in different
4460         blocks.
4462 2015-10-19  Richard Biener  <rguenther@suse.de>
4464         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4465         (gimple_stmt_nonnegative_warnv_p): Use it.
4466         * match.pd (CPROJ): New operator list.
4467         (cproj (complex ...)): Move simplifications from ...
4468         * builtins.c (fold_builtin_cproj): ... here.
4470 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4472         * config/i386/i386.c (ix86_expand_vector_move): Use
4473         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4474         alignment.
4476 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4478         * doc/invoke.texi: Replace @optindex with @opindex.
4480 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4482         PR target/67995
4483         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4484         arch= is set,  clear all bits in x_ix86_isa_flags, except for
4485         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4487 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
4489         PR middle-end/68002
4490         * common.opt (fkeep-static-functions): New option.
4491         * doc/invoke.texi: Document it.
4492         * cgraphunit.c (cgraph_node::finalize_function): Use it.
4494 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4496         * sched-int.h (struct autopref_multipass_data_): Remove offset
4497         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
4498         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4499         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
4500         (autopref_rank_data): New function.
4501         (autopref_rank_for_schedule): Use it.
4502         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4504 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
4506         PR other/65800
4507         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4509 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4511         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4512         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
4513         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4514         (STANDARD_STARTFILE_PREFIX_1): New.
4515         (STANDARD_STARTFILE_PREFIX_2): New.
4517 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4519         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4520         (darwin_driver_init): Note a version-min when provided on the c/l.
4521         * config/darwin.h (%darwin_minversion): Remove.
4522         * config/i386/darwin.h: Likewise.
4523         * config/rs6000/darwin.h: Likewise.
4524         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4525         rather than an arbitrary constant.
4527 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4529         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4530         PPC, detect conflicts between -arch and multilib settings.  Detect
4531         and warn about conflicts between multiple -arch definitions.
4533 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
4535         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4537 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4539         * lra-constraints.c (add_next_usage_insn): Change argument type
4540         from rtx to rtx_insn *.
4542 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
4544         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4545         for Lakemont.
4547 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
4549         * config/tilepro/gen-mul-tables.cc: Adjust include files.
4550         * config/tilegx/mul-tables.c: Regenerate.
4551         * config/tilepro/mul-tables.c: Regenerate.
4553         * config/tilegx/tilegx-c.c: Adjust include files.
4554         * config/tilegx/tilegx.c: Likewise.
4555         * config/tilepro/tilepro-c.c: Likewise.
4556         * config/tilepro/tilepro.c: Likewise.
4557         * config/aarch64/aarch64-builtins.c: Likewise.
4558         * config/aarch64/aarch64.c: Likewise.
4559         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4560         * config/alpha/alpha.c: Likewise.
4561         * config/arc/arc.c: Likewise.
4562         * config/arm/aarch-common.c: Likewise.
4563         * config/arm/arm-builtins.c: Likewise.
4564         * config/arm/arm-c.c: Likewise.
4565         * config/arm/arm.c: Likewise.
4566         * config/avr/avr-c.c: Likewise.
4567         * config/avr/avr-devices.c: Likewise.
4568         * config/avr/avr-log.c: Likewise.
4569         * config/avr/avr.c: Likewise.
4570         * config/bfin/bfin.c: Likewise.
4571         * config/c6x/c6x.c: Likewise.
4572         * config/cr16/cr16.c: Likewise.
4573         * config/cris/cris.c: Likewise.
4574         * config/darwin-c.c: Likewise.
4575         * config/darwin-driver.c: Likewise.
4576         * config/darwin.c: Likewise.
4577         * config/default-c.c: Likewise.
4578         * config/epiphany/epiphany.c: Likewise.
4579         * config/epiphany/mode-switch-use.c: Likewise.
4580         * config/epiphany/resolve-sw-modes.c: Likewise.
4581         * config/fr30/fr30.c: Likewise.
4582         * config/frv/frv.c: Likewise.
4583         * config/ft32/ft32.c: Likewise.
4584         * config/glibc-c.c: Likewise.
4585         * config/h8300/h8300.c: Likewise.
4586         * config/i386/host-cygwin.c: Likewise.
4587         * config/i386/host-mingw32.c: Likewise.
4588         * config/i386/i386-c.c: Likewise.
4589         * config/i386/i386.c: Likewise.
4590         * config/i386/msformat-c.c: Likewise.
4591         * config/i386/winnt-cxx.c: Likewise.
4592         * config/i386/winnt-stubs.c: Likewise.
4593         * config/i386/winnt.c: Likewise.
4594         * config/ia64/ia64-c.c: Likewise.
4595         * config/ia64/ia64.c: Likewise.
4596         * config/iq2000/iq2000.c: Likewise.
4597         * config/lm32/lm32.c: Likewise.
4598         * config/m32c/m32c-pragma.c: Likewise.
4599         * config/m32c/m32c.c: Likewise.
4600         * config/m32r/m32r.c: Likewise.
4601         * config/mcore/mcore.c: Likewise.
4602         * config/mep/mep-pragma.c: Likewise.
4603         * config/mep/mep.c: Likewise.
4604         * config/microblaze/microblaze-c.c: Likewise.
4605         * config/microblaze/microblaze.c: Likewise.
4606         * config/mips/mips-tables.opt
4607         * config/mips/mips.c: Likewise.
4608         * config/mmix/mmix.c: Likewise.
4609         * config/mn10300/mn10300.c: Likewise.
4610         * config/moxie/moxie.c: Likewise.
4611         * config/msp430/msp430-c.c: Likewise.
4612         * config/msp430/msp430.c: Likewise.
4613         * config/nds32/nds32-cost.c: Likewise.
4614         * config/nds32/nds32-fp-as-gp.c: Likewise.
4615         * config/nds32/nds32-intrinsic.c: Likewise.
4616         * config/nds32/nds32-isr.c: Likewise.
4617         * config/nds32/nds32-md-auxiliary.c: Likewise.
4618         * config/nds32/nds32-memory-manipulation.c: Likewise.
4619         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4620         * config/nds32/nds32-predicates.c: Likewise.
4621         * config/nds32/nds32.c: Likewise.
4622         * config/nios2/nios2.c: Likewise.
4623         * config/nvptx/mkoffload.c: Likewise.
4624         * config/nvptx/nvptx.c: Likewise.
4625         * config/pa/pa.c: Likewise.
4626         * config/pdp11/pdp11.c: Likewise.
4627         * config/rl78/rl78-c.c: Likewise.
4628         * config/rl78/rl78.c: Likewise.
4629         * config/rs6000/host-darwin.c: Likewise.
4630         * config/rs6000/rs6000-c.c: Likewise.
4631         * config/rs6000/rs6000-linux.c: Likewise.
4632         * config/rs6000/rs6000.c: Likewise.
4633         * config/rx/rx.c: Likewise.
4634         * config/s390/s390-c.c: Likewise.
4635         * config/s390/s390.c: Likewise.
4636         * config/sh/sh-c.c: Likewise.
4637         * config/sh/sh-mem.cc: Likewise.
4638         * config/sh/sh.c: Likewise.
4639         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4640         * config/sh/sh_treg_combine.cc: Likewise.
4641         * config/sol2-c.c: Likewise.
4642         * config/sol2-cxx.c: Likewise.
4643         * config/sol2-stubs.c: Likewise.
4644         * config/sol2.c: Likewise.
4645         * config/sparc/sparc-c.c: Likewise.
4646         * config/sparc/sparc.c: Likewise.
4647         * config/spu/spu-c.c: Likewise.
4648         * config/spu/spu.c: Likewise.
4649         * config/stormy16/stormy16.c: Likewise.
4650         * config/v850/v850-c.c: Likewise.
4651         * config/v850/v850.c: Likewise.
4652         * config/vax/vax.c: Likewise.
4653         * config/visium/visium.c: Likewise.
4654         * config/vms/vms-c.c: Likewise.
4655         * config/vms/vms.c: Likewise.
4656         * config/vxworks.c: Likewise.
4657         * config/winnt-c.c: Likewise.
4658         * config/xtensa/xtensa.c: Likewise.
4660 2015-10-16  Christian Bruel  <christian.bruel@st.com>
4662         PR target/67745
4663         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4664         (FUNCTION_BOUNDARY_P): New macro:
4665         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4666         New hook.
4667         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4668         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4669         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4670         * function.c (allocate_struct_function): Call
4671         relayout_function hook.
4672         * passes.c (rest_of_decl_compilation): Likewise.
4674 2015-10-16  Christian Bruel  <christian.bruel@st.com>
4676         PR target/67745
4677         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4678         * config/arm/arm.c (arm_option_override_internal): Call
4679         arm_override_options_after_change_1.
4680         (arm_override_options_after_change): New function.
4681         (arm_override_options_after_change_1): Likewise.
4682         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4684 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4686         Revert:
4687         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4688         empty constructors.
4690 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4692         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4693         argument is an ADDR_EXPR.
4695 2015-10-16  Richard Biener  <rguenther@suse.de>
4697         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4698         and get rid of force_gimple_operand_gsi.
4699         (gimple_fold_builtin_memory_chk): Likewise.
4700         (gimple_fold_builtin_stxcpy_chk): Likewise.
4701         (rewrite_to_defined_overflow): Likewise.
4702         (gimple_convert_to_ptrofftype): New function.
4703         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4705 2015-10-16  Richard Biener  <rguenther@suse.de>
4707         * tree-nested.h (build_addr): Adjust prototype.
4708         * tree-nested.c (build_addr): Remove context argument and use
4709         mark_addressable.
4710         (get_static_chain): Adjust calls to build_addr.
4711         (convert_nl_goto_reference): Likewise.
4712         (convert_tramp_reference_op): Likewise.
4713         (finalize_nesting_tree_1): Likewise.
4714         * value-prof.c (gimple_ic): Likewise.
4715         * gimple-low.c (lower_builtin_setjmp): Likewise.
4716         * tree-parloops.c (take_address_of): Likewise.
4717         (create_call_for_reduction_1): Likewise.
4718         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4719         (gimple_gen_ic_func_profiler): Likewise.
4721 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4723         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4724         empty constructors.
4726 2015-10-16  Michael Collison  <michael.collison@linaro.org>
4727             Andrew Pinski <andrew.pinski@caviumnetworks.com>
4729         * match.pd ((x < y) && (x < z) -> x < min (y,z),
4730         (x > y) and (x > z) -> x > max (y,z))
4732 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
4733             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4735         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4736         (DYNAMIC_LINKER): Renamed to ...
4737         (GLIBC_DYNAMIC_LINKER): This.
4738         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4740 2015-10-15  Marek Polacek  <polacek@redhat.com>
4742         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4743         gimple_call_builtin instead of is_gimple_call.
4745 2015-10-15  Richard Biener  <rguenther@suse.de>
4747         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4749 2015-10-15  Richard Biener  <rguenther@suse.de>
4751         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4752         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4753         * tree-vect-loop.c (get_initial_def_for_induction): Drop
4754         use of force_gimple_operand in favor of gimple_build.
4755         Use vect_get_new_ssa_name.
4756         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4757         (vectorizable_mask_load_store): Likewise.
4758         (vectorizable_call): Likewise.
4759         (vectorizable_store): Likewise.
4760         (vectorizable_load): Likewise.
4761         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4763 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
4765         PR tree-optimization/67945
4766         * tree-pass.h (PROP_gimple_opt_math): New property flag.
4767         * generic-match-head.c (canonicalize_math_p): New function.
4768         * gimple-match-head.c: Include tree-pass.h.
4769         (canonicalize_math_p): New function.
4770         * match.pd: Group math built-in rules into simplifications
4771         and canonicalizations.  Guard the latter with canonicalize_math_p.
4772         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4773         PROP_gimple_opt_math property.
4775 2015-10-15  Marek Polacek  <polacek@redhat.com>
4777         PR tree-optimization/67953
4778         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
4780 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
4782         * config.gcc: Recognize "." in architecture base name for AArch64.
4784 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
4786         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
4787         ROUND_UP macro.
4788         * config/mips/mips.c (mips_setup_incoming_varargs): Use
4789         ROUND_DOWN to calculate off.
4790         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
4791         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
4792         rounded_size.
4794 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4796         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
4798 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
4799             Torvald Riegel  <triegel@redhat.com>
4801         PR target/67281
4802         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
4803         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4804         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
4805         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
4806         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
4807         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4808         trechkpt, treclaim, tsr, ttest): New define_expands.
4809         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4810         __TM_FENCE__ for htm.
4811         * doc/extend.texi: Update documentation for htm builtins.
4813 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
4815         PR target/67967
4816         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
4817         REG_CFA_EXPRESSION to aligned SSE stores.
4819 2015-10-14  Jeff Law  <law@redhat.com>
4821         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
4822         num_threaded_edges for successful FSM threads too.
4824 2015-10-14  Richard Biener  <rguenther@suse.de>
4826         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
4827         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
4828         (vect_get_vec_def_for_operand): Remove unused parameter.
4829         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
4830         (vect_create_epilog_for_reduction): Likewise.
4831         (vectorizable_reduction): Likewise.
4832         (vectorizable_live_operation): Likewise.
4833         * tree-vect-patterns.c (type_conversion_p): Likewise.
4834         (vect_recog_vector_vector_shift_pattern): Likewise.
4835         (check_bool_pattern): Likewise.
4836         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4837         (vect_analyze_slp_cost_1): Likewise.
4838         * tree-vect-stmts.c (process_use): Likewise.
4839         (vect_get_vec_def_for_operand): Do not handle reductions.
4840         (vect_get_vec_defs): Adjust.
4841         (vectorizable_mask_load_store): Likewise.
4842         (vectorizable_call): Likewise.
4843         (vectorizable_simd_clone_call): Likewise.
4844         (vect_get_loop_based_defs): Likewise.
4845         (vectorizable_conversion): Likewise.
4846         (vectorizable_assignment): Likewise.
4847         (vectorizable_shift): Likewise.
4848         (vectorizable_operation): Likewise.
4849         (vectorizable_store): Likewise.
4850         (vectorizable_load): Likewise.
4851         (vect_is_simple_cond): Likewise.
4852         (vectorizable_condition): Likewise.
4853         (vect_is_simple_use): Remove unused parameters.
4854         (vect_is_simple_use_1): Adjust and rename.
4856 2015-10-14  Richard Biener  <rguenther@suse.de>
4858         PR tree-optimization/67915
4859         * match.pd: Handle comparisons of addresses of STRING_CSTs.
4860         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
4861         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
4862         stmt folding in favor of GIMPLE one.
4864 2015-10-14  Marek Polacek  <polacek@redhat.com>
4866         PR tree-optimization/67815
4867         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
4868         (reassociate_bb): Call it.
4870 2015-10-14  Richard Biener  <rguenther@suse.de>
4872         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4873         Reset info at start.
4874         (vect_analyze_group_access_1): Add debug print.
4875         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
4876         (vect_compute_single_scalar_iteration_cost): ... to this.
4877         (vect_analyze_loop_2): Adjust.
4878         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
4879         * tree-vectorizer.h: ... here.
4880         (add_stmt_info_to_vec): Remove.
4881         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
4883 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4885         * targhooks.c (default_target_option_pragma_parse): Do not warn if
4886         called on behalf of "#pragma GCC pop_options".
4888 2015-10-14  Tom de Vries  <tom@codesourcery.com>
4890         * cfganal.c (verify_no_unreachable_blocks): New function.
4891         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
4892         verify_no_unreachable_blocks.
4893         cfganal.h (verify_no_unreachable_blocks): Declare.
4895 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
4897         * common.opt: Add flag_checking.
4898         * system.h (CHECKING_P): Define.
4900 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
4901             Aldy Hernandez  <aldyh@redhat.com>
4902             Ilya Verbin  <ilya.verbin@intel.com>
4904         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
4905         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
4906         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
4907         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
4908         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
4909         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
4910         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
4911         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
4912         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
4913         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
4914         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4915         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4916         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
4917         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4918         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
4919         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4920         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4921         (struct cgraph_simd_clone_arg): Adjust comment.
4922         * coretypes.h (struct gomp_ordered): New forward decl.
4923         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
4924         set critical clauses to it.
4925         (gimple_build_omp_ordered): Return gomp_ordered * instead of
4926         gimple *.  Add CLAUSES argument, set ordered clauses to it.
4927         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
4928         GIMPLE_OMP_ORDERED.
4929         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
4930         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
4931         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
4932         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
4933         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
4934         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
4935         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
4936         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
4937         renumber
4938         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
4939         (gomp_critical): Add clauses field.
4940         (gomp_ordered): New struct.
4941         (is_a_helper <gomp_ordered *>::test): New inline.
4942         (gimple_build_omp_critical): Add CLAUSES argument.
4943         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
4944         instead of gimple *.
4945         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
4946         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
4947         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
4948         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
4949         inline functions.
4950         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
4951         (dump_gimple_omp_target): Handle enter data and exit data.
4952         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
4953         (dump_gimple_omp_critical): Print clauses.
4954         (dump_gimple_omp_ordered): New function.
4955         (dump_gimple_omp_task): Handle taskloop.
4956         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
4957         GIMPLE_OMP_ORDERED.
4958         * gimple-walk.c (walk_gimple_op): Walk clauses on
4959         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
4960         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
4961         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
4962         (struct gimplify_omp_ctx): Add loop_iter_var,
4963         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
4964         and target_firstprivatize_array_bases fields.
4965         (delete_omp_context): Release loop_iter_var.
4966         (gimplify_bind_expr): Handle ORT_NONE.
4967         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
4968         ORT_COMBINED_TARGET.
4969         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
4970         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
4971         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
4972         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
4973         ctx->target_map_scalars_firstprivate.
4974         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
4975         data sharing clauses.  For data sharing clause with VLA decl
4976         on omp target/target data don't add firstprivate for the pointer.
4977         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
4978         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
4979         the addition of ORT_COMBINED_TARGET.
4980         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
4981         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
4982         pointers as zero length array sections and
4983         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
4984         data sharing.
4985         (omp_check_private): Handle omp_member_access_dummy_var vars.
4986         (find_decl_expr): New function.
4987         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
4988         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
4989         Handle OMP_CLAUSE_GANG separately.  Handle
4990         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4991         clauses.  Diagnose linear clause on combined
4992         distribute {, parallel for} simd construct, unless it is the loop
4993         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
4994         Handle map clauses with COMPONENT_REF.  Initialize
4995         ctx->target_map_scalars_firstprivate,
4996         ctx->target_firstprivatize_array_bases and
4997         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
4998         linear clause even to target region if combined.  Remove
4999         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5000         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
5001         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5002         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
5003         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5004         For linear clause on worksharing loop combined with parallel add
5005         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
5006         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
5007         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
5008         taskloop if needed.
5009         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5010         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5011         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5012         GOMP_MAP_POINTER.
5013         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
5014         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5015         in target body.  Handle removal of struct mapping if struct is not
5016         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
5017         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
5018         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
5019         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5020         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5021         clause appear together.  Handle
5022         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
5023         clause if it has map-type-modifier always.  Handle
5024         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5025         clauses.
5026         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5027         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5028         callers.
5029         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
5030         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
5031         iterators in doacross loops.
5032         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5033         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
5034         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
5035         for the addition of ORT_COMBINED_TARGET.
5036         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5037         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
5038         and OMP_TARGET_EXIT_DATA.
5039         (gimplify_omp_ordered): New function.
5040         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5041         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
5042         Gimplify clauses on OMP_CRITICAL.
5043         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5044         expand_GOMP_SIMD_ORDERED_END): New functions.
5045         * internal-fn.def (GOMP_SIMD_ORDERED_START,
5046         GOMP_SIMD_ORDERED_END): New internal functions.
5047         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5048         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5049         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5050         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5051         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5052         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5053         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5054         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5055         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5056         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5057         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5058         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5059         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5060         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5061         adjust type.
5062         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5063         GOMP_target_data_41, adjust type.
5064         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5065         GOMP_target_update_41, adjust type.
5066         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5067         field.
5068         (struct omp_for_data): Add ordered and simd_schedule fields.
5069         (omp_member_access_dummy_var, unshare_and_remap_1,
5070         unshare_and_remap, is_taskloop_ctx): New functions.
5071         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5072         (extract_omp_for_data): Handle taskloops and doacross loops
5073         and simd schedule modifier.
5074         (omp_adjust_chunk_size): New function.
5075         (get_ws_args_for): Use it.
5076         (lookup_sfield): Change first argument to splay_tree_key,
5077         add overload with first argument tree.
5078         (maybe_lookup_field): Likewise.
5079         (use_pointer_for_field): Handle omp_member_access_dummy_var.
5080         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5081         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5082         (build_outer_var_ref): Add LASTPRIVATE argument, handle
5083         taskloops and omp_member_access_dummy_var vars.
5084         (build_sender_ref): Change first argument to splay_tree_key,
5085         add overload with first argument tree.
5086         (install_var_field): For mask & 8 use &DECL_UID as key instead
5087         of the tree itself.
5088         (fixup_child_record_type): Const qualify *.omp_data_i.
5089         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5090         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5091         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5092         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5093         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5094         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5095         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5096         kinds.
5097         (add_taskreg_looptemp_clauses): New function.
5098         (scan_omp_parallel): Use it.
5099         (scan_omp_task): Likewise.
5100         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5101         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5102         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5103         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
5104         sandwiched taskloop constructs.  Type check
5105         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
5106         region.  Diagnose depend(source) or depend(sink:...) on
5107         target constructs or task/taskloop.
5108         (handle_simd_reference): Use get_name.
5109         (lower_rec_input_clauses): Likewise.  Ignore all
5110         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5111         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
5112         before passing it to omp_clause_{default,copy}_ctor.  Handle
5113         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
5114         lastprivate_firstprivate flag for linear that needs copyin and
5115         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5116         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5117         on taskloop lookup decl in outer context.  Pass true to
5118         build_outer_var_ref lastprivate argument.  Handle
5119         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5120         outside of outer taskloop for.
5121         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5122         OMP_CLAUSE_DECL.
5123         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5124         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
5125         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
5126         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
5127         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5128         abstract origin.  Handle omp_member_access_dummy_var vars.
5129         (expand_parallel_call): Use expand_omp_build_assign.
5130         (expand_task_call): Handle taskloop construct expansion.  Add
5131         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
5132         integers.  Add priority argument to GOMP_task* calls.  Or in
5133         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5134         GOMP_task call.
5135         (expand_omp_build_assign): Add prototype.  Add AFTER
5136         argument, if true emit statements after *GSI_P and continue linking.
5137         (expand_omp_taskreg): Adjust expand_task_call caller.
5138         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5139         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5140         zero_iter2_bb and first_zero_iter2 arguments, handle computation
5141         of counts even for ordered loops.
5142         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5143         (expand_omp_ordered_source, expand_omp_ordered_sink,
5144         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5145         functions.
5146         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
5147         clauses on worksharing loop.  Handle DOACROSS loop expansion.
5148         (expand_omp_for_static_nochunk): Handle linear clauses on
5149         worksharing loop.  Adjust expand_omp_for_init_counts
5150         callers.
5151         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
5152         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
5153         expand_omp_for_init_counts callers.
5154         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5155         functions.
5156         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5157         Handle doacross loops.
5158         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5159         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
5160         GOMP_target_{41,update_41,enter_exit_data} libcalls.
5161         (expand_omp): Don't expand ordered depend constructs here, record
5162         ord_stmt instead for later expand_omp_for_generic.
5163         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5164         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5165         clause as stand-alone directive.
5166         (lower_omp_ordered_clauses): New function.
5167         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5168         don't lower anything.
5169         (lower_omp_for_lastprivate): Use last _looptemp_ clause
5170         on taskloop for comparison.
5171         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
5172         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5173         expansion for linear adjustments.
5174         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5175         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5176         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
5177         to tree * pointing to the stmt's clauses.
5178         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5179         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5180         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5181         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5182         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5183         clauses.  Always use short kind and 8-bit align shift.
5184         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5185         (struct lower_omp_regimplify_operands_data): New type.
5186         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5187         New functions.
5188         (lower_omp_1): Use lower_omp_regimplify_operands instead of
5189         gimple_regimplify_operands.
5190         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5191         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
5192         clause as stand-alone directive.
5193         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5194         (simd_clone_mangle): Mangle the various linear kinds
5195         per the new ABI.
5196         (simd_clone_adjust_argument_types): Handle
5197         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5198         (simd_clone_init_simd_arrays): Don't do anything for uval.
5199         (simd_clone_adjust): Handle
5200         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5201         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5202         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5203         * omp-low.h (omp_member_access_dummy_var): New prototype.
5204         * passes.def (pass_simduid_cleanup): Schedule another copy of the
5205         pass after all optimizations.
5206         * tree.c (omp_clause_code_name): Add entries for
5207         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5208         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5209         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
5210         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5211         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5212         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
5213         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5214         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5215         clauses.
5216         * tree-core.h (enum omp_clause_linear_kind): New.
5217         (struct tree_omp_clause): Change type of map_kind
5218         from unsigned char to unsigned int.  Add subcode.if_modifier
5219         and subcode.linear_kind fields.
5220         (enum omp_clause_code): Add
5221         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5222         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5223         (OMP_CLAUSE_REDUCTION): Document
5224         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5225         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5226         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5227         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
5228         operand.
5229         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
5230         operand.
5231         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5232         codes.
5233         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5234         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5235         char.
5236         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5237         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5238         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5239         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5240         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5241         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5242         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5243         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5244         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5245         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5246         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5247         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5248         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5249         * tree-inline.c (remap_gimple_stmt): Handle clauses on
5250         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
5251         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5252         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5253         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5254         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5255         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5256         (convert_local_omp_clauses): Likewise.
5257         * tree-pretty-print.c (dump_omp_clause): Handle
5258         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5259         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5260         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5261         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5262         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
5263         GOMP_MAP_FORCE_DEALLOC.  Handle
5264         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5265         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5266         and clauses on OMP_ORDERED and OMP_CRITICAL.
5267         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5268         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5269         (vectorize_loops): Adjust comments.
5270         (pass_simduid_cleanup::execute): Likewise.
5271         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5272         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5273         * wide-int.h (wi::gcd): New.
5275 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
5277         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5278         (ix86_function_arg_advance): Ditto.
5279         (ix86_function_arg): Ditto.
5280         (ix86_gimplify_va_arg): Ditto.
5281         (ix86_class_max_nregs): Ditto.
5282         (inline_memory_move_cost): Ditto.
5283         (ix86_set_reg_reg_cost): Ditto.
5284         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5286 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
5288         PR middle-end/67912
5289         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5291 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
5293         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5294         ROUND_UP macro and UNITS_PER_WORD * 2.
5295         * config/sparc/sparc.c (sparc_compute_frame_size):
5296         Use ROUND_UP and ROUND_DOWN macros where applicable.
5297         (function_arg_record_value, function_arg_record_value_1)
5298         (function_arg_record_value_1): Ditto.
5299         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5300         alignment to double-word.
5301         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5302         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5303         rounded_size.
5305 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5307         * rtl.h (print_insn): Fix prototype.
5309 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5311         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5312         -1.  Add assert that returned entry matches phi argument.
5313         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5314         free_stmt_vec_info_vec ...
5315         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
5316         with -1.
5318 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
5320         PR tree-optimization/67909, 67947
5321         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5322         really skip the inner loop.
5324 2015-10-13  Jeff Law  <law@redhat.com>
5326         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5327         Allow single block jump threading paths.
5329 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5331         PR tree-optimization/67476
5332         * doc/invoke.texi (@item parloops-schedule): New item.
5333         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5334         * tree-parloops.c: Include params-enum.h.
5335         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5337 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5339         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5340         * params-enum.h: New file.
5341         * opts.c (handle_param): Handle case that param arg is a string.
5342         * params-list.h: Handle DEFPARAMENUM5 in params.def.
5343         * params.c (find_param): New function, factored out of ...
5344         (set_param_value): ... here.
5345         (param_string_value_p): New function.
5346         * params.h (struct param_info): Add value_names field.
5347         (find_param, param_string_value_p): Declare.
5349 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5351         PR tree-optimization/67476
5352         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5354 2015-10-13  Richard Biener  <rguenther@suse.de>
5356         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5357         the data dependence vector.
5358         (vect_peeling_hash_insert): Get the peeling hash table as argument.
5359         (vect_peeling_hash_get_lowest_cost): Likewise.
5360         (vect_enhance_data_refs_alignment): Adjust.
5361         (struct _vect_peel_info, struct _vect_peel_extended_info,
5362         struct peel_info_hasher): Move from ...
5363         * tree-vectorizer.h: ... here.
5364         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5365         (LOOP_VINFO_PEELING_HTAB): Likewise.
5366         (struct _loop_vec_info): Remove min_profitable_iters and
5367         peeling_htab members.
5368         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5369         here.
5370         (destroy_loop_vec_info): Adjust.
5371         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5372         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5373         to estimate alias versioning cost.
5374         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5376 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
5378         * real.h (real_isinteger): Declare.
5379         * real.c (real_isinteger): New function.
5380         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5381         if y is an even integer.
5383 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5385         revert:
5386         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5387         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5388         counts when these are more informative.
5390 2015-10-12  Jeff Law  <law@redhat.com>
5392         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5393         (fsm_find_control_stmt_paths): Change name of first argument to
5394         more accurately relfect what it really is.  Handle simplification
5395         of GIMPLE_COND after finding a thread path for NAME.
5396         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5397         nontrivial conditions to be handled by FSM threader.
5398         (thread_through_normal_block): Extract the name to looup via
5399         FSM threader from COND_EXPR.
5401         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5402         restriction that traced SSA_NAME is a user variable.
5404 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5406         PR tree-optimization/67476
5407         * omp-low.c (expand_omp_for_generic): Add missing phis.
5409 2015-10-12  Tom de Vries  <tom@codesourcery.com>
5411         PR tree-optimization/67476
5412         * omp-low.c (expand_omp_for_generic): Handle simple latch.
5414 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
5416         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5417         tables: add tbl3 and tbx4.
5418         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5419         (aarch64_tbx4v8qi): New.
5420         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5421         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5422         Rewrite using builtin functions.
5423         * config/aarch64/iterators.md (UNSPEC_TBX): New.
5425 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5427         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5428         ROUND_UP macro.
5429         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5430         Use ROUND_UP and ROUND_DOWN macros where applicable.
5431         (rs6000_darwin64_record_arg_flush): Ditto.
5432         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5433         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5434         rounded_size.
5436 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
5438         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5439         (AARCH64_ROUND_DOWN): Ditto.
5440         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5442 2015-10-12  Richard Biener  <rguenther@suse.de>
5444         PR ipa/67783
5445         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5446         code that analyzes IVs on each stmt but in a cheaper way avoiding
5447         quadratic behavior.
5449 2015-10-12  Nick Clifton  <nickc@redhat.com>
5451         * config/msp430/msp430.c (msp430_mcu_names): Rename to
5452         msp430_mcu_data, add fields for ISA and hardware multiply
5453         support.  Import latest data from the devices.csv file.
5454         (msp430_override_option): Use the data from the new array.
5455         (msp430_use_f5_series_hwmult): Likewise.
5456         (use_32bit_hwmult): Likewise.
5457         (msp430_no_hwmult): Likewise.
5458         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5459         MCU names.
5460         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5461         not recognised then no hardware multiply support is assumed and
5462         that only the MSP430 ISA is allowed.
5464 2015-10-12  Richard Biener  <rguenther@suse.de>
5466         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5467         related code ...
5468         (vect_analyze_loop_2): ... here.
5470 2015-10-11  Jason Merrill  <jason@redhat.com>
5472         PR c++/67557
5473         * expr.c (store_field): Call store_constructor directly when
5474         storing a CONSTRUCTOR into a target smaller than its type.
5475         Guard against unsafe bitwise copy.
5477 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5479         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5480         counts when these are more informative.
5482 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5484         * tree-profile.c (tree_profiling): Do not clear
5485         pure/const when not instrumenting.
5486         (pass tree_profile): Add dump of symtab.
5488 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5490         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5491         addresses.
5492         (fold_addr_of_array_ref_difference): Likewise.
5494 2015-10-11  Jeff Law  <law@redhat.com>
5496         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5497         tree-ssa-threadbackward.c.
5498         (fsm_find_control_statement_thread_paths): Likewise.
5499         (thread_through_normal_block): Break out FSM bits and move them
5500         into a new function in tree-ssa-threadbackward.c.  Call new function
5501         instead.
5502         Minimize header file usage.
5503         * tree-ssa-threadbackward.h: New file.
5504         * tree-ssa-threadbackward.c: Likewise.
5505         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5507 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
5509         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5511 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
5513         PR rtl-optimization/67864
5514         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5515         fallthrough edges for conditional jumps.  Don't sort candidate
5516         edges if not optimizing for speed.
5518 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5520         * defaults.h (REVERSE_CONDITION): New default definition.
5521         * jump.c (reversed_comparison_code_parts): Adjust.
5523 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5525         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5526         check HARD_FRAME_POINTER_IS_ARG_POINTER.
5528 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5530         * defaults.h (FRAME_ADDR_RTX): New default definition.
5531         * builtins.c (expand_builtin_return_addr): Adjust.
5533 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5535         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5536         * builtins.c (expand_builtin_return_addr): Adjust.
5538 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5540         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5541         * builtins.c (expand_builtin_return_addr): Adjust.
5542         * doc/tm.texi: Likewise.
5543         * doc/tm.texi.in: Likewise.
5544         * except.c (expand_builtin_unwind_init): Likewise.
5546 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5548         * builtins.c (expand_builtin_return_addr): Adjust.
5549         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5551 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
5553         * tree.c (type_with_interoperable_signedness): New.
5554         (gimple_canonical_types_compatible_p): Use it.
5555         * tree.h (type_with_interoperable_signedness): Declare
5557 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
5559         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5560         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5561         when OEP_ADDRESS_OF is se.
5563 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
5564             Sebastian Pop  <s.pop@samsung.com>
5566         * graphite-dependences.c (scop_get_dependences): Add dump of the
5567         data dependence graph.
5568         * graphite-poly.c (print_isl_union_map): New.
5569         (debug_isl_union_map): New.
5570         * graphite-poly.h (print_isl_union_map): Declare.
5571         (debug_isl_union_map): Declare.
5573 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
5574             Sebastian Pop  <s.pop@samsung.com>
5576         * graphite-poly.c (print_iteration_domain): Remove verbosity.
5577         Remove OpenScop formatting.
5578         (print_iteration_domains): Same.
5579         (debug_iteration_domain): Same.
5580         (debug_iteration_domains): Same.
5581         (print_pdr): Same.
5582         (debug_pdr): Same.
5583         (dump_gbb_cases): Same.
5584         (dump_gbb_conditions): Same.
5585         (print_pdrs): Same.
5586         (debug_pdrs): Same.
5587         (print_pbb_body): Same.
5588         (print_pbb): Same.
5589         (print_scop_params): Same.
5590         (print_scop_context): Same.
5591         (print_scop): Same.
5592         (debug_pbb_domain): Same.
5593         (debug_pbb): Same.
5594         (debug_scop_context): Same.
5595         (debug_scop): Same.
5596         (debug_scop_params): Same.
5597         * graphite-poly.h: Same.
5598         * graphite.c (graphite_transform_loops): Same.
5600 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5602         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5603         call that isn't needed.
5605 2015-10-09  Jeff Law  <law@redhat.com>
5607         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5608         rather than moving each name to the freelist individually.
5610 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
5612         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5613         * frame-header-opt.c: New file.
5614         * config/mips/mips-proto.h (mips_register_frame_header_opt):
5615         Add prototype.
5616         * config/mips/mips.c (mips_compute_frame_info): Check
5617         optimize_call_stack flag.
5618         (mips_option_override): Register new frame_header_opt pass.
5619         (mips_frame_info, mips_int_mask, mips_shadow_set,
5620         machine_function): Move these types to...
5621         * config/mips/mips.h: here.
5622         (machine_function): Add does_not_use_frame_header and
5623         optimize_call_stack fields.
5624         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5625         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5626         Document new flags.
5627         * config/mips/mips.opt (mframe-header-opt): Add new option.
5629 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
5631         * config/i386/i386.c
5632         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5633         ROUND_DOWN where applicable.
5635 2015-10-09  Jeff Law  <law@redhat.com>
5637         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5638         correct statement.
5640 2015-10-09  Renlin Li  <renlin.li@arm.com>
5642         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5643         operands[0] and operands[2].
5644         (neon_vtrn<mode>_insn): Likewise.
5645         (neon_vzip<mode>_insn): Likewise.
5647 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5649         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5650         ((X & C2) << C1): Expand to...
5651         (X {&,^,|} C2 << C1): ...This.
5652         ((X & C2) >> C1): Expand to...
5653         (X {&,^,|} C2 >> C1): ...This.
5655 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
5657         PR target/67895
5658         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5659         Adjust embedded rounding/SAE specifier position.
5660         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5661         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5662         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5663         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5664         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5665         Likewise.
5666         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5668 2015-10-09  Martin Jambor  <mjambor@suse.cz>
5670         tree-optimization/67794
5671         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5672         between types of state,ents but accept original definitions as a
5673         parameter.
5674         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5675         iterate over definitions.
5677 2015-10-09  James Norris  <jnorris@codesourcery.com>
5679         * config/rs6000/rs6000.c (rs6000_offload_options): New.
5680         (TARGET_OFFLOAD_OPTIONS): New.
5682 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
5684         PR middle-end/67891
5685         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5687         PR middle-end/67766
5688         * function.c (expand_function_end): Move return value
5689         promotion past the handling of PARALLELs and CONCATs.
5691         PR rtl-optimization/67828
5692         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5693         (tree_may_unswitch_on): Don't unswitch on expressions
5694         involving undefined values.
5696 2015-10-09  Richard Biener  <rguenther@suse.de>
5698         * genmatch.c (print_operand): Fix formatting.
5699         (dt_node::append_simplify): Warn for multiple simplifiers
5700         that match the same pattern.
5701         * match.pd (log (exp @0)): Remove duplicates.
5703 2015-10-09  Richard Biener  <rguenth@suse.de>
5705         PR target/67366
5706         * gimple-fold.c (optabs-query.h): Include
5707         (gimple_fold_builtin_memory_op): Allow unaligned stores
5708         when movmisalign_optabs are available.
5710 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5712         PR target/67366
5713         * config/arm/arm.md (movmisalign<mode>): New.
5714         * config/arm/iterators.md (HSI): New.
5716 2015-10-09  Richard Biener  <rguenther@suse.de>
5718         PR tree-optimization/67891
5719         * gimple-match.h (gimple_simplified_result_is_gimple_val):
5720         New helper.
5721         (gimple_resimplify1): Declare.
5722         (gimple_resimplify2): Likewise.
5723         (gimple_resimplify3): Likewise.
5724         * gimple-match-head.c (gimple_resimplify1): Export.
5725         (gimple_resimplify2): Likewise.
5726         (gimple_resimplify3): Likewise.
5727         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5728         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5729         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5730         to avoid creating stmts without VN info.
5732 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
5734         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5735         of availability.
5737 2015-10-08  Jeff Law  <law@redhat.com>
5739         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5740         and release_ssa_name in two places.
5741         (gimple_stringop_fixed_value): Similarly.
5743         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5744         release_defs.
5746         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5747         unlink_stmt_vdef and release_ssa_name_fn.
5749         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5750         release_defs.
5752 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
5754         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5755         SSE register save area to 16 bytes only if the incoming stack
5756         boundary is no less than 16 bytes.
5758 2015-10-08  Jeff Law  <law@redhat.com>
5760         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5761         release_ssa_name.  Fix typo in comment.
5763 2015-10-08  Nathan Sidwell  <nathan@acm.org>
5765         * config/nvptx/nvptx.h (struct machine_function): Add comment.
5766         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5767         may return pointer as well as in memory.
5768         (nvptx_output_return): Likewise.
5770 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5772         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5773         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
5774         * match.pd: Add rules previously handled by fold_builtin_sqrt
5775         and fold_builtin_cbrt.
5777 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5779         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
5780         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
5781         * fold-const.h (tree_unary_nonnegative_warnv_p)
5782         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5783         (tree_expr_nonnegative_warnv_p): Add depth parameters.
5784         * fold-const.c: Include gimple-fold.h and params.h.
5785         (tree_ssa_name_nonnegative_warnv_p): New function.
5786         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
5787         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5788         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
5789         Add a depth parameter and increment it for recursive calls to
5790         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
5791         to handle SSA names.
5792         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
5793         (gimple_stmt_nonnegative_warnv_p): Declare.
5794         * tree-vrp.c (remove_range_assertions): Remove assert that condition
5795         cannot be proven false.
5796         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
5797         (gimple_stmt_nonnegative_warnv_p): Move to...
5798         * gimple-fold.c: ...here.  Add depth parameters and pass them
5799         down to the tree routines.  Accept statements that aren't
5800         assignments or calls but just return false for them.
5801         (gimple_val_nonnegative_real_p): Delete.
5802         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
5803         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
5804         Check HONOR_NANs first.
5806 2015-10-08  Martin Jambor  <mjambor@suse.cz>
5808         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
5809         unnecessary MIN.
5811 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
5813         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
5814         in the tail of outer-loop.
5816 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
5818         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
5819         return UI_NONE.
5821 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
5823         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
5824         "cfghooks.h", add prototypes for introduced new functions.
5825         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
5826         checks on ability of loop unswitching to tree_unswitch_single_loop;
5827         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
5828         on innermost loop check.
5829         (tree_unswitch_single_loop): Add all required checks on ability of
5830         loop unswitching under zero recursive level guard.
5831         (tree_unswitch_outer_loop): New function.
5832         (find_loop_guard): Likewise.
5833         (empty_bb_without_guard_p): Likewise.
5834         (used_outside_loop_p): Likewise.
5835         (get_vop_from_header): Likewise.
5836         (hoist_guard): Likewise.
5837         (check_exit_phi): Likewise.
5839 2015-10-08  Marek Polacek  <polacek@redhat.com>
5841         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
5842         ops element.
5844 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5846         PR c/65345
5847         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5848         create_tmp_var_raw instead of create_tmp_var.
5850 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
5852         * expr.c (store_expr_with_bounds): Handle aggregate moves from
5853         BLKmode.
5854         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
5855         to define gimple type system; compare aggregates only by size.
5857 2015-10-07  Jeff Law  <law@redhat.com>
5859         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
5860         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
5861         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
5862         unnecessarily.
5864 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5865             Sebastian Pop  <s.pop@samsung.com>
5867         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
5868         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
5869         (generate_isl_schedule): Same.
5870         * graphite-optimize-isl.c (scop_get_domains): Same.
5871         (apply_schedule_map_to_scop): Same.
5872         * graphite-poly.c (print_iteration_domains): Same.
5873         (remove_gbbs_in_scop): Same.
5874         (new_scop): Same.
5875         (free_scop): Same.
5876         (print_scop): Same.
5877         * graphite-poly.h (struct scop): Rename bbs to pbbs.
5878         (SCOP_BBS): Remove.
5879         * graphite-scop-detection.c (compare_bb_depths): Remove.
5880         (graphite_sort_dominated_info): Remove.
5881         (try_generate_gimple_bb): Move out of scop_detection.
5882         (all_non_dominated_preds_marked_p): Remove.
5883         (build_scop_bbs_1): Remove.
5884         (build_scop_bbs): Remove.
5885         (nb_pbbs_in_loops): Do not use SCOP_BBS.
5886         (find_scop_parameters): Same.
5887         (sese_dom_walker): Rename gather_bbs.
5888         (before_dom_children): Call try_generate_gimple_bb and collect gbb
5889         and pbb.
5890         (build_scops): Call gather_bbs.
5891         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
5892         (add_conditions_to_constraints): Same.
5893         (build_scop_iteration_domain): Same.
5894         (build_scop_drs): Same.
5895         (new_pbb_from_pbb): Same.
5896         * sese.c (new_sese_info): Create bbs.
5897         * sese.h (struct sese_info_t): Add bbs.
5899 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
5901         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
5902         encoding in 64-bit mode.
5904 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
5906         PR target/66697
5907         * config/i386/i386.c (ix86_option_override_internal): Always use
5908         8-byte minimum stack boundary in 64-bit mode.
5909         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
5910         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
5911         Add a REG_CFA_EXPRESSION note if needed.
5912         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
5913         (ix86_handle_force_align_arg_pointer_attribute): New.
5914         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
5915         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
5916         with ix86_handle_force_align_arg_pointer_attribute.
5917         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
5919 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5920             Sebastian Pop  <s.pop@samsung.com>
5922         * graphite-scop-detection.c (parameter_index_in_region): Remove
5923         use of SESE_ADD_PARAMS.
5924         (find_scop_parameters): Same.
5925         * sese.c (new_sese_info): Same.
5926         * sese.h (struct sese_info_t): Remove add_params.
5927         (SESE_ADD_PARAMS): Remove.
5929 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
5930             Sebastian Pop  <s.pop@samsung.com>
5932         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
5933         an sese_info_p.
5934         (copy_def): Same.
5935         (copy_internal_parameters): Same.
5936         (translate_isl_ast_to_gimple): Use an sese_l.
5937         (build_iv_mapping): Same.
5938         * graphite-poly.c (new_sese): Rename new_sese_info.
5939         (free_sese): Rename free_sese_info.
5940         * graphite-poly.h (struct scop): Use an sese_info_p.
5941         (scop_set_region): Same.
5942         * graphite-scop-detection.c (struct sese_l): Moved...
5943         (get_entry_bb): Moved...
5944         (get_exit_bb): Moved...
5945         (parameter_index_in_region_1): Use an sese_info_p.
5946         (parameter_index_in_region): Same.
5947         (scan_tree_for_params): Same.
5948         (find_params_in_bb): Same.
5949         (sese_dom_walker): Use an sese_l.
5950         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
5951         (reduction_phi_p): Same.
5952         (parameter_index_in_region_1): Use an sese_info_p.
5953         (propagate_expr_outside_region): Use an sese_l.
5954         * graphite.c: Replace uses of SCOP_REGION.
5955         * sese.c (sese_record_loop): Use an sese_info_p.
5956         (build_sese_loop_nests): Same.
5957         (sese_build_liveouts_use): Same.
5958         (sese_build_liveouts_bb): Same.
5959         (sese_build_liveouts_bb): Same.
5960         (sese_bad_liveouts_use): Same.
5961         (sese_reset_debug_liveouts_bb): Same.
5962         (sese_build_liveouts): Same.
5963         (new_sese): Renamed new_sese_info.
5964         (free_sese): Renamed free_sese_info.
5965         (set_rename): Use an sese_info_p.
5966         (graphite_copy_stmts_from_block): Same.
5967         (copy_bb_and_scalar_dependences): Same.
5968         (outermost_loop_in_sese_1): Use an sese_l.
5969         (outermost_loop_in_sese): Same.
5970         (if_region_set_false_region): Use an sese_info_p.
5971         (move_sese_in_condition): Same.
5972         (scalar_evolution_in_region): Use an sese_l.
5973         * sese.h (struct sese_l): ... here.
5974         (SESE_ENTRY): Remove.
5975         (SESE_ENTRY_BB): Remove.
5976         (SESE_EXIT): Remove.
5977         (SESE_EXIT_BB): Remove.
5978         (sese_contains_loop): Use an sese_info_p.
5979         (sese_nb_params): Same.
5980         (bb_in_sese_p): Use an sese_l.
5981         (stmt_in_sese_p): Same.
5982         (defined_in_sese_p): Same.
5983         (loop_in_sese_p): Same.
5984         (sese_loop_depth): Same.
5985         (struct ifsese_s): Use an sese_info_p.
5986         (gbb_loop_at_index): Use an sese_l.
5987         (nb_common_loops): Same.
5988         (scev_analyzable_p): Same.
5990 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
5992         * config/i386/i386.c (ix86_conditional_register_usage): Use
5993         CALL_USED_REGISTERS_MASK.
5994         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
5996 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
5998         PR bootstrap/67385
5999         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6000         * configure: Regenerated.
6002 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
6004         PR target/67850
6005         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6006         (ix86_set_current_function): This.
6007         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6009 2015-10-07  Richard Biener  <rguenther@suse.de>
6011         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6012         (vinfo_for_stmt): Adjust.
6013         (set_vinfo_for_stmt): Likewise.
6014         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6015         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6016         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6017         of inner loop.
6018         (vect_analyze_loop_1): Remove.
6019         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6020         inner loop when vectorizing an outer loop by splitting out from ...
6021         (vect_analyze_loop_form): ... here.
6023 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6025         PR c/65345
6026         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6027         Use create_tmp_var_raw instead of create_tmp_var.
6029 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
6031         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6032         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6033         * real.c (CACHED_FRACTION): New helper macro.
6034         (dconst_third_ptr): Use it.
6035         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6036         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6037         dconst_sixth.
6038         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6040 2015-10-06  Jeff Law  <law@redhat.com>
6042         PR tree-optimization/67816
6043         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6044         from remove_jump_threads_starting_at.  Accept an edge rather than
6045         a basic block.
6046         * tree-ssa-threadupdate.c (removed_edges): New hash table.
6047         (remove_jump_threads_including): Note edges that get removed from
6048         the CFG for later pruning of jump threading paths including them.
6049         (thread_through_all_blocks): Remove paths which include edges that
6050         have been removed.
6051         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6052         on each outgoing edges when optimizing away a control statement.
6054 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6056         * reorg.c (emit_delay_sequence): Store list of delay slot insns
6057         in a vector instead of rtx_insn_list.
6058         (add_to_delay_list): Likewise.
6059         (delete_from_delay_slot): Likewise.
6060         (optimize_skip): Likewise.
6061         (redirect_with_delay_list_safe_p): Likewise.
6062         (check_annul_list_true_false): Likewise.
6063         (steal_delay_list_from_target): Likewise.
6064         (steal_delay_list_from_fallthrough): Likewise.
6065         (redundant_insn): Likewise.
6066         (fill_simple_delay_slots): Likewise.
6067         (fill_slots_from_thread): Likewise.
6068         (fill_eager_delay_slots): Likewise.
6069         (relax_delay_slots): Likewise.
6071 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
6073         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6074         For -mgpopt=local, also exclude unintialized common symbols.
6075         * doc/invoke.texi (Nios II Options): Document the change.
6077 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6079         * config/aarch64/iterators.md (vwcore): Add missing cases for
6080          V4HF/V8HF modes.
6082 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6083             Sebastian Pop  <s.pop@samsung.com>
6085         * graphite-poly.c (new_scop): Initialize drs.
6086         * graphite-poly.h (struct dr_info): New.
6087         (struct scop): Add drs.
6088         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6089         (pdr_add_memory_accesses): Same.
6090         (build_poly_dr): Same.
6091         (build_alias_set): Same.
6092         (build_scop_drs): Same.
6093         (build_pbb_drs): Remove.
6094         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6095         * tree-data-ref.h (data_reference): Remove alias_set.
6097 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6098             Sebastian Pop  <s.pop@samsung.com>
6100         * graphite-poly.c (free_data_refs_aux): Remove.
6101         (free_gimple_poly_bb): Do not call free_data_refs_aux.
6102         * graphite-poly.h (struct base_alias_pair): Remove.
6103         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6104         base_alias_pair and dr->aux.
6105         (build_alias_set): Same.
6106         * tree-data-ref.c (create_data_ref): Initialize alias_set.
6107         * tree-data-ref.h (data_reference): Add alias_set.
6109 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
6110             Sebastian Pop  <s.pop@samsung.com>
6112         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6113         Do not set PDR_BASE_OBJECT_SET.
6114         * graphite-poly.h (poly_dr): Same.
6115         (PDR_BASE_OBJECT_SET): Remove.
6116         (new_poly_dr): Update decl.
6117         * graphite-sese-to-poly.c (build_poly_dr): Update call to
6118         new_poly_dr.
6119         (write_alias_graph_to_ascii_dimacs): Remove.
6120         (write_alias_graph_to_ascii_dot): Remove.
6121         (write_alias_graph_to_ascii_ecc): Remove.
6122         (dr_same_base_object_p): Remove.
6123         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
6124         code.
6125         (build_base_obj_set_for_drs): Remove.
6126         (dump_alias_graphs): Remove.
6127         (build_scop_drs): Remove dead code.
6129 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
6130             Peter Bergner  <bergner@vnet.ibm.com>
6132         PR target/67808
6133         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6134         allow registers, but provide insns for the combiner to create for
6135         loads from memory. Separate VSX code from non-VSX code. For
6136         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6137         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6138         so that registers come before memory operations. Drop support from
6139         converting DFmode to TFmode, if the DFmode value is in a GPR
6140         register.
6141         (extenddftf2_fprs): Likewise.
6142         (extenddftf2_internal): Likewise.
6143         (extenddftf2_vsx): Likewise.
6144         (extendsftf2): In the expander, only allow registers, but provide
6145         insns for the combiner to create for stores and loads.
6147 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6149         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6150         from the decl parameter.
6152 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
6154         PR 67861
6155         * gimple-fold.c (gimple_fold_builtin): Add break after
6156         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6158 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6160         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6161         to scop->isl_context.
6163 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6165         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6166         (output_probe_stack_range): Rotate the loop and simplify.
6167         (thumb1_expand_prologue): Tweak sorry message.
6168         * config/arm/arm.md (probe_stack): Use bare string.
6170 2015-10-06  Nick Clifton  <nickc@redhat.com>
6172         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6174 2015-10-06  Nick Clifton  <nickc@redhat.com>
6176         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6177         (ATTR_PERSIST): New constant.
6178         (msp430_data_attr): New function - verifies an attribute that only
6179         applies to variables.
6180         (msp430_attributes): Add noinit and persistent attributes.
6181         (noinit_section): New variable.
6182         (presis_section): New variable.
6183         (TARGET_ASM_INIT_SECTIONS): Define.
6184         (msp430_init_sections): New function - initialises the noinit and
6185         persist section variables.
6186         (msp430_select_section): Add support for noinit and persist
6187         attributes.
6188         (msp430_section_type_flags): Likewise.
6189         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
6190         and persistent attributes.
6192 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6193             Sebastian Pop  <s.pop@samsung.com>
6195         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6196         (no_violations): Remove.
6197         (subtract_commutative_associative_deps): Remove.
6198         (compute_deps): Do not call subtract_commutative_associative_deps.
6199         (transform_is_safe): Remove.
6200         (graphite_legal_transform): Remove.
6201         * graphite-poly.h (graphite_legal_transform): Remove.
6203 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
6205         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6206         which are in this region are passed so gcc_assert and remove redundant
6207         computation.
6208         * sese.c (sese_build_liveouts): Pass only those bbs which are not
6209         in region.
6210         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6211         gcc_assert on that and remove unnecessary computation.
6212         (sese_build_liveouts_use): Same.
6214 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6216         * graphite-dependences.c (scop_get_reads): Renamed scop->context
6217         to scop->param_context.
6218         (scop_get_must_writes): Same.
6219         (scop_get_may_writes): Same.
6220         (scop_get_original_schedule): Same.
6221         (scop_get_transformed_schedule): Same.
6222         (subtract_commutative_associative_deps): Same.
6223         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6224         (generate_isl_context): Same.
6225         (generate_isl_schedule): Same.
6226         (scop_to_isl_ast): Same.
6227         (graphite_regenerate_ast_isl): Same.
6228         * graphite-optimize-isl.c (scop_get_domains): Same.
6229         (optimize_isl): Renamed scop->context to scop->param_context.
6230         * graphite-poly.c (new_poly_bb): Change the type of argument to
6231         gimple_poly_bb_p.
6232         (new_scop): Renamed scop->context to scop->param_context.
6233         (free_scop): Same.
6234         (print_scop_context): Same.
6235         * graphite-poly.h (new_poly_dr): Change the type of argument from
6236         void* to data_reference_p.
6237         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6238         (new_poly_bb): Change the type of argument from void* to
6239         gimple_poly_bb_p.
6240         (pbb_set_black_box): Same.
6241         (struct scop): Rename context to param_context, ctx to isl_context.
6242         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6243         Move declarations closer to assignment.
6244         (find_params_in_bb): Same.
6245         (find_scop_parameters): Same.
6246         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6247         Global to be used for statement IDs.
6248         (isl_id_for_pbb): Use ssa_name_version_typesize.
6249         (simple_copy_phi_p): Move declarations closer to assignment.
6250         (build_pbb_scattering_polyhedrons): Same.
6251         (build_scop_scattering): Same.
6252         (isl_id_for_ssa_name): Same.
6253         (extract_affine_name): Same.
6254         (extract_affine_int): Same.
6255         (extract_affine): Same.
6256         (set_scop_parameter_dim): Use renamed member.
6257         (build_loop_iteration_domains): Same.
6258         (add_param_constraints): Same.
6259         (build_scop_iteration_domain): Same.
6260         (pdr_add_data_dimensions): Same.
6261         (build_poly_dr): Same.
6262         (build_scop_drs): Move declarations closer to assignment.
6263         (analyze_drs_in_stmts): Same.
6264         (insert_out_of_ssa_copy): Same.
6265         (insert_out_of_ssa_copy_on_edge): Same.
6266         (propagate_expr_outside_region): Same.
6267         (rewrite_phi_out_of_ssa): Same.
6268         (rewrite_degenerate_phi): Same.
6269         (rewrite_reductions_out_of_ssa): Same.
6270         (rewrite_cross_bb_scalar_dependence): Same.
6271         (handle_scalar_deps_crossing_scop_limits): Same.
6272         (rewrite_cross_bb_scalar_deps): Same.
6273         * graphite.c (graphite_transform_loops): Use renamed member.
6275 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
6277         PR c/65345
6278         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6279         create_tmp_var_raw instead of create_tmp_var.
6281 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6283         PR c/65345
6284         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6285         Use create_tmp_var_raw instead of create_tmp_var.
6287 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
6289         PR target/67849
6290         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6291         split for upper-bank registers when target does not support
6292         AVX512VL.
6293         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6294         split when target does not support AVX512VL.
6296 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
6298         PR c/65345
6299         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6300         Adjust to use create_tmp_var_raw instead of create_tmp_var.
6302 2015-10-06  Nick Clifton  <nickc@redhat.com>
6304         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6305         multiplication.
6307 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6309         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6310         (case ${target}): Add znver1.
6311         * config/i386/cpuid.h(bit_CLZERO):  Define.
6312         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6313         -march=native recognize znver1 processors.
6314         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6315         znver1, clzero def_and_undef.
6316         * config/i386/i386.c (struct processor_costs znver1_cost): New.
6317         (m_znver1): New definition.
6318         (m_AMD_MULTIPLE): Includes m_znver1.
6319         (processor_target_table): Add znver1 entry.
6320         (ix86_target_string) : Add clzero entry.
6321         (static const char *const cpu_names): Add znver1 entry.
6322         (ix86_option_override_internal): Add znver1 instruction sets.
6323         (PTA_CLZERO) :  New definition.
6324         (ix86_option_override_internal): Handle new clzerooption.
6325         (ix86_issue_rate): Add znver1.
6326         (ix86_adjust_cost): Add znver1.
6327         (ia32_multipass_dfa_lookahead): Add znver1.
6328         (has_dispatch): Add znver1.
6329         * config/i386/i386.h (TARGET_znver1): New definition.
6330         (TARGET_CLZERO): Define.
6331         (TARGET_CLZERO_P): Define.
6332         (struct ix86_size_cost): Add TARGET_ZNVER1.
6333         (enum processor_type): Add PROCESSOR_znver1.
6334         * config/i386/i386.md (define_attr "cpu"): Add znver1.
6335         (set_attr znver1_decode): New definitions for znver1.
6336         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6337         (mclzero): New.
6338         * config/i386/mmx.md (set_attr znver1_decode): New definitions
6339         for znver1.
6340         * config/i386/sse.md (set_attr znver1_decode): Likewise.
6341         * config/i386/x86-tune.def:  Add znver1 tunings.
6342         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6343         * doc/invoke.texi: Add details about znver1
6345 2015-10-06  Richard Biener  <rguenther@suse.de>
6347         PR tree-optimization/67859
6348         * tree-ssa-pre.c (create_expression_by_pieces): Properly
6349         discard not inserted stmts.
6351 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
6353         * doc/extend.texi (Template Instantiation): Reorder options and
6354         de-emphasize -frepo.
6355         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6356         example instead of -frepo.
6358 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6360         PR c/65345
6361         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6362         use create_tmp_var_raw rather than create_tmp_var.
6364 2015-10-06  Richard Biener  <rguenther@suse.de>
6366         * tree-vectorizer.h (vec_info): New base class for...
6367         (_loop_vec_info): ... this and ...
6368         (_bb_vec_info): ... this.
6369         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6370         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6371         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6372         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6373         vect_destroy_datarefs): Adjust interface to take a vec_info *
6374         rather than both a loop_vec_info and a bb_vec_info argument.
6375         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6376         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6377         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6378         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6379         accordingly.
6380         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6381         (destroy_loop_vec_info, vect_analyze_loop_2,
6382         vect_is_simple_reduction_1, get_initial_def_for_induction,
6383         vect_create_epilog_for_reduction, vectorizable_reduction,
6384         vectorizable_live_operation, vect_transform_loop): Adjust.
6385         * tree-vect-patterns.c (type_conversion_p,
6386         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6387         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6388         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6389         check_bool_pattern, vect_recog_bool_pattern,
6390         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6391         * tree-vect-slp.c (vect_get_and_check_slp_defs,
6392         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6393         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6394         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6395         (new_bb_vec_info): Initialize base classs.
6396         * tree-vect-stmts.c (record_stmt_cost, process_use,
6397         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6398         vectorizable_mask_load_store, vectorizable_call,
6399         vectorizable_simd_clone_call, vectorizable_conversion,
6400         vectorizable_assignment, vectorizable_shift,
6401         vectorizable_operation, vectorizable_store,
6402         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6403         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6404         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6406 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6408         PR c/65345
6409         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6410         create_tmp_var_raw rather than create_tmp_var.
6412 2015-10-05  Marek Polacek  <polacek@redhat.com>
6414         * tree-ssa-loop-im.c
6415         (move_computations_dom_walker::before_dom_children): Don't set
6416         SSA_NAME_ANTI_RANGE_P.
6417         * tree-ssa-phiopt.c (value_replacement): Likewise.
6419 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6420             Sebastian Pop  <s.pop@samsung.com>
6422         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6424 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6425             Sebastian Pop  <s.pop@samsung.com>
6427         * graphite-poly.c (new_gimple_poly_bb): ... here.
6428         (free_data_refs_aux): ... here.
6429         (free_gimple_poly_bb): ... here.
6430         (remove_gbbs_in_scop): ... here.
6431         (new_scop): Call new_sese.
6432         (free_scop): Call remove_gbbs_in_scop and free_sese.
6433         * graphite-poly.h (base_alias_pair): ... here.
6434         (new_gimple_poly_bb): Declare.
6435         (free_gimple_poly_bb): Declare.
6436         * graphite-scop-detection.c (parameter_index_in_region_1):
6437         (parameter_index_in_region): ... here.
6438         (scan_tree_for_params): ... here.
6439         (find_params_in_bb): ... here.
6440         (find_scop_parameters): ... here.
6441         (build_scops): Call find_scop_parameters.
6442         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6443         (free_scops): Move...
6444         (single_pred_cond_non_loop_exit): Move...
6445         (sese_dom_walker::before_dom_children): Move...
6446         (sese_dom_walker::after_dom_children): Move...
6447         (build_poly_scop): Move...
6448         * graphite-sese-to-poly.h (base_alias_pair): Move...
6449         * graphite.c (free_scops): ... here.
6451 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
6452             Sebastian Pop  <s.pop@samsung.com>
6454         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6455         (trivially_empty_bb_p): Move...
6456         (same_close_phi_node): Move...
6457         (new_gimple_poly_bb): Move...
6458         (compare_bb_depths): Move...
6459         (graphite_sort_dominated_info): Move...
6460         (remove_duplicate_close_phi): Move...
6461         (make_close_phi_nodes_unique): Move...
6462         (canonicalize_loop_closed_ssa): Move...
6463         (canonicalize_loop_closed_ssa_form): Move...
6464         (loop_ivs_can_be_represented): Move...
6465         (single_pred_cond_non_loop_exit): Move...
6466         (graphite_can_represent_init): Move...
6467         (graphite_can_represent_scev): Move...
6468         (stmt_has_simple_data_refs_p): Move...
6469         (stmt_has_side_effects):  Move...
6470         (graphite_can_represent_stmt): Move...
6471         (scop_detection): ... here.
6472         (sese_dom_walker): ... and here.
6473         (build_scops): Call all moved functions.
6474         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6475         (all_non_dominated_preds_marked_p): Move...
6476         (build_scop_bbs_1): Move...
6477         (build_scop_bbs): Move...
6478         (set_scop_parameter_dim): Move...
6479         (nb_pbbs_in_loops): Move...
6480         (build_poly_scop): Do not call all the moved functions.
6482 2015-10-05  Martin Jambor  <mjambor@suse.cz>
6483             Jan Hubicka  <hubicka@ucw.cz>
6485         * ipa-cp.c (ipcp_alignment_lattice): New type.
6486         (ipcp_param_lattices): Use the above to represent alignment.
6487         (ipcp_alignment_lattice::print): New function.
6488         (print_all_lattices): Use it to print alignment information.
6489         (ipcp_alignment_lattice::top_p): New function.
6490         (ipcp_alignment_lattice::bottom_p): Likewise.
6491         (ipcp_alignment_lattice::set_to_bottom): Likewise.
6492         (ipcp_alignment_lattice::meet_with_1): Likewise.
6493         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6494         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6495         (initialize_node_lattices): Likewise.
6496         (propagate_alignment_accross_jump_function): Work with the new class
6497         for alignment lattices.
6498         (propagate_constants_accross_call): Pass only the alignment lattice to
6499         propagate_alignment_accross_jump_function.
6500         (ipcp_store_alignment_results): Work with the new class for alignment
6501         lattices.
6503 2015-10-05  Marek Polacek  <polacek@redhat.com>
6505         PR tree-optimization/67821
6506         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6508 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
6510         PR other/65021
6511         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6512         function to...
6513         (mkoffload_cleanup): ... this.  Adjust all users.
6514         (maybe_unlink): Look at save_temps and verbose flags instead of
6515         debug flag.
6516         (main): Parse "-save-temps" flag.
6517         (generate_target_descr_file, generate_target_offloadend_file)
6518         (generate_host_descr_file, prepare_target_image): Pass it on.
6519         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6520         (mkoffload_cleanup): New function.
6521         (maybe_unlink): Look at save_temps and verbose flags instead of
6522         debug flag.
6523         (main): Instead of calling utils_cleanup, register atexit handler
6524         for mkoffload_cleanup.
6525         (main): Parse "-save-temps" flag.
6526         (compile_native, main): Pass it on.
6527         * lto-wrapper.c (compile_offload_image): Likewise.
6529 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6531         * gimple.h (gimple_op_ptr): Require a non const gimple *.
6532         (gimple_assign_lhs_ptr): Likewise.
6533         (gimple_assign_rhs1_ptr): Likewise.
6534         (gimple_assign_rhs2_ptr): Likewise.
6535         (gimple_assign_rhs3_ptr): Likewise.
6536         (gimple_call_lhs_ptr): Likewise.
6537         (gimple_call_fn_ptr): Likewise.
6538         (gimple_call_chain_ptr): Likewise.
6539                 (gimple_call_arg_ptr): Likewise.
6540                 (gimple_cond_lhs_ptr): Likewise.
6541         (gimple_cond_rhs_ptr): Likewise.
6542         (gimple_switch_index_ptr): Likewise.
6543         (gimple_return_retval_ptr): Likewise.
6545 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6547         * gimple.h (gimple_asm_input_op_ptr): Remove.
6548         (gimple_asm_output_op_ptr): Likewise.
6550 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6552         * gimple.h (gimple_location_ptr): Remove.
6553         * tree-vrp.c (check_all_array_refs): Adjust.
6555 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6557         * tree-ssa-operands.c (build_uses): store tree * instead of
6558         tree.
6559         (finalize_ssa_uses): Adjust.
6560         (append_use): Likewise.
6561         (verify_ssa_operands): Likewise.
6563 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6565         * real.h (build_real_truncate): Declare.
6566         * tree.c (build_real_truncate): New function.
6567         (strip_float_extensions): Use it.
6568         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6569         (fold_builtin_hypot, fold_builtin_pow): Likewise.
6570         * match.pd: Likewise.
6572 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6573            Jiong Wang  <jiong.wang@arm.com>
6575         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6577 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6579         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6580         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6581         (aarch64_print_operand, aarch64_float_const_representable_p)
6582         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6583         instead of REAL_VALUE_FROM_CONST_DOUBLE.
6584         * config/arc/arc.c (arc_print_operand): Likewise.
6585         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6586         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6587         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6588         Likewise.
6589         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6590         (consttable_16): Likewise.
6591         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6592         * config/avr/avr.c (avr_print_operand): Likewise.
6593         * config/bfin/bfin.md: Likewise (in a define_split).
6594         * config/c6x/c6x.md: Likewise (in a define_split).
6595         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6596         (cr16_print_operand): Likewise.
6597         * config/cris/cris.c (cris_print_operand): Likewise.
6598         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6599         * config/fr30/fr30.c (fr30_print_operand): Likewise.
6600         (fr30_const_double_is_zero): Likewise.
6601         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6602         * config/frv/frv.md: Likewise (in a define_split).
6603         * config/frv/predicates.md (int_2word_operand): Likewise.
6604         * config/h8300/h8300.c (h8300_print_operand): Likewise.
6605         * config/i386/i386.c (standard_80387_constant_p): Likewise.
6606         (ix86_print_operand, ix86_split_to_parts): Likewise.
6607         * config/i386/i386.md: Likewise (in a define_split).
6608         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6609         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6610         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6611         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6612         (print_operand): Likewise.
6613         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6614         * config/mep/mep.md: Likewise (in define_split).
6615         * config/microblaze/microblaze.c (microblaze_const_double_ok)
6616         (print_operand): Likewise.
6617         * config/mips/mips.md (consttable_float): Likewise.
6618         * config/mmix/mmix.c (mmix_intval): Likewise.
6619         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6620         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6621         * config/pa/pa.c (pa_singlemove_string): Likewise.
6622         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6623         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6624         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6625         (output_toc): Likewise.
6626         * config/rs6000/rs6000.md: Likewise (in define_splits).
6627         * config/rx/rx.c (rx_print_operand): Likewise.
6628         * config/s390/s390.c (s390_output_pool_entry): Likewise.
6629         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6630         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6631         (and also in define_splits).
6632         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6633         (fp_high_losum_p): Likewise.
6634         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6635         (*movsf_high): Likewise.
6636         * config/spu/spu.c (const_double_to_hwint): Likewise.
6637         * config/v850/v850.c (const_double_split): Likewise.
6638         * config/vax/vax.c (vax_float_literal): Likewise.
6639         * config/visium/visium.c (visium_expand_copysign): Likewise.
6640         * config/visium/visium.md: Likewise (in define_split).
6641         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6642         * config/xtensa/xtensa.c (print_operand): Likewise.
6643         (xtensa_output_literal): Likewise.
6644         * cprop.c (implicit_set_cond_p): Likewise.
6645         * dwarf2out.c (insert_float): Likewise.
6646         * expmed.c (expand_mult, make_tree): Likewise.
6647         * expr.c (compress_float_constant): Likewise.
6648         * rtlanal.c (split_double): Likewise.
6649         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6650         (simplify_const_unary_operation, simplify_binary_operation_1)
6651         (simplify_const_binary_operation): Likewise.
6652         (simplify_const_relational_operation): Likewise.
6653         * varasm.c (output_constant_pool_2): Likewise.
6655 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6657         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6658         instead of CONST_DOUBLE_FROM_REAL_VALUE.
6659         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6660         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6661         instead of CONST_DOUBLE_FROM_REAL_VALUE.
6662         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6663         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6664         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6665         (ix86_emit_swsqrtsf): Likewise.
6666         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6667         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6668         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6669         * config/pa/pa.c (pa_expand_builtin): Likewise.
6670         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6671         (rs6000_scale_v2df): Likewise.
6672         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6673         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6674         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6675         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6676         (vec_ctul): Likewise.
6677         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6678         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6679         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6680         * cse.c (fold_rtx): Likewise.
6681         * emit-rtl.c (immed_double_const): Likewise (in comments).
6682         (init_emit_once): Likewise.
6683         * expr.c (compress_float_constant, expand_expr_real_1)
6684         (const_vector_from_tree): Likewise.
6685         * optabs.c (expand_float, expand_fix): Likewise.
6686         * reg-stack.c (reg_to_stack): Likewise.
6687         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6688         (simplify_const_unary_operation, simplify_binary_operation_1)
6689         (simplify_const_binary_operation, simplify_relational_operation)
6690         (simplify_immed_subreg): Likewise.
6692 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6694         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6695         * doc/tm.texi: Regenerate.
6696         * real.h (REAL_ARITHMETIC): Delete.
6697         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6698         (ix86_expand_round_sse4): Use real_arithmetic instead of
6699         REAL_ARITHMETIC.
6700         * config/i386/sse.md (round<mode>2): Likewise.
6701         * rtl.h (rtx_to_tree_code): Likewise (in comment).
6702         * explow.c (rtx_to_tree_code): Likewise (in comment).
6703         * match.pd: Likewise.
6704         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6705         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6706         (expand_pow_as_sqrts): Likewise.
6707         * tree-pretty-print.c (dump_generic_node): Remove code that
6708         was conditional on REAL_ARITHMETIC being undefined.
6710 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6712         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6713         * doc/tm.texi: Regenerate.
6714         * real.h (real_less): Declare.
6715         (REAL_VALUES_LESS): Delete.
6716         * real.c (real_less): New function.
6717         (real_compare): Use it.
6718         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6719         of REAL_VALUES_LESS.
6720         * config/microblaze/microblaze.c (microblaze_const_double_ok):
6721         Likewise.
6722         * fold-const.c (fold_convert_const_int_from_real): Likewise.
6723         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6724         (simplify_const_relational_operation): Likewise.
6725         * tree-call-cdce.c (check_pow): Likewise.
6726         (gen_conditions_for_pow_cst_base): Likewise.
6728 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6730         * real.h (REAL_VALUES_IDENTICAL): Delete.
6731         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6732         instead of REAL_VALUES_IDENTICAL.
6733         * fold-const.c (operand_equal_p): Likewise.
6734         * ipa-icf.c (sem_variable::equals): Likewise.
6735         * tree-complex.c (some_nonzerop): Likewise.
6736         (expand_complex_multiplication): Likewise.
6737         * tree.c (simple_cst_equal): Likewise.
6738         * varasm.c (compare_constant): Likewise.
6740 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
6742         * real.h (real_equal): Declare.
6743         (REAL_VALUES_EQUAL): Delete.
6744         * real.c (real_equal): New function.
6745         (real_compare): Use it.
6746         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6747         * doc/tm.texi: Regenerate.
6748         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6749         real_equal instead of REAL_VALUES_EQUAL.
6750         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6751         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6752         (fp_const_from_val): Likewise.
6753         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6754         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6755         (floating_exact_log2): Likewise.
6756         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6757         * config/vax/vax.c (vax_float_literal): Likewise.
6758         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6759         * cprop.c (implicit_set_cond_p): Likewise.
6760         * expmed.c (expand_mult): Likewise.
6761         * fold-const.c (const_binop): Likewise.
6762         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6763         (simplify_const_binary_operation): Likewise.
6764         (simplify_const_relational_operation): Likewise.
6765         * tree-call-cdce.c (check_pow): Likewise.
6766         (gen_conditions_for_pow_cst_base): Likewise.
6767         * tree-inline.c (estimate_num_insns): Likewise.
6768         * tree-ssa-dom.c (record_equality): Likewise.
6769         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6770         (gimple_expand_builtin_pow): Likewise.
6771         (pass_optimize_widening_mul::execute): Likewise.
6772         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6773         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
6774         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
6776 2015-10-05  Richard Biener  <rguenther@suse.de>
6778         PR ipa/67783
6779         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
6780         consider loop header PHI defs as IVs.
6782 2015-10-05  Richard Biener  <rguenther@suse.de>
6784         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
6785         call handling ...
6786         (create_expression_by_pieces): ... here and build GIMPLE
6787         calls directly.  Use gimple_build API and avoid force_gimple_operand.
6788         (insert_into_preds_of_block): Simplify.
6789         (do_regular_insertion): Add comment.
6791 2015-10-04  Jason Merrill  <jason@redhat.com>
6793         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
6795 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
6797         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
6798         check for general register.
6799         (ix86_emit_save_regs): Ditto.
6800         (ix86_emit_save_regs_using_mov): Ditto.
6801         (ix86_emit_restore_regs_using_pop): Ditto.
6802         (ix86_emit_restore_regs_using_mov): Ditto.
6804 2015-10-03  Marek Polacek  <polacek@redhat.com>
6806         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
6807         (insn-dfatab.o): Likewise.
6809 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
6811         * config.gcc (xtensa*-*-uclinux*): New configuration.
6812         * config/xtensa/uclinux.h: New file.
6813         * config/xtensa/uclinux.opt: New file.
6815 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
6817         * doc/cpp.texi (Standard Predefined Macros): Document value of
6818         __cplusplus for C++14.
6820 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
6822         * gcc.c (process_command): Use spec_machine rather than
6823         spec_host_machine to build tooldir_prefix2.
6825 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
6826             Bernd Schmidt  <bernds@codesourcery.com>
6828         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
6829         (Token, Stmt): Remove structs.
6830         (decls, vars, fns): Remove variables.
6831         (alloc_comment, append_stmt, is_keyword): Remove macros.
6832         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
6833         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
6834         (parse_init, parse_file): Remove functions.
6835         (read_file): Accept a pointer to a length and store into it.
6836         (process): Don't try to parse the input file, just write it out as
6837         a string, but looking for maps.  Also write out the length.
6838         (main): Don't use "-S" to compile PTX code.
6840 2015-10-02  Jeff Law  <law@redhat.com>
6842         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6843         fixups.
6845 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
6847         PR target/67822
6848         * config/nvptx/mkoffload.c (main): Scan the argument vector for
6849         -fopenmp, and skip generating an offloading image if specified.
6851 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
6853         * system.h (ROUND_UP): New macro definition.
6854         (ROUND_DOWN): Ditto.
6855         * ggc-page.c (ROUND_UP): Remove local macro definition.
6856         (PAGE_ALIGN): Implement using ROUND_UP macro.
6858         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
6859         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
6860         to align values.
6861         (ix86_compute_frame_layout): Ditto.
6862         (ix86_expand_prologue): Ditto.
6863         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
6864         to round down values.
6865         (expand_set_or_movmem_via_rep): Ditto.
6867 2015-10-02  Marek Polacek  <polacek@redhat.com>
6869         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
6871 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
6873         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
6874         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
6875         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
6876         (free_gimple_bb): Renamed free_gimple_poly_bb.
6877         (try_generate_gimple_bb): Hoist loop invariant code.
6878         (analyze_drs_in_stmts): Same.
6879         (build_scop_drs): Call renamed functions.
6880         (new_pbb_from_pbb): Same.
6881         (scop_ivs_can_be_represented): Delete as functionality now moved to
6882         graphite-scop-detection.c
6883         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
6885 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
6887         * graphite-scop-detection.c (stmt_has_side_effects): New function
6888           outlined from stmt_simple_for_scop_p.
6889         (graphite_can_represent_stmt): Same.
6890         (stmt_simple_for_scop_p): Moved code out of this function for better
6891         readability.
6893 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6895         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
6896         F_AVX512IFMA.
6897         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
6899 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6901         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
6903 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6905         PR rtl-optimization/67756
6906         * lra-constraints.c (match_reload): Add a new parameter.  Use it
6907         for creating a pseudo with the same value.
6908         (curr_insn_transform): Pass a new argument to match_reload.
6910 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6912         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
6913         (expand_vec_perm_even_odd_1): Handle V64QImode.
6914         (ix86_expand_vec_perm_const_1): Try expansion with
6915         expand_vec_perm_even_odd_trunc as well.
6916         * config/i386/sse.md (VI124_AVX512F): Rename to ...
6917         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
6918         to V54QI.
6919         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
6920         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
6921         to V32HI and V16SI.
6922         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
6923         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
6924         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
6925         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
6926         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
6927         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
6929 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
6931         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
6932         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
6934 2015-10-02  Jason Merrill  <jason@redhat.com>
6936         PR c/59218
6937         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
6938         (diagnose_tm_1_op): Also diagnose volatile accesses in
6939         transaction_safe function.
6941 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
6943         * system.h (malloc.h): Don't include obsolete header.
6945 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6947         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
6948         (TLS_SECTION_ASM_FLAG): Delete.
6950 2015-10-02  Marek Polacek  <polacek@redhat.com>
6952         PR c/64249
6953         * doc/invoke.texi: Document -Wduplicated-cond.
6954         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
6955         (insn-dfatab.o): Likewise.
6956         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
6957         warning.
6959 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
6961         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
6962         sequences.
6964 2015-10-02  Renlin Li  <renlin.li@arm.com>
6966         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
6968 2015-10-02  Renlin Li  <renlin.li@arm.com>
6970         PR target/66776
6971         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
6973 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6975         PR rtl-optimization/67786
6976         PR rtl-optimization/67787
6977         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
6978         it modifies a reg used in the condition calculation.
6980 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
6982         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
6983         alternatives for reads from memory and moves from general-purpose
6984         registers.
6985         (*aarch64_combinez_be<mode>): Likewise.
6987 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
6989         PR target/51726
6990         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
6991         selectany within this function without need to keep attribute.
6992         (i386_pe_encode_section_info): Remove selectany-code.
6994 2015-10-02  Richard Biener  <rguenther@suse.de>
6996         * tree-ssa-sccvn.c (has_VN_INFO): New function.
6997         (free_scc_vn): Use it.
6998         (visit_use): Remove dead code and refactor to use gassign
6999         and use less indentation.
7001 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7003         PR target/67788
7004         PR target/67789
7005         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7006         (rs6000_cannot_copy_insn_p): New function.
7007         * config/rs6000/rs6000.md (cannot_copy): New attribute.
7008         (load_toc_v4_PIC_1_normal): Set cannot_copy.
7009         (load_toc_v4_PIC_1_476): Ditto.
7011 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7013         * graphite-scop-detection.c (struct sese_l): New conversion constructor
7014         so that this type can be pushed into a vec.
7015         (class scop_builder): use sese_l to collect scops.
7016         (get_scops): New getter function.
7017         (remove_intersecting_scops): Use sese_l instead of scops_p.
7018         (intersects): Same.
7019         (add_scop): Same.
7020         (subsumes): Same.
7021         (remove_subscops): Same.
7022         (build_scops): Add scops to vec<scops_p> once all the scops have been
7023         detected.
7025 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
7027         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7028         Renamed type from gimple_bb_p to gimple_poly_bb_p.
7029         (translate_isl_ast_node_user): Same.
7030         * graphite-poly.c (new_poly_bb): Same.
7031         * graphite-poly.h (gbb_from_bb): Same.
7032         * sese.h: Same.
7033         * graphite-sese-to-poly.c (new_gimple_bb):
7034         gimple_bb_p -> gimple_poly_bb_p
7035         (build_scop_scattering): Same.
7036         (find_params_in_bb): Same.
7037         (add_conditions_to_domain): Same.
7038         (sese_dom_walker::before_dom_children): Same.
7039         (analyze_drs_in_stmts): Same.
7040         (new_pbb_from_pbb): Same.
7041         (free_data_refs_aux): New pointer to type base_alias_pair.
7042         * graphite-sese-to-poly.h: Same.
7043         * sese.c (if_region_set_false_region): Fixed Indentation.
7044         (move_sese_in_condition): Same.
7046 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7047             Aditya Kumar  <aditya.k7@samsung.com>
7049         PR tree-optimization/66980
7050         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7051         when data reference analysis has failed.
7053 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7054             Aditya Kumar  <aditya.k7@samsung.com>
7056         PR tree-optimization/67754
7057         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7058         scev analysis on the same loop nest as analyze_drs_in_stmts.
7059         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7060         renamed...
7061         (try_generate_gimple_bb): Call outermost_loop_in_sese.
7062         (analyze_drs_in_stmts): Same.
7063         * sese.c (outermost_loop_in_sese): ...here.
7065 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
7066             Aditya Kumar  <aditya.k7@samsung.com>
7068         PR tree-optimization/67754
7069         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7070         recursion on the inner loops.
7072 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7074         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7075         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7076         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7077         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7078         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7080 2015-10-01  Marek Polacek  <polacek@redhat.com>
7082         PR c/65345
7083         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7084         create_tmp_var_raw rather than create_tmp_var.
7086 2015-10-01  Marek Polacek  <polacek@redhat.com>
7088         PR tree-optimization/67769
7089         * tree-ssa-phiopt.c (conditional_replacement): Call
7090         reset_flow_sensitive_info_in_bb.
7091         (minmax_replacement): Likewise.
7092         (abs_replacement): Likewise.
7094 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
7096         * builtins.c: Don't include gomp-constants.h.
7097         (fold_builtin_1): Don't fold acc_on_device here.
7098         * gimple-fold.c: Include gomp-constants.h.
7099         (gimple_fold_builtin_acc_on_device): New.
7100         (gimple_fold_builtin): Call it.
7102 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7104         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7105         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7107 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
7109         * config/arm/aarch-common-protos.h
7110         (aarch_accumulator_forwarding): New.
7111         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7112         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7113         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7114         * config/arm/cortex-a53.md: Rewrite.
7116 2015-10-01  Richard Biener  <rguenther@suse.de>
7118         * gimple-match.h (mprts_hook): Declare.
7119         * gimple-match.head.c (mprts_hook): Define.
7120         (maybe_push_res_to_seq): Use new hook.
7121         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7122         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7123         (vn_ssa_aux::has_constants): Remove.
7124         * tree-ssa-sccvn.c: Include gimple-match.h.
7125         (VN_INFO_GET): Assert we don't re-use SSA names.
7126         (vn_get_expr_for): Remove.
7127         (expr_has_constants): Likewise.
7128         (stmt_has_constants): Likewise.
7129         (simplify_binary_expression): Likewise.
7130         (simplify_unary_expression): Likewise.
7131         (vn_lookup_simplify_result): New hook.
7132         (visit_copy): Adjust.
7133         (visit_reference_op_call): Likewise.
7134         (visit_phi): Likewise.
7135         (visit_use): Likewise.
7136         (process_scc): Likewise.
7137         (init_scc_vn): Likewise.
7138         (visit_reference_op_load): Likewise.  Use match-and-simplify and
7139         a gimple seq for inserted expressions.
7140         (try_to_simplify): Remove GENERIC stmt combining code.
7141         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7142         * tree-ssa-pre.c (eliminate_insert): Adjust.
7143         (eliminate_dom_walker::before_dom_children): Likewise.
7145 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7147         * doc/invoke.texi (Optimization Options): Add
7148         -freorder-blocks-algorithm=.
7149         (Optimize Options) <-O>: Add -freorder-blocks.
7150         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
7151         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7152         <-freorder-blocks>: Also enabled at levels -O and -Os.
7153         <-freorder-blocks-algorithm=>: Document new option.
7155 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7157         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7158         with flag_reorder_blocks_algorithm.
7159         * common.opt (freorder-blocks-algorithm=): New flag.
7160         (reorder_blocks_algorithm): New enum.
7161         * flag-types.h (reorder_blocks_algorithm): New enum.
7162         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7163         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7165 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7167         * bb-reorder.c: Add intro comment.
7168         (reorder_basic_blocks_software_trace_cache): Print a header to
7169         the dump file.
7170         (edge_order): New function.
7171         (reorder_basic_blocks_simple): New function.
7172         (reorder_basic_blocks): Choose between the STC and the simple
7173         algorithms (always choose the former).
7175 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
7177         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7178         function, factored out from ...
7179         (reorder_basic_blocks): ... here.
7181 2015-10-01  Tom de Vries  <tom@codesourcery.com>
7183         * tree-cfg.c (dump_function_to_file): Dump function attributes using
7184         __attribute__(()) string.  Move dumping of function attributes to before
7185         function name.
7187 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
7189         PR target/66870
7190         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7191         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7192         based on gold linker version.
7193         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7194         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7195         * configure, config.in: Regenerate.
7197 2015-10-01  Alan Modra  <amodra@gmail.com>
7199         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7200         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7201         (rs6000_output_mi_thunk): Likewise.
7203 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7205         * config/nvptx/mkoffload.c (process): Change offload data format.
7207 2015-09-30  Jeff Law  <law@redhat.com>
7209         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7210         with constant conditions.
7211         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7212         (remove_ctrl_stmt_and_useless_edges): No longer static.
7213         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7214         (remove_ctrl_stmt_and_useless_edges): Likewise.
7216 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7217             Cesar Philippidis  <cesar@codesourcery.com>
7219         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7220         (TARGET_GOACC_VALIDATE_DIMS): Override.
7221         * target.def (TARGET_GOACC): New target hook prefix.
7222         (validate_dims): New hook.
7223         * targhooks.h (default_goacc_validate_dims): New.
7224         * omp-low.c (oacc_validate_dims): New.
7225         (execute_oacc_device_lower): New.
7226         (default_goacc_validate_dims): New.
7227         (pass_data_oacc_device_lower): New.
7228         (pass_oacc_device_lower): New pass.
7229         (make_pass_oacc_device_lower): New.
7230         * tree-pass.h (make_pass_oacc_device_lower): Declare.
7231         * passes.def (pass_oacc_device_lower): Add it.
7232         * doc/tm.texi: Rebuilt.
7233         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7234         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7236 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7238         PR rtl-optimization/67037
7239         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7241 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
7243         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7244         * passes.c: Include tree-ssanames.h.
7245         (execute_function_todo): Flush the pending free SSA_NAMEs after
7246         eliminating unreachable basic blocks.
7247         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7248         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7249         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7250         (flush_ssanames_freelist): New function.
7251         (release_ssaname_fn): Put released names on the queue.
7252         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7253         * tree-ssanames.h (flush_ssanames_freelist): Declare.
7255 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7257         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7258         (generate_target_descr_file, generate_target_offloadend_file)
7259         (generate_host_descr_file, prepare_target_image): Pass it on.
7260         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7261         (compile_native, main): Pass it on.
7262         * lto-wrapper.c (compile_offload_image): Likewise.
7264 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7265             Ilya Verbin  <ilya.verbin@intel.com>
7266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7268         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7269         (prepare_target_image, main): Refactor argv building to use
7270         obstacks.
7272 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7274         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7275         * config/spu/spu.c (spu_expand_atomic_op): New function.
7276         * config/spu/spu.md (AINT): New mode iterator.
7277         (ATOMIC): New code iterator.
7278         (atomic_name, atomic_pred): New code predicates.
7279         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7280         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7281         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7282         "atomic_<atomic_name>_fetch<mode>"): Likewise.
7284 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
7286         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7287         debug insns.
7288         (scalar_chain::convert_reg): Likewise.
7290 2015-09-30  Richard Biener  <rguenther@suse.de>
7292         * builtins.c: Add comment that no new simplifications should
7293         be added here.
7295 2015-09-30  Marek Polacek  <polacek@redhat.com>
7297         PR tree-optimization/67690
7298         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7299         reset_flow_sensitive_info_in_bb.
7300         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7301         * tree-ssanames.c: Include "gimple-iterator.h".
7302         (reset_flow_sensitive_info_in_bb): New function.
7303         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7305 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7307         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7308         variable, replacing it with...
7309         (offload_abi): ... this new variable.  Adjust all users.
7310         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7312 2015-09-30  Matthias Klose  <doko@ubuntu.com>
7314         * configure.ac: Remove extraneous ;;.
7315         * configure: Regenerate.
7317 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
7319         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7320         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7321         predicate, disallow register for operand 2.
7323 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
7325         * graphite-dependences.c (scop_get_dependences): Moved in down
7326         in order to be visible to its caller.
7327         * graphite-poly.h: Removed compute_deps, and extend_schedule.
7329 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
7330             Aditya Kumar  <aditya.k7@samsung.com>
7332         PR tree-optimization/67754
7333         * graphite-optimize-isl.c (optimize_isl): Call
7334         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7336 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7338         * builtins.c (expand_builtin_acc_on_device): Delete.
7339         (expand_builtin): Don't call it.
7340         (fold_builtin_1): Fold acc_on_device.
7342 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7344         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7345         (ix86_nsaved_sseregs): Likewise.
7347 2015-09-29  Jeff Law  <law@redhat.com>
7349         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7350         computation of unused value.
7352         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7353         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7354         inline macro expansion.
7356         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7358         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7359         (gen_shl_sext): Likewise.
7360         * config/sh/sh.md (divsi3): Likewise.
7361         (imm->ext_dest_operand splitter): Likewise.
7363 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
7364             Aditya Kumar  <aditya.k7@samsung.com>
7366         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7367         (nb_data_writes_in_bb): Remove.
7368         (split_pbb): Remove.
7369         (split_reduction_stmt): Remove.
7370         (is_reduction_operation_p): Remove.
7371         (phi_contains_arg): Remove.
7372         (follow_ssa_with_commutative_ops): Remove.
7373         (detect_commutative_reduction_arg): Remove.
7374         (detect_commutative_reduction_assign): Remove.
7375         (follow_inital_value_to_phi): Remove.
7376         (edge_initial_value_for_loop_phi): Remove.
7377         (initial_value_for_loop_phi): Remove.
7378         (used_outside_reduction): Remove.
7379         (detect_commutative_reduction): Remove.
7380         (translate_scalar_reduction_to_array_for_stmt): Remove.
7381         (remove_phi): Remove.
7382         (dr_indices_valid_in_loop): Remove.
7383         (close_phi_written_to_memory): Remove.
7384         (translate_scalar_reduction_to_array): Remove.
7385         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7386         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7387         (rewrite_commutative_reductions_out_of_ssa): Remove.
7388         (build_poly_scop): Remove call to
7389         rewrite_commutative_reductions_out_of_ssa.
7391 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
7393         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7394         Add new insn types for vector load and store pairs.
7395         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7396         types "neon_ldp{,_q}".
7397         * config/arm/cortex-a57.md (neon_load_c): Add insn types
7398         "neon_ldp{,_q}".
7399         (neon_store_complex): Add insn types "neon_stp{,_q}".
7400         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7401         "neon_{ldp,stp}_q".
7403 2015-09-29  Jeff Law  <law@redhat.com>
7405         * config/rx/constraints.md (Int08): Fix undefined left shift
7406         behaviour.
7407         (Sint08, Sint16, Sint24): Likewise.
7408         * config/rx/rx.c (rx_get_stack_layout): Likewise.
7410         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7411         behaviour.
7413         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7414         left shift behaviour.
7415         * config/msp430/constraints.md ('L' constraint): Similarly.
7416         ('Ys' constraint): Similarly.
7418 2015-09-29  Richard Biener  <rguenther@suse.de>
7420         PR tree-optimization/67170
7421         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7422         the translate function pointer parameter to get the
7423         bool whether to disambiguate only by reference.
7424         (walk_non_aliased_vuses): Likewise.
7425         * tree-ssa-alias.c (maybe_skip_until): Adjust.
7426         (get_continuation_for_phi_1): Likewise.
7427         (get_continuation_for_phi): Likewise.
7428         (walk_non_aliased_vuses): Likewise.
7429         * tree-ssa-sccvn.c (const_parms): New bitmap.
7430         (vn_reference_lookup_3): Adjust for interface change.
7431         Disambiguate parameters pointing to readonly memory.
7432         (free_scc_vn): Free const_parms.
7433         (run_scc_vn): Initialize const_parms from a fn spec attribute.
7435 2015-09-29  Richard Biener  <rguenther@suse.de>
7437         PR tree-optimization/67741
7438         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7439         builtin calls with correct signature.
7441 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
7443         PR target/65105
7444         * config/i386/i386.c: Include dbgcnt.h.
7445         (has_non_address_hard_reg): New.
7446         (convertible_comparison_p): New.
7447         (scalar_to_vector_candidate_p): New.
7448         (remove_non_convertible_regs): New.
7449         (scalar_chain): New.
7450         (scalar_chain::scalar_chain): New.
7451         (scalar_chain::~scalar_chain): New.
7452         (scalar_chain::add_to_queue): New.
7453         (scalar_chain::mark_dual_mode_def): New.
7454         (scalar_chain::analyze_register_chain): New.
7455         (scalar_chain::add_insn): New.
7456         (scalar_chain::build): New.
7457         (scalar_chain::compute_convert_gain): New.
7458         (scalar_chain::replace_with_subreg): New.
7459         (scalar_chain::replace_with_subreg_in_insn): New.
7460         (scalar_chain::emit_conversion_insns): New.
7461         (scalar_chain::make_vector_copies): New.
7462         (scalar_chain::convert_reg): New.
7463         (scalar_chain::convert_op): New.
7464         (scalar_chain::convert_insn): New.
7465         (scalar_chain::convert): New.
7466         (convert_scalars_to_vector): New.
7467         (pass_data_stv): New.
7468         (pass_stv): New.
7469         (make_pass_stv): New.
7470         (ix86_option_override): Created and register stv pass.
7471         (flag_opts): Add -mstv.
7472         (ix86_option_override_internal): Likewise.
7473         * config/i386/i386.md (SWIM1248x): New.
7474         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7475         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7476         (*anddi3_doubleword): New.
7477         (*zext<mode>_doubleword): New.
7478         (*zextsi_doubleword): New.
7479         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7480         (*<code>di3_doubleword): New.
7481         * config/i386/i386.opt (mstv): New.
7482         * dbgcnt.def (stv_conversion): New.
7484 2015-09-29  Tom de Vries  <tom@codesourcery.com>
7486         * tree-cfg.c (dump_function_to_file): Dump function attributes.
7488 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7490         PR target/67716
7491         * config/sh/sh.c (sh_override_options_after_change): New.
7492         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7493         (sh_option_override): Move align_loops, align_jumps and
7494         align_functions handling into sh_override_options_after_change.
7496 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7498         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7499         (nvptx_record_offload_symbol): Record function execution geometry.
7500         * config/nvptx/mkoffload.c (process): Include launch geometry in
7501         function data.
7502         * omp-low.c (oacc_launch_pack): New.
7503         (replace_oacc_fn_attrib): New.
7504         (set_oacc_fn_attrib): New.
7505         (get_oacc_fn_attrib): New.
7506         (expand_omp_target): Create keyed varargs for GOACC_parallel call
7507         generation.
7508         * omp-low.h (get_oacc_fn_attrib): Declare.
7509         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7510         (DEF_FUNCTION_TYPE_VAR_11): Delete.
7511         * tree.h (OMP_CLAUSE_EXPR): New.
7512         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7514 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7515             Sebastian Pop  <s.pop@samsung.com>
7517         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7519 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7520             Sebastian Pop  <s.pop@samsung.com>
7522         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7523         * graphite-scop-detection.c (struct sese_l): New type.
7524         (get_entry_bb): API for getting entry bb of SESE.
7525         (get_exit_bb): API for getting exit bb of SESE.
7526         (class debug_printer): New type.  Simple printer in debug mode.
7527         (trivially_empty_bb_p): New.  Return true when BB is empty or
7528         contains only debug instructions.
7529         (graphite_can_represent_expr): Call scalar_evoution_in_region
7530         instead of analyze_scalar_evolution.  Pass in scop instead of only
7531         the scop entry.
7532         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7533         scop entry.
7534         (stmt_simple_for_scop_p): Same.
7535         (harmful_stmt_in_bb): Same.
7536         (graphite_can_represent_loop): Deleted.
7537         (struct scopdet_info): Deleted.
7538         (scopdet_basic_block_info): Deleted.
7539         (build_scops_1): Deleted.
7540         (bb_in_sd_region): Deleted.
7541         (find_single_entry_edge): Deleted.
7542         (find_single_exit_edge): Deleted.
7543         (create_single_entry_edge): Deleted.
7544         (sd_region_without_exit): Deleted.
7545         (create_single_exit_edge): Deleted.
7546         (unmark_exit_edges): Deleted.
7547         (mark_exit_edges): Deleted.
7548         (create_sese_edges): Deleted.
7549         (build_graphite_scops): Deleted.
7550         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7551         (build_scops): Use the new scop_builder to build scops.
7552         (dot_all_scops_1): Use the new pretty printer.  Print loop father
7553         as well.
7554         (loop_body_is_valid_scop): New.  Return true if loop body is a
7555         valid scop.
7556         (class scop_builder): New.  Builds SCoPs for polyhedral
7557         optimizations.
7558         (scop_builder): New constructor.
7559         (static sese_l invalid_sese): sese_l with invalid edges.
7560         (get_sese): Get an sese (from a loop) if possible, invalid_sese
7561         otherwise.
7562         (get_nearest_dom_with_single_entry): Get nearest dominator of a
7563         basic_block with single entry.  Return NULL if we get to the
7564         beginning of a function.
7565         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7566         a basic_block with single exit.  Return NULL if we get to the
7567         beginning of a function.
7568         (print_sese): Pretty-print SESE.
7569         (merge_sese): Merge two SESEs if possible and return the new SESE.
7570         (build_scop_depth): Start building the SCoP within a loop nest.
7571         (build_scop_breadth): Start building the SCoP at a single loop
7572         depth.  Merge adjacent SESEs if valid.
7573         (can_represent_loop_1): Returns true if Graphite can represent
7574         loop inside SCoP.  Helper for can_represent_loop.
7575         (can_represent_loop): Returns true if Graphite can represent LOOP
7576         and all its nested loops in SCoP.
7577         (loop_is_valid_scop): Returns true if LOOP and all its nests
7578         constitute a valid SCoP.
7579         (region_has_one_loop): Returns true of a region has only one loop.
7580         (add_scop): Add SCoP to the list of valid scops.  Removes an
7581         already existing scop if it intersects with or subsumed by this one.
7582         (harmful_stmt_in_region): Returns true if SCoP has any statment
7583         which cannot be represented by Graphite.
7584         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7585         (remove_subscops): Remove any SCoP from the list of already found
7586         SCoPs, if subsumed by S1.
7587         (intersects): Return true if region bounded by SCoPs S1 and S2
7588         intersect.
7589         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7590         * graphite.c (print_graphite_scop_statistics):
7591         (print_graphite_statistics): Print SCoP info while debugging.
7592         (graphite_initialize): Early exit in case number of loops in a
7593         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7594         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7595         (graphite_finalize):
7596         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7597         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7598         (recompute_all_dominators): Recalculate POST_DOMINATORS.
7599         * tree-cfg.c (print_loops): Print the function name while printing
7600         loops.
7602 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
7603             Sebastian Pop  <s.pop@samsung.com>
7605         PR tree-optimization/67700
7606         * graphite-sese-to-poly.c (parameter_index_in_region): Call
7607         invariant_in_sese_p_rec.
7608         (extract_affine): Same.
7609         (rewrite_cross_bb_scalar_deps): Call update_ssa.
7610         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
7611         * sese.h (invariant_in_sese_p_rec): Declare.
7613 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
7615         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7617 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
7619         Revert:
7620         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7621                     Jiong Wang  <jiong.wang@arm.com>
7623         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7624         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7625         (REG_CLASS_NAMES): Likewise.
7626         (REG_CLASS_CONTENTS): Likewise.
7627         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7628         (aarch64_register_move_cost): Likewise.
7629         (aarch64_load_symref_appropriately): Invoke the new added pattern if
7630         possible.
7631         * config/aarch64/constraints.md (Uc0): New constraint.
7633 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
7635         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7637 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
7639         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7640         SECTION_EXCLUDE in XO mapping class.
7642 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
7644         PR target/54236
7645         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7646         and handle ne and eq codes.
7647         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7648         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
7649         CONST_INT_P.  Use reverse_condition.
7650         (sh_split_treg_set_expr): Likewise.
7652 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
7654         * config/arm/types.md (type): Add rotate_imm.
7655         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7656         ROR immediate case.
7657         (*rorsi3_insn_uxtw): Likewise.
7658         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7659         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7660         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7662 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7664         PR rtl-optimization/67481
7665         * ifcvt.c (contains_ccmode_rtx_p): New function.
7666         (insn_valid_noce_process_p): Use it.
7668 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7670         PR rtl-optimization/67456
7671         PR rtl-optimization/67464
7672         PR rtl-optimization/67465
7673         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7674         move in the mode of x.  Handle combination of complex and simple
7675         block pairs as well as the case when one is empty.
7677 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7679         * doc/gimple.texi: Update references to gimple_statement_base.
7680         * gdbhooks.py: Likewise.
7681         * gimple.h: Likewise.
7683 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7685         * config/sparc/driver-sparc.c: map LEON to leon3
7687 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7689         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7690           and make it inverse to change default
7691         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7692           supervisor mode
7693         * doc/invoke.texi: Document change of default
7695 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
7697         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7698         true on %f0 for a target without FPU.
7699         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7700         without FPU.
7701         (untyped_return): Do not load %f0 for a target without FPU.
7703 2015-09-28  Andrew Pinski  <apinski@cavium.com>
7705         * config/aarch64/aarch64.md (prefetch):
7706         Change the predicate of operand 0 to register_operand.
7708 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
7710         * config/i386/predicates.md (register_sse4nonimm_operand): New
7711         predicate.
7712         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7713         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7714         Use register_sse4nonimm_operand as operand 0 predicate.
7715         (*vec_extractv8hi_sse2): Remove insn pattern.
7716         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7717         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7719 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
7720             Kaz Kojima  <kkojima@gcc.gnu.org>
7722         PR target/67391
7723         * config/sh/sh-protos.h (sh_lra_p): Declare.
7724         * config/sh/sh.c (sh_lra_p): Make non-static.
7725         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7726         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
7727         Expand into addsi3_scr if operands[2] if needed.
7728         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
7729         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
7730         (addsi3_scr, *addsi3): New insn_and_split patterns.
7732 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
7734         PR rtl-optimization/64164
7735         PR tree-optimization/67312
7736         PR middle-end/67340
7737         PR middle-end/67490
7738         PR bootstrap/67597
7739         * cfgexpand.c (parm_in_stack_slot_p): Remove.
7740         (ssa_default_def_partition): Remove.
7741         (get_rtl_for_parm_ssa_default_def): Remove.
7742         (set_rtl): Check that RTL assignments match expectations.
7743         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
7744         default def location for params and results.  Record SSA names
7745         or types in REG and MEM attrs, respectively.
7746         (set_parm_rtl): New.
7747         (expand_one_ssa_partition): Drop logic that assigned MEMs with
7748         unassigned addresses.
7749         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7750         deferred stack alloc vars.
7751         (expand_used_vars): Skip partitions holding parm default defs.
7752         Move adjust_one_expanded_partition_var loop...
7753         (pass_expand::execute): ... here.  Drop redundant assert.
7754         Adjust comments before the final loop over all ssa names.
7755         Require assigned rtl of parms and results to match exactly.
7756         Reset its attributes to match them, not any other variables in
7757         the same partition.
7758         (expand_debug_expr): Use entry value for PARM's default defs
7759         only iff they have zero nondebug uses.
7760         * cfgexpand.h (parm_in_stack_slot_p): Remove.
7761         (get_rtl_for_parm_ssa_default_def): Remove.
7762         (set_parm_rtl): Declare.
7763         * doc/invoke.texi: Improve wording.
7764         * explow.c (promote_decl_mode): Fix promote_function_mode for
7765         result decls not by reference.
7766         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7767         bypass TYPE_MODE to get the actual vector mode.
7768         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
7769         2015-08-19's changes as follows.  Drop include of
7770         basic-block.h and df.h.
7771         (rtl_for_parm): Remove.
7772         (maybe_reset_rtl_for_parm): Remove.
7773         (parm_in_unassigned_mem_p): Remove.
7774         (use_register_for_decl): Add logic for RESULT_DECLs matching
7775         assign_parms' behavior.
7776         (split_complex_args): Revert.
7777         (assign_parms_augmented_arg_list): Revert.  Add comment
7778         referencing the logic above.
7779         (assign_parm_adjust_stack_rtl): Revert.
7780         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
7781         of SET_DECL_RTL.  Set up a REG if the parm demands so.
7782         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
7783         calls into a single set_parm_rtl.  Set up a temporary RTL
7784         temporarily for expand_assignment.
7785         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
7786         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
7787         (assign_bounds): Revert.
7788         (assign_parms): Revert.  Use set_parm_rtl.
7789         (allocate_struct_function): Relayout result and parms of
7790         non-abstruct functions.
7791         (expand_function_start): Revert.  Use set_parm_rtl.  If the
7792         result is not a hard reg, create a pseudo from the promoted
7793         mode of the default def.  Promote static chain mode.
7794         * tree-outof-ssa.c (remove_ssa_form): Drop unused
7795         partition_has_default_def.  Set up
7796         partitions_for_parm_default_defs.
7797         (finish_out_of_ssa): Remove partition_has_default_def.
7798         Release partitions_for_parm_default_defs.
7799         * tree-outof-ssa.h (struct ssaexpand): Remove
7800         partition_has_default_def.  Add
7801         partitions_for_parm_default_defs.
7802         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
7803         stor-layout.h.
7804         (build_ssa_conflict_graph): Fix conflict-detection of default
7805         defs of even unused default defs of params and results.
7806         (for_all_parms): New.
7807         (create_default_def): New.
7808         (register_default_def): New.
7809         (coalesce_with_default): New.
7810         (create_outofssa_var_map): Create default defs for all parms
7811         and results, and register their partitions.  Add GIMPLE_RETURN
7812         operands as coalesce candidates with results.  Add default
7813         defs of each parm or result as coalesce candidates with its
7814         other defs.  Mark each result def, and each default def of
7815         parms, as used_in_copy.
7816         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
7817         with the ssa names, even anonymous ones.  Drop
7818         parm_in_stack_slot_p calls.  Require same signedness and
7819         alignment.
7820         (coalesce_ssa_name): Add coalesce candidates for all defs of
7821         each parm and result, even unused ones.
7822         (parm_default_def_partition_arg): New type.
7823         (set_parm_default_def_partition): New.
7824         (get_parm_default_def_partitions): New.
7825         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
7826         * tree-ssa-live.c (partition_view_init): Regard unused defs of
7827         parms and results as used.
7828         (verify_live_on_entry): Don't error out just because they're
7829         not live.
7831 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
7833         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7834         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
7835         (output_fde): Don't output length for debug_frame on AIX.
7836         (output_call_frame_info): Don't output length for debug_frame on AIX.
7837         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
7838         HAVE_XCOFF_DWARF_EXTRAS.
7839         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
7840         HAVE_XCOFF_DWARF_EXTRAS.
7841         (output_compilation_unit_header): Don't output length on AIX.
7842         (output_pubnames): Don't output length on AIX.
7843         (output_aranges): Delete argument. Compute length locally. Don't
7844         output length on AIX.
7845         (output_line_info): Don't output length on AIX.
7846         (dwarf2out_finish): Don't compute aranges_length.
7847         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7848         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
7849         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
7850         symbol decoration for AIX.
7851         (rs6000_xcoff_debug_unwind_info): New.
7852         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
7853         for SECTION_DEBUG.
7854         (rs6000_xcoff_declare_function_name): Emit different
7855         .function pseudo-op when DWARF2_DEBUG. Don't call
7856         xcoffout_declare_function for DWARF2_DEBUG.
7857         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
7858         Redefine.
7859         * config/rs6000/aix71.h: New.
7860         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
7861         locations support.
7862         * configure: Regenerate.
7863         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
7864         DWARF support.
7866 2015-09-26  Jeff Law  <law@redhat.com>
7868         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
7869         behaviour.
7870         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
7871         behaviour.
7873         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
7874         behaviour
7876         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
7877         undefined behaviour.
7879         * config/cris/cris.md (asrandb): Fix left shift undefined
7880         behaviour.
7881         (asrandw): Likewise.
7883 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
7885         PR target/61578
7886         * lra-constarints.c (match_reload): Check presence of the input pseudo
7887         in the output operand.
7889 2015-09-25  Tobias Burnus  <burnus@net-b.de>
7891         * doc/invoke.texi (-fsanitize): Minor wording tweak.
7893 2015-09-25  Tobias Burnus  <burnus@net-b.de>
7895         * doc/invoke.texi (-fsanitize): Update URLs.
7897 2015-09-25  Teresa Johnson  <tejohnson@google.com>
7899         * opts.c (finish_options): Unset -freorder-blocks-and-partition
7900         if not using profile.
7902 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7904         PR pretty-print/67567
7905         * pretty-print.c (pp_string): Add gcc_checking_assert.
7906         * pretty-print.h (output_buffer_append_r): Likewise.
7908 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
7910         PR target/67675
7911         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
7912         addr2 individually.  Don't emit logical or insn if one is known to
7913         be aligned approriately.
7914         (sh_expand_cmpnstr): Likewise.
7916 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
7918         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
7919         __builtin_aarch64_fp[sc]r arguments into a register.
7921 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
7923         * config.gcc (x86_archs): Replace lakemount with lakemont.
7924         (with_cpu): Likewise.
7925         (with_arch): Likewise.
7926         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7927         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
7928         __tune_lakemount__ with __tune_lakemont__.
7929         * config/i386/i386.c (lakemount_cost): Renamed to ...
7930         (lakemont_cost): This.
7931         (m_LAKEMOUNT): Renamed to ...
7932         (m_LAKEMONT): This.
7933         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
7934         (processor_target_table): Replace "lakemount" with "lakemont".
7935         (processor_alias_table): Likewise.
7936         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
7937         PROCESSOR_LAKEMONT.
7938         (ix86_adjust_cost): Likewise.
7939         (ia32_multipass_dfa_lookahead): Likewise.
7940         * config/i386/i386.h (processor_type): Likewise.
7941         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
7942         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
7943         Lakemount with Lakemont.
7945 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
7947         * config.gcc (x86_archs): Replace iamcu with lakemount.
7948         (with_cpu): Likewise.
7949         (with_arch): Likewise.
7950         * doc/invoke.texi: Likewise.
7951         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7952         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
7953         __tune_iamcu__ with __tune_lakemount__.
7954         * config/i386/i386.c (iamcu_cost): Renamed to ...
7955         (lakemount_cost): This.
7956         (m_IAMCU): Renamed to ...
7957         (m_LAKEMOUNT): This.
7958         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
7959         (processor_target_table): Replace "iamcu" with "lakemount".
7960         (processor_alias_table): Likewise.
7961         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
7962         PROCESSOR_LAKEMOUNT.
7963         (ix86_adjust_cost): Likewise.
7964         (ia32_multipass_dfa_lookahead): Likewise.
7965         * config/i386/i386.h (processor_type): Likewise.
7966         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
7968 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
7970         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
7971         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
7972         Declare.
7973         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
7974         (pa_expand_compare_and_swap_loop): New.
7975         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
7976         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
7977         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
7978         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
7979         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
7980         Revise.
7982 2015-09-24  Michael Collison  <michael.collison@linaro.org>
7984         PR other/57195
7985         * read-md.c (read_name): Allow mode iterators inside angle
7986         brackets in rtl expressions.
7988 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
7990         PR target/61578
7991         * ira-color.c (update_allocno_cost): Add parameter.
7992         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
7993         parameter.
7995 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7997         PR driver/67640
7998         * opts-common.c (prune_options): Discard all -fdiagnostics-color
7999         but the last one, which is moved to the front to be processed
8000         first.
8001         * opts.c (enable_warning_as_error): Reject options that do not
8002         control warnings.
8004 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8006         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8008 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
8010         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8011         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8012         (aarch64_cannot_force_const_mem): Likewise.
8013         (aarch64_classify_address): Likewise.
8014         (aarch64_classify_symbolic_expression): Likewise.
8015         (aarch64_print_operand): Likewise.
8016         (aarch64_classify_symbol): Likewise.
8017         (aarch64_mov_operand_p): Likewise.
8018         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8019         (aarch64_mov_operand): Likewise.
8021 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
8023         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8024         for info->spe_gp_size.
8026 2015-09-24  Richard Biener  <rguenther@suse.de>
8028         PR lto/67699
8029         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8030         abstract origins.
8032 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
8034         * tree-object-size.c (plus_stmt_object_size)
8035         (cond_expr_object_size): Change the formal parameters from gimple
8036         to gimple *.
8037         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8038         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8039         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8041 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8043         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8044         Check for ld -type pie on Solaris 11.x and 12.
8045         * configure: Regenerate.
8046         * config.in: Regenerate.
8048         * gcc.c (LD_PIE_SPEC): Allow redefinition.
8050         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8051         (STARTFILE_SPEC): Use it.
8052         (ENDFILE_CRTEND_SPEC): Define.
8053         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8054         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8055         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8056         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8057         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8058         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8059         (ENDFILE_ARCH_SPEC): Define.
8060         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8062 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8064         * configure.ac (gcc_cv_solaris_crts): New test.
8065         * configure. Regenerate.
8066         * config.in: Regenerate.
8067         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8068         HAVE_SOLARIS_CRTS variant.
8070 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8072         * tree-inline.h (count_insns_seq): Delete prototype.
8073         (estimate_num_insns_seq): Define prototype.
8074         * tree-inline.c (count_insns_seq): Delete.
8075         (estimate_num_insns_seq): Remove static qualifier.
8076         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8077         with estimate_num_insns_seq.
8079 2015-09-24  Richard Biener  <rguenther@suse.de>
8081         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8082         members.
8083         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8084         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
8085         offset.
8086         (ao_ref_init_from_vn_reference): Record clique and base in the
8087         built base.
8088         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8090 2015-09-24  Richard Biener  <rguenther@suse.de>
8092         PR tree-optimization/48885
8093         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8094         as not including any restrict tags from other pointers.
8096 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8098         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8099         character when appending to offload_targets.
8101         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8102         offload targets by commas, not colons.
8103         * config.in: Regenerate.
8104         * configure: Likewise.
8105         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8106         instead of setting up the default offload targets here...
8107         (process_command): ..., do it here.
8108         libgomp/
8109         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8110         targets are separated by commas.
8111         * config.h.in: Regenerate.
8113 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
8114             Nathan Sidwell  <nathan@codesourcery.com>
8116         * omp-low.h (omp_reduction_init_op): Declare.
8117         * omp-low.c (omp_reduction_init_op): New, broken out of ...
8118         (omp_reduction_init): ... here.  Call it.
8119         * tree-parloops.c (initialize_reductions): Use
8120         omp_reduction_init_op.
8122 2015-09-23   Richard Biener  <rguenther@suse.de>
8124         PR middle-end/67662
8125         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8126         undefined overflow unless they will cancel out.
8128 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8130         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8131         insn emit.
8133 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8135         PR c/49655
8136         * opts.h (write_langs): Declare.
8137         * opts-global.c (write_langs): Make it extern.
8139 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
8141         PR target/67391
8142         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8143         overlapping regs when matching the pattern.
8145 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
8147         * config/aarch64/aarch64-simd.md
8148         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8149         (aarch64_float_truncate_hi_v4sf_le): New.
8150         (aarch64_float_truncate_hi_v4sf_be): Likewise.
8152 2015-09-23  Richard Biener  <rguenther@suse.de>
8154         * tree-ssa-structalias.c (intra_create_variable_infos): Build
8155         representatives for all restrict qualified pointer destinations.
8157 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
8159         * config/i386/i386.md (define_code_attr mshift): New.
8160         (define_mode_iterator SWI1248_AVX512BW): Rename ...
8161         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8162         only.
8163         (define_insn "*k<logic><mode>"): Use new iterator name.
8164         (define_insn "*<mshift><mode>3"): New.
8166 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
8168         PR middle-end/67649
8169         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8170         mark the block as accessible.
8172 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
8174         * function.c (thread_prologue_and_epilogue_insns): Delete
8175         orig_entry_edge argument to try_shrink_wrapping.
8176         * shrink-wrap.c (can_get_prologue): New function.
8177         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8178         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
8179         can_get_prologue where needed.  Remove code that finds a single
8180         edge for the prologue.  Remove code that tests if any reg clobbered
8181         by the prologue is live on the prologue edge.  Remove code that finds
8182         the new prologue edge after duplicating blocks.  Make a new prologue
8183         block and edge.
8184         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8186 2015-09-22  Jeff Law  <law@redhat.com>
8188         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8189         behavior.
8191 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
8193         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
8194         -Wtemplates, -Wnamespaces): Document.
8196 2015-09-22  Tom de Vries  <tom@codesourcery.com>
8198         PR tree-optimization/67671
8199         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8200         pointer references as restrict.
8202 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8204         * config/nios2/nios2.c (nios2_legitimize_address): When handling
8205         'reg + reloc' cases, allow first operand to be non-REG, and use
8206         force_reg() to enforce address pattern.
8208 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
8210         PR target/67480
8211         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8212         (define_mode_iterator VI12_AVX_AVX512F): New.
8213         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8214         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8215         (define_insn "*<code><mode>3"): ... Into new pattern using
8216         VI12_AVX_AVX512F iterators without masking.
8218 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8220         * config.gcc: Support "skylake-avx512".
8221         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8222         PROCESSOR_SKYLAKE_AVX512.
8223         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8224         (processor_target_table): Add "skylake-avx512".
8225         (PTA_SKYLAKE_AVX512): Define.
8226         (ix86_option_override_internal): Add "skylake_avx512".
8227         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8228         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8229         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8230         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8231         * doc/invoke.texi (skylake-avx512): New.
8233 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8235         * config/i386/i386.md (define_insn "kunpckhi"): Fix
8236         operand in pattern.
8237         (define_insn "kunpcksi"): Ditto.
8238         (define_insn "kunpckdi"): Ditto.
8240 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8242         * config/i386/i386.md (define_split not/xor SWI1248x): Use
8243         iterator instead of fixed modes.
8245 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8247         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8248         Adjust declaration.
8249         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8250         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
8251         out_result.  Update to support update-fetch operations.
8252         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8253         Adjust for change to aarch64_gen_atomic_ldop.
8254         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8255         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8256         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8257         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8258         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8260 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8262         * config/aarch64/aarch64-protos.h
8263         (aarch64_atomic_ldop_supported_p): Declare.
8264         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8265         (enum aarch64_atomic_load_op_code): New.
8266         (aarch64_emit_atomic_load_op): New.
8267         (aarch64_gen_atomic_ldop): Update to support load-operate
8268         patterns.
8269         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8270         to an expander.
8271         (aarch64_atomic_<atomic_optab><mode>): New.
8272         (aarch64_atomic_<atomic_optab><mode>_lse): New.
8273         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8274         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8275         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8277 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8279         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8280         (UNSPECV_ATOMIC_LDOP_OR): New.
8281         (UNSPECV_ATOMIC_LDOP_BIC): New.
8282         (UNSPECV_ATOMIC_LDOP_XOR): New.
8283         (UNSPECV_ATOMIC_LDOP_PLUS): New.
8284         (ATOMIC_LDOP): New.
8285         (atomic_ldop): New.
8286         (aarch64_atomic_load<atomic_ldop><mode>): New.
8288 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8290         * config/aarch64/aarch64.md
8291         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8292         pattern.
8294 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
8296         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8297         Declare.
8298         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8299         (aarch64_gen_atomic_ldop): New.
8300         (aarch64_split_atomic_op): Fix whitespace and add a comment.
8301         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8302         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8303         (atomic_exchange<mode>): Replace with an expander.
8304         (aarch64_atomic_exchange<mode>): New.
8305         (aarch64_atomic_exchange<mode>_lse): New.
8306         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8307         (aarch64_atomic_swp<mode>): New.
8309 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8311         * tree-inline.c (expand_call_inline): Use inform for extra note.
8312         Do not give a note with UNKNOWN_LOCATION.
8313         Replace input_location with gimple_location (stmt).
8314         Use true/false instead of TRUE/FALSE.
8316 2015-09-22  Tom de Vries  <tom@codesourcery.com>
8318         PR tree-optimization/67666
8319         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8320         with single field non-conservative.
8322 2015-09-21  David S. Miller  <davem@davemloft.net>
8324         PR/67622
8325         Revert:
8326         2015-09-11  David S. Miller  <davem@davemloft.net>
8328         * config/sparc/constraints.md: Make "U" constraint a real register
8329         constraint.
8330         * config/sparc/sparc.c (TARGET_LRA_P): Define.
8331         (D_MODES, DF_MODES): Add missing cast.
8332         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8333         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8334         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8335         cost to 8.
8336         * config/sparc/sparc.h (PROMOTE_MODE): Define.
8337         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8338         provide these insn when flag_pic.
8340         2015-09-17  David S. Miller  <davem@davemloft.net>
8342         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8343         Declare.
8344         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8345         function.
8346         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8347         (HARD_REGNO_CALLER_SAVE_MODE): Define.
8348         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8349         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8350         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8351         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8352         provide when flag_pic.
8354 2015-09-21  Jeff Law  <law@redhat.com>
8356         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8357         behavior.
8359 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8361         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8363 2015-09-21  Richard Biener  <rguenther@suse.de>
8365         * passes.c (rest_of_decl_compilation): Do not call
8366         dwarf2out_early_global_decl for aliases.
8368 2015-09-21  Richard Biener  <rguenther@suse.de>
8370         PR debug/67664
8371         * dwarf2out.c (add_location_or_const_value_attribute): Remove
8372         attribute parameter.  Early exit if either DW_AT_const_value
8373         or DW_AT_location are present already.
8374         (gen_variable_die): Adjust caller.
8375         (dwarf2out_late_global_decl): Likewise.
8377 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8379         PR target/67657
8380         * config/sh/sh.c (sh_remove_overlapping_post_inc,
8381         sh_peephole_emit_move_insn): Add new functions.
8382         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8383         sh_peephole_emit_move_insn): Declere them.
8384         * config/sh/sh.md: Use them in various peephole2 patterns.
8386 2015-09-21  Richard Biener  <rguenther@suse.de>
8388         PR middle-end/67651
8389         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8390         address with -fno-delete-null-pointer-checks.
8392 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
8394         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8395         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8396         (reduc_uplus_v16qi): Remove.
8398         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8399         (reduc_<VEC_reduc_name>_v2df): Remove.
8400         (reduc_<VEC_reduc_name>_v4sf): Remove.
8401         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8403         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8404         gen_ function by removing * prefix.
8405         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8407 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8409         PR middle-end/60832
8410         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8411         Print i_bound without converting it to a tree.
8413 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
8415         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8416         operands[4] operands[5] swap with std::swap, removed tmp variable.
8417         (arm_evpc_neon_vzip): Replaced in0/in1 and
8418         out0/out1 swaps with std::swap, removed x variable.
8419         (arm_evpc_neon_vtrn): Replaced in0/int1 and
8420         out0/out1 swaos with std::swap, removed x variable.
8421         (arm_expand_vec_perm_const_1): Replaced
8422         d->op0/d->op1 swap with std::swap, removed x variable.
8423         (arm_evpc_neon_vuzp): Replaced in0/in1 and
8424         out0/out1 swaps with std::swap, removed x variable.
8426 2015-09-21  Jonathan Yong  <10walls@gmail.com>
8428         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8429         sysroot/usr/lib/32api for additional win32 libraries,
8430         fixes failing Cygwin bootstrapping.
8432 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8434         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8436 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
8438         PR target/67126
8439         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8440         (*mov_t_msb_neg): Rewrite negc pattern.
8442 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8444         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8445         immediate generation code.
8447 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8449         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8450         redundant immediate generation code.
8452 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8454         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8455         (AARCH64_NUM_BITMASKS): Remove.
8456         (aarch64_bitmasks_cmp): Remove.
8457         (aarch64_build_bitmask_table): Remove.
8459 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8461         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8462         slow immediate matching loops with a faster algorithm.
8464 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
8466         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8467         faster algorithm.
8469 2015-09-20  Jeff Law  <law@redhat.com>
8471         PR tree-optimization/47679
8472         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8473         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8474         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8475         (thread_through_normal_block): Use record_temporary_equivalences.
8477 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
8479         * coretypes.h (gimple): Change typedef to be a forward declaration.
8480         * gimple.h (gimple_statement_base): rename to gimple.
8481         * (all functions and types using gimple): Adjust.
8482         * *.[ch]: Likewise.
8484 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
8485             David Edelsohn  <dje.gcc@gmail.com>
8487         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8488         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8489         (EH_FRAME_THROUGH_COLLECT2): Define.
8490         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8491         (ASM_OUTPUT_DWARF_PCREL): Define.
8492         (ASM_OUTPUT_DWARF_DATAREL): Define.
8494 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
8496         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8497         of TARGET_ELF32.
8499 2015-09-18  Jeff Law  <law@redhat.com>
8501         PR tree-optimization/47679
8502         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
8503         it here ...
8504         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8505         object.  Update constructor.
8506         (pass_dominator::execute):  Corresponding chagnes to declaration
8507         and initialization of avail_exprs_stack.  Update constructor call
8508         for dom_opt_dom_walker object.
8509         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
8510         it down to children as needed.
8511         (record_equivalences_from_incoming_edge): Likewise.
8512         (eliminate_redundant_computations): Likewise.
8513         (record_equivalences_from_stmt): Likewise.
8514         (simplify_stmt_for_jump_threading): Likewise.
8515         (record_temporary_equivalences): Likewise.
8516         (optimize_stmt): Likewise.
8517         (dom_opt_dom_walker::thread_across_edge): Update access to
8518         avail_exprs_stack object and pass it to children as needed.
8519         (dom_opt_dom_walker::before_dom_children): Similarly.
8520         (dom_opt_dom_walker::after_dom_children): Similarly.
8521         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8522         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8523         Add avail_expr_stack argument.  Pass it to children as needed.
8524         (dummy_simplify): Likewise.
8525         (simplify_control_stmt_condition): Likewise.
8526         (thread_around_empty_blocks): Likewise.
8527         (thread_through_normal_block): Likewise.
8528         (thread_across_edge): Likewise.
8529         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8530         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8532         PR tree-optimization/47679
8533         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
8534         it here ...
8535         (dom_opt_dom_walker): New private member holding the const_and_copies
8536         object.  Update constructor.
8537         (pass_dominator::execute): Corresponding changes to declaration
8538         and initialization of const_and_copies.  Update constructor call
8539         for the dom_opt_dom_walker object.
8540         (record_temporary_equivalences): Accept const_and_copies argument
8541         pass it down to children as needed.
8542         (record_equality): Likewise.
8543         (record_equivalences_from_incoming_edge): Likewise.
8544         (cprop_into_successor_phis, optimize_stmt): Likewise.
8545         (eliminate_redundant_computations): Likewise.
8546         (dom_opt_dom_walker::thread_across_edge): Update access to
8547         const_and_copies object and pass it to children as needed.
8548         (dom_opt_dom_walker::before_dom_children): Similarly.
8549         (dom_opt_dom_walker::after_dom_children): Similarly.
8551         PR tree-optimization/47679
8552         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
8553         it into the avail_exprs_stack class.
8554         (pass_dominator::execute): Corresponding changes to declaration
8555         and initialization of avail_exprs.  Pass avail_exprs to
8556         dump_dominator_optimization_stats.
8557         (record_cond): Extract avail_exprs from avail_exprs_stack.
8558         (lookup_avail_expr): Similarly.
8559         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
8560         position in file.
8561         (dump_dominator_optimization_stats): Make static and prototype.
8562         Add argument for the hash table to dump.
8563         (debug_dominator_optimization_stats): Remove.
8564         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8565         prototype.
8566         (debug_dominator_optimization_stats): Similarly.
8567         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8568         "void" in prototype for pop_to_marker method.  Add accessor method
8569         for the underlying avail_exprs table.
8571         * tree-ssa-threadedge.c: Remove trailing whitespace.
8573 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
8575         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8576         unsigned.
8577         (pa_ldil_cint_p): Likewise.
8578         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8579         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8580         Update callers.
8581         * config/pa/pa.md: Likewise.
8583 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
8585         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8586         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8587         (diagnostic_show_locus): Likewise.
8588         (diagnostic_print_caret_line): Likewise.
8589         * diagnostic-show-locus.c: New file.
8591 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
8593         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8594         "back" parameter. Declare label in #if block.
8596 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
8598         PR middle-end/67619
8599         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8600         the address to a register.
8602 2015-09-18  Jeff Law  <law@redhat.com>
8604         PR tree-optimization/47679
8605         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8606         * tree-ssa-dom.c: Remove unnecessary header includes.
8607         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8608         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8609         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8610         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8611         (pass_phi_only_cprop::execute): Likewise.
8612         (make_pass_phi_only_cprop): Likewise.
8613         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
8614         uses of file scoped statics by passing the required objects
8615         as parameters wherever needed.
8617 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
8618             David Edelsohn  <dje.gcc@gmail.com>
8620         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8621         EH_FRAME_THROUGH_COLLECT2.
8622         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8623         DW_EH_PE_datarel.
8624         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8625         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
8626         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8627         * except.c (switch_to_exception_section): Use a read-only section
8628         even if EH_FRAME_SECTION_NAME is undefined.
8629         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8630         * collect2.c (write_c_file_stat): Provide dbase on AIX.
8631         (scan_prog_file): Don't export __dso_handle nor
8632         __gcc_unwind_dbase.
8633         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8634         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8635         (ASM_OUTPUT_DWARF_PCREL): Define.
8636         (ASM_OUTPUT_DWARF_DATAREL): Define.
8637         (EH_FRAME_THROUGH_COLLECT2): Define.
8638         (EH_FRAME_IN_DATA_SECTION): Delete.
8639         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8640         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8641         Declare.
8642         (rs6000_asm_output_dwarf_datarel): Declare.
8643         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8644         (rs6000_aix_asm_output_dwarf_datarel): New.
8645         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8646         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8647         (EH_FRAME_THROUGH_COLLECT2): Define.
8648         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8649         (EH_FRAME_THROUGH_COLLECT2): Define.
8650         (EH_TABLES_CAN_BE_READ_ONLY): Define.
8651         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8652         (EH_FRAME_THROUGH_COLLECT2): New.
8653         (ASM_OUTPUT_DWARF_DATAREL): New.
8654         * doc/tm.texi: Regenerate.
8656 2015-09-18  Richard Biener  <rguenther@suse.de>
8658         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8659         we're in early phase.
8660         (schedule_generic_params_dies_gen): Likewise.
8661         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8662         work as possible, retaining unhandled cases.
8663         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8664         clear out generic_type_instances at the end.
8665         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8666         (dwarf2out_early_finish): ... here.  Do most of
8667         gen_remaining_tmpl_value_param_die_attribute here.
8669 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
8671         PR tree-optimization/67283
8672         * tree-sra.c (type_consists_of_records_p): Rename to...
8673         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8674         (completely_scalarize_record): Rename to...
8675         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8676         (scalarize_elem): New.
8677         (analyze_all_variable_accesses): Follow renamings.
8679 2015-09-18  Richard Biener  <rguenther@suse.de>
8681         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8682         in early-dwarf.
8684 2015-09-18  Richard Biener  <rguenther@suse.de>
8686         PR tree-optimization/66142
8687         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8688         treat MEM[&x] and x the same.
8689         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8690         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8691         when we simplified sth.
8692         (vn_reference_maybe_forwprop_address): Likewise.
8693         (valueize_refs_1): When we simplified through
8694         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8695         set valueized_anything to true.
8696         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8697         one ref kills the other instead of just a offset-based test.
8698         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8699         for the operand_equal_p test to compare bases and also compare
8700         sizes.
8702 2015-09-17  Christian Bruel  <christian.bruel@st.com>
8704         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8706 2015-09-17  Richard Henderson  <rth@redhat.com>
8708         PR libstdc++/65913
8709         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8710         pointers that encode the alignment of the object.
8712 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8714         PR rtl-optimization/66790
8715         * df-problems.c (LIVE): Amend documentation.
8717 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
8719         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8720         and optabs-tree.o.
8721         (GTFILES): Replace optabs.c with optabs-libfunc.c.
8722         * genopinit.c (main): Add an include guard to insn-opinit.h.
8723         Protect the rtx_code parts with NUM_RTX_CODE.
8724         * optabs.h: Split parts out to...
8725         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8726         * optabs.c: Split parts out to...
8727         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8728         * cilk-common.c: Include optabs-query.h rather than optabs.h.
8729         * fold-const.c: Likewise.
8730         * target-globals.c: Likewise.
8731         * tree-if-conv.c: Likewise.
8732         * tree-ssa-forwprop.c: Likewise.
8733         * tree-ssa-loop-prefetch.c: Likewise.
8734         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8735         Remove unncessary include files.
8736         * tree-ssa-phiopt.c: Likewise.
8737         * tree-ssa-reassoc.c: Likewise.
8738         * tree-switch-conversion.c: Likewise.
8739         * tree-vect-data-refs.c: Likewise.
8740         * tree-vect-generic.c: Likewise.
8741         * tree-vect-loop.c: Likewise.
8742         * tree-vect-patterns.c: Likewise.
8743         * tree-vect-slp.c: Likewise.
8744         * tree-vect-stmts.c: Likewise.
8745         * tree-vrp.c: Likewise.
8746         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8747         rather than optabs.h.
8748         * expr.c: Include optabs-tree.h.
8749         * function.c: Likewise.
8751 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8753         PR middle-end/65958
8754         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8755         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8756         * config/arm/arm.c: Include common/common-target.h.
8757         (use_return_insn): Return 0 if the static chain register was saved
8758         above a non-APCS frame.
8759         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8760         (struct scratch_reg): New.
8761         (get_scratch_register_on_entry): New function.
8762         (release_scratch_register_on_entry): Likewise.
8763         (arm_emit_probe_stack_range): Likewise.
8764         (output_probe_stack_range): Likewise.
8765         (arm_expand_prologue): Factor out code dealing with the IP register
8766         for nested function and adjust it for stack checking.
8767         Invoke arm_emit_probe_stack_range if static builtin stack checking
8768         is enabled.
8769         (thumb1_expand_prologue): Sorry out if static builtin stack checking
8770         is enabled.
8771         (arm_expand_epilogue): Add the saved static chain register, if any, to
8772         the amount of pre-pushed registers to pop.
8773         (arm_frame_pointer_required): Return true if static stack checking is
8774         enabled and we want to catch the exception with the EABI unwinder.
8775         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
8776         (UNSPEC_PROBE_STACK_RANGE): Likewise.
8777         * config/arm/arm.md (probe_stack): New insn.
8778         (probe_stack_range): Likewise.
8780 2015-09-17  Richard Biener  <rguenther@suse.de>
8782         * genmatch.c (parser::parse_expr): Improve error message
8783         for mis-placed flags.
8785 2015-09-17  Richard Biener  <rguenther@suse.de>
8787         * passes.c (rest_of_decl_compilation): Always call early_global_decl
8788         debug hook when we created a varpool node.
8789         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
8790         dwarf2out_early_global_decl, when not just add location or
8791         value attributes to existing DIEs.
8793 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
8795         * config/aarch64/aarch64.md (copysigndf3): New.
8796         (copysignsf3): Likewise.
8798 2015-09-17  David S. Miller  <davem@davemloft.net>
8800         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
8801         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
8802         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8803         (HARD_REGNO_CALLER_SAVE_MODE): Define.
8804         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8805         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8806         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8807         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8808         provide when flag_pic.
8810 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
8812         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
8813         object_allocator change.
8815 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
8817         PR tree-optimization/66388
8818         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
8819         (dump_iv): Dump no_overflow information.
8820         (alloc_iv): Initialize new field for struct iv.
8821         (mark_bivs): Count number of no_overflow bivs.
8822         (find_deriving_biv_for_expr, record_biv_for_address_use): New
8823         functions.
8824         (idx_find_step): Call new functions above.
8825         (add_candidate_1, add_candidate): New paramter.
8826         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
8827         (get_computation_aff): Simplify convertion of cand for BIV.
8828         (get_computation_cost_at): Step cand's base if necessary.
8830 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
8832         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
8833         parameter.
8834         (tree_simplify_using_condition): Ditto.
8835         (simplify_using_initial_conditions): Ditto.
8836         (loop_exits_before_overflow): Pass new argument to function
8837         simplify_using_initial_conditions.  Remove case for type conversions
8838         simplification.
8839         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
8840         parameter.
8841         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
8842         in iv base using loop initial conditions.
8844 2015-09-16  Jeff Law  <law@redhat.com>
8846         PR tree-optimization/47679
8847         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
8848         (free_all_edge_infos): Use it.
8849         (allocate_edge_info): Free preexisting edge info data.
8850         (pass_dominator::execute): Set up initial edge info structures.
8851         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
8852         thread_across_edge.
8853         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
8854         If non-null, then push/pop markers appropriately.
8855         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8856         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
8857         thread-across_edge.
8859 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
8861         * config/ft32/ft32.c: Fix the memory address space predicate.
8863 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8865         PR target/67573
8866         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
8867         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8869 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8871         * toplev.h (check_global_declaration): Remove declaration.
8872         * toplev.c (check_global_declaration): Move to ...
8873         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
8874         (analyze_functions): Update call.
8876 2015-09-16  David S. Miller  <davem@davemloft.net>
8878         * lra-constraints.c (simplify_operand_subreg): Do not assume that
8879         lowpart of a SUBREG has offset zero.
8881 2015-09-16  Jeff Law  <law@redhat.com>
8883         PR tree-optimization/47679
8884         * tree-ssa-dom.c (enum expr_kind): Moved from here to
8885         tree-ssa-scopedtables.h.
8886         (struct hashable_expr, class expr_hash_elt): Likewise.
8887         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
8888         Move associated methods into tree-ssa-scopedtables.c.
8889         (avail_expr_hash, initialize_expr_from_cond): Similarly.
8890         (hashable_expr_equal_p, add_expr_commutative): Likewise.
8891         (add_hashable_expr): Likewise.
8892         (record_cond): Delete element directly.
8893         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
8894         private copy ctor and assignment operator methods.
8895         (expr_elt_hasher): Inline trivial methods.
8896         (initialize_expr_from_cond): Prototype.
8897         * tree-ssa-scopedtables.c: Add necessary includes, functions and
8898         methods that were previously in tree-ssa-dom.c.  Improve various
8899         comments.
8901 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
8903         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
8905 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
8907         PR bootstrap/67587
8908         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8909         fixup_partitions.
8911 2015-09-16  Richard Biener  <rguenther@suse.de>
8913         PR middle-end/67253
8914         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
8915         location of possibly shared trees.
8917 2015-09-16  Richard Biener  <rguenther@suse.de>
8919         PR middle-end/67271
8920         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
8922 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
8924         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
8925         offset and size computations instead of HOST_WIDE_INT.
8927 2015-09-16  Richard Biener  <rguenther@suse.de>
8929         PR middle-end/67442
8930         * fold-const.c (extract_muldiv_1): Properly extend multiplication
8931         result before builting a tree via wide_int_to_tree.
8933 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
8935         * Makefile.in: Add memory-block.cc
8936         (pool_allocator::initialize): Use fixed block size.
8937         (pool_allocator::release): Use memory_block_pool.
8938         (pool_allocator::allocate): Likewise.
8939         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
8940         object pools.
8941         * cfg.c (initialize_original_copy_tables): Likewise.
8942         * cselib.c (elt_list_pool, elt_loc_list_pool,
8943         cselib_val_pool): Likewise.
8944         * df-problems.c (df_chain_alloc): Likewise.
8945         * df-scan.c (df_scan_alloc): Likewise.
8946         * dse.c (cse_store_info_pool, rtx_store_info_pool,
8947         read_info_type_pool, insn_info_type_pool, bb_info_pool,
8948         group_info_pool, deferred_change_pool): Likewise.
8949         * et-forest.c (et_nodes, et_occurrences): Likewise.
8950         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
8951         ipcp_agg_lattice_pool): Likewise.
8952         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
8953         * ipa-profile.c (histogram_pool): Likewise.
8954         * ipa-prop.c (ipa_refdesc_pool): Likewise.
8955         * ira-build.c (live_range_pool, allocno_pool, object_pool,
8956         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
8957         * ira-color.c (update_cost_record_pool): Likewise.
8958         * lra-lives.c (lra_live_range_pool): Likewise.
8959         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
8960         * memory-block.cc: New file.
8961         * memory-block.h: New file.
8962         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
8963         * sched-deps.c (sched_deps_init): Likewise.
8964         * sel-sched-ir.c (sched_lists_pool): Likewise.
8965         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
8966         * tree-sra.c (access_pool): Likewise.
8967         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8968         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
8969         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
8970         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8971         * tree-ssa-strlen.c (strinfo_pool): Likewise.
8972         * tree-ssa-structalias.c (variable_info_pool): Likewise.
8973         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
8974         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
8976 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8978         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
8979         definition.
8980         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
8981         call0 ABI.
8983 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8985         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
8986         to pass TLS call argument, according to current ABI.
8987         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
8988         callx0 for TLS call, according to current ABI.
8990 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8992         * tree-eh.c (lower_try_finally_dup_block): Clear location information
8993         on stack restore statements.
8994         (decide_copy_try_finally): Do not consider a stack restore statement as
8995         coming from sources.
8997 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
8999         * config/alpha/alpha.c (alpha_expand_block_clear): Use
9000         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9002 2015-09-15  Jeff Law  <law@redhat.com>
9004         PR tree-optimization/47679
9005         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9006         methods and private members.
9007         (avail_exprs_stack): Similarly.  Change type of global
9008         from a pair of expr_hash_elt_t to the new class.
9009         (expr_elt_hasher::hash): Corresponding changes.
9010         (expr_elt_hasher::equal): Similarly.
9011         (avail_expr_hash): Similarly.
9012         (pass_dominator::execute): Similarly.
9013         (dom_opt_dom_walker::thread_across_edge): Similarly.
9014         (record_cond): Similarly.
9015         (dom_opt_dom_walker::before_dom_children): Similarly.
9016         (dom_opt_dom_walker::after_dom_children): Similarly.
9017         (lookup_avail_expr): Likewise.
9018         (initialize_hash_element): Now a expr_hash_elt constructor.
9019         (initialize_hash_element_from_expr): Similarly.
9020         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9021         (free_expr_hash_elt): Call dtor for the element.
9022         (remove_local_expressions_from_table): Now the "pop_to_marker"
9023         method in the available_exprs_stack class.
9024         (avail_expr_stack::record_expr): Method factored out.
9025         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9026         Fix formatting.
9027         (hashable_expr_equal_p): Fix formatting.
9029 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
9031         * input.h (location_get_source_line): Drop "expanded_location"
9032         param in favor of a file and line number.
9033         * input.c (location_get_source_line): Likewise.
9034         (dump_location_info): Update for change in signature of
9035         location_get_source_line.
9036         * diagnostic.c (diagnostic_print_caret_line): Likewise.
9038 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9040         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9041         Bump to 4KB for SJLJ exceptions.
9042         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
9043         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9044         * doc/tm.texi: Regenerate.
9046 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9048         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9049         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
9050         Update prototype.
9052 2015-09-15  Richard Biener  <rguenther@suse.de>
9054         PR tree-optimization/67470
9055         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9056         structure for PHI hoisting by inserting a forwarder block
9057         if appropriate.
9059 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9061         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9062         (arm_option_print): New function.
9064 2015-09-15  Christian Bruel  <christian.bruel@st.com>
9066         PR target/52144
9067         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9068         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9069         Remove flags parameter.
9070         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9071         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9072         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9073         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9074         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9075         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9076         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9077         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9079 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9081         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9083         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9084         AARCH64_VALID_SIMD_DREG_MODE.
9086 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9088         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9089         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9090         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9091         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9092         aarch64_ld4_lane<mode>): Combine together, making...
9093         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9094         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9095         aarch64_st4_lane<mode>): Combine together, making...
9096         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9097         * config/aarch64/iterators.md (nregs): Add comment.
9099 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9101         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9102         Change operand mode from <V_TWO_ELEM> to BLK.
9103         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9104         (aarch64_vec_store_lanesoi_lane<mode): Likewise
9105         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9106         (aarch64_ld2_lane<mode>): Likewise.
9107         (aarch64_st2_lane<VQ:mode>): Likewise.
9108         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9110 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9112         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9113         Change operand mode from <V_FOUR_ELEM> to BLK.
9114         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9115         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9116         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9117         (aarch64_ld4_lane<mode>): Likewise.
9118         (aarch64_st4_lane<mode>): Likewise.
9119         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9121 2015-09-15  Richard Biener  <rguenther@suse.de>
9123         PR middle-end/67563
9124         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9125         transfer EH info from old to new stmt.
9126         (replace_call_with_value): Likewise.
9127         (replace_call_with_call_and_fold): Likewise.
9128         (gimple_fold_builtin_memory_op): Likewise.
9129         (gimple_fold_builtin_memset): Likewise.
9130         (gimple_fold_builtin_stpcpy): Likewise.
9131         (gimple_fold_call): Likewise.
9133 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9135         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9136         comment.
9137         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9138         (aarch64_simd_intEI_type_node): Likewise.
9139         (aarch64_simd_builtin_std_type): Remove EImode case.
9140         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9141         * config/aarch64/aarch64-modes.def: Remove EImode.
9143 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9145         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9146         Change operand mode from <V_THREE_ELEM> to BLK.
9147         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9148         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9149         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9150         (aarch64_ld3_lane<mode>): Likewise.
9151         (aarch64_st3_lane<mode>): Likewise.
9152         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9154 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9156         * config/aarch64/aarch64-simd.md
9157         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9158         Change all TImode operands to BLKmode.
9159         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9160         Change all EImode operands to BLKmode.
9161         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9162         Change all OImode operands to BLKmode.
9164         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9165         and call set_mem_size.
9166         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9168         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9170 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
9172         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9173         to...
9174         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9176         (vec_store_lanesci_lane<mode>): Rename to...
9177         (aarch64_vec_store_lanesci_lane<mode>): ...this.
9179         (vec_store_lanesxi_lane<mode>): Rename to...
9180         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9182         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9183         aarch64_st4_lane<mode>): Follow renaming.
9185 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9187         * config/s390/s390.c (s390_const_operand_ok): Add missing
9188         brackets.
9190 2015-09-15  Richard Biener  <rguenther@suse.de>
9192         PR lto/67568
9193         * lto-streamer.h (lto_location_cache::current_sysp): Properly
9194         initialize.
9195         * lto-streamer-out.c (clear_line_info): Likewise.
9197 2015-09-15  Richard Biener  <rguenther@suse.de>
9199         * doc/match-and-simplify.texi: Fix wording.
9201 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
9203         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9204         unnecessary type conversion in op1.
9206 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9208         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9209         (dup_block_and_redirect): Delete function.
9210         (can_dup_for_shrink_wrapping): New function.
9211         (fix_fake_fallthrough_edge): New function.
9212         (try_shrink_wrapping): Rewrite function.
9213         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9215 2015-09-14  Rich Felker  <dalias@libc.org>
9217         * configure.ac: Change target pattern for sh TLS support
9218         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9219         * configure: Regenerate.
9221 2015-09-14  Jeff Law  <law@redhat.com>
9223         PR tree-optimization/47679
9224         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9225         type rather than void *.
9227 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9229         PR fortran/67460
9230         * diagnostic.c (diagnostic_initialize): Do not set
9231         some_warnings_are_errors.
9232         (diagnostic_finish): Use DK_WERROR count instead.
9233         (diagnostic_report_diagnostic): Do not set
9234         some_warnings_are_errors.
9235         * diagnostic.h (struct diagnostic_context): Remove
9236         some_warnings_are_errors.
9238 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
9240         * config/sparc/predicates.md (const_all_ones_operand): Use
9241         CONSTM1_RTX to simplify definition.
9243 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
9245         PR target/67061
9246         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9247         Handle call insns.
9249 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
9251         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9252         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9253         OPT_fshow_column to handled saved option cases.
9254         (append_compiler_options): Do not skip the above added options.
9256 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9258         PR target/63304
9259         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9260         nopcrelative_literal_loads.
9261         (aarch64_classify_address): Likewise.
9262         (aarch64_constant_pool_reload_icode): Define.
9263         (aarch64_secondary_reload): Handle secondary reloads for
9264         literal pools.
9265         (aarch64_override_options): Handle nopcrelative_literal_loads.
9266         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9267         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9268         Define.
9269         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9270         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9271         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9272         predicate.
9273         * doc/invoke.texi (mpc-relative-literal-loads): Document.
9275 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
9277         PR middle-end/67401
9278         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9279         sync_compare_and_swap_optab libcall to target_oval.
9281 2015-09-14  Marek Polacek  <polacek@redhat.com>
9283         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9284         value.
9285         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9287 2015-09-11  Mark Wielaard  <mjw@redhat.com>
9289         PR c/28901
9290         * toplev.c (check_global_declaration): Check and use
9291         warn_unused_const_variable.
9292         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9293         (-Wunused-variable): Remove non-constant. For C implies
9294         -Wunused-const-variable.
9295         (-Wunused-const-variable): New.
9297 2015-09-14  Richard Biener  <rguenther@suse.de>
9299         * doc/match-and-simplify.texi: Update for changed syntax
9300         of inner ifs and the new switch expression.
9302 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
9304         * config/i386/haswell.md: New file describing Haswell pipeline.
9305         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9306         haswell-like processors.
9307         (ix86_reassociation_width): Increase reassociation width for 64-bit
9308         Haswell processor family.
9309         * config/i386/i386.md: Introduce haswell cpu and include new md file.
9311 2015-09-14  Richard Biener  <rguenther@suse.de>
9313         * doc/match-and-simplify.texi: Fixup some formatting issues
9314         and document the 's' flag.
9316 2015-09-13  Olivier Hainque  <hainque@adacore.com>
9317             Eric Botcazou  <ebotcazou@adacore.com>
9319         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9320         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
9321         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9322         (TARGET_CPU_gr5): Likewise.
9323         (TARGET_CPU_gr6): Likewise.
9324         (MULTILIB_DEFAULTS): Likewise.
9325         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9326         for mcpu=gr5 and mcpu=gr6.
9327         (MULTILIB_DIRNAMES): Adjust accordingly.
9329 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9331         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9332         (mem_ref_p): Likewise.
9333         (outermost_indep_loop): Adjust.
9334         (mem_ref_in_stmt): Likewise.
9335         (determine_max_movement): Likewise.
9336         (mem_ref_alloc): Likewise.
9337         (record_mem_ref_loc): Likewise.
9338         (set_ref_stored_in_loop): Likewise.
9339         (mark_ref_stored): Likewise.
9340         (gather_mem_refs_stmt): Likewise.
9341         (mem_refs_may_alias_p): Likewise.
9342         (for_all_locs_in_loop): Likewise.
9343         (struct rewrite_mem_ref_loc): Likewise.
9344         (rewrite_mem_refs): Likewise.
9345         (struct first_mem_ref_loc_1): Likewise.
9346         (first_mem_ref_loc): Likewise.
9347         (struct sm_set_flag_if_changed): Likewise.
9348         (execute_sm_if_changed_flag_set): Likewise.
9349         (execute_sm): Likewise.
9350         (hoist_memory_references):
9351         (struct ref_always_accessed): Likewise.
9352         (ref_always_accessed_p): Likewise.
9353         (refs_independent_p): Likewise.
9354         (record_dep_loop): Likewise.
9355         (ref_indep_loop_p_1): Likewise.
9356         (ref_indep_loop_p_2): Likewise.
9357         (ref_indep_loop_p): Likewise.
9358         (can_sm_ref_p): Likewise.
9359         (find_refs_for_sm): Likewise.
9360         (tree_ssa_lim_finalize): Likewise.
9362 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9364         * dwarf2out.c (dw_attr_ref): Remove typedef.
9365         (dw_line_info_ref): Likewise.
9366         (pubname_ref): Likewise.
9367         (dw_ranges_ref): Likewise.
9368         (dw_ranges_by_label_ref): Likewise.
9369         (comdat_type_node_ref): Likewise.
9370         (get_AT): Adjust.
9371         (get_AT_low_pc): Likewise.
9372         (get_AT_hi_pc): Likewise.
9373         (get_AT_string): Likewise.
9374         (get_AT_flag): Likewise.
9375         (get_AT_unsigned): Likewise.
9376         (get_AT_ref): Likewise.
9377         (get_AT_file): Likewise.
9378         (remove_AT): Likewise.
9379         (print_die): Likewise.
9380         (check_die): Likewise.
9381         (die_checksum): Likewise.
9382         (attr_checksum_ordered): Likewise.
9383         (struct checksum_attributes): Likewise.
9384         (collect_checksum_attributes): Likewise.
9385         (die_checksum_ordered): Likewise.
9386         (same_die_p): Likewise.
9387         (is_declaration_die): Likewise.
9388         (clone_die): Likewise.
9389         (clone_as_declaration): Likewise.
9390         (copy_declaration_context): Likewise.
9391         (break_out_comdat_types): Likewise.
9392         (copy_decls_walk): Likewise.
9393         (output_location_lists): Likewise.
9394         (external_ref_hasher::hash): Likewise.
9395         (optimize_external_refs_1): Likewise.
9396         (build_abbrev_table): Likewise.
9397         (size_of_die): Likewise.
9398         (unmark_all_dies): Likewise.
9399         (size_of_pubnames): Likewise.
9400         (output_die_abbrevs): Likewise.
9401         (output_die): Likewise.
9402         (output_pubnames): Likewise.
9403         (add_ranges_num): Likewise.
9404         (add_ranges_by_labels): Likewise.
9405         (add_high_low_attributes): Likewise.
9406         (gen_producer_string): Likewise.
9407         (dwarf2out_set_name): Likewise.
9408         (new_line_info_table): Likewise.
9409         (prune_unused_types_walk_attribs): Likewise.
9410         (prune_unused_types_update_strings): Likewise.
9411         (prune_unused_types): Likewise.
9412         (resolve_addr): Likewise.
9413         (optimize_location_lists_1): Likewise.
9414         (index_location_lists): Likewise.
9415         (dwarf2out_finish): Likewise.
9417 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9419         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9421 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9423         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9424         (dump_asserts_for): Adjust.
9425         (register_new_assert_for): Likewise.
9426         (process_assert_insertions): Likewise.
9427         (insert_range_assertions): Likewise.
9429 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9431         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9432         and remove typedef.
9433         (new_temp_expr_table): Adjust.
9434         (free_temp_expr_table): Likewise.
9435         (version_to_be_replaced_p): Likewise.
9436         (make_dependent_on_partition): Likewise.
9437         (add_to_partition_kill_list): Likewise.
9438         (remove_from_partition_kill_list): Likewise.
9439         (add_dependence): Likewise.
9440         (finished_with_expr): Likewise.
9441         (process_replaceable): Likewise.
9442         (kill_expr): Likewise.
9443         (kill_virtual_exprs): Likewise.
9444         (mark_replaceable): Likewise.
9445         (find_replaceable_in_bb): Likewise.
9446         (find_replaceable_exprs): Likewise.
9447         (debug_ter): Likewise.
9449 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9451         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9452         (struct btr_user): Rename from btr_user_s.
9453         (struct btr_def): Rename from btr_def_s.
9454         (find_btr_def_group): Adjust.
9455         (add_btr_def): Likewise.
9456         (new_btr_user): Likewise.
9457         (note_other_use_this_block): Likewise.
9458         (compute_defs_uses_and_gen): Likewise.
9459         (link_btr_uses): Likewise.
9460         (build_btr_def_use_webs): Likewise.
9461         (block_at_edge_of_live_range_p): Likewise.
9462         (btr_def_live_range): Likewise.
9463         (combine_btr_defs): Likewise.
9464         (move_btr_def): Likewise.
9465         (migrate_btr_def): Likewise.
9466         (migrate_btr_defs): Likewise.
9468 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9470         * var-tracking.c (shared_hash_def): Rename to shared_hash.
9471         (shared_hash): Remove typedef.
9472         (struct dataflow_set): Adjust.
9473         (shared_hash_unshare): Likewise.
9474         (dataflow_set_merge): Likewise.
9475         (vt_initialize): Likewise.
9476         (vt_finalize): Likewise.
9478 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9480         * var-tracking.c (struct location_chain): Rename from
9481         location_chain_def.
9482         (struct variable_part): Adjust.
9483         (variable_htab_free): Likewise.
9484         (unshare_variable): Likewise.
9485         (get_init_value): Likewise.
9486         (get_addr_from_local_cache): Likewise.
9487         (drop_overlapping_mem_locs): Likewise.
9488         (val_reset): Likewise.
9489         (struct variable_union_info): Likewise.
9490         (variable_union): Likewise.
9491         (find_loc_in_1pdv): Likewise.
9492         (insert_into_intersection): Likewise.
9493         (intersect_loc_chains): Likewise.
9494         (canonicalize_loc_order_check): Likewise.
9495         (canonicalize_values_mark): Likewise.
9496         (canonicalize_values_star): Likewise.
9497         (canonicalize_vars_star): Likewise.
9498         (variable_merge_over_cur): Likewise.
9499         (remove_duplicate_values): Likewise.
9500         (variable_post_merge_new_vals): Likewise.
9501         (variable_post_merge_perm_vals): Likewise.
9502         (find_mem_expr_in_1pdv): Likewise.
9503         (dataflow_set_preserve_mem_locs): Likewise.
9504         (dataflow_set_remove_mem_locs): Likewise.
9505         (variable_part_different_p): Likewise.
9506         (onepart_variable_different_p): Likewise.
9507         (find_src_set_src): Likewise.
9508         (dump_var): Likewise.
9509         (set_slot_part): Likewise.
9510         (clobber_slot_part): Likewise.
9511         (delete_slot_part): Likewise.
9512         (vt_expand_var_loc_chain): Likewise.
9513         (emit_note_insn_var_location): Likewise.
9514         (vt_finalize): Likewise.
9516 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9518         * dse.c (store_info_t): Remove typedef.
9519         (group_info_t): Likewise.
9520         (const_group_info_t): Likewise.
9521         (deferred_change_t): Likewise.
9522         (get_group_info): Adjust.
9523         (free_store_info): Likewise.
9524         (canon_address): Likewise.
9525         (clear_rhs_from_active_local_stores): Likewise.
9526         (record_store): Likewise.
9527         (replace_read): Likewise.
9528         (check_mem_read_rtx): Likewise.
9529         (scan_insn): Likewise.
9530         (remove_useless_values): Likewise.
9531         (dse_step1): Likewise.
9532         (dse_step2_init): Likewise.
9533         (dse_step2_nospill): Likewise.
9534         (scan_stores_nospill): Likewise.
9535         (scan_reads_nospill): Likewise.
9536         (dse_step3_exit_block_scan): Likewise.
9537         (dse_step3): Likewise.
9538         (dse_step5_nospill): Likewise.
9539         (dse_step6): Likewise.
9541 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9543         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9544         (alias_set_entry): Remove typedef.
9545         (alias_set_subset_of): Adjust.
9546         (alias_sets_conflict_p): Likewise.
9547         (init_alias_set_entry): Likewise.
9548         (get_alias_set): Likewise.
9549         (new_alias_set): Likewise.
9550         (record_alias_subset): Likewise.
9552 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
9554         * doc/install.texi (Downloading the source): Mark up
9555         contrib/download_prerequisites properly and drop leading "./".
9557 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9559         * config/arc/arc.h: Remove define of STRUCT_VALUE.
9560         * config/lm32/lm32.h: Likewise.
9561         * config/mep/mep.h: Likewise.
9562         * config/visium/visium.h: Likewise.
9563         * system.h: Poison STRUCT_VALUE macro.
9565 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
9567         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9568         CONSTANT_P operands.
9570 2015-09-11  David S. Miller  <davem@davemloft.net>
9572         * config/sparc/constraints.md: Make "U" constraint a real register
9573         constraint.
9574         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9575         (D_MODES, DF_MODES): Add missing cast.
9576         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9577         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9578         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9579         cost to 8.
9580         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9581         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9582         provide these insn when flag_pic.
9584 2015-09-11  Jeff Law  <law@redhat.com>
9586         PR tree-optimization/47679
9587         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9588         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9589         member with m_.  Update inline member functions as necessary.  Add
9590         toplevel comment.
9591         * tree-ssa-scopedtables.c: Update const_and_copies's member
9592         functions to use m_ prefix to access the stack.
9594 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
9596         * graphite-optimize-isl.c (disable_tiling): Remove.
9597         (get_schedule_for_band): Do not use disable_tiling.
9598         (get_prevector_map): Delete function.
9599         (enable_polly_vector): Remove.
9600         (get_schedule_for_band_list): Remove dead code.
9602 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
9604         * graphite-optimize-isl.c (get_tile_map): Refactor.
9605         (get_schedule_for_band): Same.
9606         (getScheduleForBand): Same.
9607         (get_prevector_map): Same.
9608         (get_schedule_for_band_list): Same.
9609         (get_schedule_map): Same.
9610         (get_single_map): Same.
9611         (apply_schedule_map_to_scop): Same.
9612         (optimize_isl): Same.
9614 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9616         PR target/63304
9617         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9618         (movtf): Delete.
9619         * config/aarch64/iterators.md (GPF_TF_F16): New.
9620         (GPF_F16): Delete.
9622 2015-09-10  Nathan Sidwell  <nathan@acm.org>
9624         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9625         (nvptx_reorg): Adjust comments.
9627 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
9629         PR bootstrap/67363
9630         * configure.ac: Check if setenv and unsetenv are declared.
9631         * configure: Rebuild.
9632         * config.in: Rebuild.
9633         * system.h: Declare setenv and unsetenv if not declared.
9635 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9637         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9638         commentary to simplify permute mask adjustment equation.
9639         (special_handling_values): Add SH_VPERM.
9640         (const_load_sequence_p): New function.
9641         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9642         the mask loaded from the constant pool.
9643         (adjust_vperm): New function.
9644         (handle_special_swappables): Call adjust_vperm.
9645         (dump_swap_insn_table): Handle SH_VPERM.
9647 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9649         * shrink-wrap.c (requires_stack_frame_p): Remove static.
9650         * shrink-wrap.h (requires_stack_frame_p): Put back.
9652 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
9654         * reload1.c (elimination_costs_in_insn): Locally turn
9655         -Wmaybe-uninitialized into a warning.
9657 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
9659         * shrink-wrap.c (requires_stack_frame_p): Make static.
9660         (prepare_shrink_wrap): Likewise.
9661         (dup_block_and_redirect): Likewise.
9662         * shrink-wrap.h: Remove declarations of those functions.
9664 2015-09-10  Mark Wielaard  <mjw@redhat.com>
9666         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9668 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
9670         PR target/67506
9671         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9672         missing simplify_gen_subreg.
9674 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9676         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9677         the vector element is bigger than 64 bit.
9679 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9681         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9682         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9684 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9686         * config/s390/s390.c: Add V1TImode to constant pool modes.
9688 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9690         PR target/67439
9691         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9692         predicate.  Set predicable_short_it attr to "no".
9694 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
9696         PR rtl-optimization/67421
9697         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9698         left wide shift tranformation.
9700 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
9702         * common/config/arc/arc-common.c: Remove references to A5.
9703         * config/arc/arc-opts.h: Likewise.
9704         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9705         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9706         * config/arc/t-arc-newlib: Likewise.
9708 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
9710         * config/arc/arc.md (length): Fix attribute length for conditional
9711         executed instructions with long immediate.
9713 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9715         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9716         type for second alternative.
9718 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
9720         * doc/invoke.texi (Downloading GCC): Mention
9721         contrib/download_prerequisites script.
9723 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
9725         PR c++/67523
9726         * gimplify.c (gimplify_omp_for): If inner stmt is not found
9727         for combined loop, assert seen_error () and return GS_ERROR.
9729         PR middle-end/67521
9730         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9731         if decl is already in outer->variables.
9733         PR middle-end/67517
9734         * gimplify.c (gimplify_scan_omp_clauses): Instead of
9735         asserting that decl is not specified in octx->variables,
9736         break out of the loop if it is.
9738         PR c++/67514
9739         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9740         iterator is not explicitly determined, but is defined inside
9741         of the combined workshare region, handle it like if it has
9742         DECL_EXPR in OMP_FOR_PRE_BODY.
9744 2015-09-09  Nathan Sidwell  <nathan@acm.org>
9746         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9747         (*cmp<mode>): Add assembler spacing.
9748         (setcc_int<mode>, set_cc_float<mode>): Likewise.
9749         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9750         level.
9751         (write_func_decl_from_insn): Refactor argument loops & comma emission.
9752         (nvptx_expand_call): Likewise.
9753         (nvptx_output_call_insn): Likewise.
9754         (nvptx_reorg_subreg): Add spacing.
9756 2015-09-09  Marek Polacek  <polacek@redhat.com>
9758         PR middle-end/67512
9759         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9760         for comparisons.
9762 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9764         PR c++/53184
9765         * doc/invoke.texi ([Wsubobject-linkage]): Document.
9767 2015-09-09  Tom de Vries  <tom@codesourcery.com>
9769         * params-list.h: Add missing copyright notice.
9771 2015-09-09  Nathan Sidwell  <nathan@acm.org>
9773         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
9774         sel_truesi, not andsi.
9776 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9778         * config/arm/arm.md (*subsi3_compare0): Rename to...
9779         (subsi3_compare0): ... This.
9780         (modsi3): New define_expand.
9781         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
9782         when operand is power of 2.
9784 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9786         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
9787         (*neg<mode>2_compare0): Rename to...
9788         (neg<mode>2_compare0): ... This.
9789         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
9790         Move check for speed inside the if-then-elses.  Reflect
9791         CSNEG sequence in MOD by power of 2 case.
9793 2015-09-09  Alan Modra  <amodra@gmail.com>
9795         PR target/67378
9796         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
9797         reload replacement for PRE_MODIFY address reg.
9799 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
9801         PR tree-optimization/53852
9802         * config.in: Regenerate.
9803         * configure: Regenerate.
9804         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
9805         * graphite-optimize-isl.c (optimize_isl): Stop computation when
9806         PARAM_MAX_ISL_OPERATIONS is reached.
9807         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
9808         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
9809         result equal to isl_stat_ok as the status now can be isl_error_quota.
9810         (subtract_commutative_associative_deps): Same.
9811         (compute_deps): Same.
9813 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
9814             Sebastian Pop  <s.pop@samsung.com>
9816         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9817         Return the parameter if it was saved in corresponding
9818         parameter_rename_map of the region.
9819         (copy_def): Copy def from sese region to the newly created region.
9820         (copy_internal_parameters): Copy all the internal parameters defined
9821         within a region to the newly created region.
9822         (graphite_regenerate_ast_isl): Copy parameters to the new region before
9823         translating isl to gimple.
9824         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
9825         the loop-nest does not have any data-references.
9826         (build_graphite_scops): Create a scop only when there is at least one
9827         loop inside it.
9828         (contains_only_close_phi_nodes): Deleted.
9829         (print_graphite_scop_statistics): Deleted
9830         (print_graphite_statistics): Deleted
9831         (limit_scops): Deleted.
9832         (build_scops): Removed call to limit_scops.
9833         * sese.c (new_sese): Construct.
9834         (free_sese): Destruct.
9835         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
9836         added.
9837         (set_rename): Pass sese region so that parameters inside the region can
9838         be added to its parameter_rename_map.
9839         (rename_uses): Pass sese region.
9840         (graphite_copy_stmts_from_block): Do not copy parameters that have been
9841         generated in the header of the scop. For each SSA_NAME in the
9842         parameter_rename_map rename its usage.
9843         (invariant_in_sese_p_rec): Return false if tree t is defined outside
9844         sese region.
9845         (scalar_evolution_in_region): If the tree t is invariant just return t.
9846         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
9847         struct sese to keep track of all the parameters which need renaming.
9848         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
9849         any data-refs.
9850         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
9852 2015-09-08  Tom de Vries  <tom@codesourcery.com>
9854         * Makefile.in (generated_files): Add params.list.
9855         (params.list, s-params.list): Add rule.
9856         * params.h (enum compiler_param): Include params-list.h.  Move define
9857         DEFPARAM, include params.def and undef DEFPARAM ...
9858         * params-list.h: ... here.  New file.
9860 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
9862         * pretty-print.h (printer_fn): Fix typo in comment.
9864 2015-09-07  Jeff Law  <law@redhat.com>
9866         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
9868 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9870         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
9871         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
9872         (arm_neon_fp16_hw): New.
9874 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9876         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
9877         UNITS_PER_WORD >= 4.
9879 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9881         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
9882         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
9883         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
9884         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
9885         (aarch64_float_extend_lo_v2df): Rename to...
9886         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
9888         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
9889         (float_extend_lo): Add v4sf.
9891         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
9892         * config/aarch64/iterators.md (VQ_HSF): New iterator.
9893         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
9894         (Vwide): New mode_attr.
9896 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9898         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
9899         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
9900         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
9901         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
9902         V4HF and V8HF variants to iterator.
9904         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
9906         * config/aarch64/iterators.md (VDQF_F16): New.
9907         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
9909 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9911         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
9912         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9913         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
9914         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
9915         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
9916         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9917         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
9918         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
9919         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
9920         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
9921         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
9922         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9923         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
9924         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
9925         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
9926         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
9927         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
9928         vld1q_dup_f16): New.
9930 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9932         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
9933         Reparameterize to...
9934         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
9935         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
9936         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
9938         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
9939         v8hf variant.
9940         (float_truncate_lo_): Use BUILTIN_VDF iterator.
9942         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
9944         * config/aarch64/iterators.md (VDF, Vdtype): New.
9945         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
9947 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9949         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
9950         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
9951         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
9952         Add __builtin_aarch64_simd_hf.
9953         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
9954         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
9955         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
9956         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
9957         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
9958         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
9959         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
9960         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
9961         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
9963         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
9964         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
9965         (VDC, Vdbl): Add V4HF.
9967 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9969         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
9970         V4HFmode and V8HFmode.
9971         (aarch64_split_simd_move): Add case for V8HFmode.
9972         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
9973         (aarch64_simd_builtin_std_type): Handle HFmode.
9974         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
9976         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
9977         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
9978         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
9980         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
9981         Float16x8_t.
9983         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
9984         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
9985         New typedefs.
9986         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
9987         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
9988         vst1q_lane_f16): New.
9989         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
9990         (VALLDI_F16, VALL_F16): New.
9991         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
9992         Add cases for V4HF and V8HF.
9993         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
9995 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9997         * config/arm/arm-builtins.c (VAR11, VAR12): New.
9998         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
9999         vld4_dup): Add v4hf variant.
10000         (vget_high, vget_low): Add v8hf variant.
10001         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10002         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10003         v4hf and v8hf variants.
10005         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10006         (VDX): Add V4HF.
10007         (V_DOUBLE): Add case for V4HF.
10008         (VQX): Add V8HF.
10009         (V_HALF): Add case for V8HF.
10010         (VDQX): Add V4HF, V8HF.
10011         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10012         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10014         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10015         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10016         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10017         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10018         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10019         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10020         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10021         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10022         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10024         (neon_vcreate, neon_vreinterpretv8qi<mode>,
10025         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10026         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10027         Change VDX to VD_RE.
10029         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10030         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10031         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10033         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10034         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10035         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10036         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10037         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10038         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10039         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10040         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10041         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10043 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10045         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10046         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10047         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10048         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10049         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10050         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10051         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10052         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10053         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10054         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10055         New.
10057 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10059         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10061         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10063         * config/arm/arm-builtins.c (v8hf_UP): New.
10064         (arm_init_simd_builtin_types): Initialise Float16x8_t.
10066         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10068         * config/arm/arm_neon.h (float16x8_t): New typedef.
10070 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10072         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10073         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10074         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10075         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10076         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10077         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10078         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10079         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10080         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10081         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10083 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
10085         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10086         non-alphanumeric characters in the symbol name.
10088 2015-09-07  Marek Polacek  <polacek@redhat.com>
10090         PR inline-asm/67448
10091         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10092         a memory input.
10094 2015-09-07  Marek Polacek  <polacek@redhat.com>
10096         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10098 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
10100         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10101         not warn.
10103 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
10105         PR middle-end/67452
10106         * tree-ssa-live.c: Include cfgloop.h.
10107         (remove_unused_locals): Clear loop->simduid if simduid is about
10108         to be removed from cfun->local_decls.
10110 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10112         PR target/65210
10113         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10114         attribute as well.
10116 2015-09-04  Tom de Vries  <tom@codesourcery.com>
10118         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10120 2015-09-04  Jeff Law  <law@redhat.com>
10122         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10123         unnecessary constructor.  It's now trivial and implemented inside...
10124         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10125         constructor.  Add comments to various methods.  Remove unused
10126         private fields.
10127         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10128         * tree-vrp.c (identify_jump_threads): Likewise.
10129         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10130         indentation issues.
10131         (thread_across_edge): Similarly.
10132         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10133         arguments in constructor call.
10135 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
10137         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10138         temp path contains a '-'.
10140 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10141             Petr Murzin  <petr.murzin@intel.com>
10142             Kirill Yukhin  <kirill.yukhin@intel.com>
10144         * config/i386/i386-builtin-types.def
10145         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10146         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10147         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10148         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10149         * config/i386/i386.c
10150         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10151         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10152         IX86_BUILTIN_SCATTERALTDIV16SI.
10153         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10154         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10155         __builtin_ia32_scatteraltdiv8si.
10156         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10157         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10158         IX86_BUILTIN_SCATTERALTDIV16SI.
10159         (ix86_vectorize_builtin_scatter): New.
10160         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10161         ix86_vectorize_builtin_scatter.
10163 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10164             Petr Murzin  <petr.murzin@intel.com>
10165             Kirill Yukhin  <kirill.yukhin@intel.com>
10167         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10168         * doc/tm.texi: Regenerate.
10169         * target.def: Add scatter builtin.
10170         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10171         for loads/stores in case of gather/scatter accordingly.
10172         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10173         STMT_VINFO_GATHER_P(S).
10174         (vect_check_gather): Rename to ...
10175         (vect_check_gather_scatter): this.
10176         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10177         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10178         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10179         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10180         variable and new checkings for it accordingly.
10181         * tree-vect-stmts.c
10182         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10183         STMT_VINFO_GATHER_P(S).
10184         (vect_check_gather_scatter): Use it instead of vect_check_gather.
10185         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10187 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10189         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10190         define_insn.
10191         (mulv16qi3): New define_expand.
10193 2015-09-03  Martin Sebor  <msebor@redhat.com>
10195         PR c/66516
10196         * doc/extend.texi (Other Builtins): Document when the address
10197         of a built-in function can be taken.
10199 2015-09-03  Richard Biener  <rguenther@suse.de>
10201         * dwarf2out.c (flush_limbo_die_list): Split out from ...
10202         (dwarf2out_early_finish): ... here.
10203         (dwarf2out_finish): Do not call dwarf2out_early_finish but
10204         flush_limbo_die_list.  Assert we have no deferred asm names.
10206 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10208         * optabs.c (expand_binop): Don't create a broadcast vector with a
10209         source element wider than the inner mode.
10211 2015-09-03  Richard Biener  <rguenther@suse.de>
10213         * varasm.c (output_constant): Use fold_convert instead of
10214         wide_int_to_tree.
10216 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10218         PR tree-optimization/65637
10219         * omp-low.c (expand_omp_for_static_chunk): Handle case that
10220         fin_bb has 2 predecessors.
10222 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10224         PR tree-optimization/65637
10225         * omp-low.c (find_phi_with_arg_on_edge): New function.
10226         (expand_omp_for_static_chunk): Fix inner loop phi.
10228 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10230         PR tree-optimization/65637
10231         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10232         that head is NULL.
10234 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10236         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10238 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10240         * doc/invoke.texi (parloops-chunk-size): Add item.
10241         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10242         * tree-parloops.c: Include params.h.
10243         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10244         param parloops-chunk-size is used.
10246 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10248         PR middle-end/67351
10249         * fold-const.c (fold_binary_loc) : Move
10250         Transform (x >> c) << c into x & (-1<<c) or
10251         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10252         types using simplify and match.
10253         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10254         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10256 2015-09-03  Richard Biener  <rguenther@suse.de>
10258         PR ipa/66705
10259         * tree-ssa-structalias.c (ctor_for_analysis): New function.
10260         (create_variable_info_for_1): Use ctor_for_analysis instead
10261         of get_constructor.
10262         (create_variable_info_for): Likewise.
10264 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
10266         PR ipa/67280
10267         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10268         in new callgraph edge.
10270 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
10272         PR target/59810
10273         PR target/63652
10274         PR target/63653
10275         * config/aarch64/aarch64-simd.md
10276         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10277         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10278         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10279         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10281 2015-09-02  Alan Modra  <amodra@gmail.com>
10283         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10284         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10285         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10287 2015-09-02  Alan Modra  <amodra@gmail.com>
10289         PR target/67417
10290         * config/rs6000/predicates.md (current_file_function_operand): Don't
10291         return true for weak symbols.
10292         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10294 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
10295             Andrew Bennett  <andrew.bennett@imgtec.com>
10297         * config/mips/mips-opts.h (mips_cb_setting): New enum.
10298         * config/mips/mips-protos.h: Add definitions for
10299         mips_output_jump and mips_output_equal_conditional_branch
10300         * config/mips/mips.c (MIPS_JR): Change to support the
10301         JIC instruction.
10302         (mips_emit_compare): Add support for the MIPS R6 conditional
10303         compact branches.
10304         (mips_process_sync_loop): Likewise.
10305         (mips_output_order_conditional_branch): Likewise.
10306         (mips16_build_call_stub): Change MIPS_CALL to
10307         mips_output_jump.
10308         (mips_print_operand_punctuation): Update 's' case to only
10309         apply to micromips r2.
10310         (mips_adjust_insn_length): Add support for forbidden slot
10311         hazards.
10312         (mips_avoid_hazard): Likewise.
10313         (mips_reorg_process_insns): Likewise.
10314         (mips_output_jump): New function.
10315         (mips_output_equal_conditional_branch): Likewise.
10316         (mips_output_conditional_branch): Use jrc/bc if compact
10317         branch support is enabled.  Ensure the forbidden slots
10318         between the two branch instructions is filled with a nop.
10319         (mips_option_override): Add support to process the compact
10320         branch option and set the correct defaults.  Prevent
10321         non-explict relocs being using for MIPS R6.
10322         (mips_trampoline_init): Add compact branch support.
10323         (mips_mult_zero_zero_cost): Allow zero initialisation of
10324         accumulators with TARGET_DSP.
10325         * config/mips/mips.h (TARGET_CB_NEVER): New define.
10326         (TARGET_CB_MAYBE): New define.
10327         (TARGET_CB_ALWAYS): New define.
10328         (ISA_HAS_DELAY_SLOTS): New define.
10329         (ISA_HAS_COMPACT_BRANCHES): New define.
10330         (ISA_HAS_JRC): New define.
10331         (MIPS_BRANCH_C): New define.
10332         (MIPS_CALL): Removed.
10333         (MICROMIPS_J): Removed.
10334         * config/mips/mips.md (compact_form): New attr.
10335         (hazard): Add support for forbidden slots.
10336         (define_delay): Add support for compact branches.
10337         (*branch_order<mode>): Likewise.
10338         (*branch_order<mode>_inverted): Likewise.
10339         (*branch_equality<mode>): Likewise.
10340         (*branch_equality<mode>_inverted): Likewise.
10341         (*jump_absolute): Likewise.
10342         (*jump_pic): Likewise.
10343         (indirect_jump): Use mips_output_jump to produce assembly output.
10344         (tablejump_<mode>"): Likewise.
10345         (*<optab>"): Likewise.
10346         (<optab>_internal): Likewise.
10347         (sibcall_internal): Likewise.
10348         (sibcall_value_internal): Likewise.
10349         (sibcall_value_multiple_internal): Likewise.
10350         (call_internal): Likewise.
10351         (call_split): Likewise.
10352         (call_internal_direct): Likewise.
10353         (call_direct_split): Likewise.
10354         (call_value_internal): Likewise.
10355         (call_value_split): Likewise.
10356         (call_value_internal_direct): Likewise.
10357         (call_value_direct_split): Likewise.
10358         (call_value_multiple_internal): Likewise.
10359         (call_value_multiple_split): Likewise.
10360         (mips_get_fcsr_mips16_<mode>): Likewise.
10361         (mips_set_fcsr_mips16_<mode>): Likewise.
10362         (tls_get_tp_mips16_<mode>): Likewise.
10363         * config/mips/mips.opt: Add -mcompact-branches option.
10364         * config/mips/predicates.md (order_operator): Ensure the
10365         conditional compact branches are only used if the ISA them.
10366         * doc/invoke.texi: Document -mcompact-branches option.
10368 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
10370         PR target/61578
10371         * lra-lives.c (process_bb_lives): Process move pseudos with the
10372         same value for copies and preferences
10373         * lra-constraints.c (match_reload): Create match reload pseudo
10374         with the same value from single dying input pseudo.
10376 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10378         PR target/67405
10379         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10381 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
10383         * trans-mem.c: Add contributed-by.
10384         * trans-mem.h: Same.
10386 2015-09-01  Richard Biener  <rguenther@suse.de>
10388         * expr.c (expand_expr_real_1): For expanding TERed defs
10389         set the current location to that of the def if not UNKNOWN.
10391 2015-09-01  David Sherwood  <david.sherwood@arm.com>
10393         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10395 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10397         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10398         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
10399         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10400         Include rtl-iter.h.
10401         (noce_simple_bbs): New function.
10402         (noce_try_move): Bail if basic blocks are not simple.
10403         (noce_try_store_flag): Likewise.
10404         (noce_try_store_flag_constants): Likewise.
10405         (noce_try_addcc): Likewise.
10406         (noce_try_store_flag_mask): Likewise.
10407         (noce_try_cmove): Likewise.
10408         (noce_try_minmax): Likewise.
10409         (noce_try_abs): Likewise.
10410         (noce_try_sign_mask): Likewise.
10411         (noce_try_bitop): Likewise.
10412         (bbs_ok_for_cmove_arith): New function.
10413         (noce_emit_all_but_last): Likewise.
10414         (noce_emit_insn): Likewise.
10415         (noce_emit_bb): Likewise.
10416         (noce_try_cmove_arith): Handle non-simple basic blocks.
10417         (insn_valid_noce_process_p): New function.
10418         (contains_mem_rtx_p): Likewise.
10419         (bb_valid_for_noce_process_p): Likewise.
10420         (noce_process_if_block): Allow non-simple basic blocks
10421         where appropriate.
10423 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
10425         * tree-ssa-dom.c (record_equivalences_from_phis,
10426         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10427         (lookup_avail_expr): Likewise, and remove comment and unused temp.
10429 2015-09-01  Nick Clifton  <nickc@redhat.com>
10431         * config/msp430/msp430.opt (mcpu): Fix typo.
10433 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10435         * config/aarch64/aarch64.c (aarch64_set_current_function):
10436         Re-layout any vector parameters have non-simd layout.
10437         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10438         Delete.
10439         (aarch64_simd_expand_args): Delete call to the above.
10441 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
10443         * doc/invoke.texi (asan-stack): Add space before option.
10445 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10447         * tree.h (zerop): New function.
10448         * tree.c (zerop): Likewise.
10449         (element_precision): Handle expressions.
10450         * match.pd (define_predicates): Add zerop.
10451         (x <= +Inf): Fix comment.
10452         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10453         * fold-const.c (fold_binary_loc): ... here. Remove.
10455 2015-08-31  Richard Biener  <rguenther@suse.de>
10457         PR middle-end/67381
10458         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10460 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
10462         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10463         (CEXPI): New operator list.
10464         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10465         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10466         Converted from ...
10467         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10469 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10471         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10472         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10473         parameter.
10474         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10475         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10476         (rewrite_into_loop_closed_ssa): ... here.
10477         (replace_uses_in_dominated_bbs): Remove function.
10478         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10479         rewrite_into_loop_closed_ssa_1.
10481 2015-08-31  Michael Matz  <matz@suse.de>
10483         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10484         enter entry and exit blocks for reverse post order.
10486 2015-08-31  Richard Biener  <rguenther@suse.de>
10488         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10489         (lto_location_cache::current_sysp): Likewise.
10490         (output_block::current_sysp): Likewise.
10491         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10492         (lto_location_cache::apply_location_cache): Properly record
10493         system header locations.
10494         (lto_location_cache::input_location): Input whether a file
10495         is a system header.
10496         * lto-streamer-out.c (lto_output_location): Stream whether a file
10497         is a system header.
10499 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10501         PR bootstrap/67363
10502         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10504 2015-08-31  Tom de Vries  <tom@codesourcery.com>
10506         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10507         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10508         Improve function header comments.
10510 2015-08-30  Michael Collison  <michael.collison@linaro.org>
10512         PR other/67320
10513         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10514         standard names
10516 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10518         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10519         special_handling bitfield.
10520         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10521         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10522         that represents a general xxpermdi.
10523         (insn_is_swappable_p): Add handling for vec_concat of two
10524         doublewords, which maps to a specific xxpermdi.
10525         (adjust_xxpermdi): New function.
10526         (adjust_concat): Likewise.
10527         (handle_special_swappables): Call adjust_xxpermdi and
10528         adjust_concat.
10529         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10531 2015-08-30  Rich Felker <dalias@libc.org>
10533         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10534         case instead of sh[123456ble]-*-*.
10536 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
10538         * ira.c (print_unform_and_important_classes,
10539         print_translated_classes): Remove reg_class_names static array.
10540         (print_unform_and_important_classes): Rename to ...
10541         (print_uniform_and_important_classes): ... this.
10542         (ira_debug_allocno_classes): Update accordingly.
10544 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10546         PR tree-optimization/46193
10547         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10548         clause.
10550 2015-08-28  Jeff Law  <law@redhat.com>
10552         PR lto/66752
10553         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10554         unable to find X NE 0 in the tables, return X as the simplified
10555         condition.
10556         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10557         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10558         to VISISTED_BBS.
10559         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10560         after removing the control flow statement and unnecessary edges.
10562 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
10564         Revert:
10565         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10567         PR tree-optimization/67283
10568         * tree-sra.c (type_consists_of_records_p): Rename to...
10569         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10571         (completely_scalarize_record): Rename to...
10572         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10573         code to:
10574         (scalarize_elem): New.
10576 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
10578         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10579         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10580         (aarch64_symbol_type): Likewise.
10581         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10582         Likewise.
10583         (aarch64_expand_mov_immediate): Likewise.
10584         (aarch64_print_operand): Likewise.
10585         (aarch64_classify_tls_symbol): Likewise.
10587 2015-08-28  Richard Biener  <rguenther@suse.de>
10589         * cgraphunit.c (symbol_table::compile): Move early debug generation
10590         and finish...
10591         (symbol_table::finalize_compilation_unit): ... back here and
10592         add a !seen_error () guard.
10594 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10596         * toplev.c (process_options): Do not use flag_loop_block,
10597         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
10598         flag_loop_optimize_isl.
10600 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10602         * Makefile.in (OBJS): Remove graphite-blocking.o and
10603         graphite-interchange.o.
10604         * common.opt (floop-strip-mine, floop-interchange, floop-block):
10605         Alias of floop-nest-optimize.
10606         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10607         Document as alias of -floop-nest-optimize.
10608         * graphite-blocking.c: Remove.
10609         * graphite-interchange.c: Remove.
10610         * graphite-optimize-isl.c: Include dumpfile.h.
10611         (getScheduleForBand): Add dump for tiled loops.  Use
10612         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10613         * graphite-poly.c (scop_max_loop_depth): Remove.
10614         (print_scattering_function_1): Remove.
10615         (print_scattering_function): Remove.
10616         (print_scattering_functions): Remove.
10617         (debug_scattering_function): Remove.
10618         (debug_scattering_functions): Remove.
10619         (apply_poly_transforms): Remove use of flag_loop_block,
10620         flag_loop_strip_mine, and flag_loop_interchange.
10621         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10622         PBB_ORIGINAL.
10623         (print_pdr_access_layout): Remove.
10624         (print_pdr): Print ISL representation.
10625         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10626         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10627         (free_scop): Same.
10628         (openscop_print_pbb_domain): Remove.
10629         (print_pbb): Remove call to print_scattering_function.
10630         (openscop_print_scop_context): Remove.
10631         (print_scop_context): Do not print matrices anymore.
10632         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10633         SCOP_TRANSFORMED_SCHEDULE.
10634         (print_isl_set): Add printing of a new line.
10635         (print_isl_map): Same.
10636         (print_isl_aff): Same.
10637         (print_isl_constraint): Same.
10638         (loop_to_lst): Remove.
10639         (scop_to_lst): Remove.
10640         (lst_indent_to): Remove.
10641         (print_lst): Remove.
10642         (debug_lst): Remove.
10643         (dot_lst_1): Remove.
10644         (dot_lst): Remove.
10645         (reverse_loop_at_level): Remove.
10646         (reverse_loop_for_pbbs): Remove.
10647         * graphite-poly.h (pdr_dim_iter_domain): Remove.
10648         (pdr_nb_params): Remove.
10649         (pdr_alias_set_dim): Remove.
10650         (pdr_subscript_dim): Remove.
10651         (pdr_iterator_dim): Remove.
10652         (pdr_parameter_dim): Remove.
10653         (same_pdr_p): Remove.
10654         (struct poly_scattering): Remove.
10655         (struct poly_bb): Remove _original, _transformed, _saved.
10656         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10657         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10658         (PBB_NB_LOCAL_VARIABLES): Remove.
10659         (PBB_NB_SCATTERING_TRANSFORM): Remove.
10660         (schedule_to_scattering): Remove.
10661         (number_of_write_pdrs): Remove.
10662         (pbb_dim_iter_domain): Remove.
10663         (pbb_nb_params): Remove.
10664         (pbb_nb_scattering_orig): Remove.
10665         (pbb_nb_scattering_transform): Remove.
10666         (pbb_nb_dynamic_scattering_transform): Remove.
10667         (pbb_nb_local_vars): Remove.
10668         (pbb_iterator_dim): Remove.
10669         (pbb_parameter_dim): Remove.
10670         (psco_scattering_dim): Remove.
10671         (psct_scattering_dim): Remove.
10672         (psct_local_var_dim): Remove.
10673         (psco_iterator_dim): Remove.
10674         (psct_iterator_dim): Remove.
10675         (psco_parameter_dim): Remove.
10676         (psct_parameter_dim): Remove.
10677         (psct_dynamic_dim): Remove.
10678         (psct_static_dim): Remove.
10679         (psct_add_local_variable): Remove.
10680         (new_lst_loop): Remove.
10681         (new_lst_stmt): Remove.
10682         (free_lst): Remove.
10683         (copy_lst): Remove.
10684         (lst_add_loop_under_loop): Remove.
10685         (lst_depth): Remove.
10686         (lst_dewey_number): Remove.
10687         (lst_dewey_number_at_depth): Remove.
10688         (lst_pred): Remove.
10689         (lst_succ): Remove.
10690         (lst_find_pbb): Remove.
10691         (find_lst_loop): Remove.
10692         (lst_find_first_pbb): Remove.
10693         (lst_empty_p): Remove.
10694         (lst_find_last_pbb): Remove.
10695         (lst_contains_p): Remove.
10696         (lst_contains_pbb): Remove.
10697         (lst_create_nest): Remove.
10698         (lst_remove_from_sequence): Remove.
10699         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10700         (lst_niter_for_loop): Remove.
10701         (pbb_update_scattering): Remove.
10702         (lst_update_scattering_under): Remove.
10703         (lst_update_scattering): Remove.
10704         (lst_insert_in_sequence): Remove.
10705         (lst_replace): Remove.
10706         (lst_substitute_3): Remove.
10707         (lst_distribute_lst): Remove.
10708         (lst_remove_all_before_including_pbb): Remove.
10709         (lst_remove_all_before_excluding_pbb): Remove.
10710         (struct scop): Remove original_schedule, transformed_schedule, and
10711         saved_schedule.
10712         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10713         (SCOP_SAVED_SCHEDULE): Remove.
10714         (poly_scattering_new): Remove.
10715         (poly_scattering_free): Remove.
10716         (poly_scattering_copy): Remove.
10717         (store_scattering_pbb): Remove.
10718         (store_lst_schedule): Remove.
10719         (restore_lst_schedule): Remove.
10720         (store_scattering): Remove.
10721         (restore_scattering_pbb): Remove.
10722         (restore_scattering): Remove.
10723         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10724         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
10725         compute the scattering polyhedron dimension from the dimension of
10726         pbb->domain.
10727         (build_scop_scattering): Update call to
10728         build_pbb_scattering_polyhedrons.
10729         (build_poly_scop): Remove call to scop_to_lst.
10730         * graphite.c (graphite_transform_loops): Add call to print_scop.
10731         (gate_graphite_transforms): Remove use of flag_loop_block,
10732         flag_loop_interchange, and flag_loop_strip_mine.
10734 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
10736         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10737         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10738         -floop-nest-optimize.
10739         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10740         (generate_luj_sepclass): Remove.
10741         (generate_luj_options): Remove.
10742         (set_options): Remove opt_luj.
10743         (scop_to_isl_ast): Remove opt_luj.
10744         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10745         flag_loop_unroll_jam.
10746         (getPrevectorMap_full): Remove.
10747         (getScheduleForBandList): Remove map_sepcl.
10748         (getScheduleMap): Same.
10749         (apply_schedule_map_to_scop): Remove sepcl.
10750         (optimize_isl): Same.
10751         * graphite-poly.c (apply_poly_transforms): Remove check for
10752         flag_loop_unroll_jam.
10753         (new_poly_bb): Remove map_sepclass.
10754         * graphite-poly.h (struct poly_bb): Same.
10755         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10756         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10757         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10758         * toplev.c (process_options): Remove flag_loop_unroll_jam.
10760 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
10762         PR target/67317
10763         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10764         (addqi3_cc): Ditto.
10765         (UNSPEC_ADD_CARRY): Remove.
10766         (addqi3_cconly_overflow): New expander.
10767         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10768         Adjust for changed add<mode>3_carry.
10769         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10770         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10771         (<plusminus_insn><mode>3_carry): Remove expander.
10772         (*<plusminus_insn><mode>3_carry): Split insn pattern to
10773         add<mode>3_carry and sub<mode>3_carry.
10774         (plusminus_carry_mnemonic): Remove code attribute.
10775         (add<mode>3_carry): Canonicalize insn pattern.
10776         (*addsi3_carry_zext): Ditto.
10777         (sub<mode>3_carry): Ditto.
10778         (*subsi3_carry_zext): Ditto.
10779         (adcx<mode>3): Remove insn pattern.
10780         (addcarry<mode>): New insn pattern.
10781         (subborrow<mode>): Ditto.
10782         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
10783         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
10784         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
10785         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
10786         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
10787         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
10788         Rewrite expander to not clobber carry flag chains.
10790 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
10792         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
10793         instead of a rotate.
10795 2015-08-27  Marek Polacek  <polacek@redhat.com>
10797         PR middle-end/67005
10798         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
10799         an entry into an irreducible region.
10801 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10803         * configure: Regenerate.
10805 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10807         PR tree-optimization/67283
10808         * tree-sra.c (type_consists_of_records_p): Rename to...
10809         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10811         (completely_scalarize_record): Rename to...
10812         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10813         (scalarize_elem): New.
10815 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
10817         * tree-sra.c (completely_scalarize_var): Rename to...
10818         (create_total_scalarization_access): ... Here. Drop call to
10819         completely_scalarize_record.
10821         (analyze_all_variable_accesses): Replace completely_scalarize_var
10822         with create_total_scalarization_access and completely_scalarize_record.
10824 2015-08-27  Alan Modra  <amodra@gmail.com>
10826         PR target/67356
10827         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
10828         for operand 1.
10830 2015-08-27  Richard Biener  <rguenther@suse.de>
10832         * passes.c (rest_of_decl_compilation): Guard early_global_decl
10833         call with !seen_error ().
10834         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
10835         early debug generation and finish...
10836         (symbol_table::compile): ... here to put it after a !seen_error ()
10837         guard.
10839 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10841         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
10842         Solaris 12+.
10844 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10845             Andre Vieira  <andre.simoesdiasvieira@arm.com>
10847         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
10848         (*cb<optab><mode>1): Likewise.
10849         (*tb<optab><mode>1): Likewise.
10850         (*cb<optab><mode>1): Likewise.
10851         * config/aarch64/iterators.md (inv_cb): New code attribute.
10852         (inv_tb): Likewise.
10853         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
10854         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
10856 2015-08-27  Richard Biener  <rguenther@suse.de>
10858         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
10860 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10862         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
10863         trap to fix ICE.
10865 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10867         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
10868         Add declaration.
10870         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
10871         comment.
10872         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
10873         floating point in VSX registers.
10874         (rs6000_output_move_128bit): Always print out the set insn if we
10875         can't generate an appropriate 128-bit move.
10876         (rs6000_generate_compare): Add support for IEEE 128-bit floating
10877         point in VSX registers comparisons.
10878         (rs6000_expand_float128_convert): Likewise.
10880         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
10881         predicate for only GPR hard registers.
10883         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
10884         modes to iterators. Add new iterators for moving 128-bit values in
10885         scalar FPR registers and VSX registers.
10886         (FMOVE128): Likewise.
10887         (FMOVE128_FPR): Likewise.
10888         (FMOVE128_GPR): Likewise.
10889         (FMOVE128_VSX): Likewise.
10890         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
10891         in VSX registers.
10892         (IFKF): Likewise.
10893         (IBM128): Likewise.
10894         (TFIFKF): Likewise.
10895         (RELOAD): Add IEEE 128-bit floating point modes.
10896         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
10897         floating point in VSX registers modes.
10898         (signbit<mode>2, IBM128 iterator): Likewise.
10899         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
10900         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10901         (negtf2): Likewise.
10902         (neg<mode>2, TFIFKF iterator): Likewise.
10903         (negtf2_internal): Likewise.
10904         (abstf2): Likewise.
10905         (abs<mode>2, TFIFKF iterator): Likewise.
10906         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
10907         VSX insn support for negate, absolute value, and negative absolute
10908         value.
10909         (ieee_128bit_vsx_neg<mode>2): Likewise.
10910         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10911         (ieee_128bit_vsx_abs<mode>2): Likewise.
10912         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10913         (ieee_128bit_vsx_nabs<mode>2): Likewise.
10914         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10915         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
10916         floating point in VSX registers.
10917         (unpack<mode>_dm): Likewise.
10918         (unpack<mode>_nodm): Likewise.
10919         (pack<mode>): Likewise.
10920         (unpackv1ti): Likewise.
10921         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
10922         (packv1ti): Likewise.
10923         (pack<mode>, FMOVE128_VSX iterator): Likewise.
10924         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
10925         registers.
10926         (extenddftf2_internal): Likewise.
10927         (trunctfdf2): Likewise.
10928         (trunctfdf2_internal2): Likewise.
10929         (fix_trunc_helper): Likewise.
10930         (fix_trunctfdi2"): Likewise.
10931         (floatditf2): Likewise.
10932         (floatuns<mode>tf2): Likewise.
10933         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
10934         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
10935         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
10936         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
10937         (float<SDI:mode><IFKF:mode>2): Likewise.
10938         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
10940 2015-08-26  Renlin Li  <renlin.li@arm.com>
10942         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
10944 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10945             Jiong Wang  <jiong.wang@arm.com>
10947         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
10948         (tlsie_tiny_<mode>): New define_insn.
10949         (tlsie_tiny_sidi): Likewise.
10950         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
10951         SYMBOL_TINY_TLSIE.
10952         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
10953         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10954         SYMBOL_TINY_TLSIE.
10955         (aarch64_expand_mov_immediate): Likewise.
10956         (aarch64_print_operand): Likewise.
10957         (arch64_classify_tls_symbol): Likewise.
10959 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10961         * config/arm/arm-arches.def: Replace single value flags with
10962         an initializer built from ARM_FSET_MAKE_CPU1.
10963         * config/arm/arm-cores.def: Likewise.
10964         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
10965         derivation from the ARM_CORE macro definition, use the given value
10966         instead.
10967         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
10968         ARM_ARCH macro definition, use the given value instead.
10970 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10972         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
10973         feature set.
10974         (struct builtin_description): Replace field mask with field
10975         features.
10976         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
10977         (IWMMXT2_BUILTIN): Likewise.
10978         (IWMMXT2_BUILTIN2): Likewise.
10979         (FP_BUILTIN): Likewise.
10980         (CRC32_BUILTIN): Likewise.
10981         (CRYPTO_BUILTIN): Likewise.
10982         (iwmmx_mbuiltin): Likewise.
10983         (iwmmx2_mbuiltin): Likewise.
10984         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
10985         struct builtin_description.
10987 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
10989         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
10990         (struct builtin_description): Change type of mask to unsigned
10991         long.
10992         * config/arm/arm-protos.h (insn_flags): Declare as type
10993         arm_feature_set.
10994         (tune_flags): Likewise.
10995         * config/arm/arm.c (feature_count): New.
10996         (insn_flags): Define as type arm_feature_set.
10997         (tune_flags): Likewise.
10998         (struct processors): Define field flags as type arm_feature_set.
10999         (all_cores): Update for change to struct processors.
11000         (all_architectures): Likewise.
11001         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11002         macros.
11003         (arm_option_override_internal): Likewise.
11004         (arm_option_override): Likewise.
11006 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11007             Jiong Wang  <jiong.wang@arm.com>
11009         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11010         tls size for tiny, small, large memory model.
11011         (aarch64_load_symref_appropriately): Support new symbol types.
11012         (aarch64_expand_mov_immediate): Likewise.
11013         (aarch64_print_operand): Likewise.
11014         (aarch64_classify_tls_symbol): Likewise.
11015         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11016         (aarch64_symbol_type): Likewise.
11017         * config/aarch64/aarch64.md (tlsle): Deleted.
11018         (tlsle12_<mode>): New define_insn.
11019         (tlsle24_<mode>): Likewise.
11020         (tlsle32_<mode>): Likewise.
11021         (tlsle48_<mode>): Likewise.
11022         * doc/sourcebuild.texi (AArch64-specific attributes): Document
11023         "aarch64_tlsle32".
11025 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11027         * config/arm/arm-protos.h (FL_NONE): New.
11028         (FL_ANY): New.
11029         (arm_feature_set): New.
11030         (ARM_FSET_MAKE): New.
11031         (ARM_FSET_MAKE_CPU1): New.
11032         (ARM_FSET_MAKE_CPU2): New.
11033         (ARM_FSET_CPU1): New.
11034         (ARM_FSET_CPU2): New.
11035         (ARM_FSET_EMPTY): New.
11036         (ARM_FSET_ANY): New.
11037         (ARM_FSET_HAS_CPU1): New.
11038         (ARM_FSET_HAS_CPU2): New.
11039         (ARM_FSET_HAS_CPU): New.
11040         (ARM_FSET_ADD_CPU1): New.
11041         (ARM_FSET_ADD_CPU2): New.
11042         (ARM_FSET_DEL_CPU1): New.
11043         (ARM_FSET_DEL_CPU2): New.
11044         (ARM_FSET_UNION): New.
11045         (ARM_FSET_INTER): New.
11046         (ARM_FSET_XOR): New.
11047         (ARM_FSET_EXCLUDE): New.
11048         (AFM_FSET_IS_EMPTY): New.
11049         (ARM_FSET_CPU_SUBSET): New.
11051 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11053         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11054         SYMBOL_TLSLE to SYMBOL_TLSLE24.
11055         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11056         Likewise.
11057         (aarch64_expand_mov_immediate): Likewise.
11058         (aarch64_print_operand): Likewise.
11059         (aarch64_classify_symbol): Likewise.
11061 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
11063         * config/aarch64/aarch64.opt (mtls-size): New entry.
11064         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11065         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11066         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11068 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
11070         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11071         ARM_CORE entry.  Fix some white-space.
11072         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11073         ARM_CORE definition.
11075 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11077         * fold-const.c (fold_binary_loc) : Move Optimize
11078         root(x)*root(y) as root(x*y) to match.pd.
11079         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11080         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11081         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11082         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11083         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11084         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11085         (mult (exps:s @0) (exps:s @1)) : New simplifier.
11086         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11087         (rdiv @0 (exps:s @1)) : New simplifier.
11089 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
11091         * gcc.c (driver::finalize): Only assign to extra_specs if
11092         [EXTRA_SPECS].
11094 2015-08-25  Marek Polacek  <polacek@redhat.com>
11096         PR middle-end/67330
11097         * varasm.c (declare_weak): Return after giving an error.
11099 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
11101         * gcc-main.c (main): Add params to driver ctor.
11102         * gcc.c (class env_manager): New.
11103         (env): New global.
11104         (env_manager::init): New.
11105         (env_manager::get): New.
11106         (env_manager::xput): New.
11107         (env_manager::restore): New.
11108         Poison getenv and putenv.
11109         (DEFAULT_TARGET_SYSTEM_ROOT): New.
11110         (target_system_root): Update initialization to use
11111         DEFAULT_TARGET_SYSTEM_ROOT.
11112         (struct spec_list): Add field "default_ptr".
11113         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11114         (init_spec): Likewise.
11115         (set_spec): Clear field "default_ptr".
11116         (read_specs): Free "spec" and "buffer".
11117         (xputenv): Reimplement in terms of env_manager.
11118         (process_command): Replace ::getenv calls with calls to the
11119         env_manager singleton.
11120         (process_brace_body): Free string in three places.
11121         (driver::driver): New.
11122         (driver::~driver): New.
11123         (used_arg): Convert from a function to...
11124         (class used_arg_t): ...this class, and...
11125         (used_arg): ...this new global instance.
11126         (used_arg_t::finalize): New function.
11127         (getenv_spec_function): Add "const" to local "value".  Replace
11128         ::getenv call with call to the env_manager singleton.
11129         (path_prefix_reset): New function.
11130         (driver::finalize): New function.
11131         * gcc.h (driver::driver): New.
11132         (driver::~driver): New.
11133         (driver::finalize): New.
11135 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11137         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11138         target doesn't have one.
11140 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11142         PR target/67346
11143         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11145 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
11147         PR target/67344
11148         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11149         a define_insn, remove second alternative.
11151 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
11152             Joseph Myers  <joseph@codesourcery.com>
11154         * gcc.c (struct switchstr): Expand comment.
11156 2015-08-25  Nathan Sidwell  <nathan@acm.org>
11158         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11159         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11161 2015-08-25  Richard Biener  <rguenther@suse.de>
11163         PR middle-end/67306
11164         * genmatch.c (expr::gen_transform): Verify the result of
11165         builtin_decl_implicit.
11166         (dt_simplify::gen_1): Likewise.
11168 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11170         * config/arm/constraints.md: Also list Cs and US ARM-specific
11171         constraints as used.
11173 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11175         PR target/66609
11176         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11177         UNSPEC_PCREL.
11178         (nonpic_symbol_mentioned_p): Likewise.
11179         (sh_delegitimize_address): Likewise.
11180         (sh_function_ok_for_sibcall): Take into account weak symbols.
11181         (sh_expand_sym_label2reg): New.
11182         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11183         * config/sh/sh.md (UNSPEC_PCREL): New enum.
11184         (call_pcrel): Use sh_expand_sym_label2reg.
11185         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11186         (symPCREL_label2reg) New expand.
11188 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11190         * graphite-poly.c: Change type of region from void* to sese.
11191         * graphite-poly.h (struct scop): Changing the type of scop::region
11192         from void* to sese. Change accessor macro accordingly.
11193         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11195 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
11197         * graphite-scop-detection.c (stmt_simple_for_scop_p):
11198         Constrain only on INTEGER_TYPE.
11200 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11202         PR target/67211
11203         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11204         -mefficient-unaligned-vsx on ISA 2.7.
11206         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11207         option to a masked option.
11209         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11210         logic for -mefficient-unaligned-vsx so that it is set via an arch
11211         ISA option, instead of being set if -mtune=power8 is set. Move
11212         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11213         near other default option handling.
11215 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11217         * genflags.c (gen_macro): Delete.
11218         (gen_proto): Don't create GEN.*CALL.* macros.
11219         * gensupport.h (get_file_location): Declare.
11220         * gensupport.c (rtx_locs): New variable.
11221         (read_md_rtx): Record rtx locations.
11222         (get_file_location): New function.
11223         * target-insns.def (call, call_pop, call_value, call_value_pop)
11224         (sibcall, sibcall_value): New patterns.
11225         * gentarget-def.c (parse_argument): New function.
11226         (def_target_insn): Use it.  Handle optional operands.  Raise an
11227         error if an .md pattern has the wrong number of operands for the
11228         pattern name.  Remove the names of unused operands from the prototype.
11229         * builtins.c (expand_builtin_apply): Use targetm functions
11230         instead of HAVE_call_value and GEN_CALL_VALUE.
11231         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
11232         and sibcall_value_pop.
11233         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11234         of GEN_CALL.
11235         * config/alpha/alpha.md (untyped_call): Likewise.
11236         * config/iq2000/iq2000.md (untyped_call): Likewise.
11237         * config/m68k/m68k.md (untyped_call): Likewise.
11238         * config/mips/mips.md (untyped_call): Likewise.
11239         * config/pa/pa.md (untyped_call): Likewise.
11240         * config/rs6000/rs6000.md (untyped_call): Likewise.
11241         * config/sparc/sparc.md (untyped_call): Likewise.
11242         * config/tilegx/tilegx.md (untyped_call): Likewise.
11243         * config/tilepro/tilepro.md (untyped_call): Likewise.
11244         * config/visium/visium.md (untyped_call): Likewise.
11245         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11246         gen_call_value instead of GEN_CALL_VALUE.
11247         * config/arm/arm.md (untyped_call): Likewise.
11248         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11249         GEN_CALL.
11251 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11253         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11254         (have_cbranchcc4): New variable.
11255         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11256         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11257         (if_convert): Initialize have_cbranchcc4.
11259 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11261         * builtins.c (expand_cmpstrn): Rename to...
11262         (expand_cmpstrn_or_cmpmem): ...this.
11263         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11264         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11265         Remove mode argument.
11266         (expand_builtin): Update accordingly.
11268 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11270         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11271         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
11272         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11273         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11274         Add predicates for operands 0 and 3.
11275         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11276         operand.
11277         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11278         immediate_operand to nonmemory_operand.
11280 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11282         * df-scan.c (df_insn_info_init_fields): New function, split out
11283         from...
11284         (df_insn_create_insn_record): ...here.
11285         (df_insn_info_free_fields): New function, split out from...
11286         (df_insn_info_delete): ...here.
11287         (df_insn_rescan): Use the new functions instead of freeing and
11288         reallocating the df_insn_info.
11290 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11292         * doc/install.texi (Binaries): Remove links no longer valid.
11294 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
11296         * config/nvptx/mkoffload.c (process): Replace
11297         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11299 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
11301         PR target/67329
11302         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11304 2015-08-24  Renlin Li  <renlin.li@arm.com>
11306         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11307         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11308         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11309         * config/arm/constraints.md ("j"): Add check for high code.
11311 2015-08-24  Tom de Vries  <tom@codesourcery.com>
11313         PR tree-optimization/65468
11314         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11315         chunk_size is one.
11317 2015-08-24  Nathan Sidwell  <nathan@acm.org>
11319         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11320         change to nvptx_type_from_mode call. Use arg_promotion for both
11321         split and non-split args.
11323 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11325         * target-insns.def (movstr): New pattern.
11326         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11327         (expand_movstr): Use targetm rather than HAVE_movstr/
11328         CODE_FOR_movstr.
11330 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
11332         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11333         cast syntax.
11335 2015-08-24  Andrew Pinski  <apinski@cavium.com>
11337         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11338         AARCH64_EXTRA_TUNING_OPTION.
11339         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11340         New enum.
11341         (aarch64_extra_tuning_flags): Base the shifted value on the index
11342         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11343         * config/aarch64/aarch64.c: Remove the last argument to
11344         AARCH64_EXTRA_TUNING_OPTION.
11346 2015-08-23  Nathan Sidwell  <nathan@acm.org>
11348         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11349         decls.
11350         (nvptx_declare_function_name): Insert formatting tabs for
11351         consistency.
11353 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11355         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11356         parm_decl, rather than generating a dummy default def in cfun.
11357         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
11358         ssa_name from cfun and child_fn do not share a stmt as def stmt.
11359         (move_stmt_op): Handle PARM_DECl.
11360         (gather_ssa_name_hash_map_from): New function.
11361         (move_sese_region_to_fn): Add default defs for function params, and add
11362         them to vars_map.  Release copied ssa names.
11363         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11365 2015-08-23  Tom de Vries  <tom@codesourcery.com>
11367         * doc/sourcebuild.texi: Rename vect_no_int_max with
11368         vect_no_int_min_max.  Update description.
11370 2015-08-22  Andrew Pinski  <apinski@cavium.com>
11372          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11373         * config/aarch64/aarch64-protos.h
11374         (aarch64_fusion_pairs_index): New enum.
11375         (aarch64_fusion_pairs): Base the shifted value on the index instead
11376         Rewrite AARCH64_FUSE_ALL to be based on the end index.
11377         of the argument to AARCH64_FUSION_PAIR.
11378         * config/aarch64/aarch64.c: Remove the last argument to
11379         AARCH64_FUSION_PAIR.
11381 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
11383         * dominance.c (new_zero_array): Define.
11384         (dom_info): Redefine as class with proper encapsulation.
11385         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11386         Add new members.
11387         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
11388         allocations/deallocations.  Pass function as parameter (instead of
11389         using cfun).
11390         (dom_info::get_idom): Define accessor method.
11391         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11392         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
11393         (calculate_dominance_info): Adjust to use dom_info class.
11394         (verify_dominators): Likewise.
11396 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
11398         * print-rtl.c (print_rtx): Check the correct range for
11399         flag_dump_unnumbered_links to behave as documented.
11401         PR rtl-optimization/67227
11402         PR rtl-optimization/64164
11403         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11404         (nonoverlapping_memrefs_p): Test offsets and sizes when given
11405         identical gimple_reg exprs.
11407 2015-08-21  Nathan Sidwell  <nathan@acm.org>
11409         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11410         expansion.
11411         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11412         crtl->stack_alignment_needed to determine alignment.
11413         (nvptx_get_drap_rtx): New.
11414         (TARGET_GET_DRAP_RTX): Override.
11415         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11417 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11419         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11421 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11423         * configure.ac: Remove uwin* cases.
11424         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11425         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11426         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11427         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11428         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11429         i[34567]86-*-uwin*, powerpc-*-beos*.
11431 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
11433         * gencodes.c (gencodes): Print the comma for the preceding
11434         enum value rather than the current one.  Use aliased enum values
11435         rather than #defines for compiled-out patterns.
11436         (main): Update accordingly.  Replace LAST_INSN_CODE with
11437         NUM_INSN_CODES.
11438         * lra.c (insn_code_data): Update accordingly.
11439         (finish_insn_code_data_once, get_static_insn_data): Likewise.
11440         * recog.h (target_recog): Likewise.
11441         (preprocess_insn_constraints): Change parameter to unsigned int.
11442         * recog.c (preprocess_insn_constraints): Likewise.
11443         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11444         * tree-vect-stmts.c (vectorizable_operation): Simplify.
11446 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11448         PR rtl-optimization/61657
11449         * loop-iv.c (iv_number_of_iterations): Declare up and down as
11450         unsigned.  Remove superflous uint64_t cast.
11452 2014-08-21  Felix Yang  <felix.yang@huawei.com>
11453             Jiji Jiang  <jiangjiji@huawei.com>
11455         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11456         argument and get builtin function code directly from CALL.
11457         (gimple_stringop_fixed_value): Modified accordingly.
11458         (gimple_stringops_transform, gimple_stringops_values_to_profile):
11459         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11461 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11463         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11465 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11467         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11468         to match.pd.
11469         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11470         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11471         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11472         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11473         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11474         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11475         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11476         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11477         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11478         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11480         * match.pd (SIN ) : New Operator.
11481         (TAN) : New Operator.
11482         (mult (SQRT@1 @0) @1) : New simplifier.
11483         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11484         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11485         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11486         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11487         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11488         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11489         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11490         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11491         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11492         (rdiv @0 (POW:s @1 @2)) : New simplifier.
11494 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
11496         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11497         loop if EXPR is simplified to const value.
11499 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
11501         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11502         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11504 2015-08-21  Richard Biener  <rguenther@suse.de>
11506         PR middle-end/67285
11507         * gimple-fold.c (replace_stmt_with_simplification): Assert
11508         seq is empty when replacing a call with itself but different
11509         arguments.
11510         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11511         a call require that it is const.
11513 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11515         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11516         * builtins.c (get_object_alignment_2): Adjust.
11517         * varasm.c (align_variable): Likewise.
11518         (get_variable_align): Likewise.
11519         (build_constant_desc): Likewise.
11520         (force_const_mem): Likewise.
11521         * doc/tm.texi.in: Likewise.
11522         * doc/tm.texi: Regenerate.
11524 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11526         * genconfig.c (main): Always define HAVE_cc0.
11527         * recog.c (rest_of_handle_peephole2): Adjust.
11529 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11531         * reorg.c (relax_delay_slots): Don't use #if to check value of
11532         HAVE_cc0.
11534 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11536         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11537         * targhooks.c (default_have_conditional_execution): Adjust.
11539 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11541         * rtl.h (rtvec_all_equal_p): Declare.
11542         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11543         * rtl.c (rtvec_all_equal_p): New function.
11544         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11545         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11546         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11547         * config/arm/arm.c (neon_vdup_constant): Likewise.
11548         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11549         * config/tilegx/constraints.md (W, Y): Likewise.
11550         * config/tilepro/constraints.md (W, Y): Likewise.
11551         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11552         (classify_immediate): Use unwrap_const_vec_duplicate.
11553         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11554         (reg_or_v2s8bit_operand): Likewise.
11555         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11556         (reg_or_v4s8bit_operand): Likewise.
11558 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11560         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11561         (vec_shasigma_be): New #define.
11562         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11563         (VPMSUMH): Likewise.
11564         (VPMSUMW): Likewise.
11565         (VPMSUMD): Likewise.
11566         (VPMSUM): New BU_P8V_OVERLOAD_2.
11567         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11568         entries for VEC_MADD and VEC_VPMSUM.
11570 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
11572         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11573         Multiply argument avr_n_flash by 64 to match unit of "KiB".
11574         (avr_pgm_check_var_decl): Same.
11576 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
11578         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11579         initialization of HFmode scalar type (float16_t) to...
11580         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11581         code.
11583         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11585         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11586         having an -mfp16-format.
11588 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
11590         * config/i386/predicates.md (vector_all_ones_operand): Use
11591         CONSTM1_RTX to simplify definition.
11593 2015-08-20  Richard Biener  <rguenther@suse.de>
11595         * toplev.c (compile_file): Remove loop calling late_global_decl
11596         on all symbols.
11597         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11598         on decls we assembled.
11600 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
11602         * common/config/aarch64/aarch64-common.c
11603         (AARCH64_CPU_NAME_LENGTH): Delete.
11604         (aarch64_option_extension): New.
11605         (all_extensions): Likewise.
11606         (processor_name_to_arch): Likewise.
11607         (arch_to_arch_name): Likewise.
11608         (all_cores): New.
11609         (all_architectures): Likewise.
11610         (aarch64_get_extension_string_for_isa_flags): Likewise.
11611         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11612         architecture names.
11613         * config/aarch64/aarch64-protos.h
11614         (aarch64_get_extension_string_for_isa_flags): New.
11615         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11616         (aarch64_option_print): Get the string to print from
11617         aarch64_get_extension_string_for_isa_flags.
11618         (aarch64_declare_function_name): Likewise.
11619         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11620         (MCPU_TO_MARCH_SPEC): This.
11621         (ASM_CPU_SPEC): Use it.
11622         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11623         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11624         (EXTRA_SPEC_FUNCTIONS): Use it.
11626 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
11628         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11629         expansion when !ISA_HAS_LWL_LWR.
11630         (mips_block_move_straight): Update the size of elements copied to
11631         account for alignment when !ISA_HAS_LWL_LWR.
11632         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11634 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
11636         * expr.c (expand_expr_real_2): Check gimple statement during
11637         LSHIFT_EXPR expand.
11639 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
11641         * common.opt (fstack-protector): Initialize to -1.
11642         (fstack-protector-all): Likewise.
11643         (fstack-protector-strong): Likewise.
11644         (fstack-protector-explicit): Likewise.
11645         * configure.ac: Add --enable-default-ssp.
11646         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
11647         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11648         -1.
11649         * doc/install.texi: Document --enable-default-ssp.
11650         * config.in: Regenerated.
11651         * configure: Likewise.
11653 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
11655         PR rtl-optimization/64164
11656         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11657         (parm_in_stack_slot_p): ... this.  Disregard mode, what
11658         matters is whether the parm will live in a pseudo or a stack
11659         slot.
11660         (expand_one_ssa_partition): Deal with params without a default
11661         def.  Disregard mode.
11662         * cfgexpand.h: Renamed function declaration.
11663         * tree-ssa-coalesce.c: Adjust.
11664         * function.c (split_complex_args): Allocate stack slot for
11665         unassigned parms before splitting.
11666         (parm_in_unassigned_mem_p): New.  Use it instead of
11667         parm_maybe_byref_p throughout this file.
11668         (assign_parm_setup_block): Use it.  Accept pseudos in the
11669         expand-assigned rtl.
11670         (assign_parm_setup_reg): Drop BLKmode requirement.
11671         (assign_parm_setup_stack): Allocate and fill in the address of
11672         unassigned MEM parms.
11674 2015-08-19  David Sherwood  <david.sherwood@arm.com>
11676         * genmodes.c (emit_mode_unit_size_inline): New function.
11677         (emit_mode_unit_precision_inline): New function.
11678         (emit_insn_modes_h): Emit new #define.  Emit new functions.
11679         (emit_mode_unit_size): New function.
11680         (emit_mode_unit_precision): New function.
11681         (emit_mode_adjustments): Add mode_unit_size adjustments.
11682         (emit_insn_modes_c): Emit new arrays.
11683         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11684         use new inline methods.
11686 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11688         * config/aarch64/aarch64.c (bit_count): Delete prototype
11689         and definition.
11690         (aarch64_print_operand): Use popcount_hwi instead of the above.
11692 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11694         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11695         comment.
11697 2015-08-19  Marek Polacek  <polacek@redhat.com>
11699         PR middle-end/67133
11700         * gimple-ssa-isolate-paths.c
11701         (insert_trap_and_remove_trailing_statements): Rename to ...
11702         (insert_trap): ... this.  Don't remove trailing statements; split
11703         block instead.
11704         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11706 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
11708         PR other/67042
11709         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11710         conditionalize the whole on __GNUC__.  Add fallback code
11711         depending neither on undefined nor implementation-defined behaviour.
11713 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
11715         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11716         whitespaces with tab.
11718 2015-08-19  Florian Weimer  <fweimer@redhat.com>
11720         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11721         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11722         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11723         Move Name_Ids instantiation to the Prj.Proc package, to avoid
11724         trampolines.
11726 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11728         * config/arm/arm.c (bounds_check): Use %wd print format
11729         for HOST_WIDE_INT arguments.
11731 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
11733         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11734         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11735         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11736         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11737         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11738         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11739         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11740         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11741         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11742         typedefs.
11744 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
11746         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11747         function.c, graphite-scop-detection.c, haifa-sched.c,
11748         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11749         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11750         varasm.c: Remove typedefs of structs.
11752 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
11754         * config/rs6000/altivec.h (vec_adde): New define.
11755         (vec_addec): Likewise.
11756         (vec_double): Likewise.
11757         (vec_bperm): Likewise.
11758         (vec_gb): Likewise.
11759         * config/rs6000/rs6000-builtin.def (ADDE): New
11760         BU_ALTIVEC_OVERLOAD_3.
11761         (ADDEC): Likewise.
11762         (DOUBLE): New BU_VSX_OVERLOAD_1.
11763         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11764         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11765         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11766         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11767         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11768         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11769         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11770         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11771         and P8V_BUILTIN_VEC_VBPERMQ.
11773 2015-08-18  Jason Merrill  <jason@redhat.com>
11775         * print-tree.c (print_node): Handle TREE_BINFO.
11777 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11779         PR middle-end/36757
11780         * builtins.c (expand_builtin_signbit): Add asserts to make sure
11781         we can expand BUILT_IN_SIGNBIT inline.
11782         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
11783         * doc/extend.texi: Document the type-generic __builtin_signbit.
11785 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
11787         PR rtl-optimization/67218
11788         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
11789         (simplify_unary_operation_1): Use it.
11791 2015-08-18  Marek Polacek  <polacek@redhat.com>
11793         PR middle-end/67222
11794         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
11795         if the call isn't valid.
11796         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
11797         gimple_call_builtin_p.
11798         (call_may_clobber_ref_p_1): Likewise.
11799         (stmt_kills_ref_p): Likewise.
11801 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
11803         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
11804         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
11805         (mips_hard_regno_scratch_ok): Likewise.
11806         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
11807         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
11809 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
11811         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
11812         (determine_value_range): Call refine_value_range_using_guard for
11813         each loop initial condition to improve value range.
11815 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
11817         * config/i386/i386.c: Remove include of fibheap.h.
11819 2015-08-17  Richard Biener  <rguenther@suse.de>
11821         PR tree-optimization/67221
11822         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
11823         (sccvn_dom_walker::before_dom_children): Mark backedges of
11824         non-executable blocks as not executable.
11826 2015-08-17  David Sherwood  <david.sherwood@arm.com>
11828         * config/arm/arm.c (neon_element_bits): Replace call to
11829         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
11830         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
11831         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
11832         (neon_vdup_lane<mode>): Likewise.
11833         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
11834         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
11835         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
11836         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
11837         * config/spu/spu.c (arith_immediate_p): Likewise.
11838         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11839         * expr.c (expand_expr_real_2): Likewise.
11840         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
11841         * simplify-rtx.c (simplify_immed_subreg): Likewise.
11842         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11843         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
11844         New variable.
11845         * fold-const.c (fold_binary_loc): Replace call to
11846         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
11847         GET_MODE_UNIT_PRECISION (m).
11849 2015-08-17  Mike Stump  <mikestump@comcast.net>
11851         * config/arm/arm.c (arm_block_move_unaligned_straight):
11852         Emit normal move instead of unaligned load when source or destination
11853         are appropriately aligned.
11855 2015-08-17  Richard Biener  <rguenther@suse.de>
11856             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11858         PR middle-end/16107
11859         * match.pd (div (coss (op @0) : New simplifier.
11861 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
11863         PR rtl-optimization/64164
11864         PR bootstrap/66978
11865         PR middle-end/66983
11866         PR rtl-optimization/67000
11867         PR middle-end/67034
11868         PR middle-end/67035
11869         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11870         * tree-ssa-copyrename.c: Removed.
11871         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11872         -ftree-coalesce-vars.
11873         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11874         * common.opt (ftree-copyrename): Ignore.
11875         (ftree-coalesce-inlined-vars): Likewise.
11876         * doc/invoke.texi: Remove the ignored options above.
11877         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11878         * tree-ssa-coalesce.h: ... here.
11879         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11880         headers required by it.
11881         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11882         across variables when flag_tree_coalesce_vars.  Check register
11883         use and promoted modes to allow coalescing.  Do not coalesce
11884         maybe-byref parms with SSA_NAMEs of other variables, or
11885         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
11886         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11887         with its member functions to tree-ssa-coalesce.c.
11888         (var_map_base_init): Likewise.  Renamed to
11889         compute_samebase_partition_bases.
11890         (partition_view_normal): Drop want_bases parameter.
11891         (partition_view_bitmap): Likewise.
11892         * tree-ssa-live.h: Adjust declarations.
11893         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
11894         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11895         default defs at the entry point.
11896         (dump_part_var_map): New.
11897         (compute_optimized_partition_bases): New, called by...
11898         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11899         of compute_samebase_partition_bases.  Adjust.
11900         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11901         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
11902         (ssa_default_def_partition): New.
11903         (get_rtl_for_parm_ssa_default_def): New.
11904         (align_local_variable, add_stack_var): Support anonymous SSA
11905         names.
11906         (defer_stack_allocation): Likewise.  Declare earlier.
11907         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11908         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11909         Do no record deferred-allocation marker in
11910         SA.partition_to_pseudo.
11911         (expand_stack_vars): Adjust check for the marker in it.
11912         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11913         redundant MEM attr setting.
11914         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11915         from...
11916         (expand_one_stack_var): ... this.  New wrapper to check and
11917         skip already expanded SSA partitions.
11918         (record_alignment_for_reg_var): New, factored out of...
11919         (expand_one_var): ... this.
11920         (expand_one_ssa_partition): New.
11921         (adjust_one_expanded_partition_var): New.
11922         (expand_one_register_var): Check and skip already expanded SSA
11923         partitions.
11924         (expand_used_vars): Don't create DECLs for anonymous SSA
11925         names.  Expand all SSA partitions, then adjust all SSA names.
11926         (pass::execute): Replace the loops that set
11927         SA.partition_to_pseudo from partition leaders and cleared
11928         DECL_RTL for multi-location variables, and that which used to
11929         rename vars and set attrs, with one that clears DECL_RTL and
11930         checks that PARMs and RESULTs default_defs match DECL_RTL.
11931         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11932         * emit-rtl.c: Include stor-layout.h.
11933         (set_reg_attrs_for_parm): Handle NULL decl.
11934         (set_reg_attrs_for_decl_rtl): Take mode from expression if
11935         it's not a DECL.
11936         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
11937         rather than its possibly-NULL DECL.
11938         * explow.c (promote_ssa_mode): New.
11939         * explow.h (promote_ssa_mode): Declare.
11940         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11941         (read_complex_part): Export.
11942         * expr.h (read_complex_part): Declare.
11943         * cfgexpand.h (parm_maybe_byref_p): Declare.
11944         * function.c: Include cfgexpand.h.
11945         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11946         (use_register_for_parm_decl): Wrapper for the above to
11947         special-case the result_ptr.
11948         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11949         (split_complex_args): Take assign_parm_data_all argument.
11950         Pass it to rtl_for_parm.  Set up rtl and context for split
11951         args.  Reset complex parm before fetching its default decl
11952         rtl.
11953         (assign_parms_unsplit_complex): Use the default-def complex
11954         parm rtl if it matches the components.
11955         (assign_parms_augmented_arg_list): Adjust.
11956         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11957         multiple locations.  Recognize split complex args.
11958         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11959         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11960         (assign_parm_setup_block): Prefer SSA-assigned location, and
11961         fill in its address if the memory location of a maybe-byref
11962         parm was not assigned by cfgexpand.
11963         (assign_parm_setup_reg): Likewise.  Adjust its mode as
11964         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
11965         sure passed_pointer parms don't need conversion.  Copy address
11966         or value as needed.
11967         (assign_parm_setup_stack): Prefer SSA-assigned location.
11968         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11969         rtl before testing for pointer bounds.  Special-case result_ptr.
11970         (expand_function_start): Maybe reset DECL_RTL of result.
11971         Prefer SSA-assigned location for result and static chain.
11972         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
11973         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
11974         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11975         anonymous SSA names.  Use promote_ssa_mode.
11976         (get_temp_reg): Likewise.
11977         (remove_ssa_form): Adjust.
11978         * stor-layout.c (layout_decl): Don't set mem attributes of
11979         non-MEMs.
11980         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11981         and get its reg_usage for reg invalidation.
11982         (compute_bb_dataflow): Pass it insn.
11983         (emit_notes_in_bb): Likewise.
11985 2015-08-14  Marek Polacek  <polacek@redhat.com>
11987         * tree-core.h (tree_base): Fix typo.
11989 2015-08-14  Marek Polacek  <polacek@redhat.com>
11991         PR middle-end/67133
11992         * gimple.c (infer_nonnull_range_by_attribute): Check that the
11993         nonnull argument position is not outside function arguments.
11995 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
11997         PR target/67143
11998         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
11999         'lconst_atomic' with 'const_atomic'.
12000         (atomic_fetch_<optab><mode>): Likewise.
12001         (atomic_<optab>_fetch<mode>): Likewise.
12002         * config/aarch64/iterators.md (lconst-atomic): Move below
12003         'const_atomic'.
12004         (const_atomic): New.
12006 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
12007             Bernd Schmidt  <bernds@codesourcery.com>
12009         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12010         debug options.
12011         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12012         (DWARF2_DEBUGGING_INFO): Don't define.
12013         * debug.h (dwarf2_lineno_debug_hooks): Declare.
12014         * toplev.c (process_options): Add a case for it.
12015         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12016         (dwarf2out_init): Skip most initializations if
12017         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12018         case.
12019         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12020         DWARF2_LINENO_DEBUGGING_INFO.
12021         * opts.c (set_debug_level): Likewise.
12023 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
12025         * config/arm/types.md (is_neon_type): Add missing types.
12027 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12029         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12030         for skylake.
12031         * config/i386/i386.c (PTA_SKYLAKE): New macros.
12032         (processor_alias_table): Add skylake description.
12033         (enum processor_model): Add skylake processor.
12034         (arch_names_table): Add skylake record.
12035         * doc/invoke.texi: Add skylake item.
12037 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
12039         * ira-int.h: Include recog.h.
12040         * ira-build.c: Don't include recog.h.
12041         * ira-color.c: Likewise.
12042         * ira-conflicts.c: Likewise.
12043         * ira-costs.c: Likewise.
12044         * ira-emit.c: Likewise.
12045         * ira-lives.c: Likewise.
12046         * ira.c: Likewise.
12047         * sched-deps.c: Likewise.
12048         * sel-sched.c: Likewise.
12049         * target-globals.c: Likewise.
12051 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12053         PR bootstrap/55035
12054         * reload1.c (elimination_costs_in_insn): Make it obvious to the
12055         compiler that the n_dups and n_operands loop bounds are invariant.
12057 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12059         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12060         expressions in A and B.
12062 2015-08-13  Richard Biener  <rguenther@suse.de>
12064         * tree.c (nonnull_arg_p): Move from ...
12065         * tree-vrp.c (nonnull_arg_p): ... here.
12066         * tree.h (nonnull_arg_p): Declare.
12067         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12068         here, register ptr != 0 for nonnull_arg_p pointer arguments.
12069         Properly initialize static chain and by-reference result pointer.
12070         (run_scc_vn): Adjust.
12072 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12074         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12075         TUNE_I6400.
12077 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12079         * config/aarch64/aarch64-protos.h
12080         (aarch64_gen_atomic_cas): Declare.
12081         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12082         Choose appropriate instruction pattern for the target.
12083         (aarch64_gen_atomic_cas): New.
12084         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12085         (atomic_compare_and_swap<mode>_1): Rename to
12086         aarch64_compare_and_swap<mode>.  Fix some indentation.
12087         (aarch64_compare_and_swap<mode>_lse): New.
12088         (aarch64_atomic_cas<mode>): New.
12090 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
12092         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12093         (TARGET_LSE): New.
12095 2015-08-13  Richard Biener  <rguenther@suse.de>
12097         PR tree-optimization/67191
12098         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12099         assert we value-numbered last stmts operand because it can validly
12100         trigger for unreachable code.
12102 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12104         PR rtl-optimization/67103
12105         * ifcvt.c (noce_try_store_flag_constants): Move
12106         x = (-(test != 0) & (b - a)) + a transformation to...
12107         (noce_try_cmove): ... Here.  Try it if normal conditional
12108         move fails.
12110 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
12112         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12113         pseudo-processors.
12114         * config/mips/mips.md (processor): Remove w32 and w64.
12116 2015-08-13  Richard Biener  <rguenther@suse.de>
12118         PR tree-optimization/66502
12119         PR tree-optimization/67167
12120         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12121         backedge arguments.
12122         (vn_phi_lookup): Adjust.
12123         (vn_phi_insert): Likewise.
12124         (visit_phi): Prefer to value-number to another PHI node
12125         over value-numbering to a PHI argument.
12126         (init_scc_vn): Mark DFS back edges.
12128 2015-08-13  Richard Biener  <rguenther@suse.de>
12130         * gimple.h (gcall::code_): New constant static member.
12131         (gcond::code_): Likewise.
12132         * gimple.c (gcall::code_): Define.
12133         (gcond::code_): Likewise.
12134         (is_a_helper <const gcond *>): Add.
12135         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12136         and forward to a new gcall overload with less checking and a
12137         cheaper way to access the operand.
12138         (gimple_call_lhs_ptr): Likewise.
12139         (gimple_call_set_lhs): Likewise.
12140         (gimple_call_internal_p): Likewise.
12141         (gimple_call_with_bounds_p): Likewise.
12142         (gimple_call_set_with_bounds): Likewise.
12143         (gimple_call_internal_fn): Likewise.
12144         (gimple_call_set_ctrl_altering): Likewise.
12145         (gimple_call_ctrl_altering_p): Likewise.
12146         (gimple_call_fntype): Likewise.
12147         (gimple_call_fn): Likewise.
12148         (gimple_call_fn_ptr): Likewise.
12149         (gimple_call_set_fndecl): Likewise.
12150         (gimple_call_fndecl): Likewise.
12151         (gimple_call_chain): Likewise.
12152         (gimple_call_num_args): Likewise.
12153         (gimple_call_arg): Likewise.
12154         (gimple_call_arg_ptr): Likewise.
12155         (gimple_call_set_arg): Likewise.
12156         (gimple_call_noreturn_p): Likewise.
12157         (gimple_cond_code): Likewise.
12158         (gimple_cond_lhs): Likewise.
12159         (gimple_cond_rhs): Likewise.
12160         (gimple_has_lhs): Reduce checking.
12162 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12164         PR middle-end/25529
12165         * match.pd (div (mult @0 @1) @1) : New simplifier.
12167 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12169         PR target/67071
12170         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12171         predicate to allow construction of vector constants using the
12172         VSLDOI vector shift instruction.
12174         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12175         declaration.
12177         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12178         the number of bytes to be shifted left and filled in with either
12179         all zero or all one bits.
12180         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12181         methods exist.
12182         (output_vec_const_move): On power8, generate XXLORC to generate
12183         a vector constant with all 1's. Do a split if we need to use a
12184         VSLDOI instruction.
12186         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12187         properly test for the MSB.
12189         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12190         vector constants that can be created with VSLDOI.
12192 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
12194         revert:
12195         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12196         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12197         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12198         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12199         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12200         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12201         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12202         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12203         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12205 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
12207         * config/xtensa/constraints.md (define_constraint "Y"): New
12208         constraint.
12209         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12210         * config/xtensa/linux.h (ASM_SPEC): Likewise.
12211         * config/xtensa/predicates.md (move_operand): Match constants
12212         and symbols in the presence of TARGET_AUTO_LITPOOLS.
12213         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12214         immediate references to TLS data.
12215         (xtensa_emit_move_sequence): Don't force constants to memory in
12216         the presence of TARGET_AUTO_LITPOOLS.
12217         (print_operand): Add 'y' format, same as default, but capable of
12218         printing SF mode constants as well.
12219         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12220         (movsf_internal): Add movi pattern that loads literal.
12221         (movsf, movdf): Don't force constants to memory in the presence
12222         of TARGET_AUTO_LITPOOLS.
12223         (movdf_internal): Add 'Y' constraint.
12224         * config/xtensa/xtensa.opt (mauto-litpools): New option.
12225         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12227 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12229         * config/arm/arm-fpus.def: Replace booleans with feature flags.
12230         Update comment.
12231         * config/arm/arm.c (ARM_FPU): Update macro.
12232         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12233         (TARGET_FP16): Likewise.
12234         (TARGET_CRYPTO): Likewise.
12235         (TARGET_NEON): Likewise.
12236         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
12237         field features.
12239 2015-08-12  Tom de Vries  <tom@codesourcery.com>
12241         PR other/67092
12242         PR other/67098
12243         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
12244         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12245         accordingly.  Mention default for --with-stage1-ldflags.
12247 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
12249         * config/arm/arm.h (arm_fpu_feature_set): New.
12250         (ARM_FPU_FSET_HAS): New.
12251         (FPU_FL_NONE): New.
12252         (FPU_FL_NEON): New.
12253         (FPU_FL_FP16): New.
12254         (FPU_FL_CRYPTO): New.
12256 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12258         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12259         after -mcmodel=large -fPIC sorry.
12261 2015-08-12  Richard Biener  <rguenther@suse.de>
12263         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12264         comparison operand order and commutative ternary op operand order.
12265         (sccvn_dom_walker::cond_stack): New state to track temporary
12266         expressions.
12267         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12268         no longer valid.
12269         (sccvn_dom_walker::record_cond): Add a single temporary conditional
12270         expression.
12271         (sccvn_dom_walker::record_conds): Add a temporary conditional
12272         expressions and all related expressions also true/false.
12273         (sccvn_dom_walker::before_dom_children): Record temporary
12274         expressions based on the controlling condition of a single
12275         predecessor.  When trying to simplify a conditional statement
12276         lookup expressions we might have inserted earlier.
12278 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
12280         PR target/67127
12281         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12282         to ARM core registers.
12284 2015-08-12  Nathan Sidwell  <nathan@acm.org>
12286         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12287         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12289 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
12291         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12292         line with comments.
12293         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12295 2015-08-12  Richard Biener  <rguenther@suse.de>
12297         * gimple.h (remove_pointer): New trait.
12298         (GIMPLE_CHECK2): New inline template function.
12299         (gassign::code_): New constant static member.
12300         (is_a_helper<const gassign *>): Add.
12301         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12302         and forward to a new gassign overload with less checking and a
12303         cheaper way to access the operand.
12304         (gimple_assign_lhs_ptr): Likewise.
12305         (gimple_assign_set_lhs): Likewise.
12306         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12307         Likewise.
12308         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12309         Likewise.
12310         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12311         Likewise.
12312         (gimple_assign_rhs_code): Likewise.
12313         * gimple.c (gassign::code_): Define.
12315 2015-08-12  Richard Biener  <rguenther@suse.de>
12317         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12318         Eliminate edges marked as not executable by SCCVN.
12319         * tree-ssa-sccvn.c: Include gimple-iterator.h.
12320         (cond_dom_walker): Rename to sccvn_dom_walker.
12321         (sccvn_dom_walker::before_dom_children): Value-number defs
12322         of all stmts.
12323         (run_scc_vn): Remove loop value-numbering all SSA names.
12324         Drop not visited SSA names to varying.
12326 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
12328         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12329         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12330         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12331         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12332         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12333         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12334         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12335         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12336         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12338 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
12340         PR target/66954
12341         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12342         to enum feature_priority and feature_list.
12343         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12344         and isa_names_table.
12346 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
12348         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12349         vect_induction_def.
12351 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12353         PR c/66098
12354         PR c/66711
12355         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12356         account when deciding what was the command-line status.
12358 2015-08-11  Nathan Sidwell  <nathan@acm.org>
12360         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12362         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12363         we're not the only contributor to target phi.
12365 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
12367         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12368         FIXED_REG0.
12370 2015-08-11  Tom de Vries  <tom@codesourcery.com>
12372         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12374 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
12376         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12377         with CPU_SLM.
12378         * config/i386/i386.md (cpu): Remove knl.
12380 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12382         PR libgomp/65742
12383         PR middle-end/66332
12384         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12385         open-coded sequence.
12386         * omp-low.c (oacc_process_reduction_data): Remove handline of
12387         GOMP_DEVICE_HOST_NONSHM.
12389         * lto-streamer-in.c (lto_input_mode_table): Adjust to
12390         GET_MODE_INNER changes.
12392 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12393             Ilya Verbin  <ilya.verbin@intel.com>
12395         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12397 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12399         * doc/options.texi (EnabledBy): Document that the argument must be
12400         a Common option.
12401         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12402         Not enabled by -Wall.
12403         * optc-gen.awk: Give nicer error messages. Detect if the argument
12404         of EnabledBy is not a Common option.
12405         * common.opt (Wnull-dereference): Not enabled by -Wall.
12406         * opt-functions.awk (lang_enabled_by): Nicer error messages.
12408 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12410         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12411         model == 0x4f as Broadwell.
12413 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
12415         PR rtl-optimization/67028
12416         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
12417         Add test to see if a const_int fits in the new mode.
12419 2015-08-07  DJ Delorie  <dj@redhat.com>
12421         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12423 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
12425         PR rtl-optimization/67029
12426         * ira-color.c: Include "recog.h" before including "ira-int.h".
12427         * target-globals.c: Likewise.
12428         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12429         adds an alternative_mask argument and use it instead of
12430         preferred_alternatives.
12431         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12432         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12433         * sched-deps.c: Include "ira-int.h" after including "ira.h".
12434         (sched_analyze_insn): Update call to
12435         ira_implicitly_set_insn_hard_regs.
12436         * sel-sched.c: Include "ira-int.h" after including "ira.h".
12437         (implicit_clobber_conflict_p): Update call to
12438         ira_implicitly_set_insn_hard_regs.
12440 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12442         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12444 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12446         PR target/67002
12447         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12448         currently_expanding_to_rtl is set.
12450 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
12452         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12453         * configure: Regenerate.
12455 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12456             Jiong Wang  <jiong.wang@arm.com>
12458         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12459         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12460         (REG_CLASS_NAMES): Likewise.
12461         (REG_CLASS_CONTENTS): Likewise.
12462         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12463         (aarch64_register_move_cost): Likewise.
12464         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12465         possible.
12466         * config/aarch64/constraints.md (Uc0): New constraint.
12468 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12470         * config/aarch64/constraints.md (Usf): Add the test of
12471         aarch64_is_noplt_call_p.
12473 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
12475         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12476         declaration.
12477         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12478         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12479         (call_symbol): Likewise.
12481 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12483         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12484         for vectorizing multiplication patterns.
12485         * tree-vectorizer.h: Adjust the number of patterns.
12487 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
12489         * config/i386/sse.md (*vec_concatv2df): Declare added
12490         alternatives as sselog type.
12492 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12494         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12495         all GPRs.
12497 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12499         * config/s390/s390.c (s390_expand_tbegin): Expand either
12500         tbegin_1_z13 or tbegin_1 depending on VX flag.
12501         * config/s390/s390.md ("tbegin_1_z13"): New expander.
12503 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12505         * config/s390/s390.opt: Clarify description for -mzvector
12506         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12507         -mzvector.
12509 2015-08-06  Richard Biener  <rguenther@suse.de>
12511         * gimple.h (gimple_call_set_fn): Access op member directly.
12512         (gimple_call_chain_ptr): Likewise.
12513         (gimple_call_set_chain): Likewise.
12514         (gimple_cond_lhs_ptr): Likewise.
12515         (gimple_cond_set_lhs): Likewise.
12516         (gimple_cond_rhs_ptr): Likewise.
12517         (gimple_cond_set_rhs): Likewise.
12518         (gimple_cond_true_label): Likewise.
12519         (gimple_cond_set_true_label): Likewise.
12520         (gimple_cond_set_false_label): Likewise.
12521         (gimple_cond_false_label): Likewise.
12522         (gimple_label_label): Likewise.
12523         (gimple_label_set_label): Likewise.
12524         (gimple_goto_set_dest): Likewise.
12525         (gimple_asm_input_op): Likewise.
12526         (gimple_asm_input_op_ptr): Likewise.
12527         (gimple_asm_set_input_op): Likewise.
12528         (gimple_asm_output_op): Likewise.
12529         (gimple_asm_output_op_ptr): Likewise.
12530         (gimple_asm_set_output_op): Likewise.
12531         (gimple_asm_clobber_op): Likewise.
12532         (gimple_asm_set_clobber_op): Likewise.
12533         (gimple_asm_label_op): Likewise.
12534         (gimple_asm_set_label_op): Likewise.
12535         (gimple_switch_index): Likewise.
12536         (gimple_switch_index_ptr): Likewise.
12537         (gimple_return_retval_ptr): Likewise.
12538         (gimple_return_retval): Likewise.
12539         (gimple_return_set_retval): Likewise.
12540         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
12541         (gimple_switch_label): Likewise.
12542         (gimple_switch_set_label): Likewise.
12544 2015-08-06  Richard Biener  <rguenther@suse.de>
12546         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12547         bool comparison canonicalization and restrict to integers.
12549 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
12551         * coretypes.h (enum symbol_visibility): Relocate here.
12552         * flag-types.h (enum symbol_visibility): Remove.
12553         * tree-core.h (enum symbol_visibility): Remove.
12555 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
12557         PR target/66870
12558         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12559         for no_split_stack function attribute along with
12560         flag_split_stack.
12561         (rs6000_expand_split_stack_prologue): Likewise.
12563 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12564             Jeff Law  <law@redhat.com>
12566         PR c/16351
12567         * doc/invoke.texi (Wnull-dereference): New.
12568         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12569         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12570         Warn for potential NULL dereferences.
12571         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12572         * ubsan.c (instrument_nonnull_arg): Call
12573         infer_nonnull_range_by_attribute.
12574         (instrument_nonnull_return): Likewise.
12575         * common.opt (Wnull-dereference); New.
12576         * gimple.c (infer_nonnull_range): Remove bool arguments.
12577         (infer_nonnull_range_by_dereference): New.
12578         (infer_nonnull_range_by_attribute): New.
12579         * gimple.h: Update declarations.
12581 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12583         * gensupport.c (sequence_num): Replace with...
12584         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12585         ...these new variables.
12586         (init_rtx_reader_args_cb): Update accordingly.
12587         (get_num_code_insns): Likewise.
12588         (read_md_rtx): Rework to use a while loop and get_c_test.
12589         Use the new counters.  Remove redundant DEFINE_SUBST case.
12590         * genoutput.c (gen_split): Delete.
12591         (main): Don't call it.
12593 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12595         * gensupport.h (get_c_test): Declare.
12596         * gensupport.c (get_c_test): New function.
12597         * genconditions.c (main): Use it.
12598         * genrecog.c (validate_pattern): Likewise.
12599         (match_pattern_1): Likewise.  Remove c_test argument.
12600         (match_pattern): Update accordingly and remove c_test argument.
12601         (main): Update accordingly.
12603 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12605         * gensupport.h (get_num_insn_codes): Declare.
12606         * gensupport.c (get_num_insn_codes): New function.
12607         * genattrtab.c (optimize_attrs): Rename max_insn_code to
12608         num_insn_codes.
12609         (main): Likewise.  Use get_num_insn_codes.
12610         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12612 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12614         PR middle-end/66311
12615         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12616         is zero- rather than sign-extended.
12618 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12620         * target-insns.def (can_extend): Delete.
12622 2015-08-05  Richard Biener  <rguenther@suse.de>
12624         PR tree-optimization/67121
12625         * tree-if-conv.c (combine_blocks): Clear range-info produced
12626         by stmts no longer executed conditionally.
12628 2015-08-05  Nick Clifton  <nickc@redhat.com>
12630         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12631         to allow identical far pointers to remain.
12633 2015-08-05  Richard Biener  <rguenther@suse.de>
12635         PR middle-end/67120
12636         * match.pd: Compare address bases with == if they are decls
12637         or SSA names, not operand_equal_p.  Otherwise fail.
12639 2015-08-05  Richard Biener  <rguenther@suse.de>
12641         PR tree-optimization/67055
12642         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12643         NULL gimple_block.
12645         * g++.dg/torture/pr67055.C: New testcase.
12647 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
12649         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12650         noavx512vl.
12651         (define_attr "enabled"): Handle avx521vl and noavx512vl.
12652         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12653         AVX-512 alternative out of SSE.
12654         (define_insn "*vec_concatv2df"): Ditto.
12656 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
12658         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12659         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12660         CODE_FOR_avx_ptestv4di.
12661         * config/i386/sse.md (define_mode_iterator V_AVX): New.
12662         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12663         (define_insn "avx_ptest256"): Merge this ...
12664         (define_insn "sse4_1_ptest"): And this ...
12665         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12667 2015-08-05  Richard Biener  <rguenther@suse.de>
12669         PR tree-optimization/67109
12670         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12671         against too big groups.  Print whether this is a load or store
12672         group.  Rename from ...
12673         (vect_analyze_group_access): ... this which is now a wrapper
12674         dissolving an invalid group.
12675         (vect_analyze_data_ref_accesses): Print whether this is a load
12676         or store group.
12678 2015-08-05  Richard Biener  <rguenther@suse.de>
12680         PR middle-end/67107
12681         * match.pd: Guard const_binop result checking against NULL_TREE
12682         result.
12684 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
12686         * cse.c (cse_insn): Restoring old behaviour for src_eqv
12687          when dest and value in the REG_EQUAL are same and dest
12688          is STRICT_LOW_PART.
12690 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
12692         * config/moxie/moxie.h (PRINT_OPERAND,
12693           PRINT_OPERAND_ADDRESS): Remove macros.
12694         * config/moxie/moxie-protos.h (moxie_print_operand,
12695           moxie_print_operand_address): Remove declaration.
12696         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12697           TARGET_PRINT_OPERAND_ADDRESS): Define.
12698           (moxie_print_operand, moxie_print_operand_address): Make static.
12700 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12702         PR target/66731
12703         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12704         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12706 2015-08-04  Richard Biener  <rguenther@suse.de>
12708         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12709         generated code.
12710         (dt_operand::gen_gimple_expr): Adjust.
12712 2015-08-04  Richard Biener  <rguenther@suse.de>
12714         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12715         bool compares on RHS.
12716         * match.pd: Add X ==/!= !X is false/true pattern.
12718 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
12720         * config/aarch64/aarch64.c: Change inner loop statement cost
12721         to be consistent with other targets.
12723 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
12725         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12726         targets.
12728 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
12730         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12731         (machine_function): Remove pseudos field.
12733 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12735         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12736         Exit early and use target_option_current_node if processing current
12737         pragma.
12739 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12741         * doc/extend.texi (AArch64 Function Attributes): New node.
12742         (AArch64 Pragmas): Likewise.
12744 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12746         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12747         Initialize simd builtins if TARGET_SIMD.
12748         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12749         Make sure that the builtins are initialized only once no matter how
12750         many times the function is called.
12751         (aarch64_init_builtins): Unconditionally initialize crc builtins.
12752         (aarch64_relayout_simd_param): New function.
12753         (aarch64_simd_expand_args): Use above during argument expansion.
12754         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12755         simd builtins if TARGET_SIMD.
12756         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12757         prototype.
12758         (aarch64_relayout_simd_types): Likewise.
12760 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12762         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12763         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12764         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12765         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12766         static keyword.
12767         (aarch64_reset_previous_fndecl): New function.
12768         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12769         the string.
12770         * config/aarch64/aarch64-c.c: New file.
12771         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12772         Push and pop options at beginning and end.  Remove ifdef
12773         __ARM_FEATURE_CRC32.
12774         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
12775         Add pragma +nothing+simd and +nothing+crypto where appropriate.
12776         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
12777         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
12778         Define prototype.
12779         (aarch64_register_pragmas): Likewise.
12780         (aarch64_reset_previous_fndecl): Likewise.
12781         (aarch64_process_target_attr): Likewise.
12782         (aarch64_override_options_internal): Likewise.
12784 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12786         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
12787         New function.
12788         (aarch64_can_inline_p): Likewise.
12789         (TARGET_CAN_INLINE_P): Define.
12791 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12793         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12794         Remove static.  Handle OPT_mgeneral_regs_only,
12795         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
12796         OPT_momit_leaf_frame_pointer.
12797         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
12798         (aarch64_attr_opt_type): New enum.
12799         (aarch64_attribute_info): New struct.
12800         (aarch64_handle_attr_arch): New function.
12801         (aarch64_handle_attr_cpu): Likewise.
12802         (aarch64_handle_attr_tune): Likewise.
12803         (aarch64_handle_attr_isa_flags): Likewise.
12804         (aarch64_attributes): New table.
12805         (aarch64_process_one_target_attr): New function.
12806         (num_occurences_in_str): Likewise.
12807         (aarch64_process_target_attr): Likewise.
12808         (aarch64_option_valid_attribute_p): Likewise.
12809         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12810         * config/aarch64/aarch64-protos.h: Include input.h
12811         (aarch64_handle_option): Declare prototype.
12813 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12815         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
12816         * config/aarch64/aarch64.c: Include target-globals.h
12817         (aarch64_previous_fndecl): New variable.
12818         (aarch64_set_current_function): New function.
12819         (TARGET_SET_CURRENT_FUNCTION): Define.
12821 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12823         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
12824         (explicit_arch): Likewise.
12825         (x_aarch64_isa_flags): Likewise.
12826         (mgeneral-regs-only): Mark as Save.
12827         (mfix-cortex-a53-835769): Likewise.
12828         (mcmodel=): Likewise.
12829         (mstrict-align): Likewise.
12830         (momit-leaf-frame-pointer): Likewise.
12831         (mtls-dialect): Likewise.
12832         (master=): Likewise.
12833         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
12834         (aarch64_isa_flags): Remove extern declaration.
12835         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
12836         to indicate success or failure.
12837         (aarch64_validate_march): Likewise.
12838         (aarch64_validate_mtune): Likewise.
12839         (aarch64_isa_flags): Delete.
12840         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
12841         instead of aarch64_isa_flags.
12842         (aarch64_get_tune_cpu): New function.
12843         (aarch64_get_arch): Likewise.
12844         (aarch64_override_options): Use above and set up explicit_tune_core
12845         and explicit_arch.
12846         (aarch64_print_extension): Move earlier in file.  Add isa_flags
12847         argument and use that instead of the global aarch64_isa_flags.
12848         (aarch64_option_save): New function.
12849         (aarch64_option_restore): Likewise.
12850         (aarch64_option_print): Likewise.
12851         (aarch64_declare_function_name): Likewise.
12852         (aarch64_start_file): Delete.
12853         (TARGET_ASM_FILE_START): Do not define.
12854         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
12855         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
12856         Declare prototype.
12858 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12860         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
12861         flag_omit_leaf_frame_pointer to 2.
12863 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12865         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
12866         define to 0 or 1.
12867         (TARGET_FIX_ERR_A53_835769): New macro.
12868         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12869         handling of opts->x_aarch64_fix_a53_err835769.
12870         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
12871         than aarch64_fix_a53_err835769.
12872         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
12873         * config/aarch64/aarch64-linux.h: Likewise.
12875 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
12877         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
12878         ix86_expand_int_movcc as boolean.
12880 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12882         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
12883         (aarch64_cpu_string): Likewise.
12884         (aarch64_tune_string): Likewise.
12885         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
12886         (aarch64_parse_extension): Return aarch64_parse_opt_result.
12887         Add extra argument to put result into.
12888         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
12889         (aarch64_parse_cpu): Add arguments to put results into. Return
12890         aarch64_parse_opt_result.
12891         (aarch64_parse_tune): Likewise.
12892         (aarch64_override_options_after_change_1): New function.
12893         (aarch64_override_options_internal): New function.
12894         (aarch64_validate_mcpu): Likewise.
12895         (aarch64_validate_march): Likewise.
12896         (aarch64_validate_mtune): Likewise.
12897         (aarch64_override_options): Update to reflect above changes.
12898         Move some logic into aarch64_override_options_internal.
12899         Initialize target_option_default_node and target_option_current_node.
12900         (aarch64_override_options_after_change): Move logic into
12901         aarch64_override_options_after_change_1 and call it with global_options.
12902         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
12903         flag values from that.
12905 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12907         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12908         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
12909         * config/aarch64/aarch64.c (struct processor): Add arch field.
12910         (all_architectures): Handle above, move above all_cores.
12911         (all_cores): Handle above.
12912         (aarch64_parse_arch): Handle above changes.
12913         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
12914         above.  Update comments.
12915         (armv8.1-a): Likewise.
12916         * config/aarch64/aarch64-cores.def: Update according to above.
12917         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
12918         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
12919         aarch64_arch_driver_info.
12921 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12923         * config/aarch64/aarch64.c (struct processor): Add ident field.
12924         Rename core sched_core.
12925         (all_cores): Handle above changes.
12926         (all_architectures): Likewise.
12927         (aarch64_parse_arch): Likewise.
12928         (aarch64_override_options): Likewise.
12930 2015-08-04  Richard Biener  <rguenther@suse.de>
12932         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12933         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
12934         comparisons embedded in [VEC_]COND_EXPRs.
12936 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
12938         * tree-if-conv.c: Fix various typos in comments.
12939         * tree-vect-stmts.c: Likewise.
12941 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12943         PR tree-optimization/67043
12944         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
12945         preheader after hoisting invariant in it.
12946         (find_defs): Force recomputation of all luids.
12948 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
12950         * config/rs6000/htm.md (tabort.): Restrict the source operand to
12951         using a base register.
12953 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
12955         * main.c (main): Pass in NULL for toplev's external_timer.
12956         * timevar.c: Include coretypes.h.
12957         (class timer::named_items): New.
12958         (timer::named_items::named_items): New.
12959         (timer::named_items::~named_items): New.
12960         (timer::named_items::push): New.
12961         (timer::named_items::pop): New.
12962         (timer::named_items::print): New.
12963         (timer::timer): Initialize field "m_jit_client_items".
12964         (timer::~timer): New.
12965         (timer::push): Move bulk of implementation to...
12966         (timer::push_internal): ...here.  New function.
12967         (timer::pop): Move bulk of implementation to...
12968         (timer::pop_internal): ...here.  New function.
12969         (timer::push_client_item): New.
12970         (timer::pop_client_item): New.
12971         (timer::print_row): New function, taken from timer::print.
12972         (timer::print): Print "GCC items" header if we also have client
12973         items.  Move row-printing to timer::print_row.  Print any client
12974         items.
12975         (timer::get_topmost_item_name): New method.
12976         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
12977         (TV_JIT_CLIENT_CODE): New.
12978         * timevar.h (timer::push_client_item): New declaration.
12979         (timer::pop_client_item): New declaration.
12980         (timer::get_topmost_item_name): New method.
12981         (timer::push_internal): New declaration.
12982         (timer::pop_internal): New declaration.
12983         (timer::print_row): New declaration.
12984         (timer::named_items): New declaration.
12985         (timer::m_jit_client_items): New field.
12986         (timer): Add friend class named_items.
12987         (auto_timevar::auto_timevar): Add timer param.
12988         (auto_timevar::~auto_timevar): Use field "m_timer".
12989         (auto_timevar::m_timer): New field.
12990         * toplev.c (initialize_rtl): Add g_timer as param when
12991         constructing auto_timevar instance.
12992         (toplev::toplev): Add "external_timer" param, and use it to
12993         initialize the "g_timer" global if non-NULL.
12994         (toplev::~toplev): If this created "g_timer", delete it.
12995         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
12996         with "external_timer" timer *.
12998 2015-08-03  Alexander Basov <coohpt@gmail.com>
13000         PR middle-end/64744
13001         PR middle-end/48470
13002         PR middle-end/43404
13003         * cfgexpand.c (expand_one_var): Add check if stack is going to
13004         be used in naked function.
13005         * expr.c (expand_expr_addr_expr_1): Remove excess checking
13006         whether expression should not reside in MEM.
13007         * function.c (use_register_for_decl): Do not use registers for
13008         non-register things (volatile, float, BLKMode) in naked functions.
13010 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
13012         PR target/67060
13013         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13014         Adjust splits to match new pattern.
13016 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13018         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13019         (VEC_M): Likewise.
13020         (VEC_N): Likewise.
13021         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13022         point in VSX registers.
13024         * config/rs6000/constraints.md (wb constraint): Document unused
13025         w<x> constraint.
13026         (we constraint): Likewise.
13027         (wo constraint): Likewise.
13028         (wp constraint): New constraint for IEEE 128-bit floating point in
13029         VSX registers.
13030         (wq constraint): Likewise.
13032         * config/rs6000/predicates.md (easy_fp_constant): Add support for
13033         IEEE 128-bit floating point in VSX registers.
13034         (easy_scalar_constant): Likewise.
13036         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13037         constraints (wp, wq) for IEEE 128-bit floating point in VSX
13038         registers.
13039         (rs6000_init_hard_regno_mode_ok): Likewise.
13041         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13042         floating point in VSX registers.
13043         (VSX_L): Likewise.
13044         (VSX_M): Likewise.
13045         (VSX_M2): Likewise.
13046         (VSm): Likewise.
13047         (VSs): Likewise.
13048         (VSr): Likewise.
13049         (VSa): Likewise.
13050         (VSv): Likewise.
13051         (vsx_le_permute_<mode>): Add support to properly swap bytes for
13052         IEEE 128-bit floating point in VSX registers on little endian.
13053         (vsx_le_undo_permute_<mode>): Likewise.
13054         (vsx_le_perm_load_<mode>): Likewise.
13055         (vsx_le_perm_store_<mode>): Likewise.
13056         (splitters for IEEE 128-bit fp moves): Likewise.
13058         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13059         wq constraints.
13061         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13062         floating point in VSX registers.
13063         (VM2): Likewise.
13065         * doc/md.text (Machine Constraints): Document wp and wq
13066         constraints on PowerPC.
13068 2015-08-03  Jeff Law  <law@redhat.com>
13070         PR middle-end/66314
13071         PR gcov-profile/66899
13072         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13073         iterate over the jump threading paths when an element in the
13074         jump threading paths array is eliminated.
13076 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
13078         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13080 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
13082         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13083         is_use_properly_guarded the variable def_preds.  Free its
13084         contents before returning.
13085         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13086         (is_use_properly_guarded): Replace local variable def_preds with
13087         a parameter.  Adjust accordingly.  Only update *def_preds if it's
13088         the empty vector.
13090 2015-08-03  Richard Biener  <rguenther@suse.de>
13092         * genmatch.c (simplify::for_subst_vec): New member.
13093         (binary_ok): New helper for for lowering.
13094         (lower_for): Delay substituting operators into result expressions
13095         if we can merge the results eventually again.
13096         (capture_info::walk_result): Adjust for user_id appearing as
13097         result expression operator.
13098         (expr::gen_transform): Likewise.
13099         (dt_simplify::gen_1): Likewise.
13100         (dt_simplify::gen): Pass not substituted operators to tail
13101         functions or initialize local variable with it.
13102         (decision_tree::gen): Adjust function signature.
13103         * match.pd: Fix tests against global code and add default
13104         cases to switch stmts.
13106 2015-08-03  Richard Biener  <rguenther@suse.de>
13108         * genmatch.c (dt_simplify::gen): Create captures array
13109         with an initializer.
13111 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13113         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13114         the host compiler is affected by placement new aliasing bug.
13115         * configure: Regenerate.
13116         * Makefile.in (ALIASING_FLAGS): New variable.
13117         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13119 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13121         PR target/66731
13122         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13123         (negmulsf3_vfp): Likewise.
13124         (muldf3negdf_vfp): Disable for -frounding-math.
13125         (mulsf3negsf_vfp): Likewise.
13126         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13127         fix MULT cost with -frounding-math.
13129 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13131         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13132         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13133         explicit.  Prefer to add the flag whenever possible.
13134         (noce_process_if_block): Try noce_try_store_flag_constants before
13135         noce_try_cmove.
13137 2015-08-03  Richard Biener  <rguenther@suse.de>
13139         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13140         New hash-map to record equivalent transforms.
13141         (dt_node::analyze): Populate the equivalent transforms hash-map.
13142         (dt_simplify::info): Add reference to hash-map entry.
13143         (dt_simplify::gen): If we have split out a function for the
13144         transform, generate a call to it.
13145         (sinfo_hashmap_traits::hash): New function.
13146         (compare_op): New helper function for ...
13147         (sinfo_hashmap_traits::equal_keys): ... this new function.
13148         (decision_tree::gen): Split out common equivalent transforms
13149         into functions.
13151 2015-08-03  Richard Biener  <rguenther@suse.de>
13153         * gimple-fold.c (fold_gimple_assign): Remove folding of
13154         the comparison in COND_EXPRs.
13156 2015-08-03  Richard Biener  <rguenther@suse.de>
13158         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13159         on the rhs of assignments first simplify the embedded
13160         GENERIC condition.
13162 2015-08-03  Richard Biener  <rguenther@suse.de>
13164         PR tree-optimization/66917
13165         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13166         field.
13167         (DR_VECT_AUX): New macro.
13168         (set_dr_misalignment): Adjust.
13169         (dr_misalignment): Likewise.
13170         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13171         Compute whether the base is at least element aligned.
13172         * tree-vect-stmts.c (ensure_base_align): Adjust.
13173         (vectorizable_store): If the base is not element aligned
13174         preserve alignment of the original access if misalignment is unknown.
13175         (vectorizable_load): Likewise.
13177 2015-08-02  Martin Sebor  <msebor@redhat.com>
13179         * c-family/c.opt (-Wframe-address): New warning option.
13180         * doc/invoke.texi (Wframe-address): Document it.
13181         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13182         Clarify possible effects of calling the functions with non-zero
13183         arguments and mention -Wframe-address.
13184         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13186 2015-08-01  Michael Collison  <michael.collison@linaro.org
13187             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13189         * config/arm/arm.md (*arm_smin_cmp): New pattern.
13190         (*arm_umin_cmp): Likewise.
13192 2015-08-01  Caroline Tice  <cmtice@google.com>
13194         PR 66521
13195         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13196         global variables.
13197         (vtbl_find_mangled_name):  New function.
13198         (vtbl_register_mangled_name):  New function.
13199         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
13200         mangled name in mangled name vectors.
13201         (find_or_create_vtbl_map_node):  Ditto.
13202         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
13203         update recursion_depth on function entry; pass it to every recursive
13204         call; automatically exit if depth > 25 (give up looking at that point).
13205         (verify_bb_vtables):  Initialize recursion_depth and pass it to
13206         var_is_used_for_virtual_call_p.
13207         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13208         global variable decls.
13209         (vtbl_register_mangled_name): New extern function decl.
13211 2015-08-01  Tom de Vries  <tom@codesourcery.com>
13213         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13214         function.
13215         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13216         Declare.
13217         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13218         operation_no_trapping_overflow.  Allow non-overflow operations.
13219         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13220         operations.
13222 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13224         PR target/67049
13225         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13227 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13229         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13230         Enable for TARGET_32BIT.
13231         (*if_move_neg): Likewise.
13233 2015-07-31  Nick Clifton  <nickc@redhat.com>
13235         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13236         Returns true for __model__.
13237         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13239 2015-07-31  Alan Modra  <amodra@gmail.com>
13241         PR target/66870
13242         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13243         (rs6000_emit_prologue): Set it.
13244         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13246 2015-07-31  Richard Biener  <rguenther@suse.de>
13248         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13249         -> X == (C1 ^ C2) which is already implemented in match.pd.
13250         Remove redundant dispatching to fold_relational_const.
13251         Move unordered self and NaN compares ...
13252         * match.pd: ... as patterns here.  Remove some stray captures
13253         and add a comment.
13255 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
13257         * config/i386/i386.c
13258         (bdesc_special_args): Convert mask type from signed to unsigned for
13259         masked builtins.
13260         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13261         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13262         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13263         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13264         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13265         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13266         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13267         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13268         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13269         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13270         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13271         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13272         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13273         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13274         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13275         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13276         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13277         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13278         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13279         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13280         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13281         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13282         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13283         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13284         * config/i386/i386-builtin-types.def
13285         (V16QI_FTYPE_V16SI): Remove.
13286         (V8DF_FTYPE_V8SI): Ditto.
13287         (V8HI_FTYPE_V8DI): Ditto.
13288         (V8SI_FTYPE_V8DI): Ditto.
13289         (V8SF_FTYPE_V8DF): Ditto.
13290         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13291         (V16HI_FTYPE_V16SI): Ditto.
13292         (V16SF_FTYPE_V16HI): Ditto.
13293         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13294         (V16SF_FTYPE_V16SI): Ditto.
13295         (V4DI_FTYPE_V4DI): Ditto.
13296         (V16SI_FTYPE_V16SF): Ditto.
13297         (V16SF_FTYPE_FLOAT): Ditto.
13298         (V8DF_FTYPE_DOUBLE): Ditto.
13299         (V8DI_FTYPE_INT64): Ditto.
13300         (V8DI_FTYPE_V4DI): Ditto.
13301         (V16QI_FTYPE_V8DI): Ditto.
13302         (UINT_FTYPE_V4SF): Ditto.
13303         (UINT64_FTYPE_V4SF): Ditto.
13304         (UINT_FTYPE_V2DF): Ditto.
13305         (UINT64_FTYPE_V2DF): Ditto.
13306         (V16SI_FTYPE_V16SI): Ditto.
13307         (V8DI_FTYPE_V8DI): Ditto.
13308         (V16SI_FTYPE_PV4SI): Ditto.
13309         (V16SF_FTYPE_PV4SF): Ditto.
13310         (V8DI_FTYPE_PV2DI): Ditto.
13311         (V8DF_FTYPE_PV2DF): Ditto.
13312         (V4DI_FTYPE_PV2DI): Ditto.
13313         (V4DF_FTYPE_PV2DF): Ditto.
13314         (V16SI_FTYPE_PV2SI): Ditto.
13315         (V16SF_FTYPE_PV2SF): Ditto.
13316         (V8DI_FTYPE_PV4DI): Ditto.
13317         (V8DF_FTYPE_PV4DF): Ditto.
13318         (V8SF_FTYPE_FLOAT): Ditto.
13319         (V4SF_FTYPE_FLOAT): Ditto.
13320         (V4DF_FTYPE_DOUBLE): Ditto.
13321         (V8SF_FTYPE_PV4SF): Ditto.
13322         (V8SI_FTYPE_PV4SI): Ditto.
13323         (V4SI_FTYPE_PV2SI): Ditto.
13324         (V8SF_FTYPE_PV2SF): Ditto.
13325         (V8SI_FTYPE_PV2SI): Ditto.
13326         (V16SF_FTYPE_PV8SF): Ditto.
13327         (V16SI_FTYPE_PV8SI): Ditto.
13328         (V8DI_FTYPE_V8SF): Ditto.
13329         (V4DI_FTYPE_V4SF): Ditto.
13330         (V2DI_FTYPE_V4SF): Ditto.
13331         (V64QI_FTYPE_QI): Ditto.
13332         (V32HI_FTYPE_HI): Ditto.
13333         (V8UHI_FTYPE_V8UHI): Ditto.
13334         (V16UHI_FTYPE_V16UHI): Ditto.
13335         (V32UHI_FTYPE_V32UHI): Ditto.
13336         (V2UDI_FTYPE_V2UDI): Ditto.
13337         (V4UDI_FTYPE_V4UDI): Ditto.
13338         (V8UDI_FTYPE_V8UDI): Ditto.
13339         (V4USI_FTYPE_V4USI): Ditto.
13340         (V8USI_FTYPE_V8USI): Ditto.
13341         (V16USI_FTYPE_V16USI): Ditto.
13342         (V2DF_FTYPE_V2DF_UINT64): Ditto.
13343         (V2DI_FTYPE_V2DF_V2DF): Ditto.
13344         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13345         (V8DF_FTYPE_V8DF_V8DI): Ditto.
13346         (V4SF_FTYPE_V4SF_UINT64): Ditto.
13347         (V4SI_FTYPE_V4SF_V4SF): Ditto.
13348         (V16SF_FTYPE_V16SF_V16SI): Ditto.
13349         (V64QI_FTYPE_V32HI_V32HI): Ditto.
13350         (V32HI_FTYPE_V16SI_V16SI): Ditto.
13351         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13352         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13353         (V32HI_FTYPE_V64QI_V64QI): Ditto.
13354         (V32HI_FTYPE_V32HI_V32HI): Ditto.
13355         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13356         (V16SI_FTYPE_V16SI_V4SI): Ditto.
13357         (V16SI_FTYPE_V16SI_V16SI): Ditto.
13358         (V16SI_FTYPE_V32HI_V32HI): Ditto.
13359         (V16SI_FTYPE_V16SI_SI): Ditto.
13360         (V8DI_FTYPE_V8DI_V8DI): Ditto.
13361         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13362         (V8DI_FTYPE_V16SI_V16SI): Ditto.
13363         (V8DI_FTYPE_V8DI_V2DI): Ditto.
13364         (QI_FTYPE_QI): Ditto.
13365         (SI_FTYPE_SI): Ditto.
13366         (DI_FTYPE_DI): Ditto.
13367         (QI_FTYPE_QI_QI): Ditto.
13368         (QI_FTYPE_QI_INT): Ditto.
13369         (HI_FTYPE_HI_INT): Ditto.
13370         (SI_FTYPE_SI_INT): Ditto.
13371         (DI_FTYPE_DI_INT): Ditto.
13372         (HI_FTYPE_V16QI_V16QI): Ditto.
13373         (SI_FTYPE_V32QI_V32QI): Ditto.
13374         (DI_FTYPE_V64QI_V64QI): Ditto.
13375         (QI_FTYPE_V8HI_V8HI): Ditto.
13376         (HI_FTYPE_V16HI_V16HI): Ditto.
13377         (SI_FTYPE_V32HI_V32HI): Ditto.
13378         (QI_FTYPE_V4SI_V4SI): Ditto.
13379         (QI_FTYPE_V8SI_V8SI): Ditto.
13380         (QI_FTYPE_V2DI_V2DI): Ditto.
13381         (QI_FTYPE_V4DI_V4DI): Ditto.
13382         (QI_FTYPE_V8DI_V8DI): Ditto.
13383         (HI_FTYPE_V16SI_V16SI): Ditto.
13384         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13385         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13386         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13387         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13388         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13389         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13390         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13391         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13392         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13393         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13394         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13395         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13396         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13397         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13398         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13399         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13400         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13401         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13402         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13403         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13404         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13405         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13406         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13407         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13408         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13409         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13410         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13411         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13412         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13413         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13414         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13415         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13416         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13417         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13418         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13419         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13420         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13421         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13422         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13423         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13424         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13425         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13426         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13427         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13428         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13429         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13430         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13431         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13432         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13433         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13434         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13435         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13436         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13437         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13438         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13439         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13440         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13441         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13442         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13443         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13444         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13445         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13446         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13447         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13448         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13449         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13450         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13451         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13452         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13453         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13454         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13455         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13456         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13457         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13458         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13459         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13460         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13461         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13462         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13463         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13464         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13465         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13466         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13467         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13468         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13469         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13470         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13471         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13472         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13473         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13474         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13475         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13476         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13477         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13478         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13479         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13480         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13481         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13482         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13483         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13484         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13485         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13486         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13487         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13488         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13489         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13490         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13491         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13492         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13493         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13494         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13495         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13496         (HI_FTYPE_HI): Ditto.
13497         (HI_FTYPE_V16QI): Ditto.
13498         (SI_FTYPE_V32QI): Ditto.
13499         (DI_FTYPE_V64QI): Ditto.
13500         (QI_FTYPE_V8HI): Ditto.
13501         (HI_FTYPE_V16HI): Ditto.
13502         (SI_FTYPE_V32HI): Ditto.
13503         (QI_FTYPE_V4SI): Ditto.
13504         (QI_FTYPE_V8SI): Ditto.
13505         (HI_FTYPE_V16SI): Ditto.
13506         (QI_FTYPE_V2DI): Ditto.
13507         (QI_FTYPE_V4DI): Ditto.
13508         (QI_FTYPE_V8DI): Ditto.
13509         (V16QI_FTYPE_HI): Ditto.
13510         (V32QI_FTYPE_SI): Ditto.
13511         (V64QI_FTYPE_DI): Ditto.
13512         (V8HI_FTYPE_QI): Ditto.
13513         (V16HI_FTYPE_HI): Ditto.
13514         (V32HI_FTYPE_SI): Ditto.
13515         (V4SI_FTYPE_QI): Ditto.
13516         (V4SI_FTYPE_HI): Ditto.
13517         (V8SI_FTYPE_QI): Ditto.
13518         (V8SI_FTYPE_HI): Ditto.
13519         (V2DI_FTYPE_QI): Ditto.
13520         (V4DI_FTYPE_QI): Ditto.
13521         (HI_FTYPE_HI_HI): Ditto.
13522         (SI_FTYPE_SI_SI): Ditto.
13523         (DI_FTYPE_DI_DI): Ditto.
13524         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13525         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13526         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13527         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13528         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13529         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13530         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13531         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13532         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13533         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13534         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13535         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13536         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13537         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13538         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13539         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13540         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13541         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13542         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13543         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13544         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13545         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13546         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13547         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13548         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13549         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13550         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13551         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13552         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13553         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13554         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13555         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13556         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13557         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13558         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13559         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13560         (V16SI_FTYPE_HI): Ditto.
13561         (V8DI_FTYPE_QI): Ditto.
13562         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13563         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13564         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13565         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13566         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13567         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13568         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13569         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13570         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13571         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13572         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13573         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13574         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13575         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13576         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13577         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13578         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13579         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13580         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13581         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13582         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13583         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13584         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13585         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13586         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13587         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13588         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13589         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13590         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13591         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13592         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13593         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13594         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13595         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13596         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13597         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13598         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13599         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13600         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13601         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13602         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13603         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13604         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13605         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13606         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13607         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13608         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13609         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13610         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13611         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13612         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13613         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13614         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13615         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13616         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13617         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13618         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13619         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13620         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13621         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13622         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13623         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13624         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13625         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13626         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13627         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13628         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13629         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13630         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13631         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13632         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13633         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13634         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13635         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13636         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13637         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13638         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13639         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13640         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13641         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13642         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13643         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13644         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13645         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13646         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13647         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13648         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13649         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13650         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13651         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13652         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13653         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13654         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13655         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13656         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13657         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13658         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13659         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13660         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13661         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13662         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13663         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13664         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13665         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13666         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13667         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13668         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13669         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13670         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13671         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13672         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13673         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13674         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13675         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13676         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13677         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13678         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13679         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13680         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13681         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13682         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13683         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13684         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13685         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13686         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13687         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13688         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13689         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13690         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13691         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13692         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13693         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13694         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13695         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13696         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13697         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13698         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13699         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13700         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13701         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13702         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13703         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13704         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13705         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13706         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13707         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13708         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13709         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13710         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13711         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13712         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13713         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13714         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13715         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13716         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13717         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13718         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13719         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13720         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13721         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13722         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13723         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13724         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13725         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13726         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13727         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13728         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13729         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13730         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13731         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13732         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13733         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13734         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13735         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13736         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13737         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13738         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13739         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13740         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13741         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13742         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13743         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13744         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13745         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13746         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13747         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13748         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13749         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13750         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13751         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13752         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13753         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13754         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13755         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13756         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13757         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13758         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13759         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13760         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13761         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13762         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13763         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13764         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13765         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13766         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13767         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13768         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13769         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13770         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13771         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13772         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13773         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
13774         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
13775         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
13776         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
13777         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
13778         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
13779         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
13780         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
13781         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
13782         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
13783         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
13784         (QI_FTYPE_V8DF_INT_QI): Ditto.
13785         (QI_FTYPE_V4DF_INT_QI): Ditto.
13786         (QI_FTYPE_V2DF_INT_QI): Ditto.
13787         (HI_FTYPE_V16SF_INT_HI): Ditto.
13788         (QI_FTYPE_V8SF_INT_QI): Ditto.
13789         (QI_FTYPE_V4SF_INT_QI): Ditto.
13790         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
13792 2015-07-31  Richard Biener  <rguenther@suse.de>
13794         * gimple-fold.c (fold_gimple_assign): Remove folding of
13795         GIMPLE_BINARY_RHS.
13797 2015-07-31  Tom de Vries  <tom@codesourcery.com>
13799         PR tree-optimization/66846
13800         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
13801         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
13802         (expand_omp_target) [ENABLE_CHECKING]: Same.
13803         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
13804         cfun if !LOOPS_NEED_FIXUP.
13805         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
13806         that omp_for already has its own loop struct.
13807         * tree-parloops.c (create_phi_for_local_result)
13808         (create_call_for_reduction): Handle simple latch bb.
13809         (create_parallel_loop): Add simple latch bb to preserve
13810         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
13811         (gen_parallel_loop): Remove call to cancel_loop_tree.
13812         (parallelize_loops): Skip loops that are inner loops of parallelized
13813         loops.
13814         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
13815         verify_loop_structure.
13817 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
13819         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
13820         * config/v850/v850.md (RV_REGNUM): New constants.
13821         * config/v850/v850.c (v850_libcall_value): New functions.
13822         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
13823         (TARGET_LIBCALL_VALUE): Define.
13825 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
13827         * rtl.h (lowpart_subreg): Move in file.
13828         * loop-iv.c (lowpart_subreg): Move to...
13829         * simplify-rtx.c (lowpart_subreg): ...here.
13830           (simplify_binary_operation_1): Use lowpart_subreg instead of
13831           simplify_gen_subreg.
13832         * expr.c (expand_expr_real_2): Ditto.
13833         * emit-rtl.c (gen_lowpart_common): Ditto.
13834         * combine.c (gen_lowpart_for_combine): Ditto.
13835         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
13836           expand_debug_source_expr): Ditto.
13838 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
13840         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
13841         (expand_builtin_atomic_clear): Remove support for atomic_clear
13842         pattern.
13844 2015-07-30  Richard Biener  <rguenther@suse.de>
13846         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
13847         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
13848         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
13849         redundant operand canonicalization.
13851 2015-07-30  David Sherwood  <david.sherwood@arm.com>
13853         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
13854         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
13855         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
13856         * config/arm/arm.c (neon_valid_immediate): Likewise.
13857         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
13858         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
13859         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
13860         (expand_vec_perm_vpshufb2_vpermq): Likewise.
13861         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
13862         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
13863         * config/i386/sse.md
13864         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
13865         (*ssse3_palignr<mode>_perm): Likewise.
13866         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
13867         * config/spu/spu.c (arith_immediate_p): Likewise.
13868         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13869         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
13871 2015-07-30  Richard Biener  <rguenther@suse.de>
13873         * genmatch.c (decision_tree::gen_gimple): Merge with ...
13874         (decision_tree::gen_generic): ... this into ...
13875         (decision_tree::gen): ... this.
13876         (main): Adjust callers.
13878 2015-07-30  Richard Biener  <rguenther@suse.de>
13880         * genmatch.c (verbose): New global.
13881         (warning_at): Add overload with source_location.
13882         (capture_info::capture_info): Add bool whether generating gimple
13883         or generic.  Add gimple member.
13884         (capture_info::cinfo): Add capture member.
13885         (capture_info::walk_match): Record capture.  Warn on
13886         non-captured leafs.
13887         (capture_info::walk_c_expr): Add more fragments captures cannot
13888         escape through.  Warn on escaped captures.
13889         (dt_simplify::gen_1): Warn on operands we force to have no
13890         side-effects.
13891         (main): Initialize verbose.
13892         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
13894 2015-07-30  Richard Biener  <rguenther@suse.de>
13896         PR middle-end/67053
13897         * match.pd: Allow both operands to independently have conversion
13898         when simplifying compares of addresses.
13900 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
13902         PR target/66217
13903         PR target/67045
13904         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
13905         around those cases that need one.
13907 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
13909         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
13911 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13913         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
13914         New.  Copied from config/i386/gnu-user.h.
13915         (ASM_COMMENT_START): Likewise.
13916         (DBX_REGISTER_NUMBER): Likewise.
13918 2015-07-29  Richard Biener  <rguenther@suse.de>
13920         * gimple-fold.c (fold_gimple_cond): Remove.
13921         (fold_stmt_1): Do not call it.
13923 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
13925         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
13926         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
13928         * config/aarch64/aarch64-modes.def: Add HFmode.
13930         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13931         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
13933         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
13934         aarch64_promoted_type): New.
13936         (aarch64_float_const_representable_p): Disable HFmode.
13937         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
13938         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
13939         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
13941         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
13942         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
13944         * config/aarch64/iterators.md (GPF_F16): New.
13946 2015-07-29  Richard Biener  <rguenther@suse.de>
13948         * match.pd: Merge address comparison patterns and make them
13949         handle some more cases.
13951 2015-07-29  Richard Biener  <rguenther@suse.de>
13953         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
13954         (parser::parse_capture): Add bool argument on whether to reject
13955         unknown captures.
13956         (parser::parse_expr): Adjust.
13957         (parser::parse_op): Likewise.
13958         (parser::parse_pattern): Likewise.
13960 2015-07-29  Richard Biener  <rguenther@suse.de>
13962         * gimple-fold.c (has_use_on_stmt): New function.
13963         (replace_stmt_with_simplification): Use it to allow
13964         abnormals originally referenced in the stmt.
13965         (fold_stmt_1): Canonicalize operand order.
13967 2015-07-28  David Sherwood  <david.sherwood@arm.com>
13969         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
13970         GET_MODE_INNER unconditionally.
13971         * config/spu/spu.c (arith_immediate_p): Likewise.
13972         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
13973         * expmed.c (synth_mult): Remove check for VOIDmode result from
13974         GET_MODE_INNER.
13975         (expand_mult_const): Likewise.
13976         * fold-const.c (fold_binary_loc): Replace call to element_precision
13977         with call to GET_MODE_PRECISION.
13978         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
13979         m->name.
13980         (emit_mode_inner): Likewise.
13981         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
13982         result check.
13983         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
13984         (GET_MODE_UNIT_PRECISION): Likewise.
13985         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
13986         * simplify-rtx.c (simplify_immed_subreg): Likewise.
13987         * stor-layout.c (bitwise_type_for_mode): Update assert.
13988         (element_precision): Remove.
13990 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13992         * target-insns.def (reload_load_address): New targetm instruction
13993         pattern.
13994         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
13996 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
13998         * target-insns.def (atomic_test_and_set): New targetm instruction
13999         pattern.
14000         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14001         HAVE_*/gen_* interface.
14003 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14005         * target-insns.def (can_extend, ptr_extend): New targetm instruction
14006         patterns.
14007         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14008         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14009         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14010         * rtlanal.c (nonzero_bits1): Likewise.
14011         (num_sign_bit_copies1): Likewise.
14013 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14015         * target-insns.def (eh_return): New targetm instruction pattern.
14016         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14017         interface.
14018         * function.c (thread_prologue_and_epilogue_insns): Remove
14019         preprocessor condition.
14021 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14023         * target-insns.def (indirect_jump): New targetm instruction pattern.
14024         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14025         interface.
14027 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
14029         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14030         instead of nonimmediate_operand.  Remove C condiition.
14032 2015-07-28  Richard Biener  <rguenther@suse.de>
14034         * match.pd: Add more simplification of address comparisons.
14036 2015-07-28  Richard Biener  <rguenther@suse.de>
14038         * match.pd: Re-order two cases in comparison with max/min
14039         value simplification to make it apply for bools.
14041 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14043         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14044         Handle simple SIGN_EXTEND or ZERO_EXTEND.
14045         (aarch64_rtx_costs): Properly strip extend or extract before
14046         passing down to rtx costs again.
14048 2015-07-28  Nick Clifton  <nickc@redhat.com>
14050         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14051         Optimizes the case where -mes0 is active and a constant symbolic
14052         address is used.
14053         * config/rl78/rl78-protos.h: Prototype the new function.
14054         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14056 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14058         * tree-parloops.c (reduc_stmt_res): New function.
14059         (initialize_reductions, add_field_for_reduction)
14060         (create_phi_for_local_result, create_loads_for_reductions)
14061         (create_stores_for_reduction, build_new_reduction): Handle case that
14062         reduc_stmt is a phi.
14063         (gather_scalar_reductions): Allow double_reduc reductions.
14065 2015-07-28  Richard Biener  <rguenther@suse.de>
14067         * fold-const.c (fold_comparison): Remove equality folding
14068         of decl addresses ...
14069         * match.pd: ... here and merge with existing pattern.
14071 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14073         PR tree-optimization/66828
14074         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14075         from int64_t to uint64_t.
14077 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14079         * opts-common.c (read_cmdline_option): List DriverOnly enum values
14080         as valid only in the error message of the driver, not in the
14081         messages of the language compilers.
14083 2015-07-27  Tom de Vries  <tom@codesourcery.com>
14085         * tree-parloops.c (gather_scalar_reductions): Simplify function
14086         structure.
14088 2015-07-27  Marek Polacek  <polacek@redhat.com>
14090         * ipa-devirt.c (types_same_for_odr): Fix typo.
14092 2015-07-27  Jason Merrill  <jason@redhat.com>
14094         PR debug/66468
14095         * dwarf2out.c (gen_inlined_subroutine_die): Check
14096         cgraph_function_possibly_inlined_p.
14098 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14100         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14101         Place integer variant first.
14102         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14104 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14106         PR/63870
14107         * config/arm/arm-builtins.c (enum arm_builtins):
14108         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14109         (ARM_BUILTIN_NEON_BASE): Rename macro to....
14110         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14111         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14112         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14114 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
14116         PR/63870
14117         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14118         Add qualifier_lane_index.
14119         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14120         (arm_getlane_qualifiers): Use qualifier_lane_index.
14121         (arm_lanemac_qualifiers): Rename to...
14122         (arm_mac_n_qualifiers): ...this.
14123         (LANEMAC_QUALIFIERS): Rename to...
14124         (MAC_N_QUALIFIERS): ...this.
14125         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14126         (arm_setlane_qualifiers): Use qualifier_lane_index.
14127         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14128         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14129         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14130         (arm_expand_neon_builtin): Handle qualifier_lane_index.
14132         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14133         * config/arm/arm.c (bounds_check): Likewise, improve error message.
14134         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14135         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14136         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14137         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14138         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14139         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14140         qualifiers to TERNOP_IMM.
14141         (vdup_lane): Change qualifiers to GETLANE.
14142         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14143         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14144         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14145         vqdmlsl_n): Change qualifiers to MAC_N.
14147         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14148         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14149         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14150         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14151         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14152         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14153         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14154         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14155         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14156         Remove call to neon_lane_bounds.
14158 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
14160         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14161         Place integer variant first.
14163 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
14165         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14166         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14167         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14168         for armv6kz targets.
14169         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14170         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14171         (FL_FOR_ARCH6ZK): Remove.
14172         (FL_FOR_ARCH6KZ): New.
14173         (arm_arch6zk): New declaration.
14174         * config/arm/arm-tables.opt: Regenerate.
14175         * config/arm/arm.c (arm_arch6kz): New.
14176         (arm_option_override): Set arm_arch6kz.
14177         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14178         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14179         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14181 2015-07-27  Marek Polacek  <polacek@redhat.com>
14183         PR c++/66555
14184         PR c/54979
14185         * doc/invoke.texi: Document -Wtautological-compare.
14187 2015-07-27  Richard Biener  <rguenther@suse.de>
14189         * genmatch.c (decision_tree::gen_gimple): Split out large
14190         subtrees into separate functions.
14191         (decision_tree::gen_generic): Likewise.
14193 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
14195         * config/alpha/alpha.c: Use SUBREG_P predicate.
14196         * config/alpha/predicates.md: Ditto.
14198 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14200         * config.host (s390*-*-*): Include driver-native.c only when
14201         building with s390* as host *and* target.
14203 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
14205         PR target/66930
14206         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14207         T bit register modified_between_p check.
14209 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14211         * config/i386/i386.c: Use SUBREG_P predicate.
14212         * config/i386/i386.md: Ditto.
14213         * config/i386/sse.md: Ditto.
14214         * config/i386/predicates.md: Ditto.
14216 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14218         PR target/67004
14219         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14220         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14222 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14224         * Makefile.in: Remove use of TREEBROWSER.
14225         * config.in: Regenerated.
14226         * configure: Regenerated.
14227         * configure.ac: Remove definition of TREEBROWSER.
14228         * tree-browser.c: Removed.
14229         * tree-browser.def: Removed.
14231 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14233         * graphite-scop-detection.c: Include gimple-pretty-print.h.
14234         (stmt_simple_for_scop_p): Print when a stmt is not handled in
14235         Graphite.
14236         (scopdet_basic_block_info): Print when a loop or bb cannot be
14237         represented in Graphite.
14239 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14241         PR target/66648
14242         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14243         execution guard when min_size is less than size_needed.
14245 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
14247         * doc/install.texi: Document supported versions of ISL.
14249 2015-07-25  Jeff Law  <law@redhat.com>
14251         Revert:
14252         PR lto/66752
14253         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14254         unable to find X NE 0 in the tables, return X as the simplified
14255         condition.
14256         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14257         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14258         to VISISTED_BBS.  */
14259         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14260         after removing the control flow statement and unnecessary edges.
14262 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
14264         Revert:
14265         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
14267         PR rtl-optimization/64164
14268         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14269         * tree-ssa-copyrename.c: Removed.
14270         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14271         -ftree-coalesce-vars.
14272         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14273         * common.opt (ftree-copyrename): Ignore.
14274         (ftree-coalesce-inlined-vars): Likewise.
14275         * doc/invoke.texi: Remove the ignored options above.
14276         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14277         * tree-ssa-coalesce.h: ... here.
14278         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14279         headers required by it.
14280         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14281         across variables when flag_tree_coalesce_vars.  Check register
14282         use and promoted modes to allow coalescing.  Moved to
14283         tree-ssa-coalesce.c.
14284         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14285         with its member functions to tree-ssa-coalesce.c.
14286         (var_map_base_init): Likewise.  Renamed to
14287         compute_samebase_partition_bases.
14288         (partition_view_normal): Drop want_bases parameter.
14289         (partition_view_bitmap): Likewise.
14290         * tree-ssa-live.h: Adjust declarations.
14291         * tree-ssa-coalesce.c: Include explow.h.
14292         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14293         default defs at the entry point.
14294         (dump_part_var_map): New.
14295         (compute_optimized_partition_bases): New, called by...
14296         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14297         of compute_samebase_partition_bases.  Adjust.
14298         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14299         * cfgexpand.c (leader_merge): New.
14300         (get_rtl_for_parm_ssa_default_def): New.
14301         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14302         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14303         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14304         redundant MEM attr setting.
14305         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14306         from...
14307         (expand_one_stack_var): ... this.  New wrapper to check and
14308         skip already expanded SSA partitions.
14309         (record_alignment_for_reg_var): New, factored out of...
14310         (expand_one_var): ... this.
14311         (expand_one_ssa_partition): New.
14312         (adjust_one_expanded_partition_var): New.
14313         (expand_one_register_var): Check and skip already expanded SSA
14314         partitions.
14315         (expand_used_vars): Don't create DECLs for anonymous SSA
14316         names.  Expand all SSA partitions, then adjust all SSA names.
14317         (pass::execute): Replace the loops that set
14318         SA.partition_to_pseudo from partition leaders and cleared
14319         DECL_RTL for multi-location variables, and that which used to
14320         rename vars and set attrs, with one that clears DECL_RTL and
14321         checks that PARMs and RESULTs default_defs match DECL_RTL.
14322         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14323         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14324         * explow.c (promote_ssa_mode): New.
14325         * explow.h (promote_ssa_mode): Declare.
14326         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14327         * function.c: Include cfgexpand.h.
14328         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14329         (use_register_for_parm_decl): Wrapper for the above to
14330         special-case the result_ptr.
14331         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14332         (split_complex_args): Take assign_parm_data_all argument.
14333         Pass it to rtl_for_parm.  Set up rtl and context for split
14334         args.
14335         (assign_parms_augmented_arg_list): Adjust.
14336         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14337         multiple locations.  Recognize split complex args.
14338         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14339         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14340         (assign_parm_setup_block): Prefer SSA-assigned location.
14341         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14342         if stack_parm is NULL.
14343         (assign_parm_setup_stack): Prefer SSA-assigned location.
14344         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14345         rtl before testing for pointer bounds.  Special-case result_ptr.
14346         (expand_function_start): Maybe reset DECL_RTL of result.
14347         Prefer SSA-assigned location for result and static chain.
14348         Factor out DECL_RESULT and SET_DECL_RTL.
14349         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14350         anonymous SSA names.  Use promote_ssa_mode.
14351         (get_temp_reg): Likewise.
14352         (remove_ssa_form): Adjust.
14353         * stor-layout.c (layout_decl): Don't set mem attributes of
14354         non-MEMs.
14355         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14356         and get its reg_usage for reg invalidation.
14357         (compute_bb_dataflow): Pass it insn.
14358         (emit_notes_in_bb): Likewise.
14360 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
14362         * config/i386/i386.c (ix86_va_start): Remove
14363         unneeded !TARGET_64BIT check.
14364         (ix86_gimplify_va_arg): Ditto.
14366 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14368         * graphite-sese-to-poly.c (build_poly_scop): Always call
14369         rewrite_commutative_reductions_out_of_ssa.
14371 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14373         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14374         flag_associative_math to FLOAT_TYPE_P.  Honour
14375         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14377 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14379         PR c++/64079
14380         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14381         and "%qD" in warning_at instead of "%q+D" in warning.
14383 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14385         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14386         (ix86_function_abi): Cleanup.
14388 2015-07-24  Michael Darling  <darlingm@gmail.com>
14390         PR other/66259
14391         * acinclude.m4: Reflects renaming of configure.in to configure.ac
14392         * configure: Likewise
14393         * configure.ac: Likewise
14394         * doc/install.texi: Likewise
14395         * doc/tm.texi: Likewise
14396         * doc/tm.texi.in: Likewise
14398 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14400         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14401         manually swapping values.
14402         * cse.c (fold_rtx): Likewise.
14403         * lra-eliminations.c (form_sum): Likewise.
14405 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
14407         PR target/64003
14408         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14409         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14410         (*jcc_1, *jcc_2, jump, simple_return_internal)
14411         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14412         Set length_nobnd attribute instead of length attribute.
14413         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14414         (length_nobnd): Remove attribute.
14415         (length): Remove length_nobnd processing.
14417 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
14419         * gimplify.c (omp_default_clause): New function.  Reorganize flow
14420         for clarity. Broken out of ...
14421         (omp_notice_variable): ... here.
14423 2015-07-24  Gary Funck  <gary@intrepid.com>
14425         PR middle-end/66984
14426         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14427         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14429 2015-07-24  Tom de Vries  <tom@codesourcery.com>
14431         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14432         exit-first loop transform.
14434 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14436         PR 66714
14437         * tree-cfg.c (struct replace_decls_d): New struct.
14438         (replace_block_vars_by_duplicates_1): New function.
14439         (replace_block_vars_by_duplicates): Use it to replace the decls
14440         in the value exprs by duplicates.
14442 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14444         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14445         -shared, -symbolic, -rdynamic.
14447 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14449         PR target/65711
14450         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14451         -dynamic-linker within %{!static %{!shared, and -rdynamic within
14452         %{!static.
14454 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
14456         PR ipa/66566
14457         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14458         edge summary is available.
14460 2015-07-24  Richard Biener  <rguenther@suse.de>
14462         * genmatch.c (struct dt_node): Add statistic fields.
14463         (dt_node::analyze): New method.
14464         (decision_tree::gen_gimple): Call analyze on the root node
14465         and print statistics to stderr.
14466         (decision_tree::gen_generic): Likewise.
14468 2015-07-24  Richard Biener  <rguenther@suse.de>
14470         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14471         against the highest or lowest possible integer ...
14472         * match.pd: ... as patterns here.
14474 2015-07-24  Richard Biener  <rguenther@suse.de>
14476         * genmatch.c (struct capture_info): Add same_as field.
14477         (capture_info::capture_info): Initialize same_as.
14478         (capture_info::walk_match): Compute same_as.
14479         (capture_info::walk_result): Compute stuff for the leader.
14480         (capture_info::walk_c_expr): Likewise.
14481         (dt_simplify::gen_1): Only look at leaders when deciding
14482         to force no side-effects or emit side-effects of omitted operands.
14484 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14486         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14487         reg note to the GPR -> FPR save instructions.
14489 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14491         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14492         cheaper.
14493         (s390_expand_insv): Don't generate risbg pattern for constant zero
14494         sources.
14495         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14496         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
14497         splitters.
14499 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14501         * config/s390/s390.c (s390_reorg): Clean up handling of processors
14502         with
14503         -mtune=
14504         (s390_issue_rate): Likewise.
14505         (s390_sched_reorder): Likewise.
14506         (s390_sched_variable_issue): Likewise.
14507         (s390_loop_unroll_adjust): Likewise.
14508         (s390_option_override):  Likewise.
14510 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14512         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14513         processor capabilities with -march=native.
14514         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14515         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
14516         (S390_TARGET_BITS_STRING): Macro to simplify specs.
14518 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14520         * config/s390/s390.c (s390_issue_rate): Handle
14521         PROCESSOR_2094_Z9_EC.
14522         (s390_option_override): Likewise.
14523         (s390_adjust_priority): Likewise.
14525 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14527         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14528         when cross compiling.
14530 2015-07-24  Richard Biener  <rguenther@suse.de>
14532         * fold-const.c (maybe_canonicalize_comparison_1): Move
14533         A code CST canonicalization ...
14534         * match.pd: ... to a pattern here.
14536 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
14538         Revert:
14539         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
14540         PR target/63521
14541         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14542         (HONOR_REG_ALLOC_ORDER): Define.
14544 2015-07-24  Richard Biener  <rguenther@suse.de>
14546         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14547         * fold-const.c (fold_comparison): Move parameter does not
14548         alias &local simplification ...
14549         * match.pd: ... as a pattern here.
14551 2015-07-24  Richard Biener  <rguenther@suse.de>
14553         * gimple-fold.c (replace_stmt_with_simplification): Special-case
14554         valueizing call operands.
14555         * gimple-match-head.c (maybe_push_res_to_seq): Take
14556         number of call arguments from ops array.
14557         (do_valueize): New function.
14558         (gimple_simplify): Return true if valueization changed
14559         any operand even if the result didn't simplify further.
14561 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14563         PR middle-end/25530
14564         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14566 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14568         PR middle-end/25529
14569         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14571 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14573         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14574         instruction.
14576 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
14578         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14579         clean up.
14581 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
14583         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14584         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
14585         targets here.
14586         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14587         ms_va_list_type_node initialization.
14589 2015-07-23  Jeff Law  <law@redhat.com>
14591         PR lto/66752
14592         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14593         unable to find X NE 0 in the tables, return X as the simplified
14594         condition.
14595         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14596         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
14597         to VISISTED_BBS.  */
14598         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14599         after removing the control flow statement and unnecessary edges.
14601 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14603         * tree-pass.h (get_current_pass_name): Removed.
14605 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
14607         PR rtl-optimization/64164
14608         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14609         * tree-ssa-copyrename.c: Removed.
14610         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14611         -ftree-coalesce-vars.
14612         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14613         * common.opt (ftree-copyrename): Ignore.
14614         (ftree-coalesce-inlined-vars): Likewise.
14615         * doc/invoke.texi: Remove the ignored options above.
14616         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14617         * tree-ssa-coalesce.h: ... here.
14618         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14619         headers required by it.
14620         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14621         across variables when flag_tree_coalesce_vars.  Check register
14622         use and promoted modes to allow coalescing.  Moved to
14623         tree-ssa-coalesce.c.
14624         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14625         with its member functions to tree-ssa-coalesce.c.
14626         (var_map_base_init): Likewise.  Renamed to
14627         compute_samebase_partition_bases.
14628         (partition_view_normal): Drop want_bases parameter.
14629         (partition_view_bitmap): Likewise.
14630         * tree-ssa-live.h: Adjust declarations.
14631         * tree-ssa-coalesce.c: Include explow.h.
14632         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14633         default defs at the entry point.
14634         (dump_part_var_map): New.
14635         (compute_optimized_partition_bases): New, called by...
14636         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14637         of compute_samebase_partition_bases.  Adjust.
14638         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14639         * cfgexpand.c (leader_merge): New.
14640         (get_rtl_for_parm_ssa_default_def): New.
14641         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14642         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14643         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14644         redundant MEM attr setting.
14645         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14646         from...
14647         (expand_one_stack_var): ... this.  New wrapper to check and
14648         skip already expanded SSA partitions.
14649         (record_alignment_for_reg_var): New, factored out of...
14650         (expand_one_var): ... this.
14651         (expand_one_ssa_partition): New.
14652         (adjust_one_expanded_partition_var): New.
14653         (expand_one_register_var): Check and skip already expanded SSA
14654         partitions.
14655         (expand_used_vars): Don't create DECLs for anonymous SSA
14656         names.  Expand all SSA partitions, then adjust all SSA names.
14657         (pass::execute): Replace the loops that set
14658         SA.partition_to_pseudo from partition leaders and cleared
14659         DECL_RTL for multi-location variables, and that which used to
14660         rename vars and set attrs, with one that clears DECL_RTL and
14661         checks that PARMs and RESULTs default_defs match DECL_RTL.
14662         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14663         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14664         * explow.c (promote_ssa_mode): New.
14665         * explow.h (promote_ssa_mode): Declare.
14666         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14667         * function.c: Include cfgexpand.h.
14668         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14669         (use_register_for_parm_decl): Wrapper for the above to
14670         special-case the result_ptr.
14671         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14672         (split_complex_args): Take assign_parm_data_all argument.
14673         Pass it to rtl_for_parm.  Set up rtl and context for split
14674         args.
14675         (assign_parms_augmented_arg_list): Adjust.
14676         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14677         multiple locations.  Recognize split complex args.
14678         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14679         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14680         (assign_parm_setup_block): Prefer SSA-assigned location.
14681         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14682         if stack_parm is NULL.
14683         (assign_parm_setup_stack): Prefer SSA-assigned location.
14684         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14685         rtl before testing for pointer bounds.  Special-case result_ptr.
14686         (expand_function_start): Maybe reset DECL_RTL of result.
14687         Prefer SSA-assigned location for result and static chain.
14688         Factor out DECL_RESULT and SET_DECL_RTL.
14689         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14690         anonymous SSA names.  Use promote_ssa_mode.
14691         (get_temp_reg): Likewise.
14692         (remove_ssa_form): Adjust.
14693         * stor-layout.c (layout_decl): Don't set mem attributes of
14694         non-MEMs.
14695         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14696         and get its reg_usage for reg invalidation.
14697         (compute_bb_dataflow): Pass it insn.
14698         (emit_notes_in_bb): Likewise.
14700 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
14702         PR target/66217
14703         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14704         prototype.
14705         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14706         (rs6000_emit_2insn_and): Handle dot forms.
14707         * config/rs6000/rs6000.md (and<mode>3): Adjust.
14708         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
14709         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14711 2015-07-23  Richard Biener  <rguenther@suse.de>
14713         * generic-match-head.c: Include cgraph.h.
14714         * gimple-match-head.c: Likewise.
14715         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14716         SSA names.
14717         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14718         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
14719         pattern.
14721 2015-07-23  Richard Biener  <rguenther@suse.de>
14723         * gimple-fold.c (fold_gimple_cond): Do not require folding
14724         results to pass valid_gimple_rhs_p.
14725         * tree-cfg.h (fold_cond_expr_cond): Remove.
14726         * tree-cfg.c (fold_cond_expr_cond): Likewise.
14727         (make_edges): Do not call it.
14728         * tree-inline.c (tree_function_versioning): Likewise.
14730 2015-07-23  Tom de Vries  <tom@codesourcery.com>
14732         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14733         vect_force_simple_reduction.
14734         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14735         (vect_is_simple_reduction_1): Add and handle
14736         need_wrapping_integral_overflow parameter.
14737         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14738         need_wrapping_integral_overflow parameter.
14739         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14740         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14741         decl.
14743 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
14745         PR tree-optimization/66926,66951
14746         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14747         INNER_LOOP and fix up condition for renaming virtual operands.
14749 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14751         * combine.c (try_combine): Use std::swap instead of manually
14752         swapping.
14754 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
14756         * config/mips/i6400.md: New file.
14757         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14758         (mips64r6): Likewise.
14759         (i6400): Define.
14760         * config/mips/mips-tables.opt: Regenerate.
14761         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14762         (mips_issue_rate): Add support for i6400.
14763         (mips_multipass_dfa_lookahead): Likewise.
14764         * config/mips/mips.h (TUNE_I6400): Define.
14765         * config/mips/mips.md: Include i6400.md.
14766         (processor): Add i6400.
14767         * doc/invoke.texi (-march=@var{arch}): Add i6400.
14769 2015-07-23  Richard Biener  <rguenther@suse.de>
14771         PR middle-end/66916
14772         * match.pd: Guard widen and sign-change comparison simplification
14773         with single_use.
14775 2015-07-23  Richard Biener  <rguenther@suse.de>
14777         PR tree-optimization/66945
14778         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
14779         ::before_dom_children): Force the propagators idea of
14780         non-executable edges to materialize, not what the folder
14781         chooses.
14783 2015-07-23  Richard Biener  <rguenther@suse.de>
14785         * gimple.h (gimple_cond_make_false): Use 0 != 0.
14786         (gimple_cond_make_true): Use 1 != 0.
14788 2015-07-22  DJ Delorie  <dj@redhat.com>
14790         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
14791         slashes.
14793         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
14794         (ashrhi3): Likewise.
14795         (lshrhi3): Likewise.
14796         (movhi): Take advantage of zero-extend to load small constants.
14797         (movpsi): Likewise.
14798         (and<mode>3): Likewise.
14799         (zero_extendqihi2): Likewise.
14800         (zero_extendqisi2): New.
14801         * config/msp430/constraints.md (N,O): New.
14802         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
14804 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
14806         PR target/66954
14807         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
14808         to enum feature_priority and feature_list.
14809         (fold_builtin_cpu): Add F_AES to enum processor_features
14810         and isa_names_table.
14812 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
14814         PR driver/66737
14815         * config/i386/linux-common.h (MPX_SPEC): Use linker option
14816         for 64bit target only.
14818 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14820         * config/nvptx/nvptx.c: Expand some comments.
14822 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
14824         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
14825         (cortex_a53_advsimd): ...This.
14827 2015-07-22  Richard Biener  <rguenther@suse.de>
14829         * genmatch.c (expr::gen_transform): Clarify error message
14830         and display location.
14832 2015-07-22  Richard Biener  <rguenther@suse.de>
14834         * genmatch.c (struct operand): Add location member.
14835         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
14836         constructors.
14837         (struct simplify): Remove match_location and result_location
14838         members.
14839         (elsehwere): Adjust.
14841 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
14843         * config/mips/m5100.md: New file.
14844         * config/mips/mips-cpus.def (m5100, m5101): Define.
14845         * config/mips/mips-tables.opt: Regenerate.
14846         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
14847         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
14848         -march=m5101 to -mips32r5.
14849         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
14850         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
14851         !-msoft-float.
14852         * config/mips/mips.md: Include m5100.md.
14853         (processor): Add m5100.
14854         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
14856 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
14858         * config/mips/mips-cpus.def (interaptiv): Define.
14859         * config/mips/mips-tables.opt: Regenerate.
14860         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
14861         -mips32r2.
14862         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
14863         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
14865 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
14867         PR target/63521
14868         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14869         (HONOR_REG_ALLOC_ORDER): Define.
14871 2015-07-22  Richard Biener  <rguenther@suse.de>
14873         PR tree-optimization/66952
14874         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
14875         blocks we end up executing unconditionally reset all SSA
14876         info such as range and alignment.
14877         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
14878         * tree-ssanames.c (reset_flow_sensitive_info): New function.
14880 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
14882         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
14883         typo in attribute.
14885 2015-07-22  Richard Biener  <rguenther@suse.de>
14887         * genmatch.c (parser::parse_result): Properly handle
14888         match with result operands and conditions.
14890 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
14892         PR target/63870
14893         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14894         Add qualifier_struct_load_store_lane_index.
14895         (aarch64_types_loadstruct_lane_qualifiers): Use
14896         qualifier_struct_load_store_lane_index for lane index argument for
14897         last argument.
14898         (aarch64_types_storestruct_lane_qualifiers): Ditto.
14899         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14900         (aarch64_simd_expand_args): Add new argument describing mode of
14901         builtin. Check lane bounds for arguments with
14902         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14903         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
14904         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14905         (aarch64_simd_expand_builtin): Handle arguments with
14906         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
14907         aarch64_simd_expand_args.
14908         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
14909         vst[234]_lane with BUILTIN_VALLDIF.
14910         * config/aarch64/aarch64-simd.md:
14911         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
14912         endianness reversal on lane index.
14913         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
14914         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
14915         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
14916         (vec_store_lanesci_lane<mode>): Ditto.
14917         (vec_store_lanesxi_lane<mode>): Ditto.
14918         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
14919         reversal of lane index.
14920         (aarch64_ld3_lane<mode>): Ditto.
14921         (aarch64_ld4_lane<mode>): Ditto.
14922         (aarch64_st2_lane<mode>): Ditto.
14923         (aarch64_st3_lane<mode>): Ditto.
14924         (aarch64_st4_lane<mode>): Ditto.
14925         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
14926         to qmode. Add new mode parameter. Update uses.
14927         (__LD3_LANE_FUNC): Ditto.
14928         (__LD4_LANE_FUNC): Ditto.
14929         (__ST2_LANE_FUNC): Ditto.
14930         (__ST3_LANE_FUNC): Ditto.
14931         (__ST4_LANE_FUNC): Ditto.
14933 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
14935         * doc/invoke.texi (Language Independent Options): Rename node to
14936         Diagnostic Message Formatting Options.
14938 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
14940         PR ipa/66424.
14941         * lra-remat.c (operand_to_remat): Prevent using insns with input
14942         subregs processed separately by IRA.
14944 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
14946         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
14947         straight loops.
14948         (single_imm_use): Check for iterator node.
14949         (num_imm_uses): Likewise.
14950         * tree-ssa-operands.c (has_zero_uses_1): Delete.
14951         (single_imm_use_1): Check for iterator node.
14953 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14954             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14956         * configure.ac: Add check for new options in isl-0.15.
14957         * config.in, configure: Rebuilt.
14958         * graphite-blocking.c: Include <isl/constraint.h>
14959         * graphite-interchange.c,  graphite-poly.c: Likewise.
14960         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
14961         * graphite.c: Likewise.
14962         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
14963         <isl/union_set.h>.
14964         * graphite-dependences.c: Include <isl/constraint.h>.
14965         (max_number_of_out_dimensions): Returns isl_stat.
14966         (extend_schedule_1): Likewise
14967         (extend_schedule): Corresponding changes.
14968         * graphite-optimize-isl.c: Include <isl/constraint.h> and
14969         <isl/union_set.h>.
14970         (getSingleMap): Change return type of isl_stat.
14971         (optimize_isl): Conditionally use
14972         isl_options_set_schedule_serialize_sccs.
14973         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
14974         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
14976 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
14978         PR target/66956
14979         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
14980         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
14982 2015-07-21  Richard Biener  <rguenther@suse.de>
14984         PR tree-optimization/66948
14985         * genmatch.c (capture_info::walk_match): Also recurse to
14986         captures.  Properly compute expr state from captures of
14987         captures.
14988         * match.pd: Add single-use guards to
14989         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
14991 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14993         * config/nvptx/mkoffload.c (process): Add static destructor call.
14995 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14997         PR middle-end/66915
14998         * match.pd (A - B -> A + (-B)): Don't allow folding
14999         when type if a fixed-point type.
15001 2015-07-20  DJ Delorie  <dj@redhat.com>
15003         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15004         (iorqi3_real): Likewise for set1.
15006 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
15008         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15009         for !TARGET_64BIT.
15011 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
15013         * graphite-isl-ast-to-gimple.c:
15014         Refactor so that each function can access 'region'. This will help
15015         maintain a parameter rename_map within a region.
15017 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15019         * config/rs6000/rs6000.md (*lt0_disi): New.
15021 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
15023         PR target/66217
15024         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
15025         "available letters" comment.
15026         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15027         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15028         and_2rld_operand):  Delete.
15029         (and_operand): Adjust.
15030         (rotate_mask_operator): New.
15031         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15032         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15033         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15034         extract_ME): Delete.
15035         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15036         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15037         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15038         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15039         rs6000_emit_2insn_and): New.
15040         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15041         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15042         includes_rldic_lshift_p, includes_rldicr_lshift_p,
15043         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15044         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15045         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15046         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15047         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15048         rs6000_emit_2insn_and): New.
15049         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15050         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15051         handling.
15052         <NOT>: Don't fall through to next case.
15053         <AND>: Handle the various rotate-and-mask cases directly.
15054         <IOR>: Always cost as one insn.
15055         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15056         (and<mode>3): Adjust expander for the new patterns.
15057         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15058         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15059         (*and<mode>3_imm_dot_shifted): New.
15060         (*and<mode>3_mask): Delete, rewrite as ...
15061         (and<mode>3_mask): ... New.
15062         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15063         (andsi3_internal0_nomc): Delete.
15064         (*andsi3_internal6): Delete.
15065         (*and<mode>3_2insn): New.
15066         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15067         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15068         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15069         *insvdi_internal3): Delete.
15070         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15071         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15072         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15073         *ior<mode>_mask): New.
15074         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15075         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15076         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15077         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15078         Delete.
15079         (ashr<mode>3): Delete expander.
15080         (*ashr<mode>3): Rename to ...
15081         (ashr<mode>3): ... This.
15082         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15083         (*rotldi3_internal4, *rotldi3_internal5 and split,
15084         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15085         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15086         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15087         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15088         (splitter for loading a mask): Adjust.
15089         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15091 2015-07-20  Marek Polacek  <polacek@redhat.com>
15093         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15094         output_add_clobbers, output_added_clobbers_hard_reg_p,
15095         gen_rtx_scratch): Remove declarations.
15097 2015-07-20  Marek Polacek  <polacek@redhat.com>
15099         PR c++/55095
15100         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15102 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15104         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15105         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15107 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15109         * combine.c (combine_simplify_rtx): Move simplification step
15110         before various transformations/substitutions.
15112 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
15114         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15115         (struct int_traits): Likewise.
15117 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15119         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15120         function to vmsdbgout_function_decl.
15122 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15124         PR target/66922
15125         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15126         from misaligned positions.
15127         (ix86_expand_pinsr): Reject insertions to misaligned positions.
15129 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
15131         PR middle-end/46851
15132         PR middle-end/60340
15133         * Makefile.in: Removed omega.o.
15134         * common.opt: Document flag fcheck-data-deps as deprecated.
15135         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15136         its associated params: omega-max-vars, omega-max-geqs,
15137         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15138         omega-max-keys, omega-eliminate-redundant-constraints.
15139         * doc/loop.texi: Remove all the section on Omega.
15140         * graphite-blocking.c: Include missing params.h: it used to be
15141         included through tree-data-ref.h and omega.h.
15142         * graphite-isl-ast-to-gimple.c: Same.
15143         * graphite-optimize-isl.c: Same.
15144         * graphite-sese-to-poly.c: Same.
15145         * graphite.c: Same.
15146         * omega.c: Remove.
15147         * omega.h: Remove.
15148         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15149         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15150         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15151         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15152         * passes.def: Remove pass_check_data_deps.
15153         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15154         (dump_conflict_function): Same.
15155         (dump_subscript): Same.
15156         (print_direction_vector): Same.
15157         (print_dir_vectors): Same.
15158         (print_lambda_vector): Same.
15159         (print_dist_vectors): Same.
15160         (dump_data_dependence_relation): Same.
15161         (dump_data_dependence_relations): Same.
15162         (dump_dist_dir_vectors): Same.
15163         (dump_ddrs): Same.
15164         (init_omega_eq_with_af): Removed.
15165         (omega_extract_distance_vectors): Removed.
15166         (omega_setup_subscript): Removed.
15167         (init_omega_for_ddr_1): Removed.
15168         (init_omega_for_ddr): Removed.
15169         (ddr_consistent_p): Removed.
15170         (compute_affine_dependence): Do not use omega to check data
15171         dependences.
15172         (compute_data_dependences_for_bb): Removed.
15173         (analyze_all_data_dependences): Removed.
15174         (tree_check_data_deps): Removed.
15175         * tree-data-ref.h: Do not include omega.h.
15176         (compute_data_dependences_for_bb): Removed.
15177         (tree_check_data_deps): Removed.
15178         * tree-ssa-loop.c (pass_check_data_deps): Removed.
15179         (make_pass_check_data_deps): Removed.
15180         * tree-ssa-phiopt.c: Include params.h.
15181         * tree-vect-data-refs.c: Same.
15182         * tree-vect-slp.c: Same.
15184 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
15186         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15187         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
15188         (mem->fpreg splitters): Ditto.
15189         (general_operand->nonimmediate_operand splitter): Use explicit modes.
15190         Disable DFmode for TARGET_64BIT.
15192 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15194         PR target/66906
15195         * config/i386/i386.c (ix86_expand_prologue): Replicate static
15196         chain on the stack.
15198 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15200         * config/nvptx/mkoffload.c (process): Constify host data.
15201         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15202         Constify host data.
15203         (generate_host_descr_file): Likewise.
15205 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
15206             Sebastian Pop  <s.pop@samsung.com>
15208         PR middle-end/61929
15209         * graphite-dependences.c (add_pdr_constraints): Renamed
15210         pdr->extent to pdr->subscript_sizes.
15211         * graphite-interchange.c (build_linearized_memory_access): Add
15212         back all gcc_assert's that the "isl_int to isl_val conversion"
15213         patch has removed.  Refactored.
15214         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15215         * graphite-poly.c (new_poly_dr): Same.
15216         (free_poly_dr): Same.
15217         * graphite-poly.h (struct poly_dr): Same.
15218         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15219         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15220         * graphite-scop-detection.h: Fix space.
15221         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15222         back all gcc_assert's removed by a previous patch.
15223         (wrap): Remove the_isl_ctx global variable that the same patch has
15224         added.
15225         (build_loop_iteration_domains): Same.
15226         (add_param_constraints): Same.
15227         (pdr_add_data_dimensions): Same.  Refactored.
15228         (build_poly_dr): Renamed extent to subscript_sizes.
15230 2015-07-17  Marek Polacek  <polacek@redhat.com>
15232         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15233         * match.pd: ... here.
15235 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15237         * config/nvptx/mkoffload.c (process): Constify target data.
15238         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15239         Constify target data.
15240         (generate_target_offloadend_file): Likewise.
15242 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
15244         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15245         to allow renaming of PHI arguments on edges incoming from outer
15246         loop header, add corresponding check before start PHI iterator.
15247         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15248         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15249         with true force_vectorize.  Set-up dominator for outer loop too.
15250         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15251         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15252         was marked with force_vectorize and has restricted cfg.
15253         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15254         inner loop.
15255         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15256         do peeling for outer loops.
15258 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
15259             Matthias Klose  <doko@ubuntu.com>
15261         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15262         build-sysroot, sysroot from the `Miscenalleous configure options' to
15263         the `Directories' section and strip trailing `/' from with_sysroot.
15264         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15265         * configure: Regenerated.
15267 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
15269         PR target/66824
15270         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15271         (TARGET_HARD_DF_REGS): Ditto.
15272         (TARGET_HARD_XF_REGS): Ditto.
15273         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15274         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15275         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15276         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15277         (*movsf_internal): Add alternatives 16 and 17. Enable
15278         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15280 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
15282         PR rtl-optimization/66891
15283         * calls.c (expand_call): Wrap precompute_register_parameters with
15284         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15286 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15288         * config/nvptx/mkoffload.c (process): Constify mapping variables.
15289         Define target data struct and initialize it.
15291 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
15293         PR rtl-optimization/66626
15294         * ira.h (emit-rtl.h): Include.
15295         (non_spilled_static_chain_regno_p): New.
15296         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15297         unless it is non spilled static chain pseudo.
15298         (assign_hard_rego): Spill memory profitable allocno unless it is
15299         non spilled static chain pseudo.
15300         (allocno_spill_priority_compare): Put non spilled static chain
15301         pseudo at the end of sorted array.
15302         (improve_allocation): Do nothing if we have static chain and
15303         non-local goto.
15304         (allocno__priority_compare_func): Put non spilled static chain
15305         pseudo at the beginning of sorted array.
15306         (move_spill_restore): Ignore non spilled static chain pseudo.
15307         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15308         to non spilled static chain pseudo.
15309         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15310         pseudo at the beginning of sorted array.
15311         (spill_for): Spill non spilled static chain pseudo last.
15312         * lra-constraints.c (lra_constraints): Remove static chain pseudo
15313         check for equivalence.
15315 2015-07-16  Martin Liska  <mliska@suse.cz>
15317         PR ipa/66896.
15318         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15319         dst_ctx if it does not exist.
15321 2015-07-16  Martin Liska  <mliska@suse.cz>
15323         * hash-set.h (remove): New function.
15324         (iterator): New iteration class for hash_set.
15326 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15328         * genattrtab.c (make_canonical): Add a file_location parameter.
15329         Use fatal_at rather than fatal.
15330         (get_attr_value): Likewise.  Update call to make_canonical.
15331         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15332         (make_internal_attr): Update calls accordingly.
15334 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15336         * read-md.h (message_with_line, error_with_line): Delete.
15337         * read-md.c (message_with_line, error_with_line): Delete.
15338         * gensupport.h: Include read-md.h.
15339         (md_rtx_info): New structure.
15340         (read_md_rtx): Use it.  Return a bool success value.
15341         * gensupport.c (read_md_rtx): Likewise.
15342         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15343         (main): Update after interface changes.
15344         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15345         (main): Update after interface changes.
15346         * genattrtab.c (insn_code_number): Delete.
15347         (optimize_attrs): Add a max_insn_code parameter and use it instead
15348         of insn_code_number.
15349         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15350         Use *_at rather than *_with_line functions.
15351         (gen_insn): Likewise.
15352         (gen_delay): Likewise.
15353         (gen_insn_reserv): Likewise.
15354         (gen_bypass): Take an md_rtx_info rather than an rtx.
15355         (main): Update after interface changes.  Use a local max_insn_code
15356         variable instead of insn_code_number.
15357         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15358         an rtx.  Use fatal_at rather than fatal.
15359         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15360         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15361         (gen_absence_set, gen_final_absence_set, gen_automaton)
15362         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15363         (main): Update after interface changes.
15364         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15365         and code number.
15366         (main): Update after interface changes.
15367         * genconditions.c (main): Use new read_md_rtx interface.
15368         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15369         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15370         (main): Update after interface changes.
15371         * genemit.c (insn_code_number, insn_index_number): Delete.
15372         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15373         Use fatal_at rather than fatal.
15374         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
15375         rather than fatal.
15376         (gen_split): Likewise.
15377         (main): Update after interface changes.
15378         * genextract.c (line_no): Delete.
15379         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15380         Update call to walk_rtx.
15381         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
15382         rather than message_with_line.
15383         (walk_rtx): Add an md_rtx_info argument.  Update call to
15384         VEC_safe_set_locstr.
15385         (main): Update after interface changes.
15386         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15387         and lineno.  Use error_at rather than separate message_with_line
15388         calls and have_error assignments.
15389         (main): Update after interface changes.
15390         * genmddump.c (main): Use new read_md_rtx interface.
15391         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15392         (main): Update after interface changes.
15393         * genoutput.c (next_code_number): Delete.
15394         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15395         (gen_peephole, gen_expand, gen_split): Likewise.
15396         (note_constraint): Likewise.  Use *_at rather than *_with_line
15397         functions.
15398         (main): Update after interface changes.
15399         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15400         rtx and lineno.
15401         (main): Update after interface changes.
15402         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15403         than an rtx and lineno.
15404         (process_define_constraint): Likewise.
15405         (process_define_register_constraint): Likewise.
15406         (main): Update after interface changes.
15407         * genrecog.c (next_insn_code, pattern_lineno): Delete.
15408         (validate_pattern): Replace top-level rtx with an md_rtx_info.
15409         Use *_at rather than *_with_line functions.
15410         (match_pattern_2): Likewise.
15411         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15412         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15413         Use *_at rather than *_with_line functions.
15414         * gentarget-def.c (add_insn): New function.
15415         (main): Use it.  Use new read_md_rtx interface.
15417 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15419         * gensupport.h (compute_test_codes): Take a file_location rather
15420         than a line number.
15421         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
15422         rather than *_with_line functions.
15423         (process_define_predicate): Update call to compute_test_codes.
15424         * genpreds.c (validate_exp): Take a file_location rather than a
15425         line number.  Use *_at functions rather than *_with_line functions.
15426         (process_define_predicate): Update call to validate_exp.
15427         (constraint_data): Replace lineno field with a file_location.
15428         (add_constraint): Take a file_location rather than a line number.
15429         Use *_at functions rather than *_with_line functions.  Fix error
15430         message for address constraints.  Update after changes to
15431         validate_exp, constraint_data and compute_test_codes.
15432         (process_define_constraint): Update accordingly.
15433         (process_define_register_constraint): Likewise.
15435 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15437         * genoutput.c (data): Use a file_location to record the source
15438         position.
15439         (nothing): Delete.
15440         (idata, idata_end): Remove initialization.
15441         (constraint_data): Replace lineno with a file_location.
15442         (output_insn_data): Update after changes to data.
15443         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15444         (scan_operands): Likewise, using *_at rather than *_with_line
15445         functions.
15446         (process_template): Likewise.
15447         (validate_insn_alternatives): Likewise.
15448         (validate_insn_operands): Likewise.
15449         (validate_optab_operands): Likewise.
15450         (init_insn_for_nothing): Initialize idata and idata_end.
15451         (note_constraint): Update after changes to constraint_data,
15452         using at rather than with_line functions.
15453         (mdep_constraint_len): Take a file_location rather than a
15454         line number.  Use at rather than with_line functions.
15456 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15458         * read-md.h (fatal_at): Declare.
15459         * read-md.c (fatal_at): New function.
15460         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15461         to record the source position.
15462         (check_attr_test): Take a file_location instead of a line number.
15463         Use fatal_at instead of fatal.
15464         (check_attr_value): Update after above changes, using "at"
15465         rather than "with_line" reporting functions.
15466         (convert_set_attr_alternative): Likewise.
15467         (gen_attr): Likewise.
15468         (check_defs): Likewise.  Don't assign to read_md_filename.
15469         (gen_insn): Update initialization after above changes.
15470         (gen_delay): Likewise.
15471         (write_insn_cases): Print the filename for a define_peephole.
15472         (gen_insn_reserv): Take a line number as argument and update
15473         the call to check_attr_test.
15474         (main): Pass a line number to gen_insn_reserv.
15476 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15478         * read-md.h (file_location): New structure.
15479         (directive_handler_t): Take a file_location rather than a line number.
15480         (message_at, error_at): Declare.
15481         (read_skip_construct): Delete.
15482         * read-md.c (message_with_line_1): Replace with...
15483         (message_at_1): ...this new function.
15484         (message_at, error_at): New functions.
15485         (message_with_line, error_with_line): Update to use message_at_1.
15486         (handle_enum): Take a file_location rather than a line number
15487         and use error_at for error reporting.
15488         (handle_include): Likewise.
15489         (read_skip_construct): Likewise.  Make static.
15490         (handle_file): Update after above changes.  Pass a file_location
15491         rather than a line number to handle_directive.
15492         * gensupport.c (queue_elem): Replace separate filename and lineno
15493         with a file_location.
15494         (queue_pattern): Replace filename and lineno arguments with a
15495         file_location.  Update after change to queue_elem.
15496         (process_define_predicate): Replace lineno argument with a
15497         file_location and use error_at for error reporting.  Update
15498         after above changes.
15499         (process_rtx): Likewise.
15500         (subst_pattern_match): Likewise.
15501         (get_alternatives_number): Likewise.
15502         (alter_predicate_for_insn): Likewise.
15503         (rtx_handle_directive): Likewise.
15504         (is_predicable): Update after above changes, using error_at rather
15505         than error_with_line.
15506         (has_subst_attribute): Likewise.
15507         (identify_predicable_attribute): Likewise.
15508         (alter_attrs_for_subst_insn): Likewise.
15509         (process_one_cond_exec): Likewise.
15510         (process_substs_on_one_elem): Likewise.
15511         (process_define_subst): Likewise.
15512         (check_define_attr_duplicates): Likewise.
15513         (read_md_rtx): Update after change to queue_elem.
15515 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15517         * genoutput.c (next_index_number): Delete.
15518         (data): Remove index_number.
15519         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15520         (main): Remove manipulation of next_index_number.
15522 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
15524         * genattrtab.c (check_attr_value): Remove handling of null attrs.
15525         (make_canonical): Likewise.
15527 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
15529         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15530         instead of adjust_address_nv.
15531         (restore_stack_nonlocal): Likewise.
15532         (nonlocal_goto): Likewise.
15534 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15536         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15537         not have a corresponding loop header phi.
15539 2015-07-16  Tom de Vries  <tom@codesourcery.com>
15541         * tree-parloops.c (create_loads_for_reductions): Handle case that
15542         reduction is unused.
15544 2015-07-16  Richard Biener  <rguenther@suse.de>
15546         PR tree-optimization/66894
15547         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15548         about deriving NE_EXPR from truncated values.
15550 2015-07-16  Martin Liska  <mliska@suse.cz>
15552         * alloc-pool.h
15553         (object_allocator): Add new class.
15554         (pool_allocator::initialize): Use the underlying class.
15555         (pool_allocator::allocate): Likewise.
15556         (pool_allocator::remove): Likewise.
15557         (operator new): A new generic allocator.
15558         * asan.c (struct asan_mem_ref): Remove unused members.
15559         (asan_mem_ref_new): Replace new operator with
15560         object_allocator::allocate.
15561         (free_mem_ref_resources): Change deallocation.
15562         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15563         with object_allocator.
15564         * config/sh/sh.c (add_constant): Replace new operator with
15565         object_allocator::allocate.
15566         (sh_reorg): Change call to a release method.
15567         * cselib.c (struct elt_list): Remove unused members.
15568         (new_elt_list): Replace new operator with
15569         object_allocator::allocate.
15570         (new_elt_loc_list): Likewise.
15571         (new_cselib_val): Likewise.
15572         (unchain_one_elt_list): Change delete operator with remove method.
15573         (unchain_one_elt_loc_list): Likewise.
15574         (unchain_one_value): Likewise.
15575         (cselib_finish): Release newly added static allocators.
15576         * cselib.h (struct cselib_val): Remove unused members.
15577         (struct elt_loc_list): Likewise.
15578         * df-problems.c (df_chain_alloc): Replace pool_allocator with
15579         object_allocator.
15580         * df-scan.c (struct df_scan_problem_data): Likewise.
15581         (df_scan_alloc): Likewise.
15582         * df.h (struct dataflow): Likewise.
15583         * dse.c (struct read_info_type): Likewise.
15584         (struct insn_info_type): Likewise.
15585         (struct dse_bb_info_type): Likewise.
15586         (struct group_info): Likewise.
15587         (struct deferred_change): Likewise.
15588         (get_group_info): Likewise.
15589         (delete_dead_store_insn): Likewise.
15590         (free_read_records): Likewise.
15591         (replace_read): Likewise.
15592         (check_mem_read_rtx): Likewise.
15593         (scan_insn): Likewise.
15594         (dse_step1): Likewise.
15595         (dse_step7): Likewise.
15596         * et-forest.c (struct et_occ): Remove unused members.
15597         (et_new_occ): Use allocate instead of new operator.
15598         (et_new_tree): Likewise.
15599         (et_free_tree): Call release method explicitly.
15600         (et_free_tree_force): Likewise.
15601         (et_free_pools): Likewise.
15602         (et_split): Use remove instead of delete operator.
15603         * et-forest.h (struct et_node): Remove unused members.
15604         * ipa-cp.c: Change pool_allocator to object_allocator.
15605         * ipa-inline-analysis.c: Likewise.
15606         * ipa-profile.c: Likewise.
15607         * ipa-prop.c: Likewise.
15608         * ipa-prop.h: Likewise.
15609         * ira-build.c (initiate_cost_vectors): Cast return value.
15610         (ira_allocate_cost_vector): Likewise.
15611         * ira-color.c (struct update_cost_record): Remove unused members.
15612         * lra-int.h (struct lra_live_range): Likewise.
15613         (struct lra_copy): Likewise.
15614         (struct lra_insn_reg): Likewise.
15615         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15616         * lra.c (new_insn_reg): Replace new operator with allocate method.
15617         (free_insn_regs): Same for operator delete.
15618         (finish_insn_regs): Release new static allocator.
15619         (finish_insn_recog_data): Likewise.
15620         (lra_free_copies): Replace delete operator with remove method.
15621         (lra_create_copy): Replace operator new with allocate method.
15622         (invalidate_insn_data_regno_info): Same for remove method.
15623         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15624         (free_debug_insn_changes): Replace delete operator with remove method.
15625         (replace_oldest_value_reg): Replace operator new with allocate method.
15626         (pass_cprop_hardreg::execute): Release new static variable.
15627         * sched-deps.c (sched_deps_init): Change pool_allocator to
15628         object_allocator.
15629         * sel-sched-ir.c: Likewise.
15630         * sel-sched-ir.h: Likewise.
15631         * stmt.c (expand_case): Likewise.
15632         (expand_sjlj_dispatch_table): Likewise.
15633         * tree-sra.c (struct access): Remove unused members.
15634         (struct assign_link): Likewise.
15635         (sra_deinitialize): Release newly added static pools.
15636         (create_access_1):Replace operator new with allocate method.
15637         (build_accesses_from_assign): Likewise.
15638         (create_artificial_child_access): Likewise.
15639         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15640         pool_allocator to object_allocator.
15641         * tree-ssa-pre.c: Likewise.
15642         * tree-ssa-reassoc.c: Likewise.
15643         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15644         * tree-ssa-strlen.c: Likewise.
15645         * tree-ssa-structalias.c: Likewise.
15646         * var-tracking.c (onepart_pool_allocate): New function.
15647         (unshare_variable): Use the newly added function.
15648         (variable_merge_over_cur): Likewise.
15649         (variable_from_dropped): Likewise.
15650         (variable_was_changed): Likewise.
15651         (set_slot_part): Likewise.
15652         (emit_notes_for_differences_1): Likewise.
15653         (vt_finalize): Release newly added static pools.
15655 2015-07-16  Martin Jambor  <mjambor@suse.cz>
15657         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
15658         all uses.  Fix two typos in its general comment.
15659         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
15661 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
15663         * config/i386/linux-common.h (LINK_MPX): New.
15664         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15665         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15666         indicating '-z bndplt' support by linker.
15667         * configure: Regenerate.
15668         * config.in: Regenerate.
15670 2015-07-16  Richard Biener  <rguenther@suse.de>
15672         * fold-const.c (fold_widened_comparison): Remove.
15673         (fold_sign_changed_comparison): Likewise.
15674         (fold_comparison): Move widened and sign-changed comparison
15675         simplification ...
15676         * match.pd: ... to patterns here.
15677         * generic-match-head.c: Include target.h.
15678         * gimple-match-head.c: Likewise.
15680 2015-07-16  Richard Biener  <rguenther@suse.de>
15682         * tree-ssa-dom.c (dom_valueize): New function.
15683         (record_temporary_equivalences): Also record equivalences
15684         for dominating stmts that have uses of equivalences we are
15685         about to record.
15687 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
15689         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15690         add_autoinc_candidates.
15691         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15692         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15693         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15694         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15695         Call new function.
15696         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15697         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15698         Remove parameter struct iv*.  Call add_autoinc_candidates here.
15699         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15700         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15701         Call new function.
15702         (find_iv_candidates): Call new functions.
15704 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
15706         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15707         uninitialized-variable warning.
15709 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
15711         PR target/65249
15712         * config/sh/sh.md (movdi): Split simple reg move to two movsi
15713         when the destination is R0.
15715 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
15717         PR target/66866
15718         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15719         * config/i386/i386.c (ix86_expand_pextr): New function.
15720         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
15721         for non-lowpart subregs.
15722         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15723         (insv<mode>): Use SWI248 mode iterator.
15724         (insv<mode>_1): Ditto.
15726 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15727             Sebastian Pop  <s.pop@samsung.com>
15729         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15730         iterator to use_stmt.
15732 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15733             Sebastian Pop <s.pop@samsung.com>
15735         * graphite-scop-detection.c (build_scops_1): Discard scops for
15736         which entry==exit.
15738 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15739             Sebastian Pop <s.pop@samsung.com>
15741         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15742         case of a return statement in scop.
15744 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
15745             Sebastian Pop <s.pop@samsung.com>
15747         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15748         INTEGER_TYPE parameters.
15749         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15750         VECTOR_CST in scan_tree_for_params.
15751         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15753 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
15755         * gimple-pretty-print.h: Don't include pretty-print.h.
15756         * tree-streamer.h: Don't include lto-streamer.h.
15757         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15758         * gimple-streamer-in.c: Remove redundant includes.
15759         * gimple-streamer-out.c: Likewise.
15760         * ipa-devirt.c: Likewise.
15761         * ipa-icf.c: Likewise.
15762         * ipa-inline-analysis.c: Likewise.
15763         * ipa-polymorphic-call.c: Likewise.
15764         * ipa-profile.c: Likewise.
15765         * ipa-prop.c: Likewise.
15766         * ipa-pure-const.c: Likewise.
15767         * lto-cgraph.c: Likewise.
15768         * lto-streamer-in.c: Likewise.
15769         * lto-streamer-out.c: Likewise.
15770         * lto-streamer.c: Likewise.
15771         * tree-streamer-in.c: Likewise.
15772         * tree-streamer-out.c: Likewise.
15773         * tree-streamer.c: Likewise.
15775 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
15777         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
15778         include input.h.
15779         * opts.c: Remove multiline #include comment.
15781 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
15783         * config/nvptx/mkoffload.c (process): Add C++ protection to
15784         emitted code.
15786 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15788         PR target/66854
15789         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
15790         null before IEEE 128-bit floating point support patch.
15792 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15794         * simplify-rtx.c (simplify_ternary_operation): Add simplification
15795         for (!c) != {0,...,0} ? a : b for vector modes.
15797 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
15798             Martin Jambor  <mjambor@suse.cz>
15800         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
15801         struct func_body_info* instead of struct ipa_node_params*, expecting
15802         fbi->info to be filled in.  Replace throughout.  Adjust call to
15803         ipa_load_from_parm_agg.
15804         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
15805         instead of struct ipa_node_params*.  Adjust calls to other functions
15806         so that they pass either fbi or fbi->info.
15807         (set_switch_stmt_execution_predicate): Likewise.
15808         (will_be_nonconstant_predicate): Likewise.
15809         (compute_bb_predicates): Likewise.
15810         (estimate_function_body_sizes): Move asserts earlier.  Fill in
15811         struct func_body_info, replace parms_info with fbi.info.  Adjust
15812         calls to functions that now accept struct func_body_info.
15813         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
15814         (struct func_body_info): Likewise.
15815         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
15816         remove static.  Adjust callers.
15817         (ipa_load_from_parm_agg): Remove.
15818         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
15819         (func_body_info): Likewise.
15820         (ipa_load_from_parm_agg): Adjust prototype.
15822 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15824         * gensupport.c (rtx_handle_directive): Adjust.
15825         * read-rtl.c (apply_iterators): Take vector to add rtxs to
15826         instead of expr list rtx.
15827         (add_define_attr_for_define_subst): Likewise.
15828         (add_define_subst_attr): Likewise.
15829         (read_subst_mapping): Likewise.
15830         (read_rtx): Likewise.
15831         * rtl.h (read_rtx): Adjust.
15833 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15835         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
15837 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15839         PR target/58066
15840         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
15841         (*tls_local_dynamic_base_64_<mode>): Ditto.
15842         (*tls_local_dynamic_base_64_largepic): Ditto.
15843         (tls_global_dynamic_64_<mode>): Update expander pattern.
15844         (tls_local_dynamic_base_64_<mode>): Ditto.
15846 2015-07-15  Richard Biener  <rguenther@suse.de>
15848         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
15849         and bool_var == 1 -> bool_var simplifications ...
15850         * match.pd: ... to patterns here.  Factor out negate_expr_p
15851         cases from the A - B -> A + (-B) patterns as negate_expr_p
15852         predicate and add a -(A + B) -> (-B) - A pattern.
15854 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
15856         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
15858 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
15859             Robert Suchanek  <robert.suchanek@imgtec.com>
15861         * config/mips/mips.c (mips_int_mask): New enum.
15862         (mips_shadow_set): Likewise.
15863         (int_mask): New variable.
15864         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
15865         (machine_function): Add int_mask and use_shadow_register_set.
15866         (mips_attribute_table): Add attribute handlers for interrupt and
15867         use_shadow_register_set.
15868         (mips_interrupt_mask): New static function.
15869         (mips_handle_interrupt_attr): Likewise.
15870         (mips_handle_use_shadow_register_set_attr): Likewise.
15871         (mips_use_shadow_register_set): Change return type to enum
15872         mips_shadow_set.  Add argument handling for use_shadow_register_set
15873         attribute.
15874         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
15875         compare with mips_shadow_set enum.
15876         (mips_compute_frame_info): Add interrupt mask and
15877         use_shadow_register_set to per-function information structure.
15878         Add a stack slot for EPC unconditionally.
15879         (mips_expand_prologue): Compare use_shadow_register_set value
15880         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
15881         masked interrupt register but in EIC mode use K0 and save Cause in K0.
15882         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
15883         copying the stack pointer from the shadow register set.
15884         * config/mips/mips.h (SR_IM0): New define.
15885         * config/mips/mips.md (mips_rdpgpr): Rename to...
15886         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
15887         * doc/extend.texi (Declaring Attributes of Functions): Document
15888         optional arguments for interrupt and use_shadow_register_set
15889         attributes.
15891 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
15893         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
15894         interrupt attribute.
15895         (mips_expand_prologue): Disable the floating point unit in an ISR.
15896         * config/mips/mips.h (SR_COP1): New define.
15898 2015-07-15  Richard Biener  <rguenther@suse.de>
15900         * genmatch.c (parser::peek, parser::peek_ident): Add argument
15901         to tell how many tokens to peek ahead (default 1).
15902         (parser::eat_token, parser::eat_ident): Return token consumed.
15903         (parser::parse_result): Parse new switch statement.
15904         * match.pd: Use case statements where appropriate.
15906 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15908         PR rtl-optimization/58066
15909         * calls.c (expand_call): Precompute register parameters before stack
15910         alignment is performed.
15912 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
15914         PR rtl-optimization/66838
15915         * postreload.c (reload_cse_move2add): Also process
15916         CALL_INSN_FUNCTION_USAGE when resetting information of
15917         call-clobbered registers.
15919 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15920             Cesar Philippidis  <cesar@codesourcery.com>
15921             Chung-Lin Tang  <cltang@codesourcery.com>
15923         * config/nios2/constraints.md (U, v): New constraints.
15924         * config/nios2/predicates.md (rdprs_dcache_operand): New.
15925         (ldstex_memory_operand): New.
15926         * config/nios2/sync.md: New file.
15927         * config/nios2/nios2.md (unspecv): Add new builtin function
15928         UNSPECV codes.
15929         (rdprs, flushd, flushda, wrpie, eni): New patterns.
15930         (top-level): Include sync.md.
15931         * config/nios2/nios2.c (N2_FTYPES): Add function types for
15932         new builtins.
15933         (N2_BUILTINS): Add arch field setting, add new builtins.
15934         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
15935         for arch field.
15936         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
15937         Also handle ldex/stex/ldsex/stsex builtins.
15938         (nios2_expand_rdprs_builtin): New function.
15939         (nios2_expand_cache_builtin): New function.
15940         (nios2_expand_wrpie_builtin): New function.
15941         (nios2_expand_eni_builtin): New function.
15942         (nios2_expand_builtin): Add arch field handling and new builtin
15943         cases.
15944         * doc/extend.texi (Altera Nios II Built-in Functions): Document
15945         new builtins.
15946         * doc/md.texi (Machine Constraints): Document U and v constraints.
15948 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15949             Cesar Philippidis  <cesar@codesourcery.com>
15950             Chung-Lin Tang  <cltang@codesourcery.com>
15952         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
15953         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
15954         callee_save_reg_size and uses_anonymous_args fields.
15955         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
15956         (nios2_create_cfa_notes): New function.
15957         (nios2_adjust_stack): New function for adjusting stack.
15958         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
15959         Use nios2_adjust_stack.
15960         (nios2_expand_epilogue): Likewise.
15961         (nios2_expand_return): New function.
15962         (nios2_can_use_return_insn): Update for CDX pop.n usage.
15963         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
15964         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
15965         * config/nios2/nios2.md (return): Use nios2_expand_return.
15967 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15968             Cesar Philippidis  <cesar@codesourcery.com>
15969             Chung-Lin Tang  <cltang@codesourcery.com>
15971         * config/nios2/predicates.md (pop_operation): New.
15972         (ldwm_operation, stwm_operation): New.
15973         (nios2_hard_register_operand): New.
15974         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
15975         (ldstwm_operation_p): Declare.
15976         (gen_ldstwm_peep): Declare.
15977         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
15978         (base_reg_adjustment_p): New.
15979         (pop_operation_p): New.
15980         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
15981         (nios2_ldstwm_regset_p): New.
15982         (ldstwm_operation_p): New.
15983         (gen_ldst): New.
15984         (nios2_ldst_parallel): New.
15985         (struct ldswm_operand): Declare.
15986         (compare_ldstwm_operands): New.
15987         (can_use_cdx_ldstw): New.
15988         (gen_ldstwm_peep): New.
15989         * config/nios2/nios2-ldstwm.sml: New.
15990         * config/nios2/nios2.md: Include ldstwm.md.
15991         * config/nios2/ldstwm.md: Generated.
15993 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
15994             Cesar Philippidis  <cesar@codesourcery.com>
15995             Chung-Lin Tang  <cltang@codesourcery.com>
15997         * config/nios2/nios2.h (LABEL_ALIGN): Define.
15998         (REG_ALLOC_ORDER): Define.
15999         (ADJUST_REG_ALLOC_ORDER): Define.
16000         (HONOR_REG_ALLOC_ORDER): Define.
16001         (CDX_REG_P): Define.
16002         (ANDCLEAR_INT): Define.
16003         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16004         (nios2_label_align): Declare.
16005         (nios2_cdx_narrow_form_p): Declare.
16006         (nios2_adjust_reg_alloc_order): Declare.
16007         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16008         operation.
16009         (nios2_large_unspec_reloc_p): New function, split from...
16010         (nios2_legitimate_pic_operand_p): ...here.
16011         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16012         (nios2_print_operand_punct_valid_p): New.
16013         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
16014         (split_mem_address): New.
16015         (split_alu_insn): New.
16016         (cdxreg): New.
16017         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16018         (enum nios2_add_insn_kind): New.
16019         (nios2_add_insn_names, nios2_add_insn_narrow): New.
16020         (nios2_add_insn_classify): New.
16021         (nios2_add_insn_asm): New.
16022         (nios2_cdx_narrow_form_p): New.
16023         (label_align, min_labelno, max_labelno): New.
16024         (nios2_reorg): New.
16025         (nios2_label_align): New.
16026         (nios2_adjust_reg_alloc_order): New.
16027         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16028         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16029         * config/nios2/constraints.md (P): New constraint.
16030         * config/nios2/predicates.md (const_and_operand): New.
16031         (and_operand): New.
16032         (stack_memory_operand): New.
16033         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16034         (length): Update to use nios2_cdx_narrow_form_p().
16035         (type): Add new insn type values.
16036         (control, alu, st, ld, shift): Update insn reservations with
16037         new insn type values.
16038         (*high, *lo_sum): Define new insn patterns for constant generation.
16039         (movqi_internal, movhi_internal, movsi_internal): Reduce
16040         alternatives, update asm template to handle CDX variants, update
16041         type attributes.
16042         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16043         template, update type attributes.
16044         (extendhisi2, extendqi<mode>2): Likewise.
16045         (addsi3): Change to use function for asm string.
16046         (subsi3): Add CDX notation to asm template, update type attributes.
16047         (negsi3, one_cmplsi3): Likewise.
16048         (andsi3): New pattern, specialized from logical patterns.
16049         (<code>si3): Remove and case, combine alternatives, update asm
16050         template.
16051         (<shift_op>si3): Add CDX notation, update type attributes.
16052         (rotrsi3): Update type attribute.
16053         (*merge, extzv, insv): New insn patterns.
16054         (return): Change to define_expand.
16055         (simple_return): Add CDX notation, update type attributes.
16056         (indirect_jump): Add CDX notation.
16057         (jump): Update asm cases, update length attribute expression.
16058         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16059         (nios2_cbranch): Update asm cases and length attribute expression
16060         to handle CDX variants.
16061         (nios2_cmp<code>): Update asm template.
16062         (nop): Add CDX notation, update type attributes.
16063         (trap): Add CDX notation.
16064         (ctrapsi4): Update asm cases and length attribute expression to
16065         handle CDX variant.
16066         * doc/md.texi (Machine Constraints): Document P constraint.
16068 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16069             Cesar Philippidis  <cesar@codesourcery.com>
16070             Chung-Lin Tang  <cltang@codesourcery.com>
16072         * config/nios2/nios2.h (SMALL_INT12): New macro.
16073         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16074         (nios2_valid_addr_expr_p): Use it.
16075         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16076         with implicit "io" instructions on R2.
16077         * config/nios2/constraints.md (w): New constraint.
16078         * config/nios2/predicates.md (ldstio_memory_operand): New.
16079         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16080         operand predicate and constraint.
16081         (ld<bh>io_signed, st<bhw>io>): Likewise.
16082         * doc/md.texi (Machine Constraints): Document w constraint.
16084 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16085             Cesar Philippidis  <cesar@codesourcery.com>
16086             Chung-Lin Tang  <cltang@codesourcery.com>
16088         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16089         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16090         Nios II architecture level.
16091         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16092         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16093         (OPTION_DEFAULT_SPECS): Define.
16094         (ASM_SPEC): Add -march= spec strings.
16095         * config/nios2/nios2.c (nios2_option_override): Check for
16096         conflicts involving new options.
16097         * config.gcc (nios2*-*-*): Support --with-arch=.
16098         * doc/invoke.texi (Option Summary, Nios II Options): Document
16099         -march=, -mbmx, and -mcdx.
16101 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
16103         PR rtl-optimization/66626
16104         * lra-constraints.c (lra_constraints): Prevent equivalence
16105         substitution for static chain pseudo in functions with nonlocal
16106         goto.
16108 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
16110         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16111         (nios2_emit_stack_limit_check): Add size parameter.  Handle
16112         -fstack-limit-symbol as well as -fstack-limit-register.
16113         (nios2_expand_prologue): Emit only a single stack limit check,
16114         even if multiple stack adjustments are required.
16115         (nios2_option_override): Diagnose unsupported combination of -fpic
16116         and -stack-limit-symbol.
16118 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
16120         * Makefile.in (top_srcdir): New.
16121         * configure.ac: Use AM_ZLIB.
16122         * configure: Regeneated.
16124 2015-07-14  Matthias Klose  <doko@ubuntu.com>
16126         PR target/66840
16127         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16129 2015-07-14  Richard Biener  <rguenther@suse.de>
16131         PR tree-optimization/66863
16132         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16133         what we record for conversion use stmt lhs inequalities.
16135 2015-07-14  Richard Biener  <rguenther@suse.de>
16137         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16138         (decision_tree::gen_gimple): Likewise.
16140 2015-07-14  Tom de Vries  <tom@codesourcery.com>
16142         * gcc.c (greater_than_spec_func): Declare forward.
16143         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16144         -ftree-parallelize-loops={0,1}.
16145         (static_spec_functions): Add greater_than_spec_func function with name
16146         "gt".
16147         (greater_than_spec_func): New function.
16149 2015-07-14  Richard Biener  <rguenther@suse.de>
16151         * tree-ssa-dom.c (record_temporary_equivalences): Merge
16152         wideing type conversion case from record_equivalences_from_incoming_edge
16153         and use record_equality to record equivalences.
16154         (record_equivalences_from_incoming_edge): Call
16155         record_temporary_equivalences.
16157 2015-07-14  Richard Biener  <rguenther@suse.de>
16159         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16160         (struct if_expr): New.
16161         (struct with_expr): Likewise.
16162         (is_a_helper): Add helpers for if_expr and with_expr.
16163         (struct simplify): Add simplify_kind enum and member.  Remove
16164         ifexpr_vec member.
16165         (simplify::simplify): Adjust.
16166         (lower_commutative): Adjust.
16167         (lower_opt_convert): Likewise.
16168         (lower_cond): Likewise.
16169         (replace_id): Handle with_expr and if_expr.
16170         (lower_for): Adjust.
16171         (dt_simplify::gen_1): New recursive worker, split out from ...
16172         (dt_simplify::gen): ... here.  Deal with if and with expansion
16173         recursively.
16174         (capture_info::capture_info): Take context argument
16175         (capture_info::walk_result): Only analyze specific result.
16176         (parser::parse_result): New function.
16177         (parser::parse_simplify): Adjust to parse ifs with then end
16178         else case.
16179         (parser::parse_if): Simplify.
16180         (parser::parse_pattern): Pass down simplify kind.
16181         * match.pd: Convert if structure to new syntax.
16183 2015-07-13  Marek Polacek  <polacek@redhat.com>
16185         * rtl.c (rtx_equal_p_cb): Fix typo.
16187 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
16189         * omega.h: Don't include config.h, don't include params.h again if
16190         omega.h has already been included.
16191         * graphite-poly.h: Include sese.h.
16192         * graphite.c: Don't include sese.h, remove needless includes and
16193         minimize includes outside #ifdef HAVE_isl block.
16194         * graphite-blocking.c: Don't include sese.h, remove needless includes,
16195         and wrap entire file in #ifdef HAVE_isl
16196         * graphite-dependences.c: Likewise.
16197         * graphite-interchange.c: Likewise.
16198         * graphite-isl-ast-to-gimple.c: Likewise.
16199         * graphite-optimize-isl.c: Likewise.
16200         * graphite-poly.c: Likewise.
16201         * graphite-scop-detection.c: Likewise.
16202         * graphite-sese-to-poly.c: Likewise.
16204 2015-07-13  Tom de Vries  <tom@codesourcery.com>
16206         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16208 2015-07-13  Renlin Li  <renlin.li@arm.com>
16210         PR rtl/66556
16211         * simplify-rtx.c (simplify_const_relational_operation): Add
16212         side_effects_p checks.
16214 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
16216         * bitmap.h: Fix double word typos.
16217         * builtins.c: Same.
16218         * calls.c: Same.
16219         * cfgloopmanip.c: Same.
16220         * cgraph.c: Same.
16221         * cgraph.h: Same.
16222         * cgraphclones.c: Same.
16223         * combine.c: Same.
16224         * config/aarch64/aarch64-protos.h: Same.
16225         * config/aarch64/aarch64.c: Same.
16226         * config/aarch64/aarch64.md: Same.
16227         * config/arm/arm.md: Same.
16228         * config/arm/arm1020e.md: Same.
16229         * config/arm/arm1026ejs.md: Same.
16230         * config/arm/arm926ejs.md: Same.
16231         * config/arm/fa526.md: Same.
16232         * config/arm/fa606te.md: Same.
16233         * config/arm/fa626te.md: Same.
16234         * config/arm/fa726te.md: Same.
16235         * config/arm/fmp626.md: Same.
16236         * config/darwin.c: Same.
16237         * config/epiphany/epiphany.c: Same.
16238         * config/frv/frv.c: Same.
16239         * config/ft32/ft32.c: Same.
16240         * config/gnu-user.h: Same.
16241         * config/h8300/constraints.md: Same.
16242         * config/i386/i386.c: Same.
16243         * config/i386/i386.md: Same.
16244         * config/iq2000/iq2000.md: Same.
16245         * config/mips/mips.c: Same.
16246         * config/mmix/mmix.md: Same.
16247         * config/moxie/moxie.c: Same.
16248         * config/nds32/nds32.md: Same.
16249         * config/pa/pa.h: Same.
16250         * config/rs6000/aix.h: Same.
16251         * config/rs6000/rs6000.h: Same.
16252         * config/sh/sh.c: Same.
16253         * config/tilegx/tilegx.md: Same.
16254         * config/tilepro/gen-mul-tables.cc: Same.
16255         * cse.c: Same.
16256         * dbxout.c: Same.
16257         * doc/invoke.texi: Same.
16258         * dse.c: Same.
16259         * dwarf2out.c: Same.
16260         * final.c: Same.
16261         * gcc.c: Same.
16262         * genmatch.c: Same.
16263         * gimplify.c: Same.
16264         * hash-table.h: Same.
16265         * internal-fn.c: Same.
16266         * ipa-cp.c: Same.
16267         * ipa-devirt.c: Same.
16268         * ipa-icf.c: Same.
16269         * ipa-icf.h: Same.
16270         * ipa-profile.c: Same.
16271         * ipa-prop.c: Same.
16272         * ipa-prop.h: Same.
16273         * ira.c: Same.
16274         * omp-low.c: Same.
16275         * reg-stack.c: Same.
16276         * regcprop.c: Same.
16277         * reorg.c: Same.
16278         * rtl.h: Same.
16279         * sbitmap.h: Same.
16280         * tree-eh.c: Same.
16281         * tree-inline.c: Same.
16282         * tree-sra.c: Same.
16283         * tree-ssa-dom.c: Same.
16284         * tree-ssa-loop-ivopts.c: Same.
16285         * tree-ssa-structalias.c: Same.
16286         * tree-ssa-tail-merge.c: Same.
16287         * tree-ssa-ter.c: Same.
16288         * tree-ssa-threadupdate.c: Same.
16289         * tree-ssa-uninit.c: Same.
16290         * tree-ssanames.c: Same.
16291         * tree-vect-loop-manip.c: Same.
16292         * tree-vrp.c: Same.
16293         * tree.c: Same.
16294         * valtrack.c: Same.
16295         * vec.h: Same.
16297 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16299         PR middle-end/66726
16300         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16301         tree_ssa_phiopt_worker): Call it.
16303 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16305         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16306         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16307         REG_EQUAL note.
16309 2015-07-11  Marek Polacek  <polacek@redhat.com>
16311         PR middle-end/66353
16312         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16313         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16314         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16315         rather than bb_has_abnormal_call_pred.
16316         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16317         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16318         rather than bb_has_abnormal_call_pred.
16320 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
16322         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16323         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16324         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16325         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16326         v850_legitimate_address_p): New functions.
16327         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16329 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
16331         PR target/66819
16332         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16333         indirect sibcall with register arguments if register available
16334         for argument passing.
16335         (init_cumulative_args): Set cfun->machine->arg_reg_available
16336         to (cum->nregs > 0) or to true if function has a variable
16337         argument list.
16338         (function_arg_advance_32): Set cfun->machine->arg_reg_available
16339         to false if cum->nregs <= 0.
16340         * config/i386/i386.h (machine_function): Add arg_reg_available.
16342 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
16344         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16345         and gen_higpart instead of gen_rtx_SUBREG.
16346         * config/i386/i386.md
16347         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16348         (read-modify peephole2): Use gen_lowpart instead of
16349         gen_rtx_SUBREG for operand 5.
16351 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16353         * config/tilepro/gen-mul-tables.cc (main): Change include list for
16354         generated files.
16355         * config/tilepro/mul-tables.c: Regenerate.
16356         * config/tilegx/mul-tables.c: Regenerate.
16358 2015-07-10  Richard Biener  <rguenther@suse.de>
16360         * fold-const.c (distribute_bit_expr): Remove.
16361         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16362         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16363         to A & (B | C) and simplifying A << C1 << C2 to ...
16364         * match.pd: ... patterns here.
16366 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
16368         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16369         Mark mem as READONLY and NOTRAP for PIC symbol.
16371 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
16373         * gimple-predict.h: New file.
16374         (gimple_predict_predictor, gimple_predict_set_predictor,
16375         gimple_predict_outcome, gimple_predict_set_outcome,
16376         gimple_build_predict): Relocate here.
16377         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16378         gimple_predict_outcome, gimple_predict_set_outcome): Move to
16379         gimple-predict.h.
16380         * gimple.c (gimple_build_predict): Move to gimple-predict.h
16381         * basic-block.h: Don't include cfghooks.h.
16382         * backend.h: Don't include predict.h.
16383         * cfghooks.h: Include predict.h.
16384         * gimple-pretty-print.c: Include gimple-predict.h.
16385         * gimplify.c: Likwise.
16386         * predict.c: Adjust includes.
16387         * tree-inline.c: Likewise.
16388         * asan.c: Likewise.
16389         * auto-inc-dec.c: Likewise.
16390         * auto-profile.c: Likewise.
16391         * bb-reorder.c: Likewise.
16392         * builtins.c: Likewise.
16393         * caller-save.c: Likewise.
16394         * calls.c: Likewise.
16395         * cfganal.c: Likewise.
16396         * cfgbuild.c: Likewise.
16397         * cfg.c: Likewise.
16398         * cfgcleanup.c: Likewise.
16399         * cfgexpand.c: Likewise.
16400         * cfghooks.c: Likewise.
16401         * cfgloopanal.c: Likewise.
16402         * cfgloop.c: Likewise.
16403         * cfgloopmanip.c: Likewise.
16404         * cfgrtl.c: Likewise.
16405         * cgraph.c: Likewise.
16406         * cgraphunit.c: Likewise.
16407         * combine.c: Likewise.
16408         * cprop.c: Likewise.
16409         * cse.c: Likewise.
16410         * dce.c: Likewise.
16411         * dojump.c: Likewise.
16412         * dse.c: Likewise.
16413         * except.c: Likewise.
16414         * expmed.c: Likewise.
16415         * expr.c: Likewise.
16416         * final.c: Likewise.
16417         * fold-const.c: Likewise.
16418         * function.c: Likewise.
16419         * fwprop.c: Likewise.
16420         * gcc-plugin.h: Likewise.
16421         * gcse.c: Likewise.
16422         * genattrtab.c: Likewise.
16423         * genemit.c: Likewise.
16424         * gengtype.c: Likewise.
16425         * genopinit.c: Likewise.
16426         * genoutput.c: Likewise.
16427         * genpreds.c: Likewise.
16428         * genrecog.c: Likewise.
16429         * gimple-fold.c: Likewise.
16430         * gimple-iterator.c: Likewise.
16431         * gimple-ssa-isolate-paths.c: Likewise.
16432         * gimple-ssa-strength-reduction.c: Likewise.
16433         * graph.c: Likewise.
16434         * graphite-blocking.c: Likewise.
16435         * graphite.c: Likewise.
16436         * graphite-dependences.c: Likewise.
16437         * graphite-interchange.c: Likewise.
16438         * graphite-isl-ast-to-gimple.c: Likewise.
16439         * graphite-optimize-isl.c: Likewise.
16440         * graphite-poly.c: Likewise.
16441         * graphite-scop-detection.c: Likewise.
16442         * graphite-sese-to-poly.c: Likewise.
16443         * haifa-sched.c: Likewise.
16444         * ifcvt.c: Likewise.
16445         * internal-fn.c: Likewise.
16446         * ipa-cp.c: Likewise.
16447         * ipa-profile.c: Likewise.
16448         * ipa-split.c: Likewise.
16449         * ipa-utils.c: Likewise.
16450         * ira-build.c: Likewise.
16451         * ira-color.c: Likewise.
16452         * ira-conflicts.c: Likewise.
16453         * ira-costs.c: Likewise.
16454         * ira-emit.c: Likewise.
16455         * ira-lives.c: Likewise.
16456         * jump.c: Likewise.
16457         * loop-doloop.c: Likewise.
16458         * loop-init.c: Likewise.
16459         * loop-invariant.c: Likewise.
16460         * loop-unroll.c: Likewise.
16461         * lower-subreg.c: Likewise.
16462         * lra-assigns.c: Likewise.
16463         * lra.c: Likewise.
16464         * lra-coalesce.c: Likewise.
16465         * lra-constraints.c: Likewise.
16466         * lra-lives.c: Likewise.
16467         * lto-cgraph.c: Likewise.
16468         * lto-streamer-in.c: Likewise.
16469         * mode-switching.c: Likewise.
16470         * modulo-sched.c: Likewise.
16471         * omp-low.c: Likewise.
16472         * optabs.c: Likewise.
16473         * passes.c: Likewise.
16474         * postreload.c: Likewise.
16475         * postreload-gcse.c: Likewise.
16476         * profile.c: Likewise.
16477         * recog.c: Likewise.
16478         * regstat.c: Likewise.
16479         * reload1.c: Likewise.
16480         * reorg.c: Likewise.
16481         * rtlanal.c: Likewise.
16482         * sched-ebb.c: Likewise.
16483         * sel-sched-ir.c: Likewise.
16484         * sese.c: Likewise.
16485         * shrink-wrap.c: Likewise.
16486         * simplify-rtx.c: Likewise.
16487         * stmt.c: Likewise.
16488         * store-motion.c: Likewise.
16489         * tracer.c: Likewise.
16490         * trans-mem.c: Likewise.
16491         * tree-call-cdce.c: Likewise.
16492         * tree-cfg.c: Likewise.
16493         * tree-cfgcleanup.c: Likewise.
16494         * tree-chkp.c: Likewise.
16495         * tree-complex.c: Likewise.
16496         * tree-eh.c: Likewise.
16497         * tree-if-conv.c: Likewise.
16498         * tree-loop-distribution.c: Likewise.
16499         * tree-outof-ssa.c: Likewise.
16500         * tree-parloops.c: Likewise.
16501         * tree-predcom.c: Likewise.
16502         * tree-pretty-print.c: Likewise.
16503         * tree-profile.c: Likewise.
16504         * tree-sra.c: Likewise.
16505         * tree-ssa.c: Likewise.
16506         * tree-ssa-coalesce.c: Likewise.
16507         * tree-ssa-dce.c: Likewise.
16508         * tree-ssa-dom.c: Likewise.
16509         * tree-ssa-forwprop.c: Likewise.
16510         * tree-ssa-ifcombine.c: Likewise.
16511         * tree-ssa-loop-ch.c: Likewise.
16512         * tree-ssa-loop-im.c: Likewise.
16513         * tree-ssa-loop-ivcanon.c: Likewise.
16514         * tree-ssa-loop-ivopts.c: Likewise.
16515         * tree-ssa-loop-manip.c: Likewise.
16516         * tree-ssa-loop-prefetch.c: Likewise.
16517         * tree-ssa-loop-unswitch.c: Likewise.
16518         * tree-ssa-math-opts.c: Likewise.
16519         * tree-ssa-phiopt.c: Likewise.
16520         * tree-ssa-pre.c: Likewise.
16521         * tree-ssa-reassoc.c: Likewise.
16522         * tree-ssa-sink.c: Likewise.
16523         * tree-ssa-tail-merge.c: Likewise.
16524         * tree-ssa-threadedge.c: Likewise.
16525         * tree-ssa-threadupdate.c: Likewise.
16526         * tree-switch-conversion.c: Likewise.
16527         * tree-tailcall.c: Likewise.
16528         * tree-vect-data-refs.c: Likewise.
16529         * tree-vect-loop.c: Likewise.
16530         * tree-vect-loop-manip.c: Likewise.
16531         * tree-vectorizer.c: Likewise.
16532         * tree-vrp.c: Likewise.
16533         * ubsan.c: Likewise.
16534         * value-prof.c: Likewise.
16535         * varasm.c: Likewise.
16536         * var-tracking.c: Likewise.
16537         * config/aarch64/aarch64-builtins.c: Likewise.
16538         * config/aarch64/aarch64.c: Likewise.
16539         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16540         * config/alpha/alpha.c: Likewise.
16541         * config/arc/arc.c: Likewise.
16542         * config/arm/arm.c: Likewise.
16543         * config/avr/avr.c: Likewise.
16544         * config/bfin/bfin.c: Likewise.
16545         * config/c6x/c6x.c: Likewise.
16546         * config/cr16/cr16.c: Likewise.
16547         * config/cris/cris.c: Likewise.
16548         * config/darwin.c: Likewise.
16549         * config/darwin-c.c: Likewise.
16550         * config/epiphany/epiphany.c: Likewise.
16551         * config/epiphany/mode-switch-use.c: Likewise.
16552         * config/epiphany/resolve-sw-modes.c: Likewise.
16553         * config/fr30/fr30.c: Likewise.
16554         * config/frv/frv.c: Likewise.
16555         * config/ft32/ft32.c: Likewise.
16556         * config/h8300/h8300.c: Likewise.
16557         * config/i386/i386.c: Likewise.
16558         * config/i386/winnt.c: Likewise.
16559         * config/ia64/ia64.c: Likewise.
16560         * config/iq2000/iq2000.c: Likewise.
16561         * config/lm32/lm32.c: Likewise.
16562         * config/m32c/m32c.c: Likewise.
16563         * config/m32r/m32r.c: Likewise.
16564         * config/m68k/m68k.c: Likewise.
16565         * config/mcore/mcore.c: Likewise.
16566         * config/mep/mep.c: Likewise.
16567         * config/microblaze/microblaze.c: Likewise.
16568         * config/mips/mips.c: Likewise.
16569         * config/mmix/mmix.c: Likewise.
16570         * config/mn10300/mn10300.c: Likewise.
16571         * config/moxie/moxie.c: Likewise.
16572         * config/msp430/msp430.c: Likewise.
16573         * config/nds32/nds32.c: Likewise.
16574         * config/nds32/nds32-cost.c: Likewise.
16575         * config/nds32/nds32-fp-as-gp.c: Likewise.
16576         * config/nds32/nds32-intrinsic.c: Likewise.
16577         * config/nds32/nds32-isr.c: Likewise.
16578         * config/nds32/nds32-md-auxiliary.c: Likewise.
16579         * config/nds32/nds32-memory-manipulation.c: Likewise.
16580         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16581         * config/nds32/nds32-predicates.c: Likewise.
16582         * config/nios2/nios2.c: Likewise.
16583         * config/nvptx/nvptx.c: Likewise.
16584         * config/pa/pa.c: Likewise.
16585         * config/pdp11/pdp11.c: Likewise.
16586         * config/rl78/rl78.c: Likewise.
16587         * config/rs6000/rs6000.c: Likewise.
16588         * config/rx/rx.c: Likewise.
16589         * config/s390/s390.c: Likewise.
16590         * config/sh/sh.c: Likewise.
16591         * config/sh/sh-mem.cc: Likewise.
16592         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16593         * config/sh/sh_treg_combine.cc: Likewise.
16594         * config/sparc/sparc.c: Likewise.
16595         * config/spu/spu.c: Likewise.
16596         * config/stormy16/stormy16.c: Likewise.
16597         * config/tilegx/tilegx.c: Likewise.
16598         * config/tilepro/tilepro.c: Likewise.
16599         * config/v850/v850.c: Likewise.
16600         * config/vax/vax.c: Likewise.
16601         * config/visium/visium.c: Likewise.
16602         * config/xtensa/xtensa.c: Likewise.
16604 2015-07-10  Richard Biener  <rguenther@suse.de>
16606         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16607         (decision_tree::gen_gimple): Likewise.
16608         (decision_tree::gen_generic): Likewise.
16610 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
16612         PR target/66813
16613         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16614         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16616 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
16618         PR middle-end/66820
16619         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16620         or ORT_TASK contexts.
16621         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16622         is non-zero.
16624 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16626         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16627         above function.
16629 2015-07-10  Tom de Vries  <tom@codesourcery.com>
16631         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16632         insert nit + 1 bound.
16634 2015-07-10  Richard Biener  <rguenther@suse.de>
16636         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16637         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16638         (if_convertible_loop_p_1): For this always compute bb predicates.
16639         (if_convertible_loop_p): And free them.
16641 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16643         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16644         in dump message.
16646 2015-07-10  Richard Biener  <rguenther@suse.de>
16648         PR tree-optimization/66823
16649         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16650         inverted predicate.
16652 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
16654         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16655         to handle mips[32|64]r3 and mips[32|64]r5.
16657 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
16659         PR middle-end/66633
16660         * tree-nested.c (get_static_chain): Or in a flag into
16661         info->static_chain_added.
16662         (get_frame_field, get_nonlocal_debug_decl): Likewise.
16663         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16664         2015-07-01 changes.
16665         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16666         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16667         add it to clauses.
16669         PR tree-optimization/66718
16670         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16671         field.
16672         (vect_simd_lane_linear): New function.
16673         (vectorizable_simd_clone_call): Support using linear arguments for
16674         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16676 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16678         PR target/66821
16679         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16681 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
16683         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16684         Use machine mode, not enum machine_mode in the prototype.
16686         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16687         classify 128-bit floating point support.
16688         (FLOAT128_IBM_P): Likewise.
16689         (FLOAT128_VECTOR_P): Likewise.
16690         (FLOAT128_2REG_P): Likewise.
16691         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16692         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16693         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16694         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16696         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16697         tests against TFmode/TDmode, since those modes do not use VSX
16698         addresses.
16699         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16700         support.
16701         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16702         tests against TFmode, etc.
16703         (invalid_e500_subreg): Add tests against IFmode/KFmode.
16704         (reg_offset_addressing_ok_p): Likewise.
16705         (rs6000_legitimate_offset_address_p): Likewise.
16706         (rs6000_legitimize_address): Likewise.
16707         (rs6000_legitimize_reload_address): Likewise.
16708         (rs6000_legitimate_address_p): Clean up tests against TFmode and
16709         TDmode to use the new helper macros, which will include IFmode and
16710         KFmode.
16711         (rs6000_emit_move): Likewise.
16712         (rs6000_darwin64_record_arg_recurse): Likewise.
16713         (print_operand): Likewise.
16714         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16715         that uses a single vector register as a vector and not as a
16716         floating point register in terms of the calling sequence.
16717         (rs6000_discover_homogeneous_aggregate): Likewise.
16718         (rs6000_return_in_memory): Likewise.
16719         (init_cumulative_args): Likewise.
16720         (rs6000_function_arg_boundary): Likewise.
16721         (rs6000_function_arg_advance_1): Likewise.
16722         (rs6000_function_arg): Likewise.
16723         (rs6000_pass_by_reference): Likewise.
16724         (rs6000_gimplify_va_arg): Likewise.
16725         (rs6000_secondary_reload_memory): Use machine_mode not enum
16726         machine mode.
16727         (rs6000_split_multireg_move): Use new helper macros.
16728         (spe_func_has_64bit_regs_p): Likewise.
16729         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16730         (output_toc): Use new helper macros.
16731         (rs6000_register_move_cost): Likewise.
16732         (rs6000_function_value): Add IEEE 128-bit floating point calling
16733         sequence support.
16734         (rs6000_libcall_value): Likewise.
16735         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16736         floating point support.
16737         (rs6000_vector_mode_supported_p): Likewise.
16739 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
16741         PR rtl-optimization/66782
16742         * lra-int.h (struct lra_insn_recog_data): Add comment about
16743         clobbered hard regs for arg_hard_regs.
16744         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16745         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16746         Add condition for processing used hard regs.
16747         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16748         Process clobbered hard regs.
16750 2015-07-09  Michael Matz  <matz@suse.de>
16752         * genmatch.c (fprintf_indent): New function.
16753         (operand::gen_transform): Add indent parameter.
16754         (expr::gen_transform, c_expr::gen_transform,
16755         capture::gen_transform): Ditto and use fprintf_indent.
16756         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16757         (dt_operand::gen, dt_operand::gen_predicate,
16758         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16759         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16760         (decision_tree::gen_gimple): Adjust calls and indent generated
16761         code.
16762         (decision_tree::gen_generic): Ditto.
16763         (write_predicate): Ditto.
16765 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
16767         PR target/66814
16768         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16769         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16770         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16771         {GENERAL,SSE,MMX}_REG_P where appropriate.
16773 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
16775         * lto-streamer.h: Don't include target.h and alloc-pool.h.
16776         * builtins.c: Adjust includes.
16777         * gimple.c: Likewise.
16778         * ipa-icf.c: Likewise.
16779         * lto-opts.c: Likewise.
16780         * ipa-reference.c: Likewise.
16781         * lto-section-out.c: Likewise.
16782         * lto-streamer-in.c: Likewise.
16783         * lto-streamer-out.c: Likewise.
16784         * opts-global.c: Likewise.
16785         * symtab.c: Likewise.
16786         * tree-chkp.c: Likewise.
16787         * tree-ssa-live.c: Likewise.
16788         * tree-streamer-in.c: Likewise.
16789         * tree-streamer-out.c: Likewise.
16790         * config/darwin.c: Likewise.
16791         * config/i386/winnt.c: Likewise.
16793 2015-07-09  Richard Biener  <rguenther@suse.de>
16795         * genmatch.c (struct expr): Add force_single_use flag.
16796         (expr::expr): Add copy constructor.
16797         (capture_info::walk_match): Gather force_single_use captures.
16798         (expr::gen_transform): Use possibly NULLified sequence.
16799         (dt_simplify::gen): Apply single-use restrictions by NULLifying
16800         seq if any constrained expr is not single-use.
16801         (parser::parse_expr): Refactor to allow multiple flags.  Handle
16802         's' flag to force an expression have a single-use if the pattern
16803         simplifies to more than one statement.
16804         * match.pd: Convert most single_use conditionals to :s flags.
16806 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16808         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
16809         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16810         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
16812 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
16814         * flags.h: Don't include flag-types.h or options.h.
16815         * opts-common.c: Adjust includes.
16816         * opts-global.c: Likewise.
16817         * common/config/epiphany/epiphany-common.c: Likewise.
16819 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16821         PR target/66818
16822         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
16823         for IA MCU.
16825 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
16827         PR target/66817
16828         * config/i386/i386.c (ix86_return_in_memory): Return true
16829         if int_size_in_bytes returns negative for IA MCU.
16831 2015-07-09  Marek Polacek  <polacek@redhat.com>
16833         PR tree-optimization/66718
16834         * Makefile.in (OBJS): Add gimple-laddress.o.
16835         * passes.def: Schedule pass_laddress.
16836         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
16837         * tree-pass.h (make_pass_laddress): Declare.
16838         * gimple-laddress.c: New file.
16840 2015-07-09  Richard Biener  <rguenther@suse.de>
16842         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
16844 2015-07-09  Richard Biener  <rguenther@suse.de>
16846         PR tree-optimization/66807
16847         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
16849 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
16851         * function.c (stack_protect_epilogue): Use if rather than switch for
16852         check targetm.have_stack_protect_test.
16854 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16856         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
16857         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
16858         * config/arc/arc.h: Likewise.
16859         * config/arm/arm.h: Likewise.
16860         * config/bfin/bfin.h: Likewise.
16861         * config/epiphany/epiphany.h: Likewise.
16862         * config/frv/frv.h: Likewise.
16863         * config/ia64/ia64.h: Likewise.
16864         * config/iq2000/iq2000.h: Likewise.
16865         * config/lm32/lm32.h: Likewise.
16866         * config/m32r/m32r.h: Likewise.
16867         * config/mcore/mcore.h: Likewise.
16868         * config/mep/mep.h: Likewise.
16869         * config/microblaze/microblaze.h: Likewise.
16870         * config/mips/mips.h: Likewise.
16871         * config/mmix/mmix.h: Likewise.
16872         * config/mn10300/mn10300.h: Likewise.
16873         * config/nds32/nds32.h: Likewise.
16874         * config/nios2/nios2.h: Likewise.
16875         * config/pa/pa.h: Likewise.
16876         * config/rl78/rl78.h: Likewise.
16877         * config/sh/sh.h: Likewise.
16878         * config/sparc/sparc.h: Likewise.
16879         * config/stormy16/stormy16.h: Likewise.
16880         * config/tilegx/tilegx.h: Likewise.
16881         * config/tilepro/tilepro.h: Likewise.
16882         * config/v850/v850.h: Likewise.
16883         * config/xtensa/xtensa.h: Likewise.
16884         * doc/tm.texi: Regenerate.
16885         * doc/tm.texi.in: Adjust.
16886         * combine.c (simplify_set): Likewise.
16887         (simplify_comparison): Likewise.
16888         * expr.c (store_constructor): Likewise.
16889         * internal-fn.c (expand_arith_overflow): Likewise.
16890         * reload.c (push_reload): Likewise.
16891         (find_reloads): Likewise.
16892         (find_reloads_subreg_address): Likewise.
16893         * reload1.c (eliminate_regs_1): Likewise.
16894         * rtlanal.c (nonzero_bits1): Likewise.
16895         (num_sign_bit_copies1): Likewise.
16896         * simplify-rtx.c (simplify_truncation): Likewise.
16898 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16900         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
16901         of AUTO_INC_DEC with the preprocessor.
16902         * combine.c (combine_instructions): Likewise.
16903         (can_combine_p): Likewise.
16904         (try_combine): Likewise.
16905         * emit-rtl.c (try_split): Likewise.
16906         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16907         * lower-subreg.c (resolve_simple_move): Likewise.
16908         * lra.c (update_inc_notes): Likewise.
16909         * recog.c (asm_operand_ok): Likewise.
16910         (constrain_operands): Likewise.
16911         * regrename.c (scan_rtx_address): Likewise.
16912         * reload.c (update_auto_inc_notes): Likewise.
16913         (reg_inc_found_and_valid_p): Likewise.
16914         * reload1.c (reload): Likewise.
16915         (emit_input_reload_insns): Likewise.
16916         (delete_output_reload): Likewise.
16917         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16918         * valtrack.c (cleanup_auto_inc_dec): Likewise.
16920 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16922         * rtl.h: Always define AUTO_INC_DEC.
16923         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
16924         * combine.c (combine_instructions): Likewise.
16925         (can_combine_p): Likewise.
16926         (try_combine): Likewise.
16927         * emit-rtl.c (try_split): Likewise.
16928         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16929         * lower-subreg.c (resolve_simple_move): Likewise.
16930         * lra.c (update_inc_notes): Likewise.
16931         * recog.c (asm_operand_ok): Likewise.
16932         (constrain_operands): Likewise.
16933         * regrename.c (scan_rtx_address): Likewise.
16934         * reload.c (update_auto_inc_notes): Likewise.
16935         (find_equiv_reg): Likewise.
16936         * reload1.c (reload): Likewise.
16937         (reload_as_needed): Likewise.
16938         (choose_reload_regs): Likewise.
16939         (emit_input_reload_insns): Likewise.
16940         (delete_output_reload): Likewise.
16941         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16942         * valtrack.c (cleanup_auto_inc_dec): Likewise.
16944 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16946         * combine.c (can_combine_def_p): Don't check the value of
16947         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
16948         (combinable_i3pat): Likewise.
16949         (mark_used_regs_combine): Likewise.
16950         * regrename.c (rename_chains): Likewise.
16951         * reload.c (find_reloads_address): Likewise.
16952         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16954 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16956         * combine.c (update_rsp_from_reg_equal): Don't check if
16957         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
16958         (reg_nonzero_bits_for_combine): Likewise.
16959         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
16960         1.
16961         * config/frv/frv.h: Likewise.
16962         * config/lm32/lm32.h: Likewise.
16963         * config/mep/mep.h: Likewise.
16964         * config/mips/mips.h: Likewise.
16965         * config/rs6000/rs6000.h: Likewise.
16966         * config/sh/sh.h: Likewise.
16967         * config/tilegx/tilegx.h (enum reg_class): Likewise.
16968         * config/tilepro/tilepro.h: Likewise.
16969         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
16970         * doc/tm.texi: Regenerate.
16971         * doc/tm.texi.in: Adjust.
16972         * rtlanal.c (nonzero_bits1): Likewise.
16974 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16976         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
16977         with the preprocessor.
16978         (combine_instructions): Likewise.
16979         (try_combine): Likewise.
16980         (subst): Likewise.
16981         (distribute_notes): Likewise.
16983 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16985         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
16986         defined.
16987         (simplify_set): Likewise.
16988         * cse.c (cse_insn): Likewise.
16989         * fold-const.c (fold_single_bit_test): Likewise.
16990         (fold_unary_loc): Likewise.
16991         * postreload.c (reload_cse_simplify_set): Likewise.
16992         (reload_cse_simplify_operands): Likewise.
16994 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
16996         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
16997         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
16999 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17001         PR target/66746
17002         * config/i386/x86intrin.h: Include <adxintrin.h> even if
17003         __iamcu__ is defined.
17005 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17007         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17009 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
17011         PR target/66523
17012         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17013         names from preservation.
17015 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
17017         PR target/66806
17018         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17019         change for IAMCU.
17020         (function_arg_advance_32): Don't pass vectors in registers for
17021         IAMCU.
17022         (function_arg_32): Likewise.
17023         (ix86_return_in_memory): Don't return vectors in registers for
17024         IAMCU.
17026 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
17028         PR middle-end/66334
17029         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17030         hard regno live at the start of BB with incoming abnormal edges.
17031         * lra-lives.c (process_bb_lives): Ditto.
17033 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
17035         PR libgomp/65099
17036         * config/nvptx/mkoffload.c (main): Create an offload image only in
17037         64-bit configurations.
17039 2015-07-08  Martin Liska  <mliska@suse.cz>
17041         PR bootstrap/66744
17042         * tree-sra.c (create_access_1): Call ctor without brackets.
17043         (create_artificial_child_access): Likewise.
17045 2015-07-08  Richard Biener  <rguenther@suse.de>
17047         PR tree-optimization/66793
17048         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17049         Properly split the block after stmts ending it.
17051 2015-07-08  Richard Biener  <rguenther@suse.de>
17053         PR tree-optimization/66794
17054         * passes.c (execute_function_todo): Assert that post-dominators
17055         are not computed.
17056         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17057         Free post-dominators.
17059 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17061         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17062         with early exit.
17064 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17066         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17067         more than or equal 8 and less than 32 when optimizing for size.
17069 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17071         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17072         COSTS_N_INSNS (1) and increment it appropriately throughout the
17073         function.
17075 2015-07-08  Richard Biener  <rguenther@suse.de>
17077         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17079 2015-07-08  Alan Modra  <amodra@gmail.com>
17081         * target.def (rtx_costs): Remove "code" param, add "mode".
17082         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17083         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
17084         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17085         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
17086         call.  Track mode when given in rtx.
17087         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
17088         (default_address_cost): Pass Pmode to rtx_cost.
17089         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17090         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17091         with NULL set.
17092         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
17093         (notreg_cost): Add mode param.  Use it.
17094         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
17095         mode param and pass to set_src_cost.  Update all calls.
17096         (hash_scan_set): Formatting.
17097         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17098         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17099         * hooks.h: Ditto.
17100         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17101         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17102         emit_store_flag): Update set_src_cost and rtx_cost calls.
17103         * auto-inc-dec.c (attempt_change): Likewise.
17104         * calls.c (precompute_register_parameters): Likewise.
17105         * combine.c (expand_compound_operation, make_extraction,
17106         force_to_mode, distribute_and_simplify_rtx): Likewise.
17107         * dojump.c (prefer_and_bit_test): Likewise.
17108         * dse.c (find_shift_sequence): Likewise.
17109         * expr.c (compress_float_constant): Likewise.
17110         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17111         * ifcvt.c (noce_try_sign_mask): Likewise.
17112         * loop-doloop.c (doloop_optimize): Likewise.
17113         * loop-invariant.c (create_new_invariant): Likewise.
17114         * lower-subreg.c (shift_cost, compute_costs): Likewise.
17115         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17116         lshift_cheap_p): Likewise.
17117         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17118         try_replace_in_use, reload_cse_move2add): Likewise.
17119         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17120         Likewise.
17121         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17122         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17123         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17124         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17125         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17126         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
17127         to rtx_cost calls.
17128         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17129         * config/arc/arc.c (arc_rtx_costs): Likewise.
17130         * config/arm/arm.c (arm_rtx_costs): Likewise.
17131         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17132         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17133         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17134         * config/cris/cris.c (cris_rtx_costs): Likewise.
17135         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17136         * config/frv/frv.c (frv_rtx_costs): Likewise.
17137         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17138         * config/i386/i386.c (ix86_rtx_costs): Likewise.
17139         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17140         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17141         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17142         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17143         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17144         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17145         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17146         * config/mep/mep.c (mep_rtx_cost): Likewise.
17147         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17148         * config/mips/mips.c (mips_rtx_costs): Likewise.
17149         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17150         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17151         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17152         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17153         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17154         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17155         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17156         * config/pa/pa.c (hppa_rtx_costs): Likewise.
17157         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17158         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17159         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17160         * config/s390/s390.c (s390_rtx_costs): Likewise.
17161         * config/sh/sh.c (sh_rtx_costs): Likewise.
17162         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17163         * config/spu/spu.c (spu_rtx_costs): Likewise.
17164         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17165         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17166         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17167         * config/v850/v850.c (v850_rtx_costs): Likewise.
17168         * config/vax/vax.c (vax_rtx_costs): Likewise.
17169         * config/visium/visium.c (visium_rtx_costs): Likewise.
17170         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17171         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17172         "code" param, and pass as outer_code to first rtx_cost call.  Pass
17173         mode to rtx_cost calls.
17174         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17175         calls.
17176         (aarch64_rtx_costs_wrapper): Update.
17177         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17178         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17179         rtx_cost calls.
17180         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17181         and rtx_cost calls.
17182         (avr_operand_rtx_cost): Similarly.
17183         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17184         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17185         * config/mips/mips.c (mips_stack_address_p): Comment typo.
17186         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17187         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17188         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17189         rtx_cost.
17190         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17191         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17192         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17193         * doc/tm.texi: Regenerate.
17195 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
17197         * tree-core.h: Include symtab.h.
17198         * rtl.h: Include hard-reg-set.h but not flags.h.
17199         (HARD_CONST): Remove condition compilation involving HARD_CONST since
17200         hard-reg-set.h is always included.
17201         * regs.h: Don't include hard-reg-set.h or rtl.h.
17202         * cfg.h: Include dominance.h.
17203         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17204         * backend.h: New.  Aggregate commonly used backend header files.
17205         * gimple-ssa.h: Don't include tree-hasher.h.
17206         * ssa.h: New.  Aggregate commonly used SSA header files.
17207         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17208         * sel-sched-ir.h: Flatten includes.
17209         * lra-int.h: Flatten completely.
17210         * sel-sched-dump.h: Flatten includes.
17211         * ira-int.h: Flatten includes.
17212         * gimple-streamer.h: Remove all includes.
17213         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17214         * resource.h: Flatten hard-reg-set.h and df.h.
17215         * sched-int.h: Flatten insn-arrt.h and df.h.
17216         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17217         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17218         * genattrtab.c (write_header): Adjust generated includes.
17219         * genautomata.c (main): Likewise.
17220         * genconditions.c (write-header): Likewise.
17221         * genemit.c (main): Likewise.
17222         * gengtype.c (open_base_files): Likewise.
17223         * genopinit.c (main): Likewise.
17224         * genoutput.c (output_prologue): Likewise.
17225         * genpeep.c (main): Likewise.
17226         * genpreds.c (write_insn_preds_c): Likewise.
17227         * genrecog.c (write_header): Likewise.
17228         * alias.c: Adjust includes.
17229         * asan.c: Likewise.
17230         * attribs.c: Likewise.
17231         * auto-inc-dec.c: Likewise.
17232         * auto-profile.c: Likewise.
17233         * bb-reorder.c: Likewise.
17234         * bt-load.c: Likewise.
17235         * builtins.c: Likewise.
17236         * caller-save.c: Likewise.
17237         * calls.c: Likewise.
17238         * ccmp.c: Likewise.
17239         * cfg.c: Likewise.
17240         * cfganal.c: Likewise.
17241         * cfgbuild.c: Likewise.
17242         * cfgcleanup.c: Likewise.
17243         * cfgexpand.c: Likewise.
17244         * cfghooks.c: Likewise.
17245         * cfgloop.c: Likewise.
17246         * cfgloopanal.c: Likewise.
17247         * cfgloopmanip.c: Likewise.
17248         * cfgrtl.c: Likewise.
17249         * cgraph.c: Likewise.
17250         * cgraphbuild.c: Likewise.
17251         * cgraphclones.c: Likewise.
17252         * cgraphunit.c: Likewise.
17253         * cilk-common.c: Likewise.
17254         * combine-stack-adj.c: Likewise.
17255         * combine.c: Likewise.
17256         * compare-elim.c: Likewise.
17257         * convert.c: Likewise.
17258         * coverage.c: Likewise.
17259         * cppbuiltin.c: Likewise.
17260         * cprop.c: Likewise.
17261         * cse.c: Likewise.
17262         * cselib.c: Likewise.
17263         * data-streamer-in.c: Likewise.
17264         * data-streamer-out.c: Likewise.
17265         * data-streamer.c: Likewise.
17266         * dbxout.c: Likewise.
17267         * dce.c: Likewise.
17268         * ddg.c: Likewise.
17269         * debug.c: Likewise.
17270         * df-core.c: Likewise.
17271         * df-problems.c: Likewise.
17272         * df-scan.c: Likewise.
17273         * dfp.c: Likewise.
17274         * dojump.c: Likewise.
17275         * dominance.c: Likewise.
17276         * domwalk.c: Likewise.
17277         * double-int.c: Likewise.
17278         * dse.c: Likewise.
17279         * dumpfile.c: Likewise.
17280         * dwarf2asm.c: Likewise.
17281         * dwarf2cfi.c: Likewise.
17282         * dwarf2out.c: Likewise.
17283         * emit-rtl.c: Likewise.
17284         * et-forest.c: Likewise.
17285         * except.c: Likewise.
17286         * explow.c: Likewise.
17287         * expmed.c: Likewise.
17288         * expr.c: Likewise.
17289         * final.c: Likewise.
17290         * fixed-value.c: Likewise.
17291         * fold-const.c: Likewise.
17292         * function.c: Likewise.
17293         * fwprop.c: Likewise.
17294         * gcc-plugin.h: Likewise.
17295         * gcse-common.c: Likewise.
17296         * gcse.c: Likewise.
17297         * generic-match-head.c: Likewise.
17298         * ggc-page.c: Likewise.
17299         * gimple-builder.c: Likewise.
17300         * gimple-expr.c: Likewise.
17301         * gimple-fold.c: Likewise.
17302         * gimple-iterator.c: Likewise.
17303         * gimple-low.c: Likewise.
17304         * gimple-match-head.c: Likewise.
17305         * gimple-pretty-print.c: Likewise.
17306         * gimple-ssa-isolate-paths.c: Likewise.
17307         * gimple-ssa-strength-reduction.c: Likewise.
17308         * gimple-streamer-in.c: Likewise.
17309         * gimple-streamer-out.c: Likewise.
17310         * gimple-walk.c: Likewise.
17311         * gimple.c: Likewise.
17312         * gimplify-me.c: Likewise.
17313         * gimplify.c: Likewise.
17314         * godump.c: Likewise.
17315         * graph.c: Likewise.
17316         * graphite-blocking.c: Likewise.
17317         * graphite-dependences.c: Likewise.
17318         * graphite-interchange.c: Likewise.
17319         * graphite-isl-ast-to-gimple.c: Likewise.
17320         * graphite-optimize-isl.c: Likewise.
17321         * graphite-poly.c: Likewise.
17322         * graphite-scop-detection.c: Likewise.
17323         * graphite-sese-to-poly.c: Likewise.
17324         * graphite.c: Likewise.
17325         * haifa-sched.c: Likewise.
17326         * hw-doloop.c: Likewise.
17327         * ifcvt.c: Likewise.
17328         * init-regs.c: Likewise.
17329         * internal-fn.c: Likewise.
17330         * ipa-chkp.c: Likewise.
17331         * ipa-comdats.c: Likewise.
17332         * ipa-cp.c: Likewise.
17333         * ipa-devirt.c: Likewise.
17334         * ipa-icf-gimple.c: Likewise.
17335         * ipa-icf.c: Likewise.
17336         * ipa-inline-analysis.c: Likewise.
17337         * ipa-inline-transform.c: Likewise.
17338         * ipa-inline.c: Likewise.
17339         * ipa-polymorphic-call.c: Likewise.
17340         * ipa-profile.c: Likewise.
17341         * ipa-prop.c: Likewise.
17342         * ipa-pure-const.c: Likewise.
17343         * ipa-ref.c: Likewise.
17344         * ipa-reference.c: Likewise.
17345         * ipa-split.c: Likewise.
17346         * ipa-utils.c: Likewise.
17347         * ipa-visibility.c: Likewise.
17348         * ipa.c: Likewise.
17349         * ira-build.c: Likewise.
17350         * ira-color.c: Likewise.
17351         * ira-conflicts.c: Likewise.
17352         * ira-costs.c: Likewise.
17353         * ira-emit.c: Likewise.
17354         * ira-lives.c: Likewise.
17355         * ira.c: Likewise.
17356         * jump.c: Likewise.
17357         * langhooks.c: Likewise.
17358         * lcm.c: Likewise.
17359         * loop-doloop.c: Likewise.
17360         * loop-init.c: Likewise.
17361         * loop-invariant.c: Likewise.
17362         * loop-iv.c: Likewise.
17363         * loop-unroll.c: Likewise.
17364         * lower-subreg.c: Likewise.
17365         * lra-assigns.c: Likewise.
17366         * lra-coalesce.c: Likewise.
17367         * lra-constraints.c: Likewise.
17368         * lra-eliminations.c: Likewise.
17369         * lra-lives.c: Likewise.
17370         * lra-remat.c: Likewise.
17371         * lra-spills.c: Likewise.
17372         * lra.c: Likewise.
17373         * lto-cgraph.c: Likewise.
17374         * lto-compress.c: Likewise.
17375         * lto-opts.c: Likewise.
17376         * lto-section-in.c: Likewise.
17377         * lto-section-out.c: Likewise.
17378         * lto-streamer-in.c: Likewise.
17379         * lto-streamer-out.c: Likewise.
17380         * lto-streamer.c: Likewise.
17381         * mcf.c: Likewise.
17382         * mode-switching.c: Likewise.
17383         * modulo-sched.c: Likewise.
17384         * omega.c: Likewise.
17385         * omp-low.c: Likewise.
17386         * optabs.c: Likewise.
17387         * opts-global.c: Likewise.
17388         * passes.c: Likewise.
17389         * plugin.c: Likewise.
17390         * postreload-gcse.c: Likewise.
17391         * postreload.c: Likewise.
17392         * predict.c: Likewise.
17393         * print-rtl.c: Likewise.
17394         * print-tree.c: Likewise.
17395         * profile.c: Likewise.
17396         * real.c: Likewise.
17397         * realmpfr.c: Likewise.
17398         * recog.c: Likewise.
17399         * ree.c: Likewise.
17400         * reg-stack.c: Likewise.
17401         * regcprop.c: Likewise.
17402         * reginfo.c: Likewise.
17403         * regrename.c: Likewise.
17404         * regstat.c: Likewise.
17405         * reload.c: Likewise.
17406         * reload1.c: Likewise.
17407         * reorg.c: Likewise.
17408         * resource.c: Likewise.
17409         * rtl-chkp.c: Likewise.
17410         * rtlanal.c: Likewise.
17411         * rtlhooks.c: Likewise.
17412         * sanopt.c: Likewise.
17413         * sched-deps.c: Likewise.
17414         * sched-ebb.c: Likewise.
17415         * sched-rgn.c: Likewise.
17416         * sched-vis.c: Likewise.
17417         * sdbout.c: Likewise.
17418         * sel-sched-dump.c: Likewise.
17419         * sel-sched-ir.c: Likewise.
17420         * sel-sched.c: Likewise.
17421         * sese.c: Likewise.
17422         * shrink-wrap.c: Likewise.
17423         * simplify-rtx.c: Likewise.
17424         * stack-ptr-mod.c: Likewise.
17425         * stmt.c: Likewise.
17426         * stor-layout.c: Likewise.
17427         * store-motion.c: Likewise.
17428         * stringpool.c: Likewise.
17429         * symtab.c: Likewise.
17430         * target-globals.c: Likewise.
17431         * targhooks.c: Likewise.
17432         * toplev.c: Likewise.
17433         * tracer.c: Likewise.
17434         * trans-mem.c: Likewise.
17435         * tree-affine.c: Likewise.
17436         * tree-browser.c: Likewise.
17437         * tree-call-cdce.c: Likewise.
17438         * tree-cfg.c: Likewise.
17439         * tree-cfgcleanup.c: Likewise.
17440         * tree-chkp-opt.c: Likewise.
17441         * tree-chkp.c: Likewise.
17442         * tree-chrec.c: Likewise.
17443         * tree-complex.c: Likewise.
17444         * tree-data-ref.c: Likewise.
17445         * tree-dfa.c: Likewise.
17446         * tree-diagnostic.c: Likewise.
17447         * tree-dump.c: Likewise.
17448         * tree-eh.c: Likewise.
17449         * tree-emutls.c: Likewise.
17450         * tree-if-conv.c: Likewise.
17451         * tree-inline.c: Likewise.
17452         * tree-into-ssa.c: Likewise.
17453         * tree-iterator.c: Likewise.
17454         * tree-loop-distribution.c: Likewise.
17455         * tree-nested.c: Likewise.
17456         * tree-nrv.c: Likewise.
17457         * tree-object-size.c: Likewise.
17458         * tree-outof-ssa.c: Likewise.
17459         * tree-parloops.c: Likewise.
17460         * tree-phinodes.c: Likewise.
17461         * tree-predcom.c: Likewise.
17462         * tree-pretty-print.c: Likewise.
17463         * tree-profile.c: Likewise.
17464         * tree-scalar-evolution.c: Likewise.
17465         * tree-sra.c: Likewise.
17466         * tree-ssa-address.c: Likewise.
17467         * tree-ssa-alias.c: Likewise.
17468         * tree-ssa-ccp.c: Likewise.
17469         * tree-ssa-coalesce.c: Likewise.
17470         * tree-ssa-copy.c: Likewise.
17471         * tree-ssa-copyrename.c: Likewise.
17472         * tree-ssa-dce.c: Likewise.
17473         * tree-ssa-dom.c: Likewise.
17474         * tree-ssa-dse.c: Likewise.
17475         * tree-ssa-forwprop.c: Likewise.
17476         * tree-ssa-ifcombine.c: Likewise.
17477         * tree-ssa-live.c: Likewise.
17478         * tree-ssa-loop-ch.c: Likewise.
17479         * tree-ssa-loop-im.c: Likewise.
17480         * tree-ssa-loop-ivcanon.c: Likewise.
17481         * tree-ssa-loop-ivopts.c: Likewise.
17482         * tree-ssa-loop-manip.c: Likewise.
17483         * tree-ssa-loop-niter.c: Likewise.
17484         * tree-ssa-loop-prefetch.c: Likewise.
17485         * tree-ssa-loop-unswitch.c: Likewise.
17486         * tree-ssa-loop.c: Likewise.
17487         * tree-ssa-math-opts.c: Likewise.
17488         * tree-ssa-operands.c: Likewise.
17489         * tree-ssa-phiopt.c: Likewise.
17490         * tree-ssa-phiprop.c: Likewise.
17491         * tree-ssa-pre.c: Likewise.
17492         * tree-ssa-propagate.c: Likewise.
17493         * tree-ssa-reassoc.c: Likewise.
17494         * tree-ssa-sccvn.c: Likewise.
17495         * tree-ssa-scopedtables.c: Likewise.
17496         * tree-ssa-sink.c: Likewise.
17497         * tree-ssa-strlen.c: Likewise.
17498         * tree-ssa-structalias.c: Likewise.
17499         * tree-ssa-tail-merge.c: Likewise.
17500         * tree-ssa-ter.c: Likewise.
17501         * tree-ssa-threadedge.c: Likewise.
17502         * tree-ssa-threadupdate.c: Likewise.
17503         * tree-ssa-uncprop.c: Likewise.
17504         * tree-ssa-uninit.c: Likewise.
17505         * tree-ssa.c: Likewise.
17506         * tree-ssanames.c: Likewise.
17507         * tree-stdarg.c: Likewise.
17508         * tree-streamer-in.c: Likewise.
17509         * tree-streamer-out.c: Likewise.
17510         * tree-streamer.c: Likewise.
17511         * tree-switch-conversion.c: Likewise.
17512         * tree-tailcall.c: Likewise.
17513         * tree-vect-data-refs.c: Likewise.
17514         * tree-vect-generic.c: Likewise.
17515         * tree-vect-loop-manip.c: Likewise.
17516         * tree-vect-loop.c: Likewise.
17517         * tree-vect-patterns.c: Likewise.
17518         * tree-vect-slp.c: Likewise.
17519         * tree-vect-stmts.c: Likewise.
17520         * tree-vectorizer.c: Likewise.
17521         * tree-vrp.c: Likewise.
17522         * tree.c: Likewise.
17523         * tsan.c: Likewise.
17524         * ubsan.c: Likewise.
17525         * valtrack.c: Likewise.
17526         * value-prof.c: Likewise.
17527         * var-tracking.c: Likewise.
17528         * varasm.c: Likewise.
17529         * varpool.c: Likewise.
17530         * vmsdbgout.c: Likewise.
17531         * vtable-verify.c: Likewise.
17532         * web.c: Likewise.
17533         * wide-int.cc: Likewise.
17534         * xcoffout.c: Likewise.
17535         * config/aarch64/aarch64-builtins.c: Likewise.
17536         * config/aarch64/aarch64.c: Likewise.
17537         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17538         * config/alpha/alpha.c: Likewise.
17539         * config/arc/arc.c: Likewise.
17540         * config/arm/aarch-common.c: Likewise.
17541         * config/arm/arm-builtins.c: Likewise.
17542         * config/arm/arm-c.c: Likewise.
17543         * config/arm/arm.c: Likewise.
17544         * config/avr/avr-c.c: Likewise.
17545         * config/avr/avr-log.c: Likewise.
17546         * config/avr/avr.c: Likewise.
17547         * config/bfin/bfin.c: Likewise.
17548         * config/c6x/c6x.c: Likewise.
17549         * config/cr16/cr16.c: Likewise.
17550         * config/cris/cris.c: Likewise.
17551         * config/darwin-c.c: Likewise.
17552         * config/darwin.c: Likewise.
17553         * config/epiphany/epiphany.c: Likewise.
17554         * config/epiphany/mode-switch-use.c: Likewise.
17555         * config/epiphany/resolve-sw-modes.c: Likewise.
17556         * config/fr30/fr30.c: Likewise.
17557         * config/frv/frv.c: Likewise.
17558         * config/ft32/ft32.c: Likewise.
17559         * config/h8300/h8300.c: Likewise.
17560         * config/i386/i386-c.c: Likewise.
17561         * config/i386/i386.c: Likewise.
17562         * config/i386/msformat-c.c: Likewise.
17563         * config/i386/winnt-cxx.c: Likewise.
17564         * config/i386/winnt-stubs.c: Likewise.
17565         * config/i386/winnt.c: Likewise.
17566         * config/ia64/ia64-c.c: Likewise.
17567         * config/ia64/ia64.c: Likewise.
17568         * config/iq2000/iq2000.c: Likewise.
17569         * config/lm32/lm32.c: Likewise.
17570         * config/m32c/m32c-pragma.c: Likewise.
17571         * config/m32c/m32c.c: Likewise.
17572         * config/m32r/m32r.c: Likewise.
17573         * config/m68k/m68k.c: Likewise.
17574         * config/mcore/mcore.c: Likewise.
17575         * config/mep/mep-pragma.c: Likewise.
17576         * config/mep/mep.c: Likewise.
17577         * config/microblaze/microblaze-c.c: Likewise.
17578         * config/microblaze/microblaze.c: Likewise.
17579         * config/mips/mips.c: Likewise.
17580         * config/mmix/mmix.c: Likewise.
17581         * config/mn10300/mn10300.c: Likewise.
17582         * config/moxie/moxie.c: Likewise.
17583         * config/msp430/msp430-c.c: Likewise.
17584         * config/msp430/msp430.c: Likewise.
17585         * config/nds32/nds32-cost.c: Likewise.
17586         * config/nds32/nds32-fp-as-gp.c: Likewise.
17587         * config/nds32/nds32-intrinsic.c: Likewise.
17588         * config/nds32/nds32-isr.c: Likewise.
17589         * config/nds32/nds32-md-auxiliary.c: Likewise.
17590         * config/nds32/nds32-memory-manipulation.c: Likewise.
17591         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17592         * config/nds32/nds32-predicates.c: Likewise.
17593         * config/nds32/nds32.c: Likewise.
17594         * config/nios2/nios2.c: Likewise.
17595         * config/nvptx/nvptx.c: Likewise.
17596         * config/pa/pa.c: Likewise.
17597         * config/pdp11/pdp11.c: Likewise.
17598         * config/rl78/rl78-c.c: Likewise.
17599         * config/rl78/rl78.c: Likewise.
17600         * config/rs6000/rs6000-c.c: Likewise.
17601         * config/rs6000/rs6000.c: Likewise.
17602         * config/rx/rx.c: Likewise.
17603         * config/s390/s390-c.c: Likewise.
17604         * config/s390/s390.c: Likewise.
17605         * config/sh/sh-c.c: Likewise.
17606         * config/sh/sh-mem.cc: Likewise.
17607         * config/sh/sh.c: Likewise.
17608         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17609         * config/sh/sh_treg_combine.cc: Likewise.
17610         * config/sol2-c.c: Likewise.
17611         * config/sol2-cxx.c: Likewise.
17612         * config/sol2-stubs.c: Likewise.
17613         * config/sol2.c: Likewise.
17614         * config/sparc/sparc-c.c: Likewise.
17615         * config/sparc/sparc.c: Likewise.
17616         * config/spu/spu-c.c: Likewise.
17617         * config/spu/spu.c: Likewise.
17618         * config/stormy16/stormy16.c: Likewise.
17619         * config/tilegx/mul-tables.c: Likewise.
17620         * config/tilegx/tilegx-c.c: Likewise.
17621         * config/tilegx/tilegx.c: Likewise.
17622         * config/tilepro/mul-tables.c: Likewise.
17623         * config/tilepro/tilepro-c.c: Likewise.
17624         * config/tilepro/tilepro.c: Likewise.
17625         * config/v850/v850-c.c: Likewise.
17626         * config/v850/v850.c: Likewise.
17627         * config/vax/vax.c: Likewise.
17628         * config/visium/visium.c: Likewise.
17629         * config/vms/vms-c.c: Likewise.
17630         * config/vms/vms.c: Likewise.
17631         * config/vxworks.c: Likewise.
17632         * config/xtensa/xtensa.c: Likewise.
17634 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
17636         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17637         Remove operand constraints.  Change operand 2 predicate to
17638         nonmemory operand.  Limit const_int values to mode bitsize.  Only
17639         allow const_int values less than 32 when optimizing for size.
17640         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17641         Remove operand constraints.
17642         (*bt<mode>): Use SImode for const_int values less than 32.
17643         (regmode): Remove mode attribute.
17645 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
17647         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17648         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17649           moxie_legitimate_address_p): New functions.
17650           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17652 2015-07-07  Tom de Vries  <tom@codesourcery.com>
17654         PR tree-optimization/66642
17655         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17656         header comment.  Rename split_edge variable to edge_at_split.  Split
17657         exit edge to create new loop exit bb.  Insert loop exit phis in new
17658         loop exit bb.
17660 2015-07-07  Tom de Vries  <tom@codesourcery.com>
17662         * tree-cfg.c (get_virtual_phi): New function.
17663         * tree-cfg.h (get_virtual_phi): Declare.
17664         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17665         (rewrite_virtuals_into_loop_closed_ssa): New function.
17666         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17667         Declare.
17668         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17669         (transform_to_exit_first_loop_alt): Use
17670         rewrite_virtuals_into_loop_closed_ssa.
17672 2015-07-07  Richard Biener  <rguenther@suse.de>
17674         * fold-const.c (fold_binary_loc): Move
17675         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17676         * match.pd: ... here.
17677         Add (X * C1) % C2 -> 0 simplification pattern derived from
17678         extract_muldiv_1.
17680 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17682         PR target/66780
17683         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17684         change for target/65249.
17686 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
17688         * symtab.c (address_matters_1): Fix typo in comment above.
17689         (can_increase_alignment_p): Likewise.
17691 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17693         * function.c (free_after_compilation): Clear PROP_cfg in
17694         f->curr_properties.
17696 2015-07-07  Richard Biener  <rguenther@suse.de>
17698         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17699         add which use to.
17700         (add_control_edge): Remove excessive vertical space in dumping.
17701         (process_ssa_edge_worklist): Simulate at most one statement and
17702         return whether we did.  Do not simulate PHIs if they are in a
17703         BB not yet simulated.
17704         (ssa_propagate): Adjust to always drain the BB worklist whenever
17705         a BB is available there, likewise the VARYING edges list before
17706         the interesting edge list.
17708 2015-07-07  Christian Bruel  <christian.bruel@st.com>
17710         PR target/52144
17711         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17713 2015-07-07  Richard Biener  <rguenther@suse.de>
17715         PR middle-end/66739
17716         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17717         A - B.
17719 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
17721         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
17722         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
17723         Copy operand 0 to a temporary if !ext_register_operand.  Remove
17724         ancient extract_bit_field workaround.
17725         (insv<mode>_1): Rename from mov<mode>_insv_1.
17726         (*insvqi): Rename from *movqi_insv_2.
17727         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17728         for renamed insvsi_1.
17729         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17731 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17733         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
17734         call to nvptx_reorg_subreg.
17736 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
17738         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17739         * graphite-dependencies.c, graphite-interchange.c,
17740         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17741         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17742         Likewise.
17744 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
17746         * match.pd: Remove element_mode inside HONOR_*.
17747         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17748         (~X | X -> -1, ~X ^ X -> -1): Merge.
17749         * tree.c (build_each_one_cst): New function.
17750         * tree.h (build_each_one_cst): Likewise.
17752 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17754         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17755         PROCESSOR_IAMCU.
17757 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
17759         * config.gcc <mips*-*-*>: Add fused-madd.opt.
17760         * config/mips/mips.opt (mfused-madd): Remove.
17761         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17762         * config/mips/mips.h (TARGET_MIPS8000): New.
17763         (ISA_HAS_FP_MADD4_MSUB4): Remove.
17764         (ISA_HAS_FP_MADDF_MSUBF): Remove.
17765         (ISA_HAS_FP_MADD3_MSUB3): Remove.
17766         (ISA_HAS_NMADD4_NMSUB4): Remove.
17767         (ISA_HAS_NMADD3_NMSUB3): Remove.
17768         (ISA_HAS_FUSED_MADD4): New.
17769         (ISA_HAS_UNFUSED_MADD4): New.
17770         (ISA_HAS_FUSED_MADDF): New.
17771         (ISA_HAS_FUSED_MADD3): New.
17772         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17773         (*fma<mode>4_madd3) New.
17774         (*fma<mode>4_madd4) New.
17775         (*fma<mode>4_maddf) New.
17776         (fms<mode>4) New.
17777         (*fms<mode>4_msub3) New.
17778         (*fms<mode>4_msub4) New.
17779         (fnma<mode>4) New.
17780         (*fnma<mode>4_nmadd3) New.
17781         (*fnma<mode>4_nmadd4) New.
17782         (fnms<mode>4) New.
17783         (*fnms<mode>4_nmsub3) New.
17784         (*fnms<mode>4_nmsub4) New.
17785         (*madd4<mode>) Modify to be unfused only.
17786         (*msub4<mode>) Modify to be unfused only.
17787         (*nmadd4<mode>) Modify to be unfused only.
17788         (*nmsub4<mode>) Modify to be unfused only.
17789         (*madd3<mode>) Remove.
17790         (*msub3<mode>) Remove.
17791         (*nmadd3<mode>) Remove.
17792         (*nmsub3<mode>) Remove.
17793         (*nmadd3<mode>_fastmath) Remove.
17794         (*nmsub3<mode>_fastmath) Remove.
17795         (*nmadd4<mode>_fastmath) Update condition.
17796         (*nmsub4<mode>_fastmath) Update condition.
17798 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
17800         PR target/65956
17801         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
17802         alignment attribute, exploring one level down for records and arrays.
17804 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
17806         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
17807         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
17808         Copy operand 1 to a temporary if !ext_register_operand.  Remove
17809         ancient extract_bit_field workaround.
17810         (*extv<mode>): Rename from *mov<mode>_extv_1.
17811         (*extvqi): Rename from *movqi_extv_1.
17812         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
17813         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
17814         to a temporary if !ext_register_operand.  Remove ancient
17815         extract_bit_field workaround.
17816         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
17817         (*extzvqi): Rename from *movqi_extzv_2.
17818         (*testqi_ext_3): Remove modes from const_int_operand predicated
17819         operands.  Add "n" constraint.
17820         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
17821         operand.  Add "J" constraint.
17822         (*btsq, *btrq, *btcq peephole2s): Remove mode from
17823         const_0_to_63 predicated operand.
17824         (regmode): New insn attribute.
17825         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
17826         to nonmemory_operand.  Use regmode insn attribute.
17827         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
17828         (*jcc_bt<mode>_mask): Remove mode from operand 3.
17829         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
17830         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
17831         operands.  Use "N" constraint instead of "n".
17833 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
17835         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
17837 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17839         PR target/66749
17840         * config/i386/i386.c (iamcu_cost): New.
17841         (m_IAMCU): Likewise.
17842         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
17843         (processor_target_table): Add an entry for "iamcu".
17844         (processor_alias_table): Likewise.
17845         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
17846         (ix86_adjust_cost): Likewise.
17847         (ia32_multipass_dfa_lookahead): Likewise.
17848         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
17849         * config/i386/x86-tune.def: Updated for m_IAMCU.
17851 2015-07-06  Richard Biener  <rguenther@suse.de>
17853         PR tree-optimization/66772
17854         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
17855         values are available in the PHI node BB when there are
17856         still unexecutable edges.
17858 2015-07-06  Richard Biener  <rguenther@suse.de>
17860         PR tree-optimization/66767
17861         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17862         Make sure to build the alignment test on a SSA name without
17863         final alignment info valid only if the alignment test
17864         evaluates to true.
17866 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
17868         PR target/66620
17869         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
17870         loop start when inserting LSETUP.
17872 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
17874         PR target/53383
17875         * config/i386/i386.c (ix86_option_override_internal): Allow
17876         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
17878 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17880         * read-md.c (decimal_string): Rename to ...
17881         (md_decimal_string): ... this.
17882         (handle_enum): Reflect this.
17884 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17886         PR target/66731
17887         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
17889 2015-07-06  Richard Biener  <rguenther@suse.de>
17891         PR middle-end/66759
17892         * match.pd: Add missing constraint of y to REAL_CST in
17893         REAL_CST - x CMP y to y - CST CMP x simplification.
17895 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
17897         PR tree-optimization/66757
17898         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
17900 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
17901             Sandra Loosemore <sandra@codesourcery.com>
17903         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
17904         Delete extern declaration.
17905         (gprel_constant_p): Add extern declaration.
17906         * config/nios2/constraints.md ("S"): Use gprel_constant_p
17907         instead of nios2_symbol_ref_in_small_data_p.
17908         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
17909         (nios2_symbol_ref_in_small_data_p): Make static.
17910         (gprel_constant_p): Make non-static.
17912 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
17914         * doc/fragments.texi (Target Fragment): Convert debian.org
17915         link to use https.
17916         * doc/install.texi (Configuration): Ditto.
17918 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
17920         PR tree-optimization/66718
17921         * tree-vect-stmts.c (vectorizable_call): Replace uses of
17922         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
17924         PR tree-optimization/66718
17925         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
17926         vectorizable_load, vectorizable_condition): Move vectype,
17927         nunits, ncopies computation after checking what kind of statement
17928         stmt is.
17930 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17932         * target-insns.def (extv, extzv, insv): New targetm instruction
17933         patterns.
17934         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
17935         interface.
17936         * recog.c (simplify_while_replacing): Likewise.
17938 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17940         * target-insns.def (doloop_begin, doloop_end): New targetm
17941         instruction patterns.
17942         * loop-init.c: Include target.h.
17943         (pass_loop2::gate): Use the new targetm patterns instead of
17944         HAVE_*/gen_* interface.
17945         (pass_rtl_doloop::gate): Likewise.
17946         (pass_rtl_doloop::execute): Remove preprocessor condition.
17947         * hw-doloop.c: Build unconditionally.
17948         * loop-doloop.c: Likewise.
17949         (doloop_optimize): Use the new targetm patterns instead of
17950         HAVE_*/gen_* interface.
17951         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
17952         * modulo-sched.c (doloop_register_get): Likewise.
17954 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17956         * target-insns.def (clear_cache): New targetm instruction pattern.
17957         * builtins.c (expand_builtin___clear_cache): Use it instead of
17958         HAVE_*/gen_* interface.
17960 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17962         * target-insns.def (allocate_stack, check_stack, probe_stack)
17963         (probe_stack_address, split_stack_prologue, split_stack_space_check):
17964         New targetm instruction patterns.
17965         * explow.c (allocate_dynamic_stack_space): Use them instead of
17966         HAVE_*/gen_* interface.
17967         (emit_stack_probe): Likewise.
17968         (probe_stack_range): Likewise.
17969         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17971 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17973         * target-insns.def (stack_protect_set, stack_protect_test): New
17974         targetm instruction patterns.
17975         * cfgexpand.c (stack_protect_prologue): Use them instead of
17976         HAVE_*/gen_* interface.
17977         * function.c (stack_protect_epilogue): Likewise.
17979 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17981         * expr.h (gen_move_insn_uncast): Delete.
17982         * expr.c (gen_move_insn_uncast): Delete.
17984 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17986         * target-insns.def (restore_stack_block, restore_stack_function)
17987         (restore_stack_nonlocal, save_stack_block, save_stack_function)
17988         (save_stack_nonlocal): New targetm instruction patterns.
17989         * builtins.c (expand_builtin_apply): Use them instead of
17990         HAVE_*/gen_* interface.
17991         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
17993 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
17995         * target-insns.def (trap): New targetm instruction pattern.
17996         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
17997         interface.
17998         * explow.c (allocate_dynamic_stack_space): Likewise.
17999         * ifcvt.c (find_if_header): Likewise.
18001 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18003         * target-insns.def (prefetch): New targetm instruction pattern.
18004         * tree-ssa-loop-prefetch.c: Include targeth.
18005         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18006         of HAVE_*/gen_* interface.
18007         * builtins.c (expand_builtin_prefetch): Likewise.
18008         * toplev.c (process_options): Likewise.
18010 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18012         * target-insns.def (untyped_call, untyped_return): New targetm
18013         instruction patterns.
18014         * builtins.c (expand_builtin_apply): Use them instead of
18015         HAVE_*/gen_* interface.
18016         (result_vector): Define unconditionally.
18018 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18020         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18021         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18022         (nonlocal_goto_receiver): New targetm instruction patterns.
18023         * builtins.c (expand_builtin_setjmp_setup): Use them instead
18024         of HAVE_*/gen_* interface.
18025         (expand_builtin_setjmp_receiver): Likewise.
18026         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18027         * except.c (expand_dw2_landing_pad_for_region): Likewise.
18029 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
18031         * target.def: Add code_for_* hooks.
18032         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18033         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18034         * target-insns.def (casesi, tablejump): New targetm instruction
18035         patterns.
18036         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18037         (do_tablejump): Likewise.
18038         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18039         (expand_sjlj_dispatch_table): Likewise.
18040         * targhooks.c (default_case_values_threshold): Likewise.
18042 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
18044         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18045         Use rtx_insn * instead of rtx.
18046         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18047         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18048         (nios2_call_tls_get_addr): Likewise.
18049         (nios2_emit_expensive_div): Likewise.
18050         (nios2_emit_move_sequence): Change return type to bool.
18051         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18052         Change return type to bool.
18054 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18056         PR target/66747
18057         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18059 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
18061         PR target/66114
18062         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18063         of register_operand.  Remove constraint.
18065 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
18067         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18068         the first argument.
18070 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
18072         * attribs.c (decl_attributes): Guard inform with the return value
18073         of the preceding warning.
18075 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18077         * doc/invoke.texi (moverride): Move to correct section.
18079 2015-07-03  Richard Biener  <rguenther@suse.de>
18081         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18082         Copy from tree.c
18083         (dt_operand::gen_gimple_expr): After valueizing operands
18084         re-canonicalize operand order for commutative tree codes.
18086 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
18088         PR target/66746.
18089         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18090         is defined.
18091         (__crc32w): Likewise.
18092         (__crc32d): Likewise.
18093         (__rdpmc): Likewise.
18094         (__rdtscp): Likewise.
18095         (_rdpmc): Likewise.
18096         (_rdtscp): Likewise.
18097         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18098         is defined.
18100 2015-07-03  Richard Biener  <rguenther@suse.de>
18102         * fold-const.c (fold_mathfn_compare): Remove.
18103         (fold_inf_compare): Likewise.
18104         (fold_comparison): Move floating point comparison simplifications...
18105         * match.pd: ... to patterns here.  Introduce simple_comparisons
18106         operator list and use it for patterns formerly in fold_comparison.
18108 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
18110         PR tree-optimization/66119
18111         * toplev.c (process_options): Don't set up default values for
18112         the sra_max_scalarization_size_{speed,size} parameters.
18113         * tree-sra (analyze_all_variable_accesses): If no values
18114         have been set for the sra_max_scalarization_size_{speed,size}
18115         parameters, call get_move_ratio to get target defaults.
18117 2015-07-03  Richard Biener  <rguenther@suse.de>
18119         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18120         * match.pd: ... here.
18122 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
18124         PR target/37072
18125         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18126         is not actually the default on FreeBSD.
18128 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18130         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18131         definition.
18132         (CMPGE_8HI): Likewise.
18133         (CMPGE_4SI): Likewise.
18134         (CMPGE_2DI): Likewise.
18135         (CMPGE_U16QI): Likewise.
18136         (CMPGE_U8HI): Likewise.
18137         (CMPGE_U4SI): Likewise.
18138         (CMPGE_U2DI): Likewise.
18139         (CMPLE_16QI): Likewise.
18140         (CMPLE_8HI): Likewise.
18141         (CMPLE_4SI): Likewise.
18142         (CMPLE_2DI): Likewise.
18143         (CMPLE_U16QI): Likewise.
18144         (CMPLE_U8HI): Likewise.
18145         (CMPLE_U4SI): Likewise.
18146         (CMPLE_U2DI): Likewise.
18147         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18148         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18149         ALTIVEC_BUILTIN_VEC_CMPLE.
18150         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18151         floating-point vector modes.
18152         (vector_nlt<mode>): New define_expand.
18153         (vector_nltu<mode>): Likewise.
18154         (vector_ngt<mode>): Likewise.
18155         (vector_ngtu<mode>): Likewise.
18157 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18159         PR rtl-optimization/66706
18160         * combine.c (make_compound_operation): If an AND of SUBREG of
18161         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18163 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
18165         * tree-pass.h (make_pass_ch_vect): New.
18166         * passes.def: Add pass_ch_vect just before pass_if_conversion.
18168         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18169         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18170         make_pass_ch_vect): New.
18171         (pass_ch): Extend ch_base.
18173         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18174         (ch_base::copy_headers): ...here.
18176 2015-07-02  Richard Biener  <rguenther@suse.de>
18178         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18179         * fold-const.c (get_pointer_modulus_and_residue): Remove.
18180         (fold_binary_loc): Implement (T)ptr & CST in terms of
18181         get_pointer_alignment_1.
18182         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18183         Make sure to build the alignment test on a SSA name without
18184         final alignment info valid only after the prologue.
18186 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
18188         * config/cris/cris.md ("epilogue"): Remove condition.
18189         ("prologue"): Ditto.
18191 2015-07-02  Richard Biener  <rguenther@suse.de>
18193         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18194         parameter to record a condition that is false.
18195         (record_conditions): When recording an extra NE_EXPR that is
18196         true also record a EQ_EXPR that is false.
18198 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
18200         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18201         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18202         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
18203         (set_iv, find_interesting_uses_address, add_candidate_1): New
18204         argument to alloc_iv.
18205         (find_interesting_uses_op, find_interesting_uses_cond): Don't
18206         duplicate struct iv.
18207         (free_loop_data): Don't free struct iv explicitly.
18208         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18210 2015-07-01  DJ Delorie  <dj@redhat.com>
18212         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18213         (LIB_SPEC): Add.
18214         (SUPPORTS_DISCRIMINATOR): Define.
18216 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18218         PR bootstrap/66685
18219         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18220         there are no CALLs in the same pattern.
18222 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18224         PR rtl-optimization/61047
18225         * rtlanal.c (get_initial_register_offset): New function.
18226         (rtx_addr_can_trap_p_1): Check offsets of stack references.
18228 2015-07-01  Richard Biener  <rguenther@suse.de>
18230         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18231         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18232         ~X CMP C -> X CMP' ~C to ...
18233         * match.pd: ... patterns here.
18235 2015-07-01  Nick Clifton  <nickc@redhat.com>
18237         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18238         a 16-bit value into a 20-bit memory slot.
18240 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18242         * doc/sourcebuild.texi (AArch64-specific attributes): Document
18243         "aarch64_tiny", "aarch64_small", "aarch64_large",
18244         "aarch64_little_endian", "aarch64_big_endian".
18246 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18248         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18249         Document "aarch64_small_fpic".
18251 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
18253         * configure.ac: Add check for aarch64 assembler -fpic relocation
18254         modifier support.
18255         * configure: Regenerate.
18256         * config.in: Regenerate.
18257         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18258         to -fPIC if not support of -fpic relocation modifier in assembler.
18260 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
18262         PR bootstrap/66685
18263         * rtl.c (classify_insn): Handle returns in PARALLELs.
18265 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
18267         PR middle-end/66633
18268         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18269         to true if the function is nested and if not optimizing.
18270         (convert_local_omp_clauses): Initialize need_frame to true if the
18271         function contains nested functions and if not optimizing.
18273 2015-07-01  Richard Biener  <rguenther@suse.de>
18275         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18276         (X & Y) ^ Y -> ~X & Y transforms to ...
18277         * match.pd: ... here.
18279 2015-07-01  Richard Biener <rguenther@suse.de>
18281         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18282         of converts to avoid uninteresting noise from the conversion
18283         simplifying patterns.
18285 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
18287         * config/c6x/c6x.c (try_rename_operands): Do not depend on
18288         gcc_assert evaluating its argument for side-effect.
18290 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
18292         PR target/64833
18293         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18294         flag_pic is set.
18296 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
18298         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18299         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18300         (hash_scc): Add this_ref_p and ref_p parameters and pass them
18301         to the inner DFS walk.
18303 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18305         * target-insns.def (jump): New targetm instruction pattern.
18306         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18307         instead of gen_jump.
18308         (fix_up_crossing_landing_pad): Likewise.
18309         (add_labels_and_missing_jumps): Likewise.
18310         (fix_crossing_conditional_branches): Likewise.
18311         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18312         (force_nonfallthru_and_redirect): Likewise.
18313         * cse.c (cse_insn): Likewise.
18314         * expmed.c (expand_divmod): Likewise.
18315         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18316         * haifa-sched.c (init_before_recovery): Likewise.
18317         (sched_create_recovery_edges): Likewise.
18318         * ifcvt.c (find_cond_trap): Likewise.
18319         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18320         (expand_float, expand_fix): Likewise.
18321         * stmt.c (emit_jump): Likewise.
18323 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18325         * defaults.h (HAVE_load_multiple, gen_load_multiple)
18326         (HAVE_store_multiple, gen_store_multiple): Delete.
18327         * target-insns.def (load_multiple, store_multiple): New targetm
18328         instruction patterns.
18329         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18330         of HAVE_*/gen_* interface.
18332 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18334         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18335         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18336         (gen_mem_signal_fence): Delete.
18337         * target-insns.def (mem_signal_fence, mem_thread_fence)
18338         (memory_barrier): New targetm instruction patterns.
18339         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18340         interface.
18341         (expand_mem_signal_fence): Likewise.
18343 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
18345         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18346         * target-insns.def (epilogue, prologue, sibcall_prologue): New
18347         targetm instruction patterns.
18348         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18349         interface.
18350         * calls.c (expand_call): Likewise.
18351         * cfgrtl.c (cfg_layout_finalize): Likewise.
18352         * df-scan.c (df_get_entry_block_def_set): Likewise.
18353         (df_get_exit_block_use_set): Likewise.
18354         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18355         * final.c (final_start_function): Likewise.
18356         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18357         (reposition_prologue_and_epilogue_notes): Likewise.
18358         * reorg.c (find_end_label): Likewise.
18359         * toplev.c (process_options): Likewise.
18361 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
18363         * typed-splay-tree.h: New file.
18365 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
18367         PR debug/66691
18368         * lra-int.h (lra_substitute_pseudo): Add a parameter.
18369         (lra_substitute_pseudo_within_insn): Ditto.
18370         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
18371         of constant.
18372         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
18373         to lra_substitute_pseudo.
18374         * lra-lives.c (process_bb_lives): Add an argument to
18375         lra_substitute_pseudo_within_insn call.
18376         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18377         argument to lra_substitute_pseudo and
18378         lra_substitute_pseudo_within_insn calls.
18379         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18381 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18383         * configure: Regenerated.
18385 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18387         * config.gcc: Support i[34567]86-*-elfiamcu target.
18388         * config/i386/iamcu.h: New.
18389         * config/i386/i386.opt: Add -miamcu.
18390         * doc/invoke.texi: Document -miamcu.
18391         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
18392         off x87/MMX/SSE/AVX codegen for -miamcu.
18393         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18394         __iamcu/__iamcu__ for -miamcu.
18395         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18396         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18397         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18398         * config/i386/i386.c (ix86_option_override_internal): Ignore and
18399         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
18400         MCU by default.  Default long double to 64-bit for Intel MCU.
18401         Turn on -freg-struct-return for Intel MCU.  Issue an error when
18402         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18403         AVX is turned on.
18404         (function_arg_advance_32): Pass value whose size is no larger
18405         than 8 bytes in registers for Intel MCU.
18406         (function_arg_32): Likewise.
18407         (ix86_return_in_memory): Return value whose size is no larger
18408         than 8 bytes in registers for Intel MCU.
18409         (iamcu_alignment): New function.
18410         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18411         true.
18412         (ix86_local_alignment): Don't increase alignment for Intel MCU.
18413         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18414         true.
18416 2015-06-30  Marek Polacek  <polacek@redhat.com>
18418         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
18419         both operands of the resulting expression.
18421         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
18422         the final expression with the operand's type and then convert
18423         it to the type of the expression.
18425 2015-06-30  Richard Biener  <rguenther@suse.de>
18427         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18428         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18429         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18430         * match.pd: ... to patterns here.
18432 2015-06-30  Richard Biener  <rguenther@suse.de>
18434         PR tree-optimization/66704
18435         * tree-vect-data-refs.c (vect_setup_realignment): Use
18436         make_ssa_name for non-SSA name source.
18438 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
18440         PR middle-end/66702
18441         * omp-low.c (simd_clone_adjust): Handle addressable linear
18442         or uniform parameters or non-gimple type uniform parameters.
18444 2015-06-30  Richard Biener  <rguenther@suse.de>
18446         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18447         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18448         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18449         * match.pd: ... here.
18450         Add a few cases of A - B -> A + (-B) when B "easily" negates.
18451         Move (x & y) | x -> x and friends before
18452         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18454 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
18456         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18457         -mfix-ut699 is not specified.
18458         (leon3_load): Rename into...
18459         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
18460         is specified.
18462 2015-06-30  Marek Polacek  <polacek@redhat.com>
18464         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18465         * match.pd: ... here.
18467 2015-06-30  Richard Biener  <rguenther@suse.de>
18469         * target-insns.def (canonicalize_funcptr_for_compare): Add.
18470         * fold-const.c (build_range_check): Replace uses of
18471         HAVE_canonicalize_funcptr_for_compare.
18472         (fold_widened_comparison): Likewise.
18473         (fold_sign_changed_comparison): Likewise.
18474         * dojump.c: Include "target.h".
18475         (do_compare_and_jump): Replace uses of
18476         HAVE_canonicalize_funcptr_for_compare and
18477         gen_canonicalize_funcptr_for_compare.
18478         * expr.c (do_store_flag): Likewise.
18480 2015-06-30  Tom de Vries  <tom@codesourcery.com>
18482         PR tree-optimization/66652
18483         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18484         max_loop_iterations to determine if nit + 1 overflows.
18486 2015-06-30  Richard Biener  <rguenther@suse.de>
18488         * tree-vrp.c (register_edge_assert_for_2): Also register
18489         asserts for dominating conversion results.
18491 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
18493         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18494         field in struct iv.
18496 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
18498         PR target/66509
18499         * configure.ac: Fix filds and fildq test for 64-bit.
18500         * configure: Regenerated.
18502 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
18504         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18505         (nvptx_reorg): Here.  Keep the non-subreg pieces.
18507 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
18509         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18510         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18512 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
18514         * config/i386/i386.md (*jcc_1): Use %! in asm template.
18515         Set attribute "length_nobnd" instead of "length".
18516         (*jcc_2): Ditto.
18517         (jump): Ditto.
18518         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18520 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
18522         * config/nios2/nios2.c (nios2_delegitimize_address): Make
18523         assert less restrictive.
18525 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18527         PR fortran/66605
18528         * cgraphunit.c (cgraph_node::finalize_function): Do not call
18529         do_warn_unused_parameter.
18530         * function.c (do_warn_unused_parameter): Move from here.
18531         * function.h (do_warn_unused_parameter): Do not declare.
18533 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18535         PR target/65697
18536         * gcc.target/arm/armv-sync-comp-swap.c: New.
18537         * gcc.target/arm/armv-sync-op-acquire.c: New.
18538         * gcc.target/arm/armv-sync-op-full.c: New.
18539         * gcc.target/arm/armv-sync-op-release.c: New.
18541 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18543         PR target/65697
18544         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18545         initial acquire barrier with final barrier.
18547 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18549         PR target/65697
18550         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18551         initial acquire barrier with final barrier.
18553 2015-06-29  Richard Henderson  <rth@redhat.com>
18555         * config/i386/constraints.md (Bf): New constraint.
18556         * config/i386/i386-c.c (ix86_target_macros): Define
18557         __GCC_ASM_FLAG_OUTPUTS__.
18558         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18559         as flags outputs.
18560         * doc/extend.texi (FlagOutputOperands): Document them.
18562 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
18564         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18565         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18566         unspec name.
18567         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18568         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18569         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18570         (aarch64_symbol_context): Ditto.
18571         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18572         and use new pattern name.
18573         (aarch64_expand_mov_immediate): Ditto.
18574         (aarch64_print_operand): Ditto.
18575         (aarch64_classify_tls_symbol): Ditto.
18577 2015-06-29  Marek Polacek  <polacek@redhat.com>
18578             Marc Glisse  <marc.glisse@inria.fr>
18580         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18581         * match.pd: ... pattern here.
18583 2015-06-29  Tom de Vries  <tom@codesourcery.com>
18585         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18586         function structure.
18588 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
18590         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18591         feature description, split out the native option, add a link to
18592         the feature documentation, rearrange and slightly rewrite text.
18593         (Aarch64 options, -mcpu): Likewise.
18594         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
18595         +rdma implies Adv. SIMD.
18597 2015-06-29  Marek Polacek  <polacek@redhat.com>
18599         PR c/66322
18600         * function.c (stack_protect_epilogue): Remove a cast to int.
18601         * doc/invoke.texi: Update -Wswitch-bool description.
18603 2015-06-29  Richard Biener  <rguenther@suse.de>
18605         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18606         * fold-const.c (fold_binary_loc): Move &A - &B simplification
18607         via ptr_difference_const ...
18608         * match.pd: ... here.
18609         When matching (X ^ Y) == Y also match with swapped operands.
18611 2015-06-29  Richard Biener  <rguenther@suse.de>
18613         * lto-streamer.h (LTO_major_version): Bump to 5.
18615 2015-06-29  Richard Biener  <rguenther@suse.de>
18617         PR tree-optimization/66677
18618         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18619         STMT_VINFO_VEC_STMT clobbering less strict.
18621 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
18623         PR middle-end/64130
18624         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18625         division, compute max and min when value ranges for dividend and
18626         divisor are available.
18628 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
18629             Sandra Loosemore <sandra@codesourcery.com>
18631         * regrename.h (regrename_do_replace): Change to return bool.
18632         * regrename.c (rename_chains): Check return value of
18633         regname_do_replace.
18634         (regrename_do_replace): Re-validate the modified insns and
18635         return bool status.
18636         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18637         Update to match rename_chains changes.
18638         * config/c6x/c6x.c (try_rename_operands): Assert that
18639         regrename_do_replace returns true.
18641 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
18643         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18644         operand 2 here.  Use copy_addr_to_reg to copy non-index
18645         register operand 2 to a temporary.
18646         (<mode>_stx): Ditto for operand 1.
18647         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18648         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18649         (ix86_store_bounds): Ditto.
18651 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
18653         * print-tree.c (print_node) [TREE_VEC]: Print its length.
18655 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
18657         * gimple.c (gimple_call_set_fndecl): Remove.
18658         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18659         build1_loc directly instead of build_fold_addr_expr_loc.
18661 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
18663         * hash-map.h (hash_map::traverse): Use the definition of the
18664         Key typedef rather than the typedef itself.
18666 2015-06-26  Martin Jambor  <mjambor@suse.cz>
18668         PR debug/66301
18669         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18670         NULL instead of calling dump_enabled_p.
18672 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18674         * config/aarch64/aarch64.opt: (override): New.
18675         * doc/invoke.texi (override): Document.
18676         * config/aarch64/aarch64.c (aarch64_flag_desc): New
18677         (aarch64_fusible_pairs): Likewise.
18678         (aarch64_tuning_flags): Likewise.
18679         (aarch64_tuning_override_function): Likewise.
18680         (aarch64_tuning_override_functions): Likewise.
18681         (aarch64_parse_one_option_token): Likewise.
18682         (aarch64_parse_boolean_options): Likewise.
18683         (aarch64_parse_fuse_string): Likewise.
18684         (aarch64_parse_tune_string): Likewise.
18685         (aarch64_parse_one_override_token): Likewise.
18686         (aarch64_parse_override_string): Likewise.
18687         (aarch64_override_options): Parse the -override string if it
18688         is present.
18690 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18692         * config/aarch64/aarch64-protos.h (tune_params): Remove
18693         const from members.
18694         (aarch64_tune_params): Remove const, change to no longer be
18695         a pointer.
18696         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18697         change to no longer be a pointer, initialize to generic_tunings.
18698         (aarch64_min_divisions_for_recip_mul): Change dereference of
18699         aarch64_tune_params to member access.
18700         (aarch64_reassociation_width): Likewise.
18701         (aarch64_rtx_mult_cost): Likewise.
18702         (aarch64_address_cost): Likewise.
18703         (aarch64_branch_cost): Likewise.
18704         (aarch64_rtx_costs): Likewise.
18705         (aarch64_register_move_cost): Likewise.
18706         (aarch64_memory_move_cost): Likewise.
18707         (aarch64_sched_issue_rate): Likewise.
18708         (aarch64_builtin_vectorization_cost): Likewise.
18709         (aarch64_override_options): Take a copy of the selected tuning
18710         struct in to aarch64_tune_params, rather than just setting
18711         a pointer, change dereferences of aarch64_tune_params to member
18712         accesses.
18713         (aarch64_override_options_after_change): Change dereferences of
18714         aarch64_tune_params to member access.
18715         (aarch64_macro_fusion_p): Likewise.
18716         (aarch_macro_fusion_pair_p): Likewise.
18717         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18719 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18721         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18722         (aarch64_tune_flags): Likewise.
18723         (AARCH64_TUNE_FMA_STEERING): Likewise.
18724         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18725         to AARCH64_FL_USE_FMA_STEERING_PASS.
18726         (cortex-a57.cortex-a53): Likewise.
18727         (cortex-a72): Use cortexa72_tunings.
18728         (cortex-a72.cortex-a53): Likewise.
18729         (exynos-m1): Likewise.
18730         * config/aarch64/aarch64-protos.h (tune_params): Add
18731         a field: extra_tuning_flags.
18732         * config/aarch64/aarch64-tuning-flags.def: New.
18733         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18734         (aarch64_extra_tuning_flags): Likewise.
18735         (aarch64_tune_params): Declare here.
18736         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18737         (cortexa53_tunings): Likewise.
18738         (cortexa57_tunings): Likewise.
18739         (thunderx_tunings): Likewise.
18740         (xgene1_tunings): Likewise.
18741         (cortexa72_tunings): New.
18742         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18743          (gate): Check against aarch64_tune_params.
18744         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18745         aarch64-protos.h.
18747 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18749         * config/aarch64/aarch64-fusion-pairs.def: New.
18750         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18751         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18752         aarch64_fusion_pairs.
18753         (AARCH64_FUSE_MOV_MOVK): Likewise.
18754         (AARCH64_FUSE_ADRP_ADD): Likewise.
18755         (AARCH64_FUSE_MOVK_MOVK): Likewise.
18756         (AARCH64_FUSE_ADRP_LDR): Likewise.
18757         (AARCH64_FUSE_CMP_BRANCH): Likewise.
18759 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
18761         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18762         SYMBOL_SMALL_GOT_28K.
18763         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18764         relocation modifiers.
18765         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18766         (ldr_got_small_28k_<mode>): New.
18767         (ldr_got_small_28k_sidi): New.
18768         * config/aarch64/iterators.md (got_modifier): New mode iterator.
18769         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18770         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18771         SYMBOL_SMALL_GOT_28K.
18772         (aarch64_rtx_costs): Add costs for new instruction sequences.
18773         (initialize_aarch64_code_model): Initialize new model.
18774         (aarch64_classify_symbol): Recognize new model and new symbol classification.
18775         (aarch64_asm_preferred_eh_data_format): Support new model.
18776         (aarch64_load_symref_appropriately): Generate new instruction
18777         sequences for -fpic.
18778         (TARGET_USE_PSEUDO_PIC_REG): New definition.
18779         (aarch64_use_pseudo_pic_reg): New function.
18781 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
18783         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18784         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
18785         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
18786         (aarch64_expand_mov_immediate): Ditto.
18787         (aarch64_print_operand): Ditto.
18788         (aarch64_classify_symbol): Ditto.
18790 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
18792         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
18794 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
18796         PR bootstrap/66638
18797         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
18798         assertion failed.  Remove assertion itself.
18800 2015-06-26  Richard Biener  <rguenther@suse.de>
18802         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
18803         and -A CMP CST -> A CMP -CST which is redundant with a pattern
18804         in match.pd.
18805         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
18806         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
18807         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
18808         * match.pd: ... patterns here.
18810 2015-06-26  Marek Polacek  <polacek@redhat.com>
18812         * match.pd ((x | y) & ~(x & y) -> x ^ y,
18813         (x | y) & (~x ^ y) -> x & y): New patterns.
18815 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
18817         * rtl.h (emit): Add an optional boolean parameter to control
18818         whether barriers are emitted.
18819         * emit-rtl.c (emit): Likewise.
18820         * gensupport.c (get_emit_function): Return null rather than "emit".
18821         * genemit.c (gen_emit_seq): Handle the null return value.
18822         Don't emit barriers after the final instruction in the sequence.
18823         * gentarget-def.c (main): Don't emit barriers after the instruction.
18825 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18827         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
18828         TARGET_UNIFIED_ASM.
18830 2015-06-26  Richard Biener  <rguenther@suse.de>
18832         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
18834 2015-06-26  Richard Biener  <rguenther@suse.de>
18836         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
18837         irrespective on whether the inner operation has a single use
18838         of both off are constant.
18840 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
18841             Segher Boessenkool  <segher@kernel.crashing.org>
18843         PR target/66412
18844         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
18845         before doing PUT_MODE or PUT_CODE on operands to avoid
18846         in-place RTX modification.
18848 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18850         * gentarget-def.c (def_target_insn): Cast return of strtol to
18851         unsigned int.
18853 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18855         * gimple.h (gimple_call_set_fn): Move inline function.
18856         * gimple.c (gimple_call_set_fn): Relocate here.
18858 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
18860         PR target/65979
18861         PR target/66611
18862         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
18863         the replacement insn will work.
18865 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18867         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
18868         by default.
18870 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18872         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
18873         * cgraph.h: Include ipa-ref.h and plugin-api.h.
18874         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
18875         (symtab_node::address_can_be_compared_p): Move function.
18876         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
18877         definition here.
18878         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
18879         * auto-profile.c: Likewise.
18880         * bb-reorder.c: Likewise.
18881         * builtins.c: Likewise.
18882         * calls.c: Likewise.
18883         * cfgexpand.c: Likewise.
18884         * cgraphbuild.c: Likewise.
18885         * cgraphclones.c: Likewise.
18886         * cgraphunit.c: Likewise.
18887         * combine.c: Likewise.
18888         * coverage.c: Likewise.
18889         * data-streamer-in.c: Likewise.
18890         * data-streamer-out.c: Likewise.
18891         * data-streamer.c: Likewise.
18892         * dbxout.c: Likewise.
18893         * dwarf2out.c: Likewise.
18894         * except.c: Likewise.
18895         * expr.c: Likewise.
18896         * final.c: Likewise.
18897         * fold-const.c: Likewise.
18898         * ggc-page.c: Likewise.
18899         * gimple-fold.c: Likewise.
18900         * gimple-iterator.c: Likewise.
18901         * gimple-pretty-print.c: Likewise.
18902         * gimple-streamer-in.c: Likewise.
18903         * gimple-streamer-out.c: Likewise.
18904         * gimple.c: Likewise.
18905         * gimplify.c: Likewise.
18906         * ipa-chkp.c: Likewise.
18907         * ipa-comdats.c: Likewise.
18908         * ipa-cp.c: Likewise.
18909         * ipa-devirt.c: Likewise.
18910         * ipa-icf-gimple.c: Likewise.
18911         * ipa-icf.c: Likewise.
18912         * ipa-inline-analysis.c: Likewise.
18913         * ipa-inline-transform.c: Likewise.
18914         * ipa-inline.c: Likewise.
18915         * ipa-polymorphic-call.c: Likewise.
18916         * ipa-profile.c: Likewise.
18917         * ipa-prop.c: Likewise.
18918         * ipa-pure-const.c: Likewise.
18919         * ipa-ref.c: Likewise.
18920         * ipa-reference.c: Likewise.
18921         * ipa-split.c: Likewise.
18922         * ipa-utils.c: Likewise.
18923         * ipa-visibility.c: Likewise.
18924         * ipa.c: Likewise.
18925         * langhooks.c: Likewise.
18926         * lto-cgraph.c: Likewise.
18927         * lto-compress.c: Likewise.
18928         * lto-opts.c: Likewise.
18929         * lto-section-in.c: Likewise.
18930         * lto-section-out.c: Likewise.
18931         * lto-streamer-in.c: Likewise.
18932         * lto-streamer-out.c: Likewise.
18933         * lto-streamer.c: Likewise.
18934         * omp-low.c: Likewise.
18935         * opts-global.c: Likewise.
18936         * passes.c: Likewise.
18937         * predict.c: Likewise.
18938         * print-tree.c: Likewise.
18939         * profile.c: Likewise.
18940         * ree.c: Likewise.
18941         * sanopt.c: Likewise.
18942         * stor-layout.c: Likewise.
18943         * symtab.c: Likewise.
18944         * toplev.c: Likewise.
18945         * trans-mem.c: Likewise.
18946         * tree-cfg.c: Likewise.
18947         * tree-chkp.c: Likewise.
18948         * tree-eh.c: Likewise.
18949         * tree-emutls.c: Likewise.
18950         * tree-inline.c: Likewise.
18951         * tree-nested.c: Likewise.
18952         * tree-parloops.c: Likewise.
18953         * tree-pretty-print.c: Likewise.
18954         * tree-profile.c: Likewise.
18955         * tree-sra.c: Likewise.
18956         * tree-ssa-alias.c: Likewise.
18957         * tree-ssa-live.c: Likewise.
18958         * tree-ssa-loop-ivcanon.c: Likewise.
18959         * tree-ssa-loop-ivopts.c: Likewise.
18960         * tree-ssa-pre.c: Likewise.
18961         * tree-ssa-sccvn.c: Likewise.
18962         * tree-ssa-strlen.c: Likewise.
18963         * tree-ssa-structalias.c: Likewise.
18964         * tree-streamer-in.c: Likewise.
18965         * tree-streamer-out.c: Likewise.
18966         * tree-streamer.c: Likewise.
18967         * tree-switch-conversion.c: Likewise.
18968         * tree-tailcall.c: Likewise.
18969         * tree-vect-data-refs.c: Likewise.
18970         * tree-vect-stmts.c: Likewise.
18971         * tree-vectorizer.c: Likewise.
18972         * tree.c: Likewise.
18973         * tsan.c: Likewise.
18974         * ubsan.c: Likewise.
18975         * value-prof.c: Likewise.
18976         * varasm.c: Likewise.
18977         * varpool.c: Likewise.
18978         * config/arm/arm.c: Likewise.
18979         * config/bfin/bfin.c: Likewise.
18980         * config/c6x/c6x.c: Likewise.
18981         * config/cris/cris.c: Likewise.
18982         * config/darwin-c.c: Likewise.
18983         * config/darwin.c: Likewise.
18984         * config/i386/i386.c: Likewise.
18985         * config/i386/winnt.c: Likewise.
18986         * config/microblaze/microblaze.c: Likewise.
18987         * config/mips/mips.c: Likewise.
18988         * config/rs6000/rs6000.c: Likewise.
18989         * config/rx/rx.c: Likewise.
18990         * config/s390/s390.c: Likewise.
18991         * config/tilegx/mul-tables.c: Likewise.
18993 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18995         * config/aarch64/aarch64.c, config/alpha/alpha.c,
18996         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
18997         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
18998         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
18999         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19000         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19001         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19002         config/microblaze/microblaze.c, config/mips/mips.c,
19003         config/mmix/mmix.c, config/mn10300/mn10300.c,
19004         config/moxie/moxie.c, config/msp430/msp430.c,
19005         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19006         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19007         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19008         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19009         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19010         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19011         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19012         target-def.h include.
19013         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
19015 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19017         * Makefile.in (TARGET_DEF): Add target-insns.def.
19018         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19019         (build/gentarget-def.o): New rule.
19020         (genprogrtl): Add target-def.
19021         * target-insns.def, gentarget-def.c: New files.
19022         * target.def: Add targetm.have_* and targetm.gen_* hooks,
19023         based on the contents of target-insns.def.
19024         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19025         (HAVE_return, gen_return): Delete.
19026         * target-def.h: Include insn-target-def.h.
19027         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19028         instead of direct calls.  Rely on them to do the appropriate assertions.
19029         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
19030         (convert_jumps_to_returns): Use targetm interface instead of
19031         direct calls.
19032         (thread_prologue_and_epilogue_insns): Likewise.
19033         * reorg.c (find_end_label, dbr_schedule): Likewise.
19034         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19035         * shrink-wrap.c (convert_to_simple_return): Likewise.
19036         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19038 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19040         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19041         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19042         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19043         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19044         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19045         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19046         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19047         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19048         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19049         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19050         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19051         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19052         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19053         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19054         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19055         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19056         includes to end.
19058 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19060         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19061         (unbounded_int_hashmap_traits::key_type): Likewise.
19062         * hash-map.h (hash_map): Get the key type from the traits.
19063         * hash-traits.h (default_hash_traits): By default, inherit from the
19064         template parameter.
19065         * alias.c (alias_set_traits): Delete.
19066         (alias_set_entry_d::children): Use alias_set_hash as the first
19067         template parameter.
19068         (record_alias_subset): Update accordingly.
19069         * except.c (tree_hash_traits): Delete.
19070         (type_to_runtime_map): Use tree_hash as the first template parameter.
19071         (init_eh): Update accordingly.
19072         * genmatch.c (capture_id_map_hasher): Delete.
19073         (cid_map_t): Use nofree_string_hash as first template parameter.
19074         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19075         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19076         Use symbol_compare_hash as the first template parameter in
19077         subdivide_hash_map.
19078         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19079         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19080         template parameter.
19081         * passes.c (pass_registry_hasher): Delete.
19082         (name_to_pass_map): Use nofree_string_hash as the first template
19083         parameter.
19084         (register_pass_name): Update accordingly.
19085         * sanopt.c (sanopt_tree_map_traits): Delete.
19086         (sanopt_tree_triplet_map_traits): Delete.
19087         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19088         template parameter.
19089         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19090         the first template parameter.
19091         * sese.c (rename_map_hasher): Delete.
19092         (rename_map_type): Use tree_ssa_name_hash as the first template
19093         parameter.
19094         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19095         (function_summary::m_map): Use map_hash as the first template
19096         parameter.
19097         (function_summary::release): Update accordingly.
19098         * tree-if-conv.c (phi_args_hash_traits): Delete.
19099         (predicate_scalar_phi): Use tree_operand_hash as the first template
19100         parameter to phi_arg_map.
19101         * tree-inline.h (dependence_hasher): Delete.
19102         (copy_body_data::dependence_map): Use dependence_hash as the first
19103         template parameter.
19104         * tree-inline.c (remap_dependence_clique): Update accordingly.
19105         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19106         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19107         parameter.
19108         (addr_stridxptr): Update accordingly.
19109         * value-prof.c (profile_id_traits): Delete.
19110         (cgraph_node_map): Use profile_id_hash as the first template
19111         parameter.
19112         (init_node_map): Update accordingly.
19113         * config/alpha/alpha.c (string_traits): Delete.
19114         (machine_function::links): Use nofree_string_hash as the first
19115         template parameter.
19116         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19117         * config/m32c/m32c.c (pragma_traits): Delete.
19118         (pragma_htab): Use nofree_string_hash as the first template parameter.
19119         (m32c_note_pragma_address): Update accordingly.
19120         * config/mep/mep.c (pragma_traits): Delete.
19121         (pragma_htab): Use nofree_string_hash as the first template parameter.
19122         (mep_note_pragma_flag): Update accordingly.
19123         * config/mips/mips.c (mips16_flip_traits): Delete.
19124         (mflip_mips16_htab): Use nofree_string_hash as the first template
19125         parameter.
19126         (mflip_mips16_use_mips16_p): Update accordingly.
19127         (local_alias_traits): Delete.
19128         (mips16_local_aliases): Use nofree_string_hash as the first template
19129         parameter.
19130         (mips16_local_alias): Update accordingly.
19132 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19134         * hash-map-traits.h (default_hashmap_traits): Delete.
19136 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19138         * hash-map-traits.h (unbounded_hashmap_traits): New class.
19139         (unbounded_int_hashmap_traits): Likewise.
19140         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19142 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19144         * ipa-icf.h (symbol_compare_hash): New class.
19145         (symbol_compare_hashmap_traits): Use it.
19146         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19147         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19148         (mem_alloc_description::reverse_mem_map_t): Remove redundant
19149         default_hashmap_traits.
19150         * sanopt.c (sanopt_tree_triplet_hash): New class.
19151         (sanopt_tree_triplet_map_traits): Use it.
19153 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19155         * gengtype-parse.c (require_template_declaration): Allow '+' in
19156         template parameters.  Consolidate cases.
19157         * hash-traits.h (int_hash): New class.
19158         * alias.c (alias_set_hash): New structure.
19159         (alias_set_traits): Use it.
19160         * symbol-summary.h (function_summary::map_hash): New class.
19161         (function_summary::summary_hashmap_traits): Use it.
19162         * tree-inline.h (dependence_hash): New class.
19163         (dependence_hasher): Use it.
19164         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19165         * value-prof.c (profile_id_hash): New class.
19166         (profile_id_traits): Use it.
19168 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19170         * config/mips/mips.c (mips16_flip_traits): Use it.
19171         (local_alias_traits, mips16_local_aliases): Convert from a map of
19172         rtxes to a map of symbol names.
19173         (mips16_local_alias): Update accordingly.
19175 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19177         * hash-traits.h (string_hash, nofree_string_hash): New classes.
19178         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19179         * passes.c (pass_registry_hasher): Likewise.
19180         * config/alpha/alpha.c (string_traits): Likewise.
19181         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19182         * config/m32c/m32c.c (pragma_traits): Likewise.
19183         * config/mep/mep.c (pragma_traits): Likewise.
19185 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19187         * tree-hash-traits.h (tree_hash): New class.
19188         * except.c: Include tree-hash-traits.h.
19189         (tree_hash_traits): Use tree_hash.
19191 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19193         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19194         * sese.c: Include tree-hash-traits.h.
19195         (rename_map_hasher): Use tree_ssa_name_hasher.
19197 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19199         * tree-hash-traits.h (tree_decl_hash): New class.
19200         * tree-ssa-strlen.c: Include tree-hash-traits.h.
19201         (stridxlist_hash_traits): Use tree_decl_hash.
19203 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19205         * tree-hash-traits.h: New file.
19206         (tree_operand_hash): New class.
19207         * sanopt.c: Include tree-hash-traits.h.
19208         (sanopt_tree_map_traits): Use tree_operand_hash.
19209         * tree-if-conv.c: Include tree-hash-traits.h.
19210         (phi_args_hash_traits): Use tree_operand_hash.
19211         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19212         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19214 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19216         * hash-map-traits.h: Include hash-traits.h.
19217         (simple_hashmap_traits): New class.
19218         * mem-stats.h (hash_map): Change the default traits to
19219         simple_hashmap_traits<default_hash_traits<Key> >.
19221 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19223         * hash-table.h: Update comments.
19225 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19227         * hash-traits.h (default_hash_traits): New structure.
19228         * hash-set.h (default_hashset_traits): Delete.
19229         (hash_set): Use default_hash_traits<Key> instead of
19230         default_hashset_traits.  Delete hash_entry type and use Key directly.
19231         * ipa-devirt.c (pair_traits): Delete.
19232         (default_hash_traits <type_pair>): Override.
19233         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19234         (odr_types_equivalent_p, add_type_duplicate): Likewise.
19236 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19238         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19240 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19242         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19243         (has_is_empty, is_empty_helper): Delete.
19244         (has_mark_deleted, mark_deleted_helper): Delete.
19245         (has_mark_empty, mark_empty_helper): Delete.
19246         (hash_table::is_deleted): Call the Descriptor unconditionally.
19247         (hash_table::is_empty): Likewise.
19248         (hash_table::mark_deleted): Likewise.
19249         (hash_table::mark_empty): Likewise.
19251 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19253         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
19254         redundant typedefs and members.
19255         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
19256         redundant typedefs.
19257         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19258         * ipa-devirt.c (odr_name_hasher): Likewise.
19259         (polymorphic_call_target_hasher): Likewise.
19260         * ira-costs.c (cost_classes_hasher): Likewise.
19261         * statistics.c (stats_counter_hasher): Likewise.
19262         * trans-mem.c (log_entry_hasher): Likewise.
19263         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19264         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19265         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19266         * var-tracking.c (variable_hasher): Likewise.
19267         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19268         Remove redundant typedefs and members.
19270 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19272         * hash-traits.h (ggc_cache_hasher): Rename to...
19273         (ggc_cache_remove): ...this and remove typedefs.
19274         (ggc_cache_ptr_hash): New class.
19275         * hash-table.h: Update commentary.
19276         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19277         rather than ggc_cache_hasher.
19278         (const_wide_int_hasher, reg_attr_hasher): Likewise.
19279         (const_double_hasher, const_fixed_hasher): Likewise.
19280         * function.c (insn_cache_hasher): Likewise.
19281         * trans-mem.c (tm_wrapper_hasher): Likewise.
19282         * tree.h (tree_decl_map_cache_hasher): Likewise.
19283         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19284         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19285         * ubsan.c (tree_type_map_cache_hasher): Likewise.
19286         * varasm.c (tm_clone_hasher): Likewise.
19287         * config/i386/i386.c (dllimport_hasher): Likewise.
19288         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19289         (tree_hasher): Likewise.
19291 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19293         * hash-traits.h (ggc_hasher): Rename to...
19294         (ggc_remover): ...this and remove typedefs.
19295         (ggc_cache_hasher): Update accordingly.  Add typedefs.
19296         (ggc_ptr_hash): New class.
19297         * hash-table.h: Update comment.
19298         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19299         ggc_hasher.
19300         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19301         (tree_descriptor_hasher): Likewise.
19302         * cgraph.c (function_version_hasher): Likewise.
19303         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19304         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19305         (dw_loc_list_hasher, addr_hasher): Likewise.
19306         * function.h (used_type_hasher): Likewise.
19307         * function.c (temp_address_hasher): Likewise.
19308         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19309         * libfuncs.h (libfunc_hasher): Likewise.
19310         * lto-streamer.h (decl_state_hasher): Likewise.
19311         * optabs.c (libfunc_decl_hasher): Likewise.
19312         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19313         * varasm.c (section_hasher, object_block_hasher): Likewise.
19314         (const_rtx_desc_hasher): Likewise.
19315         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19316         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19318 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19320         * hash-traits.h (free_ptr_hash): New class.
19321         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19322         rather than typed_free_remove.  Remove redudant typedefs.
19323         (external_ref_hasher): Likewise.
19324         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19325         (ehspec_hasher): Likewise.
19326         * ggc-common.c (saving_hasher): Likewise.
19327         * gimplify.c (gimplify_hasher): Likewise.
19328         * haifa-sched.c (delay_i2_hasher): Likewise.
19329         * loop-invariant.c (invariant_expr_hasher): Likewise.
19330         * loop-iv.c (biv_entry_hasher): Likewise.
19331         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19332         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19333         * tree-cfg.c (locus_discrim_hasher): Likewise.
19334         * tree-eh.c (finally_tree_hasher): Likewise.
19335         * tree-into-ssa.c (var_info_hasher): Likewise.
19336         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19337         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19338         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19339         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19340         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19341         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19342         (shared_bitmap_hasher): Likewise.
19343         * tree-ssa-threadupdate.c (redirection_data): Likewise.
19344         * tree-vectorizer.h (peel_info_hasher): Likewise.
19345         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19346         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19348 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19350         * hash-table.h: Update comments.
19351         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19352         (nofree_ptr_hash): New class.
19353         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19354         than typed_noop_remove.  Remove redudant typedefs.
19355         * attribs.c (attribute_hasher): Likewise.
19356         * cfg.c (bb_copy_hasher): Likewise.
19357         * cselib.c (cselib_hasher): Likewise.
19358         * dse.c (invariant_group_base_hasher): Likewise.
19359         * dwarf2cfi.c (trace_info_hasher): Likewise.
19360         * dwarf2out.c (macinfo_entry_hasher): Likewise.
19361         (comdat_type_hasher, loc_list_hasher): Likewise.
19362         * gcse.c (pre_ldst_expr_hasher): Likewise.
19363         * genmatch.c (id_base): Likewise.
19364         * genrecog.c (test_pattern_hasher): Likewise.
19365         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19366         * haifa-sched.c (delay_i1_hasher): Likewise.
19367         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19368         * ipa-icf.h (congruence_class_group_hash): Likewise.
19369         * ipa-profile.c (histogram_hash): Likewise.
19370         * ira-color.c (allocno_hard_regs_hasher): Likewise.
19371         * lto-streamer.h (string_slot_hasher): Likewise.
19372         * lto-streamer.c (tree_entry_hasher): Likewise.
19373         * plugin.c (event_hasher): Likewise.
19374         * postreload-gcse.c (expr_hasher): Likewise.
19375         * store-motion.c (st_expr_hasher): Likewise.
19376         * tree-sra.c (uid_decl_hasher): Likewise.
19377         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19378         (ssa_name_var_hash): Likewise.
19379         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19380         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19381         * tree-ssa-pre.c (pre_expr_d): Likewise.
19382         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19383         * vtable-verify.h (registration_hasher): Likewise.
19384         * vtable-verify.c (vtbl_map_hasher): Likewise.
19385         * config/arm/arm.c (libcall_hasher): Likewise.
19386         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19387         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19388         * config/sol2.c (comdat_entry_hasher): Likewise.
19389         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19390         (print_fold_checksum, fold_checksum_tree): Likewise.
19391         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19392         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19393         (fold_build_call_array_loc): Likewise.
19394         * tree-ssa-ccp.c (gimple_htab): Likewise.
19395         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19396         rather than pointer_type.
19398 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19400         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19401         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19403 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19405         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19406         (ggc_hasher::ggc_mx): Likewise.
19407         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
19408         that duplicate ggc_hasher ones.
19410 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19412         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19413         (gt_cleare_cache): Check here for deleted and empty entries.
19414         Replace handle_cache_entry with a call to keep_cache_entry.
19415         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19416         (ggc_cache_hasher::keep_cache_entry): New function.
19417         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19418         (tm_wrapper_hasher::keep_cache_entry): New function.
19419         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19420         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19421         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19422         (type_cache_hasher::keep_cache_entry): New function.
19423         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19424         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19425         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19426         (tree_type_map_cache_hasher::keep_cache_entry): New function.
19427         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19428         (tm_clone_hasher::keep_cache_entry): New function.
19429         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19430         (dllimport_hasher::keep_cache_entry): New function.
19432 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19434         * hash-table.h: Include hash-traits.h.
19435         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19436         (ggc_cache_hasher): Move to...
19437         * hash-traits.h: ...this new file.
19439 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19441         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19442         struct cl_optimization.
19443         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19444         * tree.c (make_node_stat): Allocate cl_optimization struct.
19445         (copy_node_stat): Allocate and copy cl_optimization struct.
19447 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19449         * function.h (struct incoming_args): Move struct.
19450         (pass_by_reference, reference_callee_copied): Remove prototypes.
19451         * emit-rtl.h (struct incoming_args): Relocate struct here.
19452         * calls.h (pass_by_reference, reference_callee_copied): Relocate
19453         prototypes here.
19454         * function.c (pass_by_reference, reference_callee_copied): Move.
19455         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19456         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19457         * ipa-chkp.c: Include calls.h.
19459 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
19461         * alias.h (alias_set_type): Move typedef.
19462         * coretypes.h (alias_set_type): Relocate typedef here.
19463         * rtl.h: Don't include alias.h.
19465 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19467         * cgraph.h (cgraph_rtl_info): Move to rtl.h
19468         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19469         and instance.
19470         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19471         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19472         doesn't exist.
19473         * calls.c: Include hard-reg-set.h before rtl.h.
19474         * ira.c: Likewise.
19476 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19477             Vladimir Makarov  <vmakarov@redhat.com>
19479         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19480         Add assert.
19482 2015-06-25  Richard Biener  <rguenther@suse.de>
19484         * fold-const.c (fold_binary_loc): Move simplification of
19485         (X <<>> C1) & C2 ...
19486         * match.pd: ... here.
19488 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
19490         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19492 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19494         * match.pd: Add patterns for vec_conds between 1 and 0.
19496 2015-06-25  Richard Biener  <rguenther@suse.de>
19498         * tree-vect-stmts.c (vectorizable_conversion): Do not set
19499         STMT_VINFO_VEC_STMT for SLP.
19500         (vectorizable_store): Likewise.
19501         (vectorizable_load): Likewise.
19502         (vect_transform_stmt): Catch SLP vectorization clobbering
19503         STMT_VINFO_VEC_STMT.
19505 2015-06-25  Richard Biener  <rguenther@suse.de>
19507         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19508         dumping.
19509         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19510         cleanup resulting dead code and parameters.
19511         (vect_transform_slp_perm_load): Adjust.
19513 2015-06-25  Nick Clifton  <nickc@redhat.com>
19515         * config/bfin/bfin.c (bfin_expand_prologue): Set
19516         current_function_static_stack_size if flag_stack_usage_info is set.
19517         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19518         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19519         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19520         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19522 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19524         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19525         comment that the generated IV is unsigned.
19527 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19529         PR target/29693
19530         * config/arm/arm.c (arm_dbx_register_number): Return
19531         DWARF_FRAME_REGISTERS by default.
19533 2015-06-25  Tom de Vries  <tom@codesourcery.com>
19535         * dominance.c (calculate_dominance_info): Fix verify_dominators call
19536         argument.  Call verify_dominator when reusing dominator info.
19538 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
19540         PR target/66563
19541         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19542         an additional element of the unspec vector.  Modify indices
19543         of operands.
19544         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19545         * config/sh/sh.c (prepare_move_operands): Pass incremented
19546         const_int to gen_GOTaddr2picreg.
19547         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19549 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19551         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19552         Condition on TARGET_FLOAT.
19554 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19556         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19557         and (no)crypto.
19559 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
19561         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19563         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19564         aarch64_err_no_fpadvsimd.
19566         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19567         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19568         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19569         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19570         Turn error into assert, test TARGET_FLOAT.
19571         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19572         TARGET_FLOAT.
19574 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
19576         PR debug/66482
19577         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19579 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19581         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19583 2015-06-24  Renlin Li <renlin.li@arm.com>
19585         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19586         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19588 2015-06-24  Richard Biener  <rguenther@suse.de>
19590         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19591         (main): Likewise.
19592         (lower_opt_convert): Support lowering of conditional view_convert.
19593         (parser::parse_operation): Likewise.
19594         (parser::parse_for): Likewise.
19596 2015-06-24  Renlin Li  <renlin.li@arm.com>
19598         * varasm.c (emit_local): Use unsigned int for align variable.
19600 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19602         PR target/63408
19603         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19604         for negative numbers.
19606 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19608         PR rtl-optimization/66306
19609         * reload.c (find_reloads): Swap the match_dup info for
19610         commutative operands.
19612 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19614         * config/s390/vx-builtins.md
19615         ("vec_scatter_element<mode>_<non_vec_int>")
19616         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19617         attribute with bhfgq.
19619 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19621         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19623 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19625         * config/s390/s390-builtin-types.def: Add flag to indicate the
19626         options under which the function type is needed.
19627         * config/s390/s390-builtins.def: Add flag to indicate the options
19628         under which the builtin is enabled.
19629         * config/s390/s390-builtins.h: Add flags parameter to macro
19630         definitions.
19631         (bflags_for_builtin): New function.
19632         (flags_for_builtin): Renamed to ...
19633         (opflags_for_builtin): ... this.
19634         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19635         flags_for_builtin to bflags_for_builtin and
19636         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19637         * config/s390/s390.c: Add initialization of bflags_builtin and
19638         opflags_builtin arrays.
19639         Remove code for flags_builtin.
19640         (s390_init_builtins): Only create builtin function types if one of
19641         their flags is active.
19642         Only create builtins if all of their flags are active.
19643         (s390_expand_builtin): Rename flags_for_builtin to
19644         opflags_for_builtin.
19646 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19648         * config/s390/vecintrin.h: Remove internal builtins.
19650 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19652         * config/s390/s390.c (s390_secondary_reload): Fix check for
19653         GENERAL_REGS register class.
19655 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19657         * config/s390/s390.c (s390_support_vector_misalignment): Call
19658         default implementation for !TARGET_VX.
19660 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19662         * config/s390/s390.c (s390_legitimate_constant_p): Add
19663         TARGET_VX check.
19665 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19667         * config/s390/s390.c (s390_vector_abi): New variable definition.
19668         (s390_check_type_for_vector_abi): New function.
19669         (TARGET_ASM_FILE_END): New macro definition.
19670         (s390_asm_file_end): New function.
19671         (s390_function_arg): Call s390_check_type_for_vector_abi.
19672         (s390_gimplify_va_arg): Likewise.
19673         * configure: Regenerate.
19674         * configure.ac: Check for .gnu_attribute Binutils feature.
19676 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
19678         PR target/65803
19679         * config/bfin/bfin.c (hwloop_optimize): Initialize
19680         JUMP_LABEL for newly created jump.
19682 2015-06-23  Tristan Gingold  <gingold@adacore.com>
19684         * collect-utils.c (collect_wait): Unlink the response file here
19685         instead of...
19686         (do_wait): ...here.
19687         (utils_cleanup): ...and here.
19689 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
19691         * df-scan.c: Don't include target-def.h.
19692         * targhooks.c: Likewise.
19693         * config/arm/arm-c.c: Likewise.
19694         * config/i386/i386-c.c: Likewise.
19695         * config/nds32/nds32-cost.c: Likewise.
19696         * config/nds32/nds32-fp-as-gp.c: Likewise.
19697         * config/nds32/nds32-intrinsic.c: Likewise.
19698         * config/nds32/nds32-isr.c: Likewise.
19699         * config/nds32/nds32-md-auxiliary.c: Likewise.
19700         * config/nds32/nds32-memory-manipulation.c: Likewise.
19701         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19702         * config/nds32/nds32-predicates.c: Likewise.
19704 2015-06-23  Richard Biener  <rguenther@suse.de>
19706         PR tree-optimization/66636
19707         * tree-vect-stmts.c (vectorizable_store): Properly compute the
19708         def type for further defs for strided stores.
19710 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
19712         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19713         conditional selects.
19714         (setcc_int<mode>, setcc_float<mode>): Reformat.
19716 2015-06-23  Marek Polacek  <polacek@redhat.com>
19718         * match.pd ((x + y) - (x | y) -> x & y,
19719         (x + y) - (x & y) -> x | y): New patterns.
19721 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
19723         PR 65711
19724         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19725         '-dynamic-linker' within %{!shared: ...}.
19727 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
19729         PR target/66560
19730         * config/i386/predicates.md (addsub_vm_operator): New predicate.
19731         (addsub_vs_operator): Ditto.
19732         (addsub_vs_parallel): Ditto.
19733         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19734         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19735         Put minus RTX before plus and adjust vec_merge selector.
19736         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19737         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19738         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19739         (addsub vec_merge splitters): New combiner splitters.
19740         (addsub vec_select/vec_concat splitters): Ditto.
19742 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
19744         PR tree-optimization/66449
19745         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19746         POINTER_PLUS_EXPR for pointers.
19748 2015-06-23  Alan Modra  <amodra@gmail.com>
19750         * rtlanal.c (commutative_operand_precedence): Correct comments.
19751         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19752         declaration.  Return an int.  Distinguish REG,REG return from
19753         others.
19754         (struct simplify_plus_minus_op_data): Make local to function.
19755         (simplify_plus_minus): Don't set canonicalized if merely sorting
19756         registers.  Avoid packing ops if nothing changes.  White space fixes.
19758 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
19760         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19761         -fdump-ada-spec is passed but not if -fsyntax-only is.
19763 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
19765         PR bootstrap/63740
19766         * lra-lives.c (process_bb_lives): Check insn copying the same
19767         reload pseudo and don't create a copy for it.
19769 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19771         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19772         for cond_stmt.
19774 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19776         * builtins.def (DEF_GOMP_BUILTIN): Test
19777         'flag_tree_parallelize_loops > 1' instead of
19778         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
19780 2015-06-22  Tom de Vries  <tom@codesourcery.com>
19782         * dominance.c (calculate_dominance_info): Verify dominators if
19783         early-out.
19785 2015-06-22  Marek Polacek  <polacek@redhat.com>
19787         * match.pd ((x ^ y) ^ (x | y) -> x & y,
19788         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
19789         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
19790         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
19792 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
19794         PR target/65871
19795         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
19796         cost of embedded comparison.
19798 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19800         PR target/65914
19801         * config/rs6000/predicates.md (altivec_register_operand): Permit
19802         virtual stack registers.
19803         (vsx_register_operand): Likewise.
19804         (vfloat_operand): Likewise.
19805         (vint_operand): Likewise.
19806         (vlogical_operand): Likewise.
19808 2015-06-22  Richard Biener  <rguenther@suse.de>
19810         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
19811         and single_scalar_iteration_cost members.
19812         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
19813         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
19814         (vect_get_single_scalar_iteration_cost): Remove.
19815         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19816         Use LOOP_VINFO_SCALAR_ITERATION_COST.
19817         * tree-vect-loop.c (destroy_loop_vec_info): Free
19818         scalar_cost_vec.
19819         (vect_get_single_scalar_iteration_cost): Compute result into
19820         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
19821         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
19822         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
19823         (vect_estimate_min_profitable_iters): Use them.
19825 2015-06-22  Christian Bruel  <christian.bruel@st.com>
19827         PR target/52144
19828         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
19829         (TARGET_INSERT_ATTRIBUTES): Define.
19830         (thumb_flipper): New var.
19831         * config/arm/arm.opt (-mflip-thumb): New switch.
19833 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
19834             Martin Liska  <mliska@suse.cz>
19836         PR ipa/65908
19837         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
19838         construction of arg_types.
19839         (sem_function::sem_function): Likewise.
19840         (sem_function::~sem_function): Remove destruction of arg_types.
19841         (sem_function::compatible_parm_types_p): New function.
19842         (sem_function::equals_wpa): Reorg matching of return values
19843         and parameter types.
19844         (sem_function::equals_private): Reorg mathcing of argument types.
19845         (sem_function::parse_tree_args): Remove.
19846         * ipa-icf.h (init_wpa): Do not call it.
19847         (parse_tree_args): Remove.
19848         (compatible_parm_types_p): Declare.
19849         (result_type): Remove.
19850         (arg_types): Remove.
19852 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
19854         PR ipa/66351
19855         * ipa-polymorphic-call.c
19856         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
19857         initializing alias oracle; fix formating; set base_alias_set if it
19858         is known.
19860 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
19862         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
19863         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
19864         (find_inc): Likewise.
19865         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
19866         swapping.
19867         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19868         * df-scan.c (df_swap_refs): Remove.
19869         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
19870         * dominance.c (link_roots): Use std::swap instead of manually swapping.
19871         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
19872         * fold-const.c (fold_relational_const): Likewise.
19873         * genattrtab.c (simplify_test_exp): Likewise.
19874         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
19875         gimple_simplify): Likewise.
19876         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
19877         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
19878         * ipa-devirt.c (add_type_duplicate): Likewise.
19879         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
19880         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
19881         * lra.c (lra_create_copy): Likewise.
19882         * lto-streamer-out.c (DFS::DFS): Likewise.
19883         * modulo-sched.c (get_sched_window): Likewise.
19884         * omega.c (omega_pretty_print_problem): Likewise.
19885         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
19886         * reload1.c (reloads_unique_chain_p): Likewise.
19887         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
19888         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
19889         use std::swap.
19890         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
19891         manually swapping.
19892         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
19893         predicate_mem_writes): Likewise.
19894         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
19895         * tree-predcom.c (combine_chains): Likewise.
19896         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
19897         refs_may_alias_p_1): Likewise.
19898         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
19899         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19900         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
19901         number_of_iterations_cond): Likewise.
19902         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19903         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19904         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
19905         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
19906         * tree-vrp.c (extract_range_from_binary_expr_1,
19907         extract_range_from_unary_expr_1): Likewise.
19909 2015-06-20  Marek Polacek  <polacek@redhat.com>
19911         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
19913 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
19915         PR target/66591
19916         * config/sh/sh.c (prepare_move_operands): Replace subreg
19917         index term with R0 for base and index addressing.
19919 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
19921         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
19922         op1 is an fp zero.
19923         (movsf_aarch64): Change condition from register_operand to
19924         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
19925         load1.  Change type for alternative 7 to store1.
19926         (movdf_aarch64): Likewise.
19928 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
19930         * config/vax/vax.md: Adjust sign/zero extend patterns to
19931         handle SUBREGs in operands[1].
19933 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19935         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
19936         of manually swapping.
19937         (expand_vec_perm_interleave2): Likewise.
19939 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
19941         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
19942         reuse bounds created for abnormal ssa names.
19944 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
19946         * config/nvptx/nvptx.md (allocate_stack): Rename to...
19947         (allocate_stack_<mode>): ... this, and add :P on both
19948         match_operand and unspec.
19949         (allocate_stack): New expander.
19951 2015-06-19  Christian Bruel  <christian.bruel@st.com>
19953         PR target/66541
19954         PR target/52144
19955         * config/arm/arm.c (arm_set_current_function): Handle
19956         explicit default options.
19958 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
19960         * config/i386/i386.md (*movsicc_noc_zext): New insn.
19961         (zero-extended cmove with mem peephole2): New pattern.
19962         (cmove with mem peephole2): Merge patterns.
19964 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
19966         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
19968 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
19970         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
19971         * config/mips/mips.md (*madd4<mode>): Ditto.
19972         (*nmadd3<mode>) Ditto.
19973         (*nmadd4<mode>_fastmath): Ditto.
19974         (*nmadd3<mode>_fastmath): Ditto.
19975         (*nmsub4<mode>): Ditto.
19976         (*nmsub3<mode>): Ditto.
19977         (*nmsub4<mode>_fastmath): Ditto.
19978         (*nmsub3<mode>_fastmath): Ditto.
19980 2015-06-18  Michael Matz  <matz@suse.de>
19982         PR middle-end/66253
19983         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
19984         grouped strided stores.
19985         (vectorizable_load): Don't use the DR from first_stmt in
19986         the non-SLP grouped strided case.
19988 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19990         PR target/66569
19991         * function.c (assign_bounds): Add arguments assign_regs,
19992         assign_special, assign_bt.
19993         (assign_parms): For vararg functions handle bounds in BT
19994         and special slots after incoming vararg bounds.
19996 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19998         PR middle-end/66568
19999         * cfgexpand.c (expand_return): Handle missing bounds.
20000         (expand_gimple_stmt_1): Likewise.
20001         * tree-chkp.c (chkp_expand_zero_bounds): New.
20002         * tree-chkp.h (chkp_expand_zero_bounds): New.
20004 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20006         PR middle-end/66567
20007         * ipa-chkp.c (chkp_maybe_create_clone): Require
20008         functions to be instrumentable.
20009         * tree-chkp.c (chkp_replace_function_pointer): Use
20010         chkp_instrumentable_p instead of attribute check.
20012 2015-06-18  Richard Biener  <rguenther@suse.de>
20014         PR tree-optimization/66510
20015         * tree-vect-stmts.c (vectorizable_load): Properly compute the
20016         number of vector loads for SLP permuted loads.
20017         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20018         check the stride for loop vectorization.
20019         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20020         vectorization factor.
20021         (vect_analyze_group_access): If the group size is not a power
20022         of two require a epilogue loop.
20023         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20024         compute and optimizing and alias test pruning after final
20025         vectorization factor computation.
20026         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20027         vector alignment.
20028         (vect_transform_slp_perm_load): Properly compute the original
20029         number of vector load stmts.
20031 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
20033         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20034         "unlikely character , in @var" warning.
20036 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
20038         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20039         (ix86_function_arg_advance): Ditto.
20040         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
20042 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20044         * function.h (struct rtl_data): Remove struct and accessor macros.
20045         * emit-rtl.h (struct rtl_data): Relocate to here.
20046         * Makefile.in (GTFILES): Add emit-rtl.h.
20047         * df-core.c: Include emit-rtl.h.
20048         * genattrtab.c: Likewise.
20049         * genconditions.c: Likewise.
20050         * genpreds.c: Likewise.
20051         * genrecog.c: Likewise.
20052         * regcprop.c: Likewise.
20053         * resource.c: Likewise.
20054         * sched-rgn.c: Likewise.
20055         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20056         * config/i386/winnt.c: Likewise.
20058 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
20060         PR middle-end/66429
20061         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20062         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
20063         and has_force_vectorize_loops flags from cfun into
20064         child_cfun.
20065         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20066         if simduid is non-NULL.
20067         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20068         * passes.def (pass_simduid_cleanup): Add new pass after loop
20069         passes.
20070         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20071         indirection from htab argument's type.
20072         (shrink_simd_arrays): New function.
20073         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
20074         Don't call adjust_simduid_builtins if there are no loops.
20075         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20076         (pass_simduid_cleanup::execute): New method.
20077         (make_pass_simduid_cleanup): New function.
20079 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
20081         * tree-core.h (tree_target_option): Make opts field a pointer to a
20082         cl_target_option instead of an instance of the struct.
20083         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20084         the structure.
20085         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20086         TARGET_OPTION_NODE.
20087         (copy_node_stat): Allocate and copy struct cl_target_option.
20089 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20091         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20092         Remove conditional exposure of prototypes.
20093         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20094         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
20095         definitions in tree.h with functions.
20096         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20097         anon_aggrname_p.
20098         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20100 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
20102         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20103         (*cmp<mode>_signed): ... this.
20104         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20105         (*cmp<mode>_unsigned): ... this.  Remove %b.
20107 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
20109         * coretypes.h: Include input.h and as-a.h.
20110         * rtl.h: Include input.h and as-a.h for generator files.
20111         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20112         * vec.c: Don't include diagnostic-core.h.
20113         * alias.c: Do not include input.h, line-map.h or is-a.h.
20114         * asan.c: Likewise.
20115         * attribs.c: Likewise.
20116         * auto-inc-dec.c: Likewise.
20117         * auto-profile.c: Likewise.
20118         * bb-reorder.c: Likewise.
20119         * bt-load.c: Likewise.
20120         * builtins.c: Likewise.
20121         * caller-save.c: Likewise.
20122         * calls.c: Likewise.
20123         * ccmp.c: Likewise.
20124         * cfg.c: Likewise.
20125         * cfganal.c: Likewise.
20126         * cfgbuild.c: Likewise.
20127         * cfgcleanup.c: Likewise.
20128         * cfgexpand.c: Likewise.
20129         * cfghooks.c: Likewise.
20130         * cfgloop.c: Likewise.
20131         * cfgloop.h: Likewise.
20132         * cfgloopanal.c: Likewise.
20133         * cfgloopmanip.c: Likewise.
20134         * cfgrtl.c: Likewise.
20135         * cgraph.c: Likewise.
20136         * cgraphbuild.c: Likewise.
20137         * cgraphclones.c: Likewise.
20138         * cgraphunit.c: Likewise.
20139         * cilk-common.c: Likewise.
20140         * combine-stack-adj.c: Likewise.
20141         * combine.c: Likewise.
20142         * compare-elim.c: Likewise.
20143         * convert.c: Likewise.
20144         * coverage.c: Likewise.
20145         * cppbuiltin.c: Likewise.
20146         * cprop.c: Likewise.
20147         * cse.c: Likewise.
20148         * cselib.c: Likewise.
20149         * data-streamer-in.c: Likewise.
20150         * data-streamer-out.c: Likewise.
20151         * data-streamer.c: Likewise.
20152         * dbxout.c: Likewise.
20153         * dce.c: Likewise.
20154         * ddg.c: Likewise.
20155         * debug.c: Likewise.
20156         * df-core.c: Likewise.
20157         * df-problems.c: Likewise.
20158         * df-scan.c: Likewise.
20159         * df.h: Likewise.
20160         * dfp.c: Likewise.
20161         * diagnostic-core.h: Likewise.
20162         * diagnostic.c: Likewise.
20163         * dojump.c: Likewise.
20164         * dominance.c: Likewise.
20165         * domwalk.c: Likewise.
20166         * double-int.c: Likewise.
20167         * dse.c: Likewise.
20168         * dumpfile.c: Likewise.
20169         * dumpfile.h: Likewise.
20170         * dwarf2asm.c: Likewise.
20171         * dwarf2cfi.c: Likewise.
20172         * dwarf2out.c: Likewise.
20173         * emit-rtl.c: Likewise.
20174         * et-forest.c: Likewise.
20175         * except.c: Likewise.
20176         * explow.c: Likewise.
20177         * expmed.c: Likewise.
20178         * expr.c: Likewise.
20179         * final.c: Likewise.
20180         * fixed-value.c: Likewise.
20181         * fold-const.c: Likewise.
20182         * function.c: Likewise.
20183         * fwprop.c: Likewise.
20184         * gcc-plugin.h: Likewise.
20185         * gcse.c: Likewise.
20186         * generic-match-head.c: Likewise.
20187         * ggc-page.c: Likewise.
20188         * gimple-builder.c: Likewise.
20189         * gimple-expr.c: Likewise.
20190         * gimple-fold.c: Likewise.
20191         * gimple-iterator.c: Likewise.
20192         * gimple-low.c: Likewise.
20193         * gimple-match-head.c: Likewise.
20194         * gimple-pretty-print.c: Likewise.
20195         * gimple-ssa-isolate-paths.c: Likewise.
20196         * gimple-ssa-strength-reduction.c: Likewise.
20197         * gimple-streamer-in.c: Likewise.
20198         * gimple-streamer-out.c: Likewise.
20199         * gimple-streamer.h: Likewise.
20200         * gimple-walk.c: Likewise.
20201         * gimple.c: Likewise.
20202         * gimplify-me.c: Likewise.
20203         * gimplify.c: Likewise.
20204         * godump.c: Likewise.
20205         * graph.c: Likewise.
20206         * graphite-blocking.c: Likewise.
20207         * graphite-dependences.c: Likewise.
20208         * graphite-interchange.c: Likewise.
20209         * graphite-isl-ast-to-gimple.c: Likewise.
20210         * graphite-optimize-isl.c: Likewise.
20211         * graphite-poly.c: Likewise.
20212         * graphite-scop-detection.c: Likewise.
20213         * graphite-sese-to-poly.c: Likewise.
20214         * graphite.c: Likewise.
20215         * haifa-sched.c: Likewise.
20216         * hw-doloop.c: Likewise.
20217         * ifcvt.c: Likewise.
20218         * init-regs.c: Likewise.
20219         * input.c: Likewise.
20220         * internal-fn.c: Likewise.
20221         * ipa-chkp.c: Likewise.
20222         * ipa-comdats.c: Likewise.
20223         * ipa-cp.c: Likewise.
20224         * ipa-devirt.c: Likewise.
20225         * ipa-icf-gimple.c: Likewise.
20226         * ipa-icf.c: Likewise.
20227         * ipa-inline-analysis.c: Likewise.
20228         * ipa-inline-transform.c: Likewise.
20229         * ipa-inline.c: Likewise.
20230         * ipa-polymorphic-call.c: Likewise.
20231         * ipa-profile.c: Likewise.
20232         * ipa-prop.c: Likewise.
20233         * ipa-pure-const.c: Likewise.
20234         * ipa-ref.c: Likewise.
20235         * ipa-reference.c: Likewise.
20236         * ipa-split.c: Likewise.
20237         * ipa-utils.c: Likewise.
20238         * ipa-visibility.c: Likewise.
20239         * ipa.c: Likewise.
20240         * ira-build.c: Likewise.
20241         * ira-color.c: Likewise.
20242         * ira-conflicts.c: Likewise.
20243         * ira-costs.c: Likewise.
20244         * ira-emit.c: Likewise.
20245         * ira-lives.c: Likewise.
20246         * ira.c: Likewise.
20247         * jump.c: Likewise.
20248         * langhooks.c: Likewise.
20249         * lcm.c: Likewise.
20250         * loop-doloop.c: Likewise.
20251         * loop-init.c: Likewise.
20252         * loop-invariant.c: Likewise.
20253         * loop-iv.c: Likewise.
20254         * loop-unroll.c: Likewise.
20255         * lower-subreg.c: Likewise.
20256         * lra-assigns.c: Likewise.
20257         * lra-coalesce.c: Likewise.
20258         * lra-constraints.c: Likewise.
20259         * lra-eliminations.c: Likewise.
20260         * lra-lives.c: Likewise.
20261         * lra-remat.c: Likewise.
20262         * lra-spills.c: Likewise.
20263         * lra.c: Likewise.
20264         * lto-cgraph.c: Likewise.
20265         * lto-compress.c: Likewise.
20266         * lto-opts.c: Likewise.
20267         * lto-section-in.c: Likewise.
20268         * lto-section-out.c: Likewise.
20269         * lto-streamer-in.c: Likewise.
20270         * lto-streamer-out.c: Likewise.
20271         * lto-streamer.c: Likewise.
20272         * mcf.c: Likewise.
20273         * mode-switching.c: Likewise.
20274         * modulo-sched.c: Likewise.
20275         * omega.c: Likewise.
20276         * omp-low.c: Likewise.
20277         * optabs.c: Likewise.
20278         * opts-global.c: Likewise.
20279         * opts.h: Likewise.
20280         * passes.c: Likewise.
20281         * plugin.c: Likewise.
20282         * postreload-gcse.c: Likewise.
20283         * postreload.c: Likewise.
20284         * predict.c: Likewise.
20285         * pretty-print.h: Likewise.
20286         * print-rtl.c: Likewise.
20287         * print-tree.c: Likewise.
20288         * profile.c: Likewise.
20289         * real.c: Likewise.
20290         * realmpfr.c: Likewise.
20291         * recog.c: Likewise.
20292         * ree.c: Likewise.
20293         * reg-stack.c: Likewise.
20294         * regcprop.c: Likewise.
20295         * reginfo.c: Likewise.
20296         * regrename.c: Likewise.
20297         * regstat.c: Likewise.
20298         * reload.c: Likewise.
20299         * reload1.c: Likewise.
20300         * reorg.c: Likewise.
20301         * resource.c: Likewise.
20302         * rtl-chkp.c: Likewise.
20303         * rtl-error.c: Likewise.
20304         * rtlanal.c: Likewise.
20305         * rtlhooks.c: Likewise.
20306         * sanopt.c: Likewise.
20307         * sched-deps.c: Likewise.
20308         * sched-ebb.c: Likewise.
20309         * sched-rgn.c: Likewise.
20310         * sched-vis.c: Likewise.
20311         * sdbout.c: Likewise.
20312         * sel-sched-dump.c: Likewise.
20313         * sel-sched-ir.c: Likewise.
20314         * sel-sched.c: Likewise.
20315         * sese.c: Likewise.
20316         * shrink-wrap.c: Likewise.
20317         * simplify-rtx.c: Likewise.
20318         * stack-ptr-mod.c: Likewise.
20319         * statistics.c: Likewise.
20320         * stmt.c: Likewise.
20321         * stor-layout.c: Likewise.
20322         * store-motion.c: Likewise.
20323         * streamer-hooks.c: Likewise.
20324         * stringpool.c: Likewise.
20325         * symtab.c: Likewise.
20326         * target-globals.c: Likewise.
20327         * targhooks.c: Likewise.
20328         * toplev.c: Likewise.
20329         * tracer.c: Likewise.
20330         * trans-mem.c: Likewise.
20331         * tree-affine.c: Likewise.
20332         * tree-browser.c: Likewise.
20333         * tree-call-cdce.c: Likewise.
20334         * tree-cfg.c: Likewise.
20335         * tree-cfgcleanup.c: Likewise.
20336         * tree-chkp-opt.c: Likewise.
20337         * tree-chkp.c: Likewise.
20338         * tree-chrec.c: Likewise.
20339         * tree-complex.c: Likewise.
20340         * tree-data-ref.c: Likewise.
20341         * tree-dfa.c: Likewise.
20342         * tree-diagnostic.c: Likewise.
20343         * tree-dump.c: Likewise.
20344         * tree-eh.c: Likewise.
20345         * tree-emutls.c: Likewise.
20346         * tree-if-conv.c: Likewise.
20347         * tree-inline.c: Likewise.
20348         * tree-into-ssa.c: Likewise.
20349         * tree-iterator.c: Likewise.
20350         * tree-loop-distribution.c: Likewise.
20351         * tree-nested.c: Likewise.
20352         * tree-nrv.c: Likewise.
20353         * tree-object-size.c: Likewise.
20354         * tree-outof-ssa.c: Likewise.
20355         * tree-parloops.c: Likewise.
20356         * tree-phinodes.c: Likewise.
20357         * tree-predcom.c: Likewise.
20358         * tree-pretty-print.c: Likewise.
20359         * tree-profile.c: Likewise.
20360         * tree-scalar-evolution.c: Likewise.
20361         * tree-sra.c: Likewise.
20362         * tree-ssa-address.c: Likewise.
20363         * tree-ssa-alias.c: Likewise.
20364         * tree-ssa-ccp.c: Likewise.
20365         * tree-ssa-coalesce.c: Likewise.
20366         * tree-ssa-copy.c: Likewise.
20367         * tree-ssa-copyrename.c: Likewise.
20368         * tree-ssa-dce.c: Likewise.
20369         * tree-ssa-dom.c: Likewise.
20370         * tree-ssa-dse.c: Likewise.
20371         * tree-ssa-forwprop.c: Likewise.
20372         * tree-ssa-ifcombine.c: Likewise.
20373         * tree-ssa-live.c: Likewise.
20374         * tree-ssa-loop-ch.c: Likewise.
20375         * tree-ssa-loop-im.c: Likewise.
20376         * tree-ssa-loop-ivcanon.c: Likewise.
20377         * tree-ssa-loop-ivopts.c: Likewise.
20378         * tree-ssa-loop-manip.c: Likewise.
20379         * tree-ssa-loop-niter.c: Likewise.
20380         * tree-ssa-loop-prefetch.c: Likewise.
20381         * tree-ssa-loop-unswitch.c: Likewise.
20382         * tree-ssa-loop.c: Likewise.
20383         * tree-ssa-math-opts.c: Likewise.
20384         * tree-ssa-operands.c: Likewise.
20385         * tree-ssa-phiopt.c: Likewise.
20386         * tree-ssa-phiprop.c: Likewise.
20387         * tree-ssa-pre.c: Likewise.
20388         * tree-ssa-propagate.c: Likewise.
20389         * tree-ssa-reassoc.c: Likewise.
20390         * tree-ssa-sccvn.c: Likewise.
20391         * tree-ssa-scopedtables.c: Likewise.
20392         * tree-ssa-sink.c: Likewise.
20393         * tree-ssa-strlen.c: Likewise.
20394         * tree-ssa-structalias.c: Likewise.
20395         * tree-ssa-tail-merge.c: Likewise.
20396         * tree-ssa-ter.c: Likewise.
20397         * tree-ssa-threadedge.c: Likewise.
20398         * tree-ssa-threadupdate.c: Likewise.
20399         * tree-ssa-uncprop.c: Likewise.
20400         * tree-ssa-uninit.c: Likewise.
20401         * tree-ssa.c: Likewise.
20402         * tree-ssanames.c: Likewise.
20403         * tree-stdarg.c: Likewise.
20404         * tree-streamer-in.c: Likewise.
20405         * tree-streamer-out.c: Likewise.
20406         * tree-streamer.c: Likewise.
20407         * tree-switch-conversion.c: Likewise.
20408         * tree-tailcall.c: Likewise.
20409         * tree-vect-data-refs.c: Likewise.
20410         * tree-vect-generic.c: Likewise.
20411         * tree-vect-loop-manip.c: Likewise.
20412         * tree-vect-loop.c: Likewise.
20413         * tree-vect-patterns.c: Likewise.
20414         * tree-vect-slp.c: Likewise.
20415         * tree-vect-stmts.c: Likewise.
20416         * tree-vectorizer.c: Likewise.
20417         * tree-vrp.c: Likewise.
20418         * tree.c: Likewise.
20419         * tsan.c: Likewise.
20420         * ubsan.c: Likewise.
20421         * valtrack.c: Likewise.
20422         * value-prof.c: Likewise.
20423         * var-tracking.c: Likewise.
20424         * varasm.c: Likewise.
20425         * varpool.c: Likewise.
20426         * vmsdbgout.c: Likewise.
20427         * vtable-verify.c: Likewise.
20428         * web.c: Likewise.
20429         * wide-int.cc: Likewise.
20430         * xcoffout.c: Likewise.
20431         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20432         * common/common-targhooks.c: Likewise.
20433         * config/aarch64/aarch64-builtins.c: Likewise.
20434         * config/aarch64/aarch64.c: Likewise.
20435         * config/alpha/alpha.c: Likewise.
20436         * config/arc/arc.c: Likewise.
20437         * config/arm/aarch-common.c: Likewise.
20438         * config/arm/arm-builtins.c: Likewise.
20439         * config/arm/arm-c.c: Likewise.
20440         * config/arm/arm.c: Likewise.
20441         * config/avr/avr-c.c: Likewise.
20442         * config/avr/avr-log.c: Likewise.
20443         * config/avr/avr.c: Likewise.
20444         * config/bfin/bfin.c: Likewise.
20445         * config/c6x/c6x.c: Likewise.
20446         * config/cr16/cr16.c: Likewise.
20447         * config/cris/cris.c: Likewise.
20448         * config/darwin-c.c: Likewise.
20449         * config/darwin.c: Likewise.
20450         * config/default-c.c: Likewise.
20451         * config/epiphany/epiphany.c: Likewise.
20452         * config/epiphany/mode-switch-use.c: Likewise.
20453         * config/epiphany/resolve-sw-modes.c: Likewise.
20454         * config/fr30/fr30.c: Likewise.
20455         * config/frv/frv.c: Likewise.
20456         * config/ft32/ft32.c: Likewise.
20457         * config/glibc-c.c: Likewise.
20458         * config/h8300/h8300.c: Likewise.
20459         * config/i386/i386-c.c: Likewise.
20460         * config/i386/i386.c: Likewise.
20461         * config/i386/msformat-c.c: Likewise.
20462         * config/i386/winnt-cxx.c: Likewise.
20463         * config/i386/winnt-stubs.c: Likewise.
20464         * config/i386/winnt.c: Likewise.
20465         * config/ia64/ia64-c.c: Likewise.
20466         * config/ia64/ia64.c: Likewise.
20467         * config/iq2000/iq2000.c: Likewise.
20468         * config/lm32/lm32.c: Likewise.
20469         * config/m32c/m32c-pragma.c: Likewise.
20470         * config/m32c/m32c.c: Likewise.
20471         * config/m32r/m32r.c: Likewise.
20472         * config/m68k/m68k.c: Likewise.
20473         * config/mcore/mcore.c: Likewise.
20474         * config/mep/mep-pragma.c: Likewise.
20475         * config/mep/mep.c: Likewise.
20476         * config/microblaze/microblaze-c.c: Likewise.
20477         * config/microblaze/microblaze.c: Likewise.
20478         * config/mips/mips.c: Likewise.
20479         * config/mmix/mmix.c: Likewise.
20480         * config/mn10300/mn10300.c: Likewise.
20481         * config/moxie/moxie.c: Likewise.
20482         * config/msp430/msp430-c.c: Likewise.
20483         * config/msp430/msp430.c: Likewise.
20484         * config/nds32/nds32-cost.c: Likewise.
20485         * config/nds32/nds32-fp-as-gp.c: Likewise.
20486         * config/nds32/nds32-intrinsic.c: Likewise.
20487         * config/nds32/nds32-isr.c: Likewise.
20488         * config/nds32/nds32-md-auxiliary.c: Likewise.
20489         * config/nds32/nds32-memory-manipulation.c: Likewise.
20490         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20491         * config/nds32/nds32-predicates.c: Likewise.
20492         * config/nds32/nds32.c: Likewise.
20493         * config/nios2/nios2.c: Likewise.
20494         * config/nvptx/nvptx.c: Likewise.
20495         * config/pa/pa.c: Likewise.
20496         * config/pdp11/pdp11.c: Likewise.
20497         * config/rl78/rl78-c.c: Likewise.
20498         * config/rl78/rl78.c: Likewise.
20499         * config/rs6000/rs6000-c.c: Likewise.
20500         * config/rs6000/rs6000.c: Likewise.
20501         * config/rx/rx.c: Likewise.
20502         * config/s390/s390-c.c: Likewise.
20503         * config/s390/s390.c: Likewise.
20504         * config/sh/sh-c.c: Likewise.
20505         * config/sh/sh-mem.cc: Likewise.
20506         * config/sh/sh.c: Likewise.
20507         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20508         * config/sh/sh_treg_combine.cc: Likewise.
20509         * config/sol2-c.c: Likewise.
20510         * config/sol2-cxx.c: Likewise.
20511         * config/sol2-stubs.c: Likewise.
20512         * config/sol2.c: Likewise.
20513         * config/sparc/sparc-c.c: Likewise.
20514         * config/sparc/sparc.c: Likewise.
20515         * config/spu/spu-c.c: Likewise.
20516         * config/spu/spu.c: Likewise.
20517         * config/stormy16/stormy16.c: Likewise.
20518         * config/tilegx/mul-tables.c: Likewise.
20519         * config/tilegx/tilegx-c.c: Likewise.
20520         * config/tilegx/tilegx.c: Likewise.
20521         * config/tilepro/mul-tables.c: Likewise.
20522         * config/tilepro/tilepro-c.c: Likewise.
20523         * config/tilepro/tilepro.c: Likewise.
20524         * config/v850/v850-c.c: Likewise.
20525         * config/v850/v850.c: Likewise.
20526         * config/vax/vax.c: Likewise.
20527         * config/visium/visium.c: Likewise.
20528         * config/vms/vms-c.c: Likewise.
20529         * config/vms/vms.c: Likewise.
20530         * config/vxworks.c: Likewise.
20531         * config/winnt-c.c: Likewise.
20532         * config/xtensa/xtensa.c: Likewise.
20534 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
20536         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20537         function.
20538         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20540 2015-06-17  Richard Biener  <rguenther@suse.de>
20542         PR tree-optimization/66251
20543         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20544         stmts for SLP strided stores.
20546         Revert
20547         2015-05-22  Richard Biener  <rguenther@suse.de>
20549         PR tree-optimization/66251
20550         * tree-vect-stmts.c (vectorizable_conversion): Properly
20551         set STMT_VINFO_VEC_STMT even for the SLP case.
20553         2015-05-26  Michael Matz  <matz@suse.de>
20555         PR middle-end/66251
20556         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20557         STMT_VINFO_VEC_STMT, also with SLP.
20559 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
20561         PR target/56766
20562         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20563         (*avx_addsubv4df3_1s): Ditto.
20564         (*sse3_addsubv2df3_1): Ditto.
20565         (*sse3_addsubv2df3_1s): Ditto.
20566         (*avx_addsubv8sf3_1): Ditto.
20567         (*avx_addsubv8sf3_1s): Ditto.
20568         (*sse3_addsubv4sf3_1): Ditto.
20569         (*sse3_addsubv4sf3_1s): Ditto.
20571 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
20573         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20574         (SYSROOT_SUFFIX_SPEC): Update.
20575         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20576         (STARTFILE_PREFIX_SPEC): Update.
20577         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20578         (MULTILIB_REQUIRED): New.
20579         (MULTILIB_OSDIRNAMES): New.
20580         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20581         (MULTILIB_REQUIRED): New.
20582         (MULTILIB_OSDIRNAMES): New.
20584 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
20586         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20587         * config/aarch64/aarch64-options-extensions.def: Update "fP",
20588         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
20589         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20590         (AARCH64_FL_PAN): New.
20591         (AARCH64_FL_LOR): New.
20592         (AARCH64_FL_RDMA): New.
20593         (AARCH64_FL_FOR_ARCH8_1): New.
20594         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20595         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20597 2015-06-16  Martin Liska  <mliska@suse.cz>
20599         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20600         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20601         guard.
20603 2015-06-16  Richard Biener  <rguenther@suse.de>
20605         * tree-vect-stmts.c (vectorizable_store): Adjust.
20606         (vectorizable_load): Likewise.
20607         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20608         Simplify.
20609         (vect_create_data_ref_ptr): Likewise.
20610         (bump_vector_ptr): Adjust.
20612 2015-06-16  Richard Biener  <rguenther@suse.de>
20614         * tree-vect-stmts.c (vectorizable_load): Properly start loads
20615         with the first element if this is grouped loads.
20617 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
20619         * config/arm/arm-protos.h (struct tune_params): Rename
20620         log_op_non_sc to log_op_non_short_circuit, and rename enum
20621         values to expand SC to SHORT_CIRCUIT.
20622         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20623         to LOG_OP_NON_SHORT_CIRCUIT.
20624         (arm_fastmul_tune):Likewise
20625         (arm_strongarm_tune): Likewise.
20626         (arm_xscale_tune): Likewise.
20627         (arm_9e_tune): Likewise.
20628         (arm_marvell_pj4_tune): Likewise.
20629         (arm_v6t2_tune): Likewise.
20630         (arm_cortex_tune): Likewise.
20631         (arm_cortex_a8_tune): Likewise.
20632         (arm_cortex_a7_tune): Likewise.
20633         (arm_cortex_a15_tune): Likewise.
20634         (arm_cortex_a53_tune): Likewise.
20635         (arm_cortex_a57_tune): Likewise.
20636         (arm_xgene1_tune): Likewise.
20637         (arm_cortex_a5_tune): Likewise.
20638         (arm_cortex_a9_tune): Likewise.
20639         (arm_cortex_a12_tune): Likewise.
20640         (arm_v7m_tune): Likewise.
20641         (arm_cortex_m7_tune): Likewise.
20642         (arm_v6m_tune): Likewise.
20643         (arm_fa726te_tune): Likewise.
20645 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
20647         * altivec.md: Delete UNSPEC_VMLADDUHM.
20648         (mulv4si3_p8): New pattern.
20649         (mulv4si3): Use it for POWER8.
20650         (mulv8hi3): Use vmladduhm with zero addend.
20651         (altivec_vmladduhm): Descriptive RTL.
20653 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
20655         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20656         to use neon_move instead of mov_imm.
20657         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20658         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20660         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20661         aarch64_float_const_zero_rtx_p check before TFmode check.
20662         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20663         an fp zero.
20664         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
20665         code and attributes to match.  Change condition from register_operand
20666         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
20667         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
20668         to store2.
20670 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
20672         PR debug/66535
20673         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20674         there is no parent.
20676 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
20678         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20679         HOST_WIDE_INT parameter.
20681 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
20683         PR ipa/66181
20684         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20685         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20686         TYPE_NO_FORCE_BLK.
20687         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20689 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
20691         * rtl.h (classify_insn): Declare.
20692         * emit-rtl.c (classify_insn): Move to...
20693         * rtl.c: ...here and add generator support.
20694         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20695         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20696         * genemit.c (gen_emit_seq): New function.
20697         (gen_expand, gen_split): Use it.
20699 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
20701         * tree.c (make_vector_stat): Fix comment to state that the
20702         function returns a VECTOR_CST.
20704 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
20706         * gensupport.h (add_implicit_parallel): Declare.
20707         * genrecog.c (add_implicit_parallel): Move to...
20708         * gensupport.c (add_implicit_parallel): ...here.
20709         (process_one_cond_exec): Use it.
20710         * genemit.c (gen_insn): Likewise.
20712 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
20714         PR bootstrap/66448
20715         * passes.c (rest_of_decl_compilation): Do not register globals for
20716         early debug if they are declared in built-ins.
20718 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
20720         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20722 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20724         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20725         manually swapping.
20726         (noce_try_cmove_arith): Likewise.
20727         (noce_get_alt_condition): Likewise.
20729 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20731         * common/config/i386/i386-common.c
20732         (OPTION_MASK_ISA_MWAITX_SET): New.
20733         (ix86_handle_option): Handle mwaitx.
20734         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20735         (x86_64-*-*): Likewise.
20736         * config/i386/mwaitxintrin.h: New header.
20737         * config/i386/cpuid.h (bit_MWAITX):  Define.
20738         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20739         MWAITX support.
20740         * config/i386/i386.opt (mwaitx): New.
20741         * config/i386/i386-builtin-types.def
20742         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20743         * config/i386/i386-c.c: Define __MWAITX__ if needed.
20744         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20745         (PTA_MWAITX): New.
20746         (ix86_option_override_internal): Handle new option.
20747         (processor_alias_table): Added PTA_MWAITX.
20748         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20749         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20750         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20751         IX86_BUILTIN_MONITORX  built-ins.
20752         * config/i386/i386.h (TARGET_MWAITX): New.
20753         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20754         UNSPEC_MONITORX.
20755         (mwaitx):  New pattern.
20756         (monitorx_<mode>): New pattern.
20757         * config/i386/x86intrin.h: Include mwaitxintrin.h.
20758         * doc/extend.texi: Document monitorx and mwaitx builtins.
20759         * doc/invoke.texi: Document -mmwaitx option.
20761 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
20763         * emit-rtl.c (need_atomic_barrier_p): Mask model with
20764         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
20766 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
20768         * dbxout.c (xcoff_debug_hooks): Provide a function for
20769         register_main_translation_unit hook.
20771 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
20773         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
20774         variants cases from switch.
20775         (rs6000_post_atomic_barrier): Same.
20776         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
20777         (rs6000_expand_atomic_exchange): Same.
20778         (rs6000_expand_atomic_op): Same.
20779         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
20780         SYNC variants cases from switch.
20781         (atomic_load): Same.
20782         (atomic_store): Same.
20784 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
20786         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
20787         CONST_INT for goto.
20789 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
20791         PR bootstrap/66448
20792         * dwarf2out.c (check_die): Check for common duplicate attributes.
20793         (add_location_or_const_value_attribute): Do not add duplicate
20794         attributes.
20795         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
20796         time around.
20797         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
20798         (gen_type_die_with_usage): Call check_die.
20799         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
20801 2015-06-11  Jason Merrill  <jason@redhat.com>
20803         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
20804         dies.
20806 2015-06-11  Marek Polacek  <polacek@redhat.com>
20808         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
20810 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
20812         PR bootstrap/66252
20813         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
20814         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
20815         (*addx_extend_sp32): Fix pasto.
20816         (*subx_extend): Rename into...
20817         (*subx_extend_sp32): ...this.
20818         (*adddi3_extend_sp32): Add earlyclobber.
20819         (*subdi3_insn_sp32): Likewise.
20820         (*subdi3_extend_sp32): Likewise.
20821         (*and_not_di_sp32): Likewise.
20822         (*or_not_di_sp32): Likewise.
20823         (*xor_not_di_sp32): Likewise.
20824         (*negdi2_sp32): Likewise.
20825         (*one_cmpldi2_sp32): Likewise.
20827 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
20829         * debug.h (struct gcc_debug_hooks): Add a
20830         register_main_translation_unit hook.
20831         * debug.c (do_nothing_debug_hooks): Provide a function for this
20832         new hook.
20833         * dbxout.c (dbx_debug_hooks): Likewise.
20834         * sdbout.c (sdb_debug_hooks): Likewise.
20835         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20836         * dwarf2out.c (main_translation_unit): New global variable.
20837         (dwarf2out_register_main_translation_unit): New function
20838         implementing the new hook.
20839         (dwarf2_debug_hooks): Assign
20840         dwarf2out_register_main_translation_unit to this new hook.
20841         (dwarf2out_init): Associate any main translation unit to
20842         comp_unit_die ().
20844 2015-06-11  Marek Polacek  <polacek@redhat.com>
20846         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
20848 2015-06-11  Marek Polacek  <polacek@redhat.com>
20850         * match.pd: Use single_use throughout.
20852 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20854         * config/arm/arm.c (arm_option_params_internal): When optimising
20855         for speed set max_insns_skipped when arm_restrict_it.
20857 2015-06-11  Christian Bruel  <christian.bruel@st.com>
20859         PR target/52144
20860         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
20861          macros in ...
20862         (arm_cpu_builtins): New function.
20863         (arm_pragma_target_parse): Call arm_cpu_builtins.
20864         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
20865         (arm_register_target_pragmas): Likewise.
20866         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
20867          Call arm_register_target_pragmas.
20868         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
20869         (arm_pragma_target_parse): Likewise.
20871 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
20873         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
20874         of the second operand.
20876 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
20878         PR target/66473
20879         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
20880         to prepare mask operand for AVX512 modes.
20882 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
20884         PR target/66474
20885         * doc/md.texi (Machine Constraints): Document that on the PowerPC
20886         if you use a constraint that targets a VSX register, you must use
20887         %x<n> in the template.
20889 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
20891         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
20892         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
20893         (define_insn "trap"): New definition.
20895 2015-06-10  Richard Biener  <rguenther@suse.de>
20897         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
20898         out from ...
20899         (vect_supported_load_permutation_p): ... here.  Handle
20900         supportable permutations in reductions.
20901         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
20902         for vectorizing strided group loads.
20904 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
20906         PR target/66470
20907         * config/i386/i386.c (ix86_split_long_move): For collisions
20908         involving direct tls segment refs, move the UNSPEC_TP possibly
20909         wrapped in ZERO_EXTEND out of the address for lea, to each of
20910         the memory loads.
20912 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20914         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
20915         dmb sy. Adjust tabs.
20917 2015-06-10  Tom de Vries  <tom@codesourcery.com>
20919         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
20921 2015-06-10  Martin Liska  <mliska@suse.cz>
20923         PR bootstrap/66471
20924         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
20925         all enum values in mem_alloc_origin.
20926         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
20927         name.
20928         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
20929         * bitmap.c (bitmap_register): Likewise.
20930         (dump_bitmap_statistics): Likewise.
20931         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
20932         (ggc_record_overhead): Likewise.
20933         * hash-map.h: Likewise.
20934         * hash-set.h: Likewise.
20935         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
20936         * hash-table.h: Likewise.
20937         * vec.c (vec_prefix::register_overhead): Likewise.
20938         (vec_prefix::release_overhead): Likewise.
20939         (dump_vec_loc_statistics): Likewise.
20941 2015-06-09  Christian Bruel  <christian.bruel@st.com>
20943         PR target/52144
20944         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
20945         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
20946         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
20947         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
20948         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
20949         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
20950         (arm_valid_target_attribute_p): Likewise.
20951         (arm_set_current_function, arm_can_inline_p): Likewise.
20952         (arm_valid_target_attribute_rec): Likewise.
20953         (arm_previous_fndecl): New variable.
20954         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20955         (TARGET_CAN_INLINE_P): Define.
20956         (arm_asm_trampoline_template): Emit mode.
20957         (arm_file_start): Don't set unified syntax.
20958         (arm_declare_function_name): Set unified syntax and mode.
20959         (arm_option_override): Init target_option_default_node.
20960         and target_option_current_node.
20961         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
20962         (*call_symbol): Likewise.
20963         * doc/extend.texi: Document ARM/Thumb target attribute.
20964         * doc/invoke.texi: Likewise.
20966 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20968         Revert:
20969         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
20970         PR rtl-optimization/64164
20971         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20972         * tree-ssa-copyrename.c: Removed.
20973         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20974         -ftree-coalesce-vars.
20975         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20976         * common.opt (ftree-copyrename): Ignore.
20977         (ftree-coalesce-inlined-vars): Likewise.
20978         * doc/invoke.texi: Remove the ignored options above.
20979         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20980         * tree-ssa-coalesce.h: ... here.
20981         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20982         headers required by it.
20983         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20984         across variables when flag_tree_coalesce_vars.  Check register
20985         use and promoted modes to allow coalescing.  Moved to
20986         tree-ssa-coalesce.c.
20987         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20988         with its member functions to tree-ssa-coalesce.c.
20989         (var_map_base_init): Likewise.  Renamed to
20990         compute_samebase_partition_bases.
20991         (partition_view_normal): Drop want_bases parameter.
20992         (partition_view_bitmap): Likewise.
20993         * tree-ssa-live.h: Adjust declarations.
20994         * tree-ssa-coalesce.c: Include explow.h.
20995         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20996         default defs at the entry point.
20997         (dump_part_var_map): New.
20998         (compute_optimized_partition_bases): New, called by...
20999         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21000         of compute_samebase_partition_bases.  Adjust.
21001         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21002         * cfgexpand.c (leader_merge): New.
21003         (get_rtl_for_parm_ssa_default_def): New.
21004         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21005         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21006         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21007         redundant MEM attr setting.
21008         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21009         from...
21010         (expand_one_stack_var): ... this.  New wrapper to check and
21011         skip already expanded SSA partitions.
21012         (record_alignment_for_reg_var): New, factored out of...
21013         (expand_one_var): ... this.
21014         (expand_one_ssa_partition): New.
21015         (adjust_one_expanded_partition_var): New.
21016         (expand_one_register_var): Check and skip already expanded SSA
21017         partitions.
21018         (expand_used_vars): Don't create DECLs for anonymous SSA
21019         names.  Expand all SSA partitions, then adjust all SSA names.
21020         (pass::execute): Replace the loops that set
21021         SA.partition_to_pseudo from partition leaders and cleared
21022         DECL_RTL for multi-location variables, and that which used to
21023         rename vars and set attrs, with one that clears DECL_RTL and
21024         checks that PARMs and RESULTs default_defs match DECL_RTL.
21025         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21026         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21027         * explow.c (promote_ssa_mode): New.
21028         * explow.h (promote_ssa_mode): Declare.
21029         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21030         * function.c: Include cfgexpand.h.
21031         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21032         (use_register_for_parm_decl): Wrapper for the above to
21033         special-case the result_ptr.
21034         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21035         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21036         multiple locations.
21037         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21038         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21039         (assign_parm_setup_block): Prefer SSA-assigned location.
21040         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21041         if stack_parm is NULL.
21042         (assign_parm_setup_stack): Prefer SSA-assigned location.
21043         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21044         rtl before testing for pointer bounds.  Special-case result_ptr.
21045         (expand_function_start): Maybe reset DECL_RTL of result.
21046         Prefer SSA-assigned location for result and static chain.
21047         Factor out DECL_RESULT and SET_DECL_RTL.
21048         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21049         anonymous SSA names.  Use promote_ssa_mode.
21050         (get_temp_reg): Likewise.
21051         (remove_ssa_form): Adjust.
21052         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21053         and get its reg_usage for reg invalidation.
21054         (compute_bb_dataflow): Pass it insn.
21055         (emit_notes_in_bb): Likewise.
21056         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21057         fail assert on conversion between unsigned types.
21059 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21061         PR tree-optimization/65460
21062         * omp-low.c (expand_omp_target): Set parallelized_function on
21063         cgraph_node for child_fn.
21065 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21067         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21068         parallelized_function before add_new_function.
21070 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
21072         * gcc-plugin.h: Move decls to plugin.h and include it.
21073         * plugin.h: Relocate decls from gcc-plugin.h
21074         * ggc-page.c: Include required header files.
21075         * passes.c: Likewise.
21076         * cgraphunit.c: Likewise.
21078 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21080         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21082 2015-06-09  Jason Merrill  <jason@redhat.com>
21084         PR bootstrap/66448
21085         * toplev.c (check_global_declaration): Don't warn about a clone.
21087 2015-06-09  Marek Polacek  <polacek@redhat.com>
21089         PR tree-optimization/66299
21090         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21091         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21092         patterns.
21094 2015-06-09  Richard Biener  <rguenther@suse.de>
21096         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21097         (vect_analyze_slp_instance): Instead do not falsely drop
21098         load permutations.
21100 2015-06-09  Richard Biener  <rguenther@suse.de>
21102         PR middle-end/66423
21103         * match.pd: Handle A % (unsigned)(1 << B).
21105 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
21107         * varasm.c (output_object_block_htab): Remove.
21108         (output_object_block_compare): New.
21109         (output_object_blocks): Sort named object_blocks before outputting
21110         them.
21112 2015-06-09  Richard Biener  <rguenther@suse.de>
21114         PR tree-optimization/66419
21115         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21116         consider GROUP_GAP when detecting a perfect subchain.
21118 2015-06-09  Nick Clifton  <nickc@redhat.com>
21120         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21121         place read only data in the .frodata section.
21123 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
21125         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21126         (atomic_store<mode>): Likewise.
21128 2015-06-09  Richard Biener  <rguenther@suse.de>
21130         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21132 2015-06-09  Richard Biener  <rguenther@suse.de>
21134         PR middle-end/66413
21135         * tree-inline.c (insert_init_debug_bind): Unshare value.
21137 2015-06-09  Richard Biener  <rguenther@suse.de>
21139         PR tree-optimization/66396
21140         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21141         Rename virtual operands.
21143 2015-06-09  Tom de Vries  <tom@codesourcery.com>
21145         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21146         always return false.
21148 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21150         PR rtl-optimization/64164
21151         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21152         * tree-ssa-copyrename.c: Removed.
21153         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
21154         -ftree-coalesce-vars.
21155         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21156         * common.opt (ftree-copyrename): Ignore.
21157         (ftree-coalesce-inlined-vars): Likewise.
21158         * doc/invoke.texi: Remove the ignored options above.
21159         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21160         * tree-ssa-coalesce.h: ... here.
21161         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21162         headers required by it.
21163         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21164         across variables when flag_tree_coalesce_vars.  Check register
21165         use and promoted modes to allow coalescing.  Moved to
21166         tree-ssa-coalesce.c.
21167         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21168         with its member functions to tree-ssa-coalesce.c.
21169         (var_map_base_init): Likewise.  Renamed to
21170         compute_samebase_partition_bases.
21171         (partition_view_normal): Drop want_bases parameter.
21172         (partition_view_bitmap): Likewise.
21173         * tree-ssa-live.h: Adjust declarations.
21174         * tree-ssa-coalesce.c: Include explow.h.
21175         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21176         default defs at the entry point.
21177         (dump_part_var_map): New.
21178         (compute_optimized_partition_bases): New, called by...
21179         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21180         of compute_samebase_partition_bases.  Adjust.
21181         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21182         * cfgexpand.c (leader_merge): New.
21183         (get_rtl_for_parm_ssa_default_def): New.
21184         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21185         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21186         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
21187         redundant MEM attr setting.
21188         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
21189         from...
21190         (expand_one_stack_var): ... this.  New wrapper to check and
21191         skip already expanded SSA partitions.
21192         (record_alignment_for_reg_var): New, factored out of...
21193         (expand_one_var): ... this.
21194         (expand_one_ssa_partition): New.
21195         (adjust_one_expanded_partition_var): New.
21196         (expand_one_register_var): Check and skip already expanded SSA
21197         partitions.
21198         (expand_used_vars): Don't create DECLs for anonymous SSA
21199         names.  Expand all SSA partitions, then adjust all SSA names.
21200         (pass::execute): Replace the loops that set
21201         SA.partition_to_pseudo from partition leaders and cleared
21202         DECL_RTL for multi-location variables, and that which used to
21203         rename vars and set attrs, with one that clears DECL_RTL and
21204         checks that PARMs and RESULTs default_defs match DECL_RTL.
21205         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21206         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21207         * explow.c (promote_ssa_mode): New.
21208         * explow.h (promote_ssa_mode): Declare.
21209         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21210         * function.c: Include cfgexpand.h.
21211         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21212         (use_register_for_parm_decl): Wrapper for the above to
21213         special-case the result_ptr.
21214         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21215         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21216         multiple locations.
21217         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21218         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
21219         (assign_parm_setup_block): Prefer SSA-assigned location.
21220         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
21221         if stack_parm is NULL.
21222         (assign_parm_setup_stack): Prefer SSA-assigned location.
21223         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
21224         rtl before testing for pointer bounds.  Special-case result_ptr.
21225         (expand_function_start): Maybe reset DECL_RTL of result.
21226         Prefer SSA-assigned location for result and static chain.
21227         Factor out DECL_RESULT and SET_DECL_RTL.
21228         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21229         anonymous SSA names.  Use promote_ssa_mode.
21230         (get_temp_reg): Likewise.
21231         (remove_ssa_form): Adjust.
21232         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21233         and get its reg_usage for reg invalidation.
21234         (compute_bb_dataflow): Pass it insn.
21235         (emit_notes_in_bb): Likewise.
21236         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21237         fail assert on conversion between unsigned types.
21239 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
21241         PR debug/58315
21242         * tree-inline.c (reset_debug_binding): New.
21243         (reset_debug_bindings): Likewise.
21244         (expand_call_inline): Call it.
21246 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21248         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21249         TYPE_STRING_FLAG.
21251 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21253         * lto-streamer-out.c (lto_output_location): Stream
21254         reserved locations correctly.
21255         * lto-streamer-in.c (lto_output_location): Likewise.
21257 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
21259         * coretypes.h: Include hash-table.h and hash-set.h for host files.
21260         * ggc.h: Don't include statistics.h>
21261         * hash-map.h: Remove all includes.
21262         * hash-set.h: Likewise.
21263         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21264         the include list. Remove <new>.
21265         * inchash.h: Remove all includes.
21266         * mem-stats.h: Likewise.
21267         * vec.h: No special processing for generators or ggc.
21268         * alias.c : Adjust include files.
21269         * alloc-pool.c : Likewise.
21270         * alloc-pool.h : Likewise.
21271         * asan.c : Likewise.
21272         * attribs.c : Likewise.
21273         * auto-inc-dec.c : Likewise.
21274         * auto-profile.c : Likewise.
21275         * bb-reorder.c : Likewise.
21276         * bitmap.c : Likewise.
21277         * bitmap.h : Likewise.
21278         * bt-load.c : Likewise.
21279         * builtins.c : Likewise.
21280         * caller-save.c : Likewise.
21281         * calls.c : Likewise.
21282         * ccmp.c : Likewise.
21283         * cfg.c : Likewise.
21284         * cfganal.c : Likewise.
21285         * cfgbuild.c : Likewise.
21286         * cfgcleanup.c : Likewise.
21287         * cfgexpand.c : Likewise.
21288         * cfghooks.c : Likewise.
21289         * cfgloop.c : Likewise.
21290         * cfgloop.h : Likewise.
21291         * cfgloopanal.c : Likewise.
21292         * cfgloopmanip.c : Likewise.
21293         * cfgrtl.c : Likewise.
21294         * cgraph.c : Likewise.
21295         * cgraphbuild.c : Likewise.
21296         * cgraphclones.c : Likewise.
21297         * cgraphunit.c : Likewise.
21298         * cilk-common.c : Likewise.
21299         * combine-stack-adj.c : Likewise.
21300         * combine.c : Likewise.
21301         * compare-elim.c : Likewise.
21302         * context.c : Likewise.
21303         * convert.c : Likewise.
21304         * coverage.c : Likewise.
21305         * cppbuiltin.c : Likewise.
21306         * cprop.c : Likewise.
21307         * cse.c : Likewise.
21308         * cselib.c : Likewise.
21309         * data-streamer-in.c : Likewise.
21310         * data-streamer-out.c : Likewise.
21311         * data-streamer.c : Likewise.
21312         * data-streamer.h : Likewise.
21313         * dbxout.c : Likewise.
21314         * dce.c : Likewise.
21315         * ddg.c : Likewise.
21316         * debug.c : Likewise.
21317         * df-core.c : Likewise.
21318         * df-problems.c : Likewise.
21319         * df-scan.c : Likewise.
21320         * df.h : Likewise.
21321         * dfp.c : Likewise.
21322         * dojump.c : Likewise.
21323         * dominance.c : Likewise.
21324         * domwalk.c : Likewise.
21325         * double-int.c : Likewise.
21326         * dse.c : Likewise.
21327         * dumpfile.c : Likewise.
21328         * dwarf2asm.c : Likewise.
21329         * dwarf2cfi.c : Likewise.
21330         * dwarf2out.c : Likewise.
21331         * emit-rtl.c : Likewise.
21332         * et-forest.c : Likewise.
21333         * except.c : Likewise.
21334         * except.h : Likewise.
21335         * explow.c : Likewise.
21336         * expmed.c : Likewise.
21337         * expr.c : Likewise.
21338         * final.c : Likewise.
21339         * fixed-value.c : Likewise.
21340         * fold-const.c : Likewise.
21341         * function.c : Likewise.
21342         * fwprop.c : Likewise.
21343         * gcc-plugin.h : Likewise.
21344         * gcc.c : Likewise.
21345         * gcse-common.c : Likewise.
21346         * gcse.c : Likewise.
21347         * genattrtab.c : Likewise.
21348         * genautomata.c : Likewise.
21349         * genconditions.c : Likewise.
21350         * genemit.c : Likewise.
21351         * generic-match-head.c : Likewise.
21352         * genextract.c : Likewise.
21353         * gengtype-state.c : Likewise.
21354         * gengtype.c : Likewise.
21355         * genhooks.c : Likewise.
21356         * genmatch.c : Likewise.
21357         * genmodes.c : Likewise.
21358         * genrecog.c : Likewise.
21359         * gensupport.c : Likewise.
21360         * ggc-common.c : Likewise.
21361         * ggc-internal.h : Likewise.
21362         * ggc-none.c : Likewise.
21363         * ggc-page.c : Likewise.
21364         * gimple-builder.c : Likewise.
21365         * gimple-expr.c : Likewise.
21366         * gimple-fold.c : Likewise.
21367         * gimple-iterator.c : Likewise.
21368         * gimple-low.c : Likewise.
21369         * gimple-match-head.c : Likewise.
21370         * gimple-pretty-print.c : Likewise.
21371         * gimple-ssa-isolate-paths.c : Likewise.
21372         * gimple-ssa-strength-reduction.c : Likewise.
21373         * gimple-ssa.h : Likewise.
21374         * gimple-streamer-in.c : Likewise.
21375         * gimple-streamer-out.c : Likewise.
21376         * gimple-streamer.h : Likewise.
21377         * gimple-walk.c : Likewise.
21378         * gimple.c : Likewise.
21379         * gimplify-me.c : Likewise.
21380         * gimplify.c : Likewise.
21381         * godump.c : Likewise.
21382         * graph.c : Likewise.
21383         * graphds.c : Likewise.
21384         * graphite-blocking.c : Likewise.
21385         * graphite-dependences.c : Likewise.
21386         * graphite-interchange.c : Likewise.
21387         * graphite-isl-ast-to-gimple.c : Likewise.
21388         * graphite-optimize-isl.c : Likewise.
21389         * graphite-poly.c : Likewise.
21390         * graphite-scop-detection.c : Likewise.
21391         * graphite-sese-to-poly.c : Likewise.
21392         * graphite.c : Likewise.
21393         * haifa-sched.c : Likewise.
21394         * hard-reg-set.h : Likewise.
21395         * hw-doloop.c : Likewise.
21396         * ifcvt.c : Likewise.
21397         * inchash.c : Likewise.
21398         * incpath.c : Likewise.
21399         * init-regs.c : Likewise.
21400         * input.c : Likewise.
21401         * internal-fn.c : Likewise.
21402         * ipa-chkp.c : Likewise.
21403         * ipa-comdats.c : Likewise.
21404         * ipa-cp.c : Likewise.
21405         * ipa-devirt.c : Likewise.
21406         * ipa-icf-gimple.c : Likewise.
21407         * ipa-icf.c : Likewise.
21408         * ipa-inline-analysis.c : Likewise.
21409         * ipa-inline-transform.c : Likewise.
21410         * ipa-inline.c : Likewise.
21411         * ipa-polymorphic-call.c : Likewise.
21412         * ipa-profile.c : Likewise.
21413         * ipa-prop.c : Likewise.
21414         * ipa-pure-const.c : Likewise.
21415         * ipa-ref.c : Likewise.
21416         * ipa-reference.c : Likewise.
21417         * ipa-split.c : Likewise.
21418         * ipa-utils.c : Likewise.
21419         * ipa-visibility.c : Likewise.
21420         * ipa.c : Likewise.
21421         * ira-build.c : Likewise.
21422         * ira-color.c : Likewise.
21423         * ira-conflicts.c : Likewise.
21424         * ira-costs.c : Likewise.
21425         * ira-emit.c : Likewise.
21426         * ira-lives.c : Likewise.
21427         * ira.c : Likewise.
21428         * jump.c : Likewise.
21429         * langhooks.c : Likewise.
21430         * lcm.c : Likewise.
21431         * libfuncs.h : Likewise.
21432         * lists.c : Likewise.
21433         * loop-doloop.c : Likewise.
21434         * loop-init.c : Likewise.
21435         * loop-invariant.c : Likewise.
21436         * loop-iv.c : Likewise.
21437         * loop-unroll.c : Likewise.
21438         * lower-subreg.c : Likewise.
21439         * lra-assigns.c : Likewise.
21440         * lra-coalesce.c : Likewise.
21441         * lra-constraints.c : Likewise.
21442         * lra-eliminations.c : Likewise.
21443         * lra-lives.c : Likewise.
21444         * lra-remat.c : Likewise.
21445         * lra-spills.c : Likewise.
21446         * lra.c : Likewise.
21447         * lto-cgraph.c : Likewise.
21448         * lto-compress.c : Likewise.
21449         * lto-opts.c : Likewise.
21450         * lto-section-in.c : Likewise.
21451         * lto-section-out.c : Likewise.
21452         * lto-streamer-in.c : Likewise.
21453         * lto-streamer-out.c : Likewise.
21454         * lto-streamer.c : Likewise.
21455         * lto-streamer.h : Likewise.
21456         * mcf.c : Likewise.
21457         * mode-switching.c : Likewise.
21458         * modulo-sched.c : Likewise.
21459         * omega.c : Likewise.
21460         * omp-low.c : Likewise.
21461         * optabs.c : Likewise.
21462         * opts-global.c : Likewise.
21463         * opts.h : Likewise.
21464         * passes.c : Likewise.
21465         * plugin.c : Likewise.
21466         * postreload-gcse.c : Likewise.
21467         * postreload.c : Likewise.
21468         * predict.c : Likewise.
21469         * print-rtl.c : Likewise.
21470         * print-tree.c : Likewise.
21471         * profile.c : Likewise.
21472         * read-md.c : Likewise.
21473         * read-md.h : Likewise.
21474         * read-rtl.c : Likewise.
21475         * real.c : Likewise.
21476         * realmpfr.c : Likewise.
21477         * recog.c : Likewise.
21478         * ree.c : Likewise.
21479         * reg-stack.c : Likewise.
21480         * regcprop.c : Likewise.
21481         * reginfo.c : Likewise.
21482         * regrename.c : Likewise.
21483         * regstat.c : Likewise.
21484         * reload.c : Likewise.
21485         * reload1.c : Likewise.
21486         * reorg.c : Likewise.
21487         * resource.c : Likewise.
21488         * rtl-chkp.c : Likewise.
21489         * rtl.c : Likewise.
21490         * rtl.h : Likewise.
21491         * rtlanal.c : Likewise.
21492         * rtlhash.c : Likewise.
21493         * rtlhash.h : Likewise.
21494         * rtlhooks.c : Likewise.
21495         * sanopt.c : Likewise.
21496         * sched-deps.c : Likewise.
21497         * sched-ebb.c : Likewise.
21498         * sched-rgn.c : Likewise.
21499         * sched-vis.c : Likewise.
21500         * sdbout.c : Likewise.
21501         * sel-sched-dump.c : Likewise.
21502         * sel-sched-ir.c : Likewise.
21503         * sel-sched-ir.h : Likewise.
21504         * sel-sched.c : Likewise.
21505         * sese.c : Likewise.
21506         * shrink-wrap.c : Likewise.
21507         * shrink-wrap.h : Likewise.
21508         * simplify-rtx.c : Likewise.
21509         * stack-ptr-mod.c : Likewise.
21510         * statistics.c : Likewise.
21511         * stmt.c : Likewise.
21512         * stor-layout.c : Likewise.
21513         * store-motion.c : Likewise.
21514         * stringpool.c : Likewise.
21515         * symtab.c : Likewise.
21516         * target-globals.c : Likewise.
21517         * targhooks.c : Likewise.
21518         * tlink.c : Likewise.
21519         * toplev.c : Likewise.
21520         * tracer.c : Likewise.
21521         * trans-mem.c : Likewise.
21522         * tree-affine.c : Likewise.
21523         * tree-affine.h : Likewise.
21524         * tree-browser.c : Likewise.
21525         * tree-call-cdce.c : Likewise.
21526         * tree-cfg.c : Likewise.
21527         * tree-cfgcleanup.c : Likewise.
21528         * tree-chkp-opt.c : Likewise.
21529         * tree-chkp.c : Likewise.
21530         * tree-chrec.c : Likewise.
21531         * tree-complex.c : Likewise.
21532         * tree-data-ref.c : Likewise.
21533         * tree-dfa.c : Likewise.
21534         * tree-diagnostic.c : Likewise.
21535         * tree-dump.c : Likewise.
21536         * tree-eh.c : Likewise.
21537         * tree-eh.h : Likewise.
21538         * tree-emutls.c : Likewise.
21539         * tree-hasher.h : Likewise.
21540         * tree-if-conv.c : Likewise.
21541         * tree-inline.c : Likewise.
21542         * tree-inline.h : Likewise.
21543         * tree-into-ssa.c : Likewise.
21544         * tree-iterator.c : Likewise.
21545         * tree-loop-distribution.c : Likewise.
21546         * tree-nested.c : Likewise.
21547         * tree-nrv.c : Likewise.
21548         * tree-object-size.c : Likewise.
21549         * tree-outof-ssa.c : Likewise.
21550         * tree-parloops.c : Likewise.
21551         * tree-phinodes.c : Likewise.
21552         * tree-predcom.c : Likewise.
21553         * tree-pretty-print.c : Likewise.
21554         * tree-profile.c : Likewise.
21555         * tree-scalar-evolution.c : Likewise.
21556         * tree-sra.c : Likewise.
21557         * tree-ssa-address.c : Likewise.
21558         * tree-ssa-alias.c : Likewise.
21559         * tree-ssa-ccp.c : Likewise.
21560         * tree-ssa-coalesce.c : Likewise.
21561         * tree-ssa-copy.c : Likewise.
21562         * tree-ssa-copyrename.c : Likewise.
21563         * tree-ssa-dce.c : Likewise.
21564         * tree-ssa-dom.c : Likewise.
21565         * tree-ssa-dse.c : Likewise.
21566         * tree-ssa-forwprop.c : Likewise.
21567         * tree-ssa-ifcombine.c : Likewise.
21568         * tree-ssa-live.c : Likewise.
21569         * tree-ssa-loop-ch.c : Likewise.
21570         * tree-ssa-loop-im.c : Likewise.
21571         * tree-ssa-loop-ivcanon.c : Likewise.
21572         * tree-ssa-loop-ivopts.c : Likewise.
21573         * tree-ssa-loop-manip.c : Likewise.
21574         * tree-ssa-loop-niter.c : Likewise.
21575         * tree-ssa-loop-prefetch.c : Likewise.
21576         * tree-ssa-loop-unswitch.c : Likewise.
21577         * tree-ssa-loop.c : Likewise.
21578         * tree-ssa-math-opts.c : Likewise.
21579         * tree-ssa-operands.c : Likewise.
21580         * tree-ssa-phiopt.c : Likewise.
21581         * tree-ssa-phiprop.c : Likewise.
21582         * tree-ssa-pre.c : Likewise.
21583         * tree-ssa-propagate.c : Likewise.
21584         * tree-ssa-reassoc.c : Likewise.
21585         * tree-ssa-sccvn.c : Likewise.
21586         * tree-ssa-scopedtables.c : Likewise.
21587         * tree-ssa-sink.c : Likewise.
21588         * tree-ssa-strlen.c : Likewise.
21589         * tree-ssa-structalias.c : Likewise.
21590         * tree-ssa-tail-merge.c : Likewise.
21591         * tree-ssa-ter.c : Likewise.
21592         * tree-ssa-threadedge.c : Likewise.
21593         * tree-ssa-threadupdate.c : Likewise.
21594         * tree-ssa-uncprop.c : Likewise.
21595         * tree-ssa-uninit.c : Likewise.
21596         * tree-ssa.c : Likewise.
21597         * tree-ssanames.c : Likewise.
21598         * tree-stdarg.c : Likewise.
21599         * tree-streamer-in.c : Likewise.
21600         * tree-streamer-out.c : Likewise.
21601         * tree-streamer.c : Likewise.
21602         * tree-streamer.h : Likewise.
21603         * tree-switch-conversion.c : Likewise.
21604         * tree-tailcall.c : Likewise.
21605         * tree-vect-data-refs.c : Likewise.
21606         * tree-vect-generic.c : Likewise.
21607         * tree-vect-loop-manip.c : Likewise.
21608         * tree-vect-loop.c : Likewise.
21609         * tree-vect-patterns.c : Likewise.
21610         * tree-vect-slp.c : Likewise.
21611         * tree-vect-stmts.c : Likewise.
21612         * tree-vectorizer.c : Likewise.
21613         * tree-vectorizer.h : Likewise.
21614         * tree-vrp.c : Likewise.
21615         * tree.c : Likewise.
21616         * tsan.c : Likewise.
21617         * ubsan.c : Likewise.
21618         * valtrack.c : Likewise.
21619         * valtrack.h : Likewise.
21620         * value-prof.c : Likewise.
21621         * var-tracking.c : Likewise.
21622         * varasm.c : Likewise.
21623         * varpool.c : Likewise.
21624         * vec.c: Likewise.
21625         * vmsdbgout.c : Likewise.
21626         * vtable-verify.c : Likewise.
21627         * vtable-verify.h : Likewise.
21628         * web.c : Likewise.
21629         * wide-int.cc : Likewise.
21630         * xcoffout.c : Likewise.
21631         * config/aarch64/aarch64-builtins.c : Likewise.
21632         * config/aarch64/aarch64.c : Likewise.
21633         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21634         * config/alpha/alpha.c : Likewise.
21635         * config/arc/arc.c : Likewise.
21636         * config/arm/aarch-common.c : Likewise.
21637         * config/arm/arm-builtins.c : Likewise.
21638         * config/arm/arm-c.c : Likewise.
21639         * config/arm/arm.c : Likewise.
21640         * config/avr/avr-c.c : Likewise.
21641         * config/avr/avr-log.c : Likewise.
21642         * config/avr/avr.c : Likewise.
21643         * config/bfin/bfin.c : Likewise.
21644         * config/c6x/c6x.c : Likewise.
21645         * config/cr16/cr16.c : Likewise.
21646         * config/cris/cris.c : Likewise.
21647         * config/darwin-c.c : Likewise.
21648         * config/darwin.c : Likewise.
21649         * config/default-c.c : Likewise.
21650         * config/epiphany/epiphany.c : Likewise.
21651         * config/epiphany/mode-switch-use.c : Likewise.
21652         * config/epiphany/resolve-sw-modes.c : Likewise.
21653         * config/fr30/fr30.c : Likewise.
21654         * config/frv/frv.c : Likewise.
21655         * config/ft32/ft32.c : Likewise.
21656         * config/glibc-c.c : Likewise.
21657         * config/h8300/h8300.c : Likewise.
21658         * config/i386/i386-c.c : Likewise.
21659         * config/i386/i386.c : Likewise.
21660         * config/i386/msformat-c.c : Likewise.
21661         * config/i386/winnt-cxx.c : Likewise.
21662         * config/i386/winnt-stubs.c : Likewise.
21663         * config/i386/winnt.c : Likewise.
21664         * config/ia64/ia64-c.c : Likewise.
21665         * config/ia64/ia64.c : Likewise.
21666         * config/iq2000/iq2000.c : Likewise.
21667         * config/lm32/lm32.c : Likewise.
21668         * config/m32c/m32c-pragma.c : Likewise.
21669         * config/m32c/m32c.c : Likewise.
21670         * config/m32r/m32r.c : Likewise.
21671         * config/m68k/m68k.c : Likewise.
21672         * config/mcore/mcore.c : Likewise.
21673         * config/mep/mep-pragma.c : Likewise.
21674         * config/mep/mep.c : Likewise.
21675         * config/microblaze/microblaze-c.c : Likewise.
21676         * config/microblaze/microblaze.c : Likewise.
21677         * config/mips/mips.c : Likewise.
21678         * config/mmix/mmix.c : Likewise.
21679         * config/mn10300/mn10300.c : Likewise.
21680         * config/moxie/moxie.c : Likewise.
21681         * config/msp430/msp430-c.c : Likewise.
21682         * config/msp430/msp430.c : Likewise.
21683         * config/nds32/nds32-cost.c : Likewise.
21684         * config/nds32/nds32-fp-as-gp.c : Likewise.
21685         * config/nds32/nds32-intrinsic.c : Likewise.
21686         * config/nds32/nds32-isr.c : Likewise.
21687         * config/nds32/nds32-md-auxiliary.c : Likewise.
21688         * config/nds32/nds32-memory-manipulation.c : Likewise.
21689         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21690         * config/nds32/nds32-predicates.c : Likewise.
21691         * config/nds32/nds32.c : Likewise.
21692         * config/nios2/nios2.c : Likewise.
21693         * config/nvptx/nvptx.c : Likewise.
21694         * config/pa/pa.c : Likewise.
21695         * config/pdp11/pdp11.c : Likewise.
21696         * config/rl78/rl78-c.c : Likewise.
21697         * config/rl78/rl78.c : Likewise.
21698         * config/rs6000/rs6000-c.c : Likewise.
21699         * config/rs6000/rs6000.c : Likewise.
21700         * config/rx/rx.c : Likewise.
21701         * config/s390/s390-c.c : Likewise.
21702         * config/s390/s390.c : Likewise.
21703         * config/sh/sh-c.c : Likewise.
21704         * config/sh/sh-mem.cc : Likewise.
21705         * config/sh/sh.c : Likewise.
21706         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21707         * config/sh/sh_treg_combine.cc : Likewise.
21708         * config/sol2-c.c : Likewise.
21709         * config/sol2-cxx.c : Likewise.
21710         * config/sol2-stubs.c : Likewise.
21711         * config/sol2.c : Likewise.
21712         * config/sparc/sparc-c.c : Likewise.
21713         * config/sparc/sparc.c : Likewise.
21714         * config/spu/spu-c.c : Likewise.
21715         * config/spu/spu.c : Likewise.
21716         * config/stormy16/stormy16.c : Likewise.
21717         * config/tilegx/mul-tables.c : Likewise.
21718         * config/tilegx/tilegx-c.c : Likewise.
21719         * config/tilegx/tilegx.c : Likewise.
21720         * config/tilepro/mul-tables.c : Likewise.
21721         * config/tilepro/tilepro-c.c : Likewise.
21722         * config/tilepro/tilepro.c : Likewise.
21723         * config/v850/v850-c.c : Likewise.
21724         * config/v850/v850.c : Likewise.
21725         * config/vax/vax.c : Likewise.
21726         * config/visium/visium.c : Likewise.
21727         * config/vms/vms-c.c : Likewise.
21728         * config/vms/vms.c : Likewise.
21729         * config/vxworks.c : Likewise.
21730         * config/winnt-c.c : Likewise.
21731         * config/xtensa/xtensa.c : Likewise.
21733 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
21735         PR lto/65378
21736         * ipa-utils.h (warn_types_mismatch): Update prototype.
21737         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21738         parameters.
21739         (type_mismatch_p): New function.
21740         (warn_types_mismatch): Reorg to work better on non-C++ types.
21741         (odr_types_equivalent_p): Add loc1/loc2 parameters.
21742         (add_type_duplicate): Update.
21744 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21746         PR rtl-optimization/66444
21747         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21748         call_used_regs.
21750 2015-06-08  Richard Biener  <rguenther@suse.de>
21752         PR tree-optimization/66422
21753         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21754         block after inserted gcc_unreachable.
21756 2015-06-08  Nick Clifton  <nickc@redhat.com>
21758         * config/rx/rx.c (rx_function_value): Do not promote vector types.
21759         (rx_promote_function_mode): Likewise.
21760         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21762 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
21764         * genattrtab.c (insn_alternatives): Change type from int *
21765         to uint64_t *.
21766         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21767         (get_attr_value): Change type of num_alt to uint64_t.
21768         (compute_alternative_mask): Change return type from
21769         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21770         (make_alternative_compare, mk_attr_alt): Change argument type
21771         from int to uint64_t.
21772         (simplify_test_exp): Change type of i from int to uint64_t.
21773         Shift ((uint64_t) 1) instead of 1 up.
21774         (main): Adjust oballocvec first argument from int to uint64_t.
21775         Shift ((uint64_t) 1) instead of 1 up.
21777 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
21779         PR other/65366
21780         * gdbhooks.py: Import sys.
21781         (intptr): New function.  Replace int(...) by intptr(...).
21783 2015-06-08  Richard Biener  <rguenther@suse.de>
21785         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
21786         adjustment for gaps at the end of a SLP load group properly.
21787         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
21788         all permutations we can generate.
21789         (vect_transform_slp_perm_load): Use the correct group-size.
21791 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
21793         * genmatch.c (expr::gen_transform): For conditions, guess the type
21794         from the second operand.
21796 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21798         PR tree-optimization/66442
21799         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
21800         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
21801         if the loop latch is not a singleton.  Use
21802         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
21804 2015-06-08  Marek Polacek  <polacek@redhat.com>
21806         PR sanitizer/66452
21807         * toplev.c (check_global_declaration): Don't warn about artificial
21808         decls.
21810 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21812         PR tree-optimization/66436
21813         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
21814         dump file.
21815         * gimplify.c: Add tree-dump.h include.
21816         (gimplify_function_tree): Dump function to gimple dump file.
21817         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
21818         dump file.
21820 2015-06-08  Tom de Vries  <tom@codesourcery.com>
21822         PR tree-optimization/66435
21823         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
21824         function.
21826 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
21828         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
21829         of ptr_type_node to not be ptr_to_node.
21830         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
21831         TREE_TYPE of pointers.
21832         * gimple-expr.c (useless_type_conversion): Reorder the check for
21833         function pointers and TYPE_CANONICAL.
21835 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
21837         PR bootstrap/66319
21838         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
21839         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
21840         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
21841         later.
21842         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
21843         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
21844         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
21845         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
21846         and non iso if unix2003.
21848 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
21850         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
21852 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
21854         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
21855         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
21856         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
21857         except.c, final.c, function.c, gcse-common.c, genemit.c,
21858         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
21859         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
21860         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
21861         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
21862         more derived ones.
21864 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
21866         * combine.c (combine_split_insns): Remove cast.
21867         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
21868         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
21869         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
21870         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
21871         * genemit.c (gen_split): Change return type of generated functions to
21872         rtx_insn.
21873         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
21874         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
21875         gen_peephole2_* functions.
21876         (print_subroutine, main): Likewise.
21877         * recog.c (peephole2_optimize): Remove cast.
21878         (peep2_next_insn): Promote return type to rtx_insn.
21879         * recog.h (peep2_next_insn): Fix prototype.
21880         * rtl.h (try_split, split_insns): Likewise.
21882 2015-06-06  DJ Delorie  <dj@redhat.com>
21884         * config/msp430/msp430.c (msp430_asm_integer): Support addition
21885         and subtraction too.
21887 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
21889         PR target/66410
21890         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
21891         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
21892         instead of Snd.  Disparage Sid/z alternative with '^'.
21894 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
21896         * dwarf2out.c: Remove deferred_locations*.
21897         (dwarf2_debug_hooks): Add early_finish hook.
21898         Remove global_decl hook.
21899         Add early_global_decl and late_global_decl hook.
21900         New global early_dwarf.
21901         New structure set_early_dwarf.
21902         (output_die): Indicate whether a DIE was generated early
21903         when generating assembly with -dA.
21904         (struct limbo_die_struct): Document created_for field.
21905         Remove file_table_last_lookup.
21906         (remove_AT): Return TRUE if successful.
21907         (remove_child_TAG): Clear die_parent.
21908         (reparent_child): New function abstracted from...
21909         (splice_child_die): ...here.
21910         (new_die): ICE if a DIE ends up in limbo too late.
21911         (check_die): New.
21912         (defer_location): Remove.
21913         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
21914         (fill_variable_array_bounds): New.
21915         (decl_start_label): Call fill_variable_array_bounds.
21916         (gen_formal_parameter_die): Rewrite to reuse previously generated
21917         DIEs.
21918         (gen_subprogram_die): Same.
21919         (gen_variable_die): Same.
21920         (gen_const_die): Same.
21921         (gen_label_die): Same.
21922         (gen_lexical_block_die): Same.
21923         (decl_will_get_specification_p): New.
21924         (local_function_static): New.
21925         (gen_struct_or_union_type_die): Fill in variable-length fields.
21926         (gen_typedef_die): Fill in variable-length typedefs.
21927         (gen_tagged_type_die): Gracefully return on error_mark_node.
21928         Handle re-entrancy.
21929         (gen_type_die_with_usage): Handle variable-length types.
21930         Remove duplicate code for ARRAY_TYPE case.
21931         (process_scope_var): Only process imported modules during early
21932         dwarf.
21933         (dwarf2out_early_global_decl): New.
21934         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
21935         (dwarf2out_type_decl): Set early_dwarf while calling
21936         dwarf2out_decl.
21937         (dwarf2out_decl): Verify that we did not recreate a previously
21938         generated DIE.
21939         Do not return on DECL_EXTERNALs in VAR_DECLs.
21940         Abstract some code to local_function_static.
21941         (lookup_filename): Remove use of file_table_last_lookup.
21942         Gracefully exit on missing file_name.
21943         (dwarf2out_finish): Verify limbo list.
21944         Remove deferred_locations_list use.
21945         Move deferred_asm_name and limbo flushing to...
21946         (dwarf2out_early_finish): ...here.  New.
21947         (dwarf2out_c_finalize): Remove set of deferred_location_list,
21948         deferred_asm_name, and file_table_last_lookup.
21949         * cgraph.h (referred_to_p): Add default argument.
21950         * cgraphunit.c (referred_to_p): Add and handle include_self
21951         argument.
21952         (analyze_functions): Add first_time argument.
21953         Call check_global_declaration for all symbols.
21954         Call late_global_decl for nodes for moribund nodes.
21955         (finalize_compilation_unit): Add new argument to
21956         analyze_functions.
21957         Call early_global_decl for functions.
21958         Call early_finish debug hook.
21959         * dbxout.c (dbxout_early_global_decl): New.
21960         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
21961         (dbx_debug_hooks): Add new hooks.
21962         (xcoff_debug_hooks): Same.
21963         * debug.c (do_nothing_debug_hooks): Add early_finish field.
21964         Add early and late debug hooks.
21965         Remove global_decl hook.
21966         * debug.h (struct gcc_debug_hooks): Add early_finish,
21967         early_global_decl, and late_global_decl fields.
21968         Remove global_decl field.
21969         Document gcc_debug_hooks.
21970         * gengtype.c (output_typename): Remove.
21971         * godump.c (go_early_global_decl): New.
21972         (go_late_global_decl): New.
21973         (go_global_decl): Remove.
21974         (dump_go_spec_init): Remove global_decl.  Add
21975         {early,late}_global_decl.
21976         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
21977         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
21978         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
21979         (write_global_declarations): Remove.
21980         (global_decl_processing): New.
21981         * langhooks.h (struct lang_hooks_for_decls): Remove
21982         final_write_globals field.
21983         Add post_compilation_parsing_cleanups field.
21984         * passes.c (rest_of_decl_compilation): Call early_global_decl.
21985         * sdbout.c: Add early and late_global_decl hooks.  Remove
21986         sdbout_global_decl hook.
21987         Add early_finish field for sdb_debug_hooks.
21988         (sdbout_global_decl): Remove.
21989         (sdbout_early_global_decl): New.
21990         (sdbout_late_global_decl): New.
21991         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
21992         * toplev.c (check_global_declaration): Rename from
21993         check_global_declaration_1.
21994         Adapt to use symtab infrastructure.
21995         (check_global_declarations): Remove.
21996         (emit_debug_global_declarations): Remove.
21997         (compile_file): Remove call to final_write_globals langhook.
21998         Run the actual compilation process.
21999         Perform any post compilation parser cleanups.
22000         Generate late debug info.
22001         * toplev.h (check_global_declaration): New.
22002         (check_global_declaration_1): Remove.
22003         (check_global_declarations): Remove.
22004         (write_global_declarations): Remove.
22005         (emit_debug_global_declarations): Remove.
22006         (global_decl_processing): New.
22007         * tree-core.h (struct tree_block): Add DIE field.
22008         * tree.h (BLOCK_DIE): New.
22009         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22010         throughout.
22011         (vmsdbgout_early_global_decl): New.
22012         (vmsdbgout_late_global_decl): New.
22013         Add early_finish debug hook field to vmsdbg_debug_hooks.
22014         Remove vmsdbgout_decl to vmsdbgout_function_decl.
22015         Add early and late_global_decl debug hooks.
22017 2015-06-05  Julian Brown  <julian@codesourcery.com>
22018             Sandra Loosemore  <sandra@codesourcery.com>
22020         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22021         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22022         to print-sysroot-suffix.sh script.
22024 2015-06-05  Tom de Vries  <tom@codesourcery.com>
22026         merge from gomp4 branch:
22027         2015-05-28  Tom de Vries  <tom@codesourcery.com>
22029         PR tree-optimization/65443
22030         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22031         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22032         (try_transform_to_exit_first_loop_alt): New function.
22033         (transform_to_exit_first_loop): Use
22034         try_transform_to_exit_first_loop_alt.
22036 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
22038         * builtins.c (expand_builtin_atomic_compare_exchange): Call
22039         emit_cmp_and_jump_insns with the mode of target.
22041 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22043         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22045 2015-06-04  DJ Delorie  <dj@redhat.com>
22047         * config/msp430/msp430.md (movsi_s): New.  Special case for
22048         storing a 20-bit symbol into a 32-bit register.
22049         * config/msp430/msp430.c (msp430_subreg): Add support for it.
22050         * config/msp430/predicates.md (msp430_symbol_operand): New.
22052 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
22054         * c-family/c-common.c (noplt): New attribute.
22055         (handle_noplt_attribute): New handler.
22056         * calls.c (prepare_call_address): Check for noplt
22057         attribute.
22058         * config/i386/i386.c (ix86_expand_call): Check
22059         for noplt attribute.
22060         (ix86_nopic_noplt_attribute_p): New function.
22061         (ix86_output_call_insn): Output indirect call for non-pic
22062         no plt calls.
22063         * doc/extend.texi (noplt): Document new attribute.
22064         * doc/invoke.texi: Document new attribute.
22066 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
22068         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22069         real.h, and fixed-value.h when included in host source files.
22070         * double-int.h: Remove redundant #includes listed above.
22071         * fixed-value.h: Likewise.
22072         * real.h: Likewise.
22073         * wide-int.h: Likewise.
22074         * inchash.h: Likewise.
22075         * rtl.h: Add some include files When included from a generator file.
22076         * target.h: Remove wide-int.h and insn-modes.h from the include list.
22077         * internal-fn.h: Don't include coretypes.h.
22078         * alias.c: Adjust includes for restructured coretypes.h.
22079         * asan.c: Likewise.
22080         * attribs.c: Likewise.
22081         * auto-inc-dec.c: Likewise.
22082         * auto-profile.c: Likewise.
22083         * bb-reorder.c: Likewise.
22084         * bt-load.c: Likewise.
22085         * builtins.c: Likewise.
22086         * caller-save.c: Likewise.
22087         * calls.c: Likewise.
22088         * ccmp.c: Likewise.
22089         * cfg.c: Likewise.
22090         * cfganal.c: Likewise.
22091         * cfgbuild.c: Likewise.
22092         * cfgcleanup.c: Likewise.
22093         * cfgexpand.c: Likewise.
22094         * cfghooks.c: Likewise.
22095         * cfgloop.c: Likewise.
22096         * cfgloop.h: Likewise.
22097         * cfgloopanal.c: Likewise.
22098         * cfgloopmanip.c: Likewise.
22099         * cfgrtl.c: Likewise.
22100         * cgraph.c: Likewise.
22101         * cgraphbuild.c: Likewise.
22102         * cgraphclones.c: Likewise.
22103         * cgraphunit.c: Likewise.
22104         * cilk-common.c: Likewise.
22105         * combine-stack-adj.c: Likewise.
22106         * combine.c: Likewise.
22107         * compare-elim.c: Likewise.
22108         * convert.c: Likewise.
22109         * coverage.c: Likewise.
22110         * cppbuiltin.c: Likewise.
22111         * cprop.c: Likewise.
22112         * cse.c: Likewise.
22113         * cselib.c: Likewise.
22114         * data-streamer-in.c: Likewise.
22115         * data-streamer-out.c: Likewise.
22116         * data-streamer.c: Likewise.
22117         * dbxout.c: Likewise.
22118         * dce.c: Likewise.
22119         * ddg.c: Likewise.
22120         * debug.c: Likewise.
22121         * df-core.c: Likewise.
22122         * df-problems.c: Likewise.
22123         * df-scan.c: Likewise.
22124         * df.h: Likewise.
22125         * dfp.c: Likewise.
22126         * dojump.c: Likewise.
22127         * dominance.c: Likewise.
22128         * domwalk.c: Likewise.
22129         * double-int.c: Likewise.
22130         * dse.c: Likewise.
22131         * dumpfile.c: Likewise.
22132         * dwarf2asm.c: Likewise.
22133         * dwarf2cfi.c: Likewise.
22134         * dwarf2out.c: Likewise.
22135         * dwarf2out.h: Likewise.
22136         * emit-rtl.c: Likewise.
22137         * et-forest.c: Likewise.
22138         * except.c: Likewise.
22139         * explow.c: Likewise.
22140         * expmed.c: Likewise.
22141         * expr.c: Likewise.
22142         * final.c: Likewise.
22143         * fixed-value.c: Likewise.
22144         * fold-const.c: Likewise.
22145         * function.c: Likewise.
22146         * fwprop.c: Likewise.
22147         * gcc-plugin.h: Likewise.
22148         * gcse.c: Likewise.
22149         * generic-match-head.c: Likewise.
22150         * ggc-page.c: Likewise.
22151         * gimple-builder.c: Likewise.
22152         * gimple-expr.c: Likewise.
22153         * gimple-fold.c: Likewise.
22154         * gimple-iterator.c: Likewise.
22155         * gimple-low.c: Likewise.
22156         * gimple-match-head.c: Likewise.
22157         * gimple-pretty-print.c: Likewise.
22158         * gimple-ssa-isolate-paths.c: Likewise.
22159         * gimple-ssa-strength-reduction.c: Likewise.
22160         * gimple-streamer-in.c: Likewise.
22161         * gimple-streamer-out.c: Likewise.
22162         * gimple-streamer.h: Likewise.
22163         * gimple-walk.c: Likewise.
22164         * gimple.c: Likewise.
22165         * gimplify-me.c: Likewise.
22166         * gimplify.c: Likewise.
22167         * godump.c: Likewise.
22168         * graph.c: Likewise.
22169         * graphite-blocking.c: Likewise.
22170         * graphite-dependences.c: Likewise.
22171         * graphite-interchange.c: Likewise.
22172         * graphite-isl-ast-to-gimple.c: Likewise.
22173         * graphite-optimize-isl.c: Likewise.
22174         * graphite-poly.c: Likewise.
22175         * graphite-scop-detection.c: Likewise.
22176         * graphite-sese-to-poly.c: Likewise.
22177         * graphite.c: Likewise.
22178         * haifa-sched.c: Likewise.
22179         * hooks.h: Likewise.
22180         * hw-doloop.c: Likewise.
22181         * ifcvt.c: Likewise.
22182         * incpath.c: Likewise.
22183         * init-regs.c: Likewise.
22184         * internal-fn.c: Likewise.
22185         * ipa-chkp.c: Likewise.
22186         * ipa-comdats.c: Likewise.
22187         * ipa-cp.c: Likewise.
22188         * ipa-devirt.c: Likewise.
22189         * ipa-icf-gimple.c: Likewise.
22190         * ipa-icf.c: Likewise.
22191         * ipa-inline-analysis.c: Likewise.
22192         * ipa-inline-transform.c: Likewise.
22193         * ipa-inline.c: Likewise.
22194         * ipa-polymorphic-call.c: Likewise.
22195         * ipa-profile.c: Likewise.
22196         * ipa-prop.c: Likewise.
22197         * ipa-pure-const.c: Likewise.
22198         * ipa-ref.c: Likewise.
22199         * ipa-reference.c: Likewise.
22200         * ipa-split.c: Likewise.
22201         * ipa-utils.c: Likewise.
22202         * ipa-visibility.c: Likewise.
22203         * ipa.c: Likewise.
22204         * ira-build.c: Likewise.
22205         * ira-color.c: Likewise.
22206         * ira-conflicts.c: Likewise.
22207         * ira-costs.c: Likewise.
22208         * ira-emit.c: Likewise.
22209         * ira-lives.c: Likewise.
22210         * ira.c: Likewise.
22211         * jump.c: Likewise.
22212         * langhooks.c: Likewise.
22213         * lcm.c: Likewise.
22214         * loop-doloop.c: Likewise.
22215         * loop-init.c: Likewise.
22216         * loop-invariant.c: Likewise.
22217         * loop-iv.c: Likewise.
22218         * loop-unroll.c: Likewise.
22219         * lower-subreg.c: Likewise.
22220         * lra-assigns.c: Likewise.
22221         * lra-coalesce.c: Likewise.
22222         * lra-constraints.c: Likewise.
22223         * lra-eliminations.c: Likewise.
22224         * lra-lives.c: Likewise.
22225         * lra-remat.c: Likewise.
22226         * lra-spills.c: Likewise.
22227         * lra.c: Likewise.
22228         * lto-cgraph.c: Likewise.
22229         * lto-compress.c: Likewise.
22230         * lto-opts.c: Likewise.
22231         * lto-section-in.c: Likewise.
22232         * lto-section-out.c: Likewise.
22233         * lto-streamer-in.c: Likewise.
22234         * lto-streamer-out.c: Likewise.
22235         * lto-streamer.c: Likewise.
22236         * mcf.c: Likewise.
22237         * mode-switching.c: Likewise.
22238         * modulo-sched.c: Likewise.
22239         * omega.c: Likewise.
22240         * omp-low.c: Likewise.
22241         * optabs.c: Likewise.
22242         * opts-global.c: Likewise.
22243         * passes.c: Likewise.
22244         * plugin.c: Likewise.
22245         * postreload-gcse.c: Likewise.
22246         * postreload.c: Likewise.
22247         * predict.c: Likewise.
22248         * print-rtl.c: Likewise.
22249         * print-tree.c: Likewise.
22250         * profile.c: Likewise.
22251         * real.c: Likewise.
22252         * realmpfr.c: Likewise.
22253         * realmpfr.h: Likewise.
22254         * recog.c: Likewise.
22255         * ree.c: Likewise.
22256         * reg-stack.c: Likewise.
22257         * regcprop.c: Likewise.
22258         * reginfo.c: Likewise.
22259         * regrename.c: Likewise.
22260         * regs.h: Likewise.
22261         * regstat.c: Likewise.
22262         * reload.c: Likewise.
22263         * reload1.c: Likewise.
22264         * reorg.c: Likewise.
22265         * resource.c: Likewise.
22266         * rtl-chkp.c: Likewise.
22267         * rtlanal.c: Likewise.
22268         * rtlhooks.c: Likewise.
22269         * sanopt.c: Likewise.
22270         * sched-deps.c: Likewise.
22271         * sched-ebb.c: Likewise.
22272         * sched-rgn.c: Likewise.
22273         * sched-vis.c: Likewise.
22274         * sdbout.c: Likewise.
22275         * sel-sched-dump.c: Likewise.
22276         * sel-sched-ir.c: Likewise.
22277         * sel-sched.c: Likewise.
22278         * sese.c: Likewise.
22279         * shrink-wrap.c: Likewise.
22280         * shrink-wrap.h: Likewise.
22281         * simplify-rtx.c: Likewise.
22282         * stack-ptr-mod.c: Likewise.
22283         * statistics.c: Likewise.
22284         * stmt.c: Likewise.
22285         * stor-layout.c: Likewise.
22286         * store-motion.c: Likewise.
22287         * stringpool.c: Likewise.
22288         * symtab.c: Likewise.
22289         * target-globals.c: Likewise.
22290         * targhooks.c: Likewise.
22291         * toplev.c: Likewise.
22292         * tracer.c: Likewise.
22293         * trans-mem.c: Likewise.
22294         * tree-affine.c: Likewise.
22295         * tree-affine.h: Likewise.
22296         * tree-browser.c: Likewise.
22297         * tree-call-cdce.c: Likewise.
22298         * tree-cfg.c: Likewise.
22299         * tree-cfgcleanup.c: Likewise.
22300         * tree-chkp-opt.c: Likewise.
22301         * tree-chkp.c: Likewise.
22302         * tree-chrec.c: Likewise.
22303         * tree-complex.c: Likewise.
22304         * tree-data-ref.c: Likewise.
22305         * tree-dfa.c: Likewise.
22306         * tree-diagnostic.c: Likewise.
22307         * tree-dump.c: Likewise.
22308         * tree-eh.c: Likewise.
22309         * tree-emutls.c: Likewise.
22310         * tree-if-conv.c: Likewise.
22311         * tree-inline.c: Likewise.
22312         * tree-into-ssa.c: Likewise.
22313         * tree-iterator.c: Likewise.
22314         * tree-loop-distribution.c: Likewise.
22315         * tree-nested.c: Likewise.
22316         * tree-nrv.c: Likewise.
22317         * tree-object-size.c: Likewise.
22318         * tree-outof-ssa.c: Likewise.
22319         * tree-parloops.c: Likewise.
22320         * tree-phinodes.c: Likewise.
22321         * tree-predcom.c: Likewise.
22322         * tree-pretty-print.c: Likewise.
22323         * tree-pretty-print.h: Likewise.
22324         * tree-profile.c: Likewise.
22325         * tree-scalar-evolution.c: Likewise.
22326         * tree-sra.c: Likewise.
22327         * tree-ssa-address.c: Likewise.
22328         * tree-ssa-alias.c: Likewise.
22329         * tree-ssa-ccp.c: Likewise.
22330         * tree-ssa-coalesce.c: Likewise.
22331         * tree-ssa-copy.c: Likewise.
22332         * tree-ssa-copyrename.c: Likewise.
22333         * tree-ssa-dce.c: Likewise.
22334         * tree-ssa-dom.c: Likewise.
22335         * tree-ssa-dse.c: Likewise.
22336         * tree-ssa-forwprop.c: Likewise.
22337         * tree-ssa-ifcombine.c: Likewise.
22338         * tree-ssa-live.c: Likewise.
22339         * tree-ssa-loop-ch.c: Likewise.
22340         * tree-ssa-loop-im.c: Likewise.
22341         * tree-ssa-loop-ivcanon.c: Likewise.
22342         * tree-ssa-loop-ivopts.c: Likewise.
22343         * tree-ssa-loop-manip.c: Likewise.
22344         * tree-ssa-loop-niter.c: Likewise.
22345         * tree-ssa-loop-prefetch.c: Likewise.
22346         * tree-ssa-loop-unswitch.c: Likewise.
22347         * tree-ssa-loop.c: Likewise.
22348         * tree-ssa-loop.h: Likewise.
22349         * tree-ssa-math-opts.c: Likewise.
22350         * tree-ssa-operands.c: Likewise.
22351         * tree-ssa-phiopt.c: Likewise.
22352         * tree-ssa-phiprop.c: Likewise.
22353         * tree-ssa-pre.c: Likewise.
22354         * tree-ssa-propagate.c: Likewise.
22355         * tree-ssa-reassoc.c: Likewise.
22356         * tree-ssa-sccvn.c: Likewise.
22357         * tree-ssa-scopedtables.c: Likewise.
22358         * tree-ssa-sink.c: Likewise.
22359         * tree-ssa-strlen.c: Likewise.
22360         * tree-ssa-structalias.c: Likewise.
22361         * tree-ssa-tail-merge.c: Likewise.
22362         * tree-ssa-ter.c: Likewise.
22363         * tree-ssa-threadedge.c: Likewise.
22364         * tree-ssa-threadupdate.c: Likewise.
22365         * tree-ssa-uncprop.c: Likewise.
22366         * tree-ssa-uninit.c: Likewise.
22367         * tree-ssa.c: Likewise.
22368         * tree-ssanames.c: Likewise.
22369         * tree-stdarg.c: Likewise.
22370         * tree-streamer-in.c: Likewise.
22371         * tree-streamer-out.c: Likewise.
22372         * tree-streamer.c: Likewise.
22373         * tree-switch-conversion.c: Likewise.
22374         * tree-tailcall.c: Likewise.
22375         * tree-vect-data-refs.c: Likewise.
22376         * tree-vect-generic.c: Likewise.
22377         * tree-vect-loop-manip.c: Likewise.
22378         * tree-vect-loop.c: Likewise.
22379         * tree-vect-patterns.c: Likewise.
22380         * tree-vect-slp.c: Likewise.
22381         * tree-vect-stmts.c: Likewise.
22382         * tree-vectorizer.c: Likewise.
22383         * tree-vrp.c: Likewise.
22384         * tree.c: Likewise.
22385         * tsan.c: Likewise.
22386         * ubsan.c: Likewise.
22387         * valtrack.c: Likewise.
22388         * value-prof.c: Likewise.
22389         * var-tracking.c: Likewise.
22390         * varasm.c: Likewise.
22391         * varpool.c: Likewise.
22392         * vmsdbgout.c: Likewise.
22393         * vtable-verify.c: Likewise.
22394         * web.c: Likewise.
22395         * wide-int-print.cc: Likewise.
22396         * wide-int-print.h: Likewise.
22397         * wide-int.cc: Likewise.
22398         * xcoffout.c: Likewise.
22399         * config/aarch64/aarch64-builtins.c: Likewise.
22400         * config/aarch64/aarch64.c: Likewise.
22401         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22402         * config/alpha/alpha.c: Likewise.
22403         * config/arc/arc.c: Likewise.
22404         * config/arm/aarch-common.c: Likewise.
22405         * config/arm/arm-builtins.c: Likewise.
22406         * config/arm/arm-c.c: Likewise.
22407         * config/arm/arm.c: Likewise.
22408         * config/avr/avr-c.c: Likewise.
22409         * config/avr/avr-log.c: Likewise.
22410         * config/avr/avr.c: Likewise.
22411         * config/bfin/bfin.c: Likewise.
22412         * config/c6x/c6x.c: Likewise.
22413         * config/cr16/cr16.c: Likewise.
22414         * config/cris/cris.c: Likewise.
22415         * config/darwin-c.c: Likewise.
22416         * config/darwin.c: Likewise.
22417         * config/default-c.c: Likewise.
22418         * config/epiphany/epiphany.c: Likewise.
22419         * config/epiphany/mode-switch-use.c: Likewise.
22420         * config/epiphany/resolve-sw-modes.c: Likewise.
22421         * config/fr30/fr30.c: Likewise.
22422         * config/frv/frv.c: Likewise.
22423         * config/ft32/ft32.c: Likewise.
22424         * config/glibc-c.c: Likewise.
22425         * config/h8300/h8300.c: Likewise.
22426         * config/i386/i386-c.c: Likewise.
22427         * config/i386/i386.c: Likewise.
22428         * config/i386/msformat-c.c: Likewise.
22429         * config/i386/winnt-cxx.c: Likewise.
22430         * config/i386/winnt-stubs.c: Likewise.
22431         * config/i386/winnt.c: Likewise.
22432         * config/ia64/ia64-c.c: Likewise.
22433         * config/ia64/ia64.c: Likewise.
22434         * config/iq2000/iq2000.c: Likewise.
22435         * config/lm32/lm32.c: Likewise.
22436         * config/m32c/m32c-pragma.c: Likewise.
22437         * config/m32c/m32c.c: Likewise.
22438         * config/m32r/m32r.c: Likewise.
22439         * config/m68k/m68k.c: Likewise.
22440         * config/mcore/mcore.c: Likewise.
22441         * config/mep/mep-pragma.c: Likewise.
22442         * config/mep/mep.c: Likewise.
22443         * config/microblaze/microblaze-c.c: Likewise.
22444         * config/microblaze/microblaze.c: Likewise.
22445         * config/mips/mips.c: Likewise.
22446         * config/mmix/mmix.c: Likewise.
22447         * config/mn10300/mn10300.c: Likewise.
22448         * config/moxie/moxie.c: Likewise.
22449         * config/msp430/msp430-c.c: Likewise.
22450         * config/msp430/msp430.c: Likewise.
22451         * config/nds32/nds32-cost.c: Likewise.
22452         * config/nds32/nds32-fp-as-gp.c: Likewise.
22453         * config/nds32/nds32-intrinsic.c: Likewise.
22454         * config/nds32/nds32-isr.c: Likewise.
22455         * config/nds32/nds32-md-auxiliary.c: Likewise.
22456         * config/nds32/nds32-memory-manipulation.c: Likewise.
22457         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22458         * config/nds32/nds32-predicates.c: Likewise.
22459         * config/nds32/nds32.c: Likewise.
22460         * config/nios2/nios2.c: Likewise.
22461         * config/nvptx/nvptx.c: Likewise.
22462         * config/pa/pa.c: Likewise.
22463         * config/pdp11/pdp11.c: Likewise.
22464         * config/rl78/rl78-c.c: Likewise.
22465         * config/rl78/rl78.c: Likewise.
22466         * config/rs6000/rs6000-c.c: Likewise.
22467         * config/rs6000/rs6000.c: Likewise.
22468         * config/rx/rx.c: Likewise.
22469         * config/s390/s390-c.c: Likewise.
22470         * config/s390/s390.c: Likewise.
22471         * config/sh/sh-c.c: Likewise.
22472         * config/sh/sh-mem.cc: Likewise.
22473         * config/sh/sh.c: Likewise.
22474         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22475         * config/sh/sh_treg_combine.cc: Likewise.
22476         * config/sol2-c.c: Likewise.
22477         * config/sol2-cxx.c: Likewise.
22478         * config/sol2-stubs.c: Likewise.
22479         * config/sol2.c: Likewise.
22480         * config/sparc/sparc-c.c: Likewise.
22481         * config/sparc/sparc.c: Likewise.
22482         * config/spu/spu-c.c: Likewise.
22483         * config/spu/spu.c: Likewise.
22484         * config/stormy16/stormy16.c: Likewise.
22485         * config/tilegx/mul-tables.c: Likewise.
22486         * config/tilegx/tilegx-c.c: Likewise.
22487         * config/tilegx/tilegx.c: Likewise.
22488         * config/tilepro/mul-tables.c: Likewise.
22489         * config/tilepro/tilepro-c.c: Likewise.
22490         * config/tilepro/tilepro.c: Likewise.
22491         * config/v850/v850-c.c: Likewise.
22492         * config/v850/v850.c: Likewise.
22493         * config/vax/vax.c: Likewise.
22494         * config/visium/visium.c: Likewise.
22495         * config/vms/vms-c.c: Likewise.
22496         * config/vms/vms.c: Likewise.
22497         * config/vxworks.c: Likewise.
22498         * config/winnt-c.c: Likewise.
22499         * config/xtensa/xtensa.c: Likewise.
22500         * common/config/bfin/bfin-common.c: Likewise.
22502 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
22504         * tree.h (tree_code_for_canonical_type_merging): New function.
22505         * tree.c (gimple_canonical_types_compatible_p): Use
22506         tree_code_for_canonical_type_merging..
22508 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22510         PR c++/66192
22511         PR target/66200
22512         * doc/tm.texi: Regenerate.
22513         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22514         * target.def (TARGET_RELAXED_ORDERING): Likewise.
22515         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22516         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22517         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22518         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22519         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22520         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22521         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22523 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22525         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22526         register fma steering pass.
22527         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22528         AARCH64_TUNE_FMA_STEERING.
22530 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
22532         * tree.c (verify_type_variant): Verify that type and variant is
22533         compatible.
22534         (gimple_canonical_types_compatible_p): Look for main variants.
22536 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22538         * config.gcc (powerpc*-*-*): Add support for a new configure
22539         option --with-advance-toolchain=<xxx> which overrides using the
22540         default header files, libraries and dynamic linker.
22542         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22543         specs to support the configure --with-advance-toolchain=<xxx>
22544         option.
22545         (INCLUDE_EXTRA_SPEC): Likewise.
22546         (LINK_OS_EXTRA_SPEC32): Likewise.
22547         (LINK_OK_EXTRA_SPEC64): Likewise.
22548         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22549         (DYNAMIC_LINKER_PREFIX): Likewise.
22550         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22551         toolchain support.
22552         (GLIBC_DYNAMIC_LINKER32): Likewise.
22553         (GLIBC_DYNAMIC_LINKER64): Likewise.
22554         (LINK_OS_LINUX_SPEC32): Likewise.
22555         (LINK_OS_LINUX_SPEC64): Likewise.
22557         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22558         configuration option.
22560 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
22562         PR target/66275
22563         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22564         to determine current function ABI.
22565         (ix86_function_value_regno_p): Ditto.
22567 2015-06-03  Martin Liska  <mliska@suse.cz>
22569         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22570         * bitmap.h (struct bitmap_usage): Likewise.
22571         * ggc-common.c (struct ggc_usage): Likewise.
22572         * mem-stats.h (struct mem_location): Likewise.
22573         (struct mem_usage): Likewise.
22574         * vec.c (struct vec_usage): Likewise.
22576 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
22578         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22579         -Bsymbolic.
22581 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
22583         * doc/plugins.texi (enum plugin_event): New event.
22584         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22585         and PLUGIN_FINISH_FUNCTION.
22586         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22587         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22589 2015-06-03  Richard Biener  <rguenther@suse.de>
22591         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22592         compute GROUP_GAP for the first element.
22593         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22594         on in-group gaps.
22596 2015-06-03  Nick Clifton  <nickc@redhat.com>
22598         * config/rl78/rl78-real.md: Add peepholes to avoid a register
22599         copy when calling a function.
22600         * config/rl78/rl78.c (need_to_save): Do not push the frame
22601         pointer in an interrupt handler prologue if it is never used.
22603 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22605         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22607 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
22609         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22610         reference when cloning alias node.
22612 2015-06-03  Martin Liska  <mliska@suse.cz>
22614         * alloc-pool.h (struct pool_usage): Correct space padding.
22615         * ggc-page.c (ggc_print_statistics): Align columns in a report.
22616         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22617         * tree.c (dump_tree_statistics): Align columns in a report.
22619 2015-06-03  Martin Liska  <mliska@suse.cz>
22621         * alloc-pool.c (allocate_pool_descriptor): Remove.
22622         (struct pool_output_info): Likewise.
22623         (print_alloc_pool_statistics): Likewise.
22624         (dump_alloc_pool_statistics): Likewise.
22625         * alloc-pool.h (struct pool_usage): New struct.
22626         (pool_allocator::initialize): Change usage of memory statistics
22627         to a new interface.
22628         (pool_allocator::release): Likewise.
22629         (pool_allocator::allocate): Likewise.
22630         (pool_allocator::remove): Likewise.
22631         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22632         for a pool allocator.
22633         * mem-stats.h (struct mem_location): Add new ctor.
22634         (struct mem_usage): Add counter for number of
22635         instances.
22636         (mem_alloc_description::register_descriptor): New overload of
22637         * mem-stats.h (mem_location::to_string): New function.
22638         * bitmap.h (struct bitmap_usage): Use this new function.
22639         * ggc-common.c (struct ggc_usage): Likewise.
22640         the function.
22642 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
22644         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22645         of GCC_INSN_FLAGS_H block.
22647 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22649         * explow.c (plus_constant): Update check after force_const_mem call
22650         to see if the value returned is not a NULL_RTX.
22652 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
22654         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22655         remove instumentation thunks calling reachable functions.
22656         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22657         * lto/lto-partition.c (privatize_symbol_name_1): New.
22658         (privatize_symbol_name): Privatize both decl and orig_decl
22659         names for instrumented functions.
22660         * cgraph.c (cgraph_node::verify_node): Add transparent
22661         alias chain check for instrumented node.
22663 2015-06-03  Marek Polacek  <polacek@redhat.com>
22665         PR c/64223
22666         PR c/29358
22667         * tree.c (attribute_value_equal): Handle attribute format.
22668         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22670 2015-06-03  Richard Biener  <rguenther@suse.de>
22672         PR tree-optimization/63916
22673         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22674         Forward-propagate non-invariant addresses by splicing their
22675         reference ops if the result isn't going to be used by PRE.
22676         (vn_reference_lookup_3): Remove pointless assert.
22678 2015-06-03  Richard Biener  <rguenther@suse.de>
22680         PR tree-optimization/66375
22681         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22682         add to the evolution before following SSA edges.
22684 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
22686         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22687         (dump_use, dump_cand, find_induction_variables): Pass new argument
22688         to dump_iv.
22689         (record_use): Preserve the ssa name information in IV.
22691 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
22693         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22694         NO_MODE_TEST.
22695         (add_mode_tests): Don't add mode tests if the predicate only
22696         accepts scalar constant integers.  Otherwise, allow the mode
22697         of "op" to be VOIDmode if the predicate does accept such integers.
22699 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
22701         PR target/66258
22702         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22703         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22704         (aarch64_secondary_reload): Likewise
22705         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22706         to !TARGET_FLOAT.
22707         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22708         Likewise.
22710 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
22711             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22713         PR target/65768
22714         * cprop.c (try_replace_reg): Check cost of constants before propagating.
22716 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22718         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22719         provide access to the IBM extended double floating point mode if
22720         long double is IEEE 128-bit floating point.
22721         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22722         point if long double is the IBM extended double type.
22724         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22725         enable adding IEEE 128-bit floating point support.
22726         (-mfloat128-software): Likewise.
22727         (-mfloat128-sw): Likewise.
22729         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22730         128-bit floating point types to occupy any register if
22731         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
22732         -mfloat128-software is enabled.
22733         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22734         support.
22735         (rs6000_option_override_internal): Add -mfloat128-* support.
22736         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22738         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22739         and float128 type nodes.
22740         (ieee128_float_type_node): Likewise.
22741         (ibm128_float_type_node): Likewise.
22743 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22745         PR target/66136
22746         * config/aarch64/geniterators.sh: Rewrite in awk.
22748 2015-06-02  Martin Liska  <mliska@suse.cz>
22750         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22751         values to avoid -Wmaybe-uninitialized errors.
22753 2015-06-02  Richard Biener  <rguenther@suse.de>
22755         PR debug/65549
22756         * dwarf2out.c (lookup_context_die): New function.
22757         (resolve_addr): Avoid forcing a full DIE for the
22758         target of a DW_TAG_GNU_call_site during late compilation.
22759         Instead create a stub DIE without a type if we have a
22760         context DIE present.
22762 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
22764         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22766 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
22768         PR tree-optimization/48052
22769         * cfgloop.h (struct control_iv): New.
22770         (struct loop): New field control_ivs.
22771         * tree-ssa-loop-niter.c : Include "stor-layout.h".
22772         (number_of_iterations_lt): Set no_overflow information.
22773         (number_of_iterations_exit): Init control iv in niter struct.
22774         (record_control_iv): New.
22775         (estimate_numbers_of_iterations_loop): Call record_control_iv.
22776         (loop_exits_before_overflow): New.  Interface factored out of
22777         scev_probably_wraps_p.
22778         (scev_probably_wraps_p): Factor loop niter related code into
22779         loop_exits_before_overflow.
22780         (free_numbers_of_iterations_estimates_loop): Free control ivs.
22781         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
22783 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
22785         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
22786         the target doesn't belong to the current function.
22788 2015-06-02  Marek Polacek  <polacek@redhat.com>
22790         PR middle-end/66345
22791         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
22792         get_maxval_strlen does not produce an INTEGER_CST.
22794 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
22796         * config/arc/constraints.md: Use lower-case names in match_code.
22797         * config/mmix/constraints.md: Likewise.
22799 2015-06-02  Richard Biener  <rguenther@suse.de>
22801         PR tree-optimization/65961
22802         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
22803         check and clarify dump message.
22804         (vect_build_slp_tree): If all children are built up from scalars
22805         build up the parent from scalars instead.
22806         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
22808 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22810         PR other/65366
22811         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
22812         instead of print ... .
22814 2015-06-02  Alan Modra  <amodra@gmail.com>
22816         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
22817         2014-08-11 change.
22819 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
22821         PR tree-optimization/52563
22822         PR tree-optimization/62173
22823         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
22824         (alloc_iv, set_iv): New parameter.
22825         (determine_biv_step): Delete.
22826         (find_bivs): Inline original determine_biv_step.  Pass new
22827         argument to set_iv.
22828         (idx_find_step): Use no_overflow information for conversion.
22829         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
22830         resolve_mixers handle folded_casts.
22831         (instantiate_scev_name): Change bool parameter to bool pointer.
22832         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
22833         (instantiate_array_ref, instantiate_scev_not): Ditto.
22834         (instantiate_scev_3, instantiate_scev_2): Ditto.
22835         (instantiate_scev_1, instantiate_scev_r): Ditto.
22836         (instantiate_scev_convert, ): Change parameter.  Pass argument
22837         to chrec_convert_aggressive.
22838         (instantiate_scev): Change argument.
22839         (resolve_mixers): New parameter and set it.
22840         (scev_const_prop): New argument.
22841         * tree-scalar-evolution.h (resolve_mixers): New parameter.
22842         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
22843         of chrec_conert_1.
22844         (chrec_convert): New parameter.  Move definition below.
22845         (chrec_convert_aggressive): New parameter and set it.  Call
22846         convert_affine_scev.
22847         * tree-chrec.h (chrec_convert): New parameter.
22848         (chrec_convert_aggressive): Ditto.
22850 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
22852         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
22853         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
22854         the LHS of a no-return call if its type has variable size.
22855         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22856         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
22858 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
22860         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
22861         * config.in: Regenerate.
22863 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
22865         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
22866         consecutive accesses within outer-loop with force_vectorize
22867         for references with zero step in inner-loop.
22869 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
22871         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
22872         rather than from gcc/build directory.
22874 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
22876         PR target/65697
22877         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
22878         for __sync memory models, emit initial loads and final barriers as
22879         appropriate.
22881 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
22883         PR target/65697
22884         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
22885         (aarch64_split_atomic_op): Check for __sync memory models, emit
22886         appropriate initial loads and final barriers.
22888 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
22890         * Makefile.in: Fix gcov dependencies that should
22891         not point to a build folder.
22893 2015-06-01  Richard Biener  <rguenther@suse.de>
22895         Revert
22896         2015-05-29  Richard Biener  <rguenther@suse.de>
22898         PR tree-optimization/66314
22899         * tree-ssa-threadupdate.c (create_block_for_threading): Add
22900         parameter that says which loop the new block belongs to.
22901         (ssa_create_duplicates): Blocks duplicated for the threaded
22902         path belong to the loop of the thread destination.
22904 2015-06-01  Martin Liska  <mliska@suse.cz>
22906         * sched-deps.c: Include pool-alloc.h before
22907         cselib.h header file is included.
22909 2015-06-01  Richard Biener  <rguenther@suse.de>
22911         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
22912         functions.
22914 2015-06-01  Martin Liska  <mliska@suse.cz>
22916         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
22917         a function local variable.
22919 2015-06-01  Martin Liska  <mliska@suse.cz>
22921         * alloc-pool.c (create_alloc_pool): Remove.
22922         (empty_alloc_pool): Likewise.
22923         (free_alloc_pool): Likewise.
22924         (free_alloc_pool_if_empty): Likewise.
22925         (pool_alloc): Likewise.
22926         (pool_free): Likewise.
22927         * alloc-pool.h: Remove old declarations.
22929 2015-06-01  Martin Liska  <mliska@suse.cz>
22931         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
22932         (ira_create_object): Likewise.
22933         (ira_create_allocno): Likewise.
22934         (ira_create_live_range): Likewise.
22935         (copy_live_range): Likewise.
22936         (ira_finish_live_range): Likewise.
22937         (ira_free_allocno_costs): Likewise.
22938         (finish_allocno): Likewise.
22939         (finish_allocnos): Likewise.
22940         (initiate_prefs): Likewise.
22941         (ira_create_pref): Likewise.
22942         (finish_pref): Likewise.
22943         (finish_prefs): Likewise.
22944         (initiate_copies): Likewise.
22945         (ira_create_copy): Likewise.
22946         (finish_copy): Likewise.
22947         (finish_copies): Likewise.
22948         (finish_prefs): Likewise.
22950 2015-06-01  Martin Liska  <mliska@suse.cz>
22952         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
22953         (allocate_and_init_ipcp_value): Likewise.
22954         (ipcp_lattice::add_value): Likewise.
22955         (merge_agg_lats_step): Likewise.
22956         (ipcp_driver): Likewise.
22957         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
22958         (ipa_free_all_structures_after_iinln): Likewise.
22959         * ipa-prop.h: Likewise.
22961 2015-06-01  Martin Liska  <mliska@suse.cz>
22963         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
22964         pool allocator.
22965         (set_hint_predicate): Likewise.
22966         (inline_summary_alloc): Likewise.
22967         (reset_inline_edge_summary): Likewise.
22968         (reset_inline_summary): Likewise.
22969         (set_cond_stmt_execution_predicate): Likewise.
22970         (set_switch_stmt_execution_predicate): Likewise.
22971         (compute_bb_predicates): Likewise.
22972         (estimate_function_body_sizes): Likewise.
22973         (inline_free_summary): Likewise.
22975 2015-06-01  Martin Liska  <mliska@suse.cz>
22977         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
22978         (ipa_edge_duplication_hook): Likewise.
22979         (ipa_free_all_structures_after_ipa_cp): Likewise.
22980         (ipa_free_all_structures_after_iinln): Likewise.
22982 2015-06-01  Martin Liska  <mliska@suse.cz>
22984         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
22985         (ipa_profile_generate_summary): Likewise.
22986         (ipa_profile_read_summary): Likewise.
22987         (ipa_profile): Likewise.
22989 2015-06-01  Martin Liska  <mliska@suse.cz>
22991         * tree-ssa-structalias.c (new_var_info): Use new type-based
22992         pool allocator.
22993         (new_constraint): Likewise.
22994         (init_alias_vars): Likewise.
22995         (delete_points_to_sets): Likewise.
22997 2015-06-01  Martin Liska  <mliska@suse.cz>
22999         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23000         (free_strinfo): Likewise.
23001         (pass_strlen::execute): Likewise.
23003 2015-06-01  Martin Liska  <mliska@suse.cz>
23005         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23006         pool allocator.
23007         (vn_reference_insert_pieces): Likewise.
23008         (vn_phi_insert): Likewise.
23009         (visit_reference_op_call): Likewise.
23010         (copy_phi): Likewise.
23011         (copy_reference): Likewise.
23012         (process_scc): Likewise.
23013         (allocate_vn_table): Likewise.
23014         (free_vn_table): Likewise.
23016 2015-06-01  Martin Liska  <mliska@suse.cz>
23018         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23019         pool allocator.
23020         (add_repeat_to_ops_vec): Likewise.
23021         (get_ops): Likewise.
23022         (maybe_optimize_range_tests): Likewise.
23023         (init_reassoc): Likewise.
23024         (fini_reassoc): Likewise.
23026 2015-06-01  Martin Liska  <mliska@suse.cz>
23028         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23029         pool allocator.
23030         (bitmap_set_new): Likewise.
23031         (get_or_alloc_expr_for_constant): Likewise.
23032         (get_or_alloc_expr_for): Likewise.
23033         (phi_translate_1): Likewise.
23034         (compute_avail): Likewise.
23035         (init_pre): Likewise.
23036         (fini_pre): Likewise.
23038 2015-06-01  Martin Liska  <mliska@suse.cz>
23040         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23041         (delete_dep_node): Likewise.
23042         (create_deps_list): Likewise.
23043         (free_deps_list): Likewise.
23044         (sched_deps_init): Likewise.
23045         (sched_deps_finish): Likewise.
23047 2015-06-01  Martin Liska  <mliska@suse.cz>
23049         * regcprop.c (free_debug_insn_changes): Use new type-based
23050         pool allocator.
23051         (replace_oldest_value_reg): Likewise.
23052         (pass_cprop_hardreg::execute): Likewise.
23054 2015-06-01  Martin Liska  <mliska@suse.cz>
23056         * ira-build.c (initiate_cost_vectors): Use new type-based
23057         pool allocator.
23058         (ira_allocate_cost_vector): Likewise.
23059         (ira_free_cost_vector): Likewise.
23060         (finish_cost_vectors): Likewise.
23062 2015-06-01  Martin Liska  <mliska@suse.cz>
23064         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23065         pool allocator.
23066         (free_sched_pools): Likewise.
23067         * sel-sched-ir.h (_list_alloc): Likewise.
23068         (_list_remove): Likewise.
23070 2015-06-01  Martin Liska  <mliska@suse.cz>
23072         * stmt.c (add_case_node): Use new type-based pool allocator.
23073         (expand_case): Likewise.
23074         (expand_sjlj_dispatch_table): Likewise.
23076 2015-06-01  Martin Liska  <mliska@suse.cz>
23078         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23079         (free_bb): Likewise.
23080         (pass_cse_reciprocals::execute): Likewise.
23082 2015-06-01  Martin Liska  <mliska@suse.cz>
23084         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23085         (sra_deinitialize) Likewise.
23086         (create_access_1) Likewise.
23087         (build_accesses_from_assign) Likewise.
23088         (create_artificial_child_access) Likewise.
23090 2015-06-01  Martin Liska  <mliska@suse.cz>
23092         * dse.c (get_group_info):Use new type-based pool allocator.
23093         (dse_step0) Likewise.
23094         (free_store_info) Likewise.
23095         (delete_dead_store_insn) Likewise.
23096         (free_read_records) Likewise.
23097         (record_store) Likewise.
23098         (replace_read) Likewise.
23099         (check_mem_read_rtx) Likewise.
23100         (scan_insn) Likewise.
23101         (dse_step1) Likewise.
23102         (dse_step7) Likewise.
23104 2015-06-01  Martin Liska  <mliska@suse.cz>
23106         * df-scan.c (struct df_scan_problem_data):Use new type-based
23107         pool allocator.
23108         (df_scan_free_internal) Likewise.
23109         (df_scan_alloc) Likewise.
23110         (df_grow_reg_info) Likewise.
23111         (df_free_ref) Likewise.
23112         (df_insn_create_insn_record) Likewise.
23113         (df_mw_hardreg_chain_delete) Likewise.
23114         (df_insn_info_delete) Likewise.
23115         (df_free_collection_rec) Likewise.
23116         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23117         (df_sort_and_compress_mws) Likewise.
23118         (df_ref_create_structure) Likewise.
23119         (df_ref_record) Likewise.
23121 2015-06-01  Martin Liska  <mliska@suse.cz>
23123         * df-problems.c (df_chain_create):Use new type-based pool allocator.
23124         (df_chain_unlink_1) Likewise.
23125         (df_chain_unlink) Likewise.
23126         (df_chain_remove_problem) Likewise.
23127         (df_chain_alloc) Likewise.
23128         (df_chain_free) Likewise.
23129         * df.h (struct dataflow) Likewise.
23131 2015-06-01  Martin Liska  <mliska@suse.cz>
23133         * cselib.c (new_elt_list):Use new type-based pool allocator.
23134         (new_elt_loc_list) Likewise.
23135         (unchain_one_elt_list) Likewise.
23136         (unchain_one_elt_loc_list) Likewise.
23137         (unchain_one_value) Likewise.
23138         (new_cselib_val) Likewise.
23139         (cselib_init) Likewise.
23140         (cselib_finish) Likewise.
23142 2015-06-01  Martin Liska  <mliska@suse.cz>
23144         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23145         (sh_reorg) Likewise.
23147 2015-06-01  Martin Liska  <mliska@suse.cz>
23149         * cfg.c (initialize_original_copy_tables):Use new type-based
23150         pool allocator.
23151         (free_original_copy_tables) Likewise.
23152         (copy_original_table_clear) Likewise.
23153         (copy_original_table_set) Likewise.
23155 2015-06-01  Martin Liska  <mliska@suse.cz>
23157         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23158         pool allocator.
23159         (asan_mem_ref_new) Likewise.
23160         (free_mem_ref_resources) Likewise.
23162 2015-06-01  Martin Liska  <mliska@suse.cz>
23164         * var-tracking.c (variable_htab_free):Use new type-based
23165         pool allocator.
23166         (attrs_list_clear) Likewise.
23167         (attrs_list_insert) Likewise.
23168         (attrs_list_copy) Likewise.
23169         (shared_hash_unshare) Likewise.
23170         (shared_hash_destroy) Likewise.
23171         (unshare_variable) Likewise.
23172         (var_reg_delete_and_set) Likewise.
23173         (var_reg_delete) Likewise.
23174         (var_regno_delete) Likewise.
23175         (drop_overlapping_mem_locs) Likewise.
23176         (variable_union) Likewise.
23177         (insert_into_intersection) Likewise.
23178         (canonicalize_values_star) Likewise.
23179         (variable_merge_over_cur) Likewise.
23180         (dataflow_set_merge) Likewise.
23181         (remove_duplicate_values) Likewise.
23182         (variable_post_merge_new_vals) Likewise.
23183         (dataflow_set_preserve_mem_locs) Likewise.
23184         (dataflow_set_remove_mem_locs) Likewise.
23185         (variable_from_dropped) Likewise.
23186         (variable_was_changed) Likewise.
23187         (set_slot_part) Likewise.
23188         (clobber_slot_part) Likewise.
23189         (delete_slot_part) Likewise.
23190         (loc_exp_insert_dep) Likewise.
23191         (notify_dependents_of_changed_value) Likewise.
23192         (emit_notes_for_differences_1) Likewise.
23193         (vt_emit_notes) Likewise.
23194         (vt_initialize) Likewise.
23195         (vt_finalize) Likewise.
23197 2015-06-01  Martin Liska  <mliska@suse.cz>
23199         * ira-color.c (init_update_cost_records):Use new type-based
23200         pool allocator.
23201         (get_update_cost_record) Likewise.
23202         (free_update_cost_record_list) Likewise.
23203         (finish_update_cost_records) Likewise.
23204         (initiate_cost_update) Likewise.
23206 2015-06-01  Martin Liska  <mliska@suse.cz>
23208         * lra.c (init_insn_regs): Use new type-based pool allocator.
23209         (new_insn_reg) Likewise.
23210         (free_insn_reg) Likewise.
23211         (free_insn_regs) Likewise.
23212         (finish_insn_regs) Likewise.
23213         (init_insn_recog_data) Likewise.
23214         (init_reg_info) Likewise.
23215         (finish_reg_info) Likewise.
23216         (lra_free_copies) Likewise.
23217         (lra_create_copy) Likewise.
23218         (invalidate_insn_data_regno_info) Likewise.
23220 2015-06-01  Martin Liska  <mliska@suse.cz>
23222         * lra-lives.c (free_live_range): Use new type-based pool allocator.
23223         (free_live_range_list) Likewise.
23224         (create_live_range) Likewise.
23225         (copy_live_range) Likewise.
23226         (lra_merge_live_ranges) Likewise.
23227         (remove_some_program_points_and_update_live_ranges) Likewise.
23228         (lra_live_ranges_init) Likewise.
23229         (lra_live_ranges_finish) Likewise.
23231 2015-06-01  Martin Liska  <mliska@suse.cz>
23233         * et-forest.c (et_new_occ): Use new type-based pool allocator.
23234         (et_new_tree): Likewise.
23235         (et_free_tree): Likewise.
23236         (et_free_tree_force): Likewise.
23237         (et_free_pools): Likewise.
23238         (et_split): Likewise.
23240 2015-06-01  Martin Liska  <mliska@suse.cz>
23242         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23243         to header file.
23244         * alloc-pool.h (pool_allocator::pool_allocator): New function.
23245         (pool_allocator::release): Likewise.
23246         (inline pool_allocator::release_if_empty): Likewise.
23247         (inline pool_allocator::~pool_allocator): Likewise.
23248         (pool_allocator::allocate): Likewise.
23249         (pool_allocator::remove): Likewise.
23251 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23253         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23254         in comment.
23256 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23258         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23259         to fusible_ops.
23260         * config/arm/arm.c (arm_print_tune_info): Likewise.
23261         (arm_macro_fusion_p): Likewise.
23262         (arm_macro_fusion_pair_p): Likewise.
23264 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
23266         * config/aarch64/aarch64-protos.h (tune_params): Rename
23267         fuseable_ops to fusible_ops.
23268         * config/aarch64/aarch64.c (generic_tunings): Rename
23269         fuseable_ops to fusible_ops.
23270         (cortexa53_tunings): Likewise.
23271         (cortexa57_tunings): Likewise.
23272         (thunderx_tunings): Likewise.
23273         (xgene1_tunings): Likewise.
23274         (aarch64_macro_fusion_p): Likewise.
23275         (aarch64_macro_fusion_pair_p): Likewise.
23277 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23279         * config/s390/driver-native.c: New file.
23280         * config/s390/x-native: New file.
23281         * config.host: Add new files for s390.
23282         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23283         and -march=native
23284         * config.gcc: Likewise.
23285         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23286         * config/s390/s390-opts.h (enum processor_type): Ditto.
23287         * config/s390/s390.c (s390_option_override): Catch unhandled
23288         PROCESSOR_NATIVE
23290 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
23292         PR target/65527
23293         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23294         redirection for instrumented calls.
23295         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23296         (append_compiler_options): Append -fcheck-pointer-bounds.
23297         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23298         (chkp_redirect_edge): New.
23299         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23300         (chkp_redirect_edge): New.
23302 2015-06-01  Richard Biener  <rguenther@suse.de>
23304         PR tree-optimization/66280
23305         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23306         def-use walking.
23308 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23310         * config/aarch64/aarch64.md
23311         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23312         logic_shift_imm.
23314 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
23316         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23317         Remove obsolete kludge.
23319 2015-06-01  Richard Biener  <rguenther@suse.de>
23321         * tree-ssa-reassoc.c (get_rank): Simplify.
23323 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
23325         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23326         * configure: Regenerated.
23328 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
23330         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23331         issue (add space between string literal and macro).
23332         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23334 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
23336         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23337         implict or explicit -fPIE or -fpie.
23339 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
23341         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23343 2015-05-28  DJ Delorie  <dj@redhat.com>
23345         * expmed.c (extract_bit_field_1): Avoid clobbering a
23346         yet-to-be-used base/index register.
23348 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
23350         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23351         (alias_stats): Add num_universal.
23352         (alias_set_subset_of): Special case pointers; be ready for NULL
23353         children.
23354         (alias_sets_conflict_p): Special case pointers; be ready for NULL
23355         children.
23356         (init_alias_set_entry): Break out from ...
23357         (record_alias_subset): ... here; propagate new fields;
23358         allocate children only when really needed.
23359         (get_alias_set): Do less generous pointer globbing.
23360         (dump_alias_stats_in_alias_c): Update statistics.
23362 2015-05-30  Alan Modra  <amodra@gmail.com>
23364         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23365         correct block for use of r12.
23366         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23368 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23370         PR target/66215
23371         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23372         with -mhotpatch=.
23374 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
23376         PR tree-optimization/66142
23377         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23378         virtual phis that feed themselves.
23380 2015-05-29  Richard Biener  <rguenther@suse.de>
23382         PR tree-optimization/66314
23383         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23384         parameter that says which loop the new block belongs to.
23385         (ssa_create_duplicates): Blocks duplicated for the threaded
23386         path belong to the loop of the thread destination.
23388 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23390         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23391         to cleanup-saved-temps.
23392         * doc/sourcebuild.texi (Clean up generated test files): Expand
23393         introduction.
23394         (dg-keep-saved-temps): Document new proc.
23395         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23396         cleanup-saved-temps): Remove.
23398 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
23400         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23401         gcc_AC_CHECK_DECLS.
23402         * configure: Regenerate.
23404 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23406         * config/nios2/linux.h (CPP_SPEC): Define.
23408 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23410         * config/microblaze/linux.h (CPP_SPEC): Define.
23412 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
23414         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23415         -pthread is specified.
23417 2015-05-28  Richard Biener  <rguenther@suse.de>
23419         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23420         (vect_fixup_scalar_cycles_with_patterns): Likewise.
23421         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23422         after pattern recog.
23423         (vect_create_epilog_for_reduction): Properly handle reductions
23424         with patterns.
23425         (vectorizable_reduction): Likewise.
23426         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23427         reduction chains.
23428         (vect_get_constant_vectors): Create the correct number of
23429         initial values for reductions.
23430         (vect_schedule_slp_instance): Handle reduction chains that are
23431         type changing properly.
23432         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23434 2015-05-28  Richard Biener  <rguenther@suse.de>
23436         PR tree-optimization/66142
23437         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23438         values better in memcpy destination handling.  Handle non-aliasing
23439         we discover here.
23441 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
23443         PR target/63810
23444         * config/darwin-c.c (version_components): New global enum.
23445         (parse_version, version_as_legacy_macro)
23446         (version_as_modern_macro, macosx_version_as_macro): New functions.
23447         (version_as_macro): Remove.
23448         (darwin_cpp_builtins): Use new function.
23450 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23452         * builtins.c (expand_builtin_acc_on_device): Mark parameters
23453         with ATTRIBUTE_UNUSED.
23455 2015-05-28  Julian Brown  <julian@codesourcery.com>
23457         PR libgomp/65742
23459         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23460         sequence for !ACCEL_COMPILER.
23462 2015-05-28  Nick Clifton  <nickc@redhat.com>
23464         * config/rx/rx.c (push_regs): New function.  Extracts code from...
23465         (rx_expand_prologue): ... here.  Use push_regs to push even small
23466         spans of registers.
23467         (pop_regs): New function.
23468         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
23469         registers.
23471 2015-05-28  Richard Biener  <rguenther@suse.de>
23473         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23474         member.
23475         (SLP_INSTANCE_BODY_COST_VEC): Remove.
23476         (vect_update_slp_costs_according_to_vf): Likewise.
23477         (vect_slp_analyze_operations): Update prototype.
23478         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23479         vect_update_slp_costs_according_to_vf, adjust.
23480         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23481         (vect_analyze_slp_cost_1): Likewise.
23482         (vect_analyze_slp_cost): Likewise.  Properly deal with
23483         widening reduction ops.  Commit body costs.
23484         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
23485         cost for loops from here.
23486         (vect_slp_analyze_operations): But do it from here when
23487         the vectorization factor is known and stmts are analyzed.
23488         (vect_bb_vectorization_profitable_p): Simplify.
23489         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23490         (vect_update_slp_costs_according_to_vf): Remove.
23492 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
23493             H.J. Lu  <hongjiu.lu@intel.com>
23495         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23496         (BUILD_CFLAGS): Likewise.
23497         (BUILD_CXXFLAGS): Likewise.
23498         (LINKER): Add @NO_PIE_FLAG@.
23499         (BUILD_LDFLAGS): Likewise.
23500         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23501         --enable-default-pie.
23502         * common.opt (fPIE): Initialize to -1.
23503         (fpie): Likewise.
23504         (no-pie): New option.
23505         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23506         * configure.ac: Add --enable-default-pie.
23507         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
23508         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
23509         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
23510         * gcc.c (NO_PIE_SPEC): New.
23511         (PIE_SPEC): Likewise.
23512         (NO_FPIE1_SPEC): Likewise.
23513         (FPIE1_SPEC): Likewise.
23514         (NO_FPIE2_SPEC): Likewise.
23515         (FPIE2_SPEC): Likewise.
23516         (NO_FPIE2_SPEC): Likewise.
23517         (FPIE_SPEC): Likewise.
23518         (NO_FPIE_SPEC): Likewise.
23519         (NO_FPIC1_SPEC): Likewise.
23520         (FPIC1_SPEC): Likewise.
23521         (NO_FPIC2_SPEC): Likewise.
23522         (FPIC2_SPEC): Likewise.
23523         (NO_FPIC2_SPEC): Likewise.
23524         (FPIC_SPEC): Likewise.
23525         (NO_FPIC_SPEC): Likewise.
23526         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23527         (FPIE1_OR_FPIC1_SPEC): Likewise.
23528         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23529         (FPIE2_OR_FPIC2_SPEC): Likewise.
23530         (NO_FPIE_AND_FPIC_SPEC): Likewise.
23531         (FPIE_OR_FPIC_SPEC): Likewise.
23532         (LD_PIE_SPEC): Likewise.
23533         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
23534         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23535         * config/darwin.h (PIE_SPEC): Renamed to ...
23536         (DARWIN_PIE_SPEC): This.
23537         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23538         * config/darwin9.h (PIE_SPEC): Renamed to ...
23539         (DARWIN_PIE_SPEC): This.
23540         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23541         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23542         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23543         FPIE2_OR_FPIC2_SPEC.
23544         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23545         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23546         * config/sol2.h (ASM_PIC_SPEC): Likewise.
23547         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23548         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23549         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23550         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23551         * config/m32r/m32r.h (ASM_SPEC): Likewise.
23552         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23553         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23554         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23555         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23556         * config/sparc/linux.h (ASM_SPEC): Likewise.
23557         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23558         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23559         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23560         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23561         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23562         * config/sparc/sparc.h (ASM_SPEC): Likewise.
23563         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23564         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23565         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23566         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23567         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23568         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23569         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23570         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23571         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23572         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23573         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23574         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23575         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23576         * config/vax/linux.h (ASM_SPEC): Likewise.
23577         * doc/install.texi: Document --enable-default-pie.
23578         * doc/invoke.texi: Document -no-pie.
23579         * config.in: Regenerated.
23580         * configure: Likewise.
23582 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23584         PR rtl-optimization/66168
23585         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23586         can_move_invariant_reg.
23588 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
23590         PR target/66148
23591         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23592         REG_EQUAL note when doing insert.
23594         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23595         instead of "%d" for 'o' operand.
23597 2015-05-27  Nathan Sidwell  <nathan@acm.org>
23599         PR c++/66270
23600         * tree.c (build_pointer_type_for_mode): Canonical type does not
23601         inherit can_alias_all.
23602         (build_reference_type_for_mode): Likewise.
23604 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23606         * expr.h (array_at_struct_end_p): Move to...
23607         (array_ref_element_size): Likewise.
23608         (component_ref_field_offset): Likewise.
23609         * tree.h (array_ref_element_size): ...here.
23610         (array_at_struct_end_p): Likewise.
23611         (component_ref_field_offset): Likewise.
23612         * expr.c (array_ref_element_size): Move to...
23613         (array_ref_low_bound): Likewise.
23614         (array_at_struct_end_p): Likewise.
23615         (array_ref_up_bound): Likewise.
23616         (component_ref_field_offset): Likewise.
23617         * tree.c (array_ref_element_size): ...here.
23618         (array_ref_low_bound): Likewise.
23619         (array_ref_up_bound): Likewise.
23620         (array_at_struct_end_p): Likewise.
23621         (component_ref_field_offset): Likewise.
23623 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
23624             Szabolcs Nagy  <szabolcs.nagy@arm.com>
23626         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23628 2015-05-27  Jason Merrill  <jason@redhat.com>
23630         PR bootstrap/66304
23631         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23632         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23633         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23635 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
23637         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23638         is true.
23640         * statistics.c (statistics_fini_pass): Print pass name.
23642 2015-05-27  Richard Biener  <rguenther@suse.de>
23644         PR tree-optimization/66272
23645         Revert parts of
23646         2014-08-15  Richard Biener  <rguenther@suse.de>
23648         PR tree-optimization/62031
23649         * tree-data-ref.c (dr_analyze_indices): Do not set
23650         DR_UNCONSTRAINED_BASE.
23651         (dr_may_alias_p): All indirect accesses have to go the
23652         formerly DR_UNCONSTRAINED_BASE path.
23653         * tree-data-ref.h (struct indices): Remove
23654         unconstrained_base member.
23655         (DR_UNCONSTRAINED_BASE): Remove.
23657 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
23659         * dwarf2out.c: Remove block_map.
23660         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23661         (gen_lexical_block_die): Same.
23662         (dwarf2out_function_decl): Remove block_map use.
23663         (dwarf2out_c_finalize): Same.
23664         * tree-core.h (struct tree_block): Add die field.
23665         * tree.h (BLOCK_DIE): New.
23667 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23669         PR target/65358
23670         * expr.c (memory_load_overlap): New function.
23671         (emit_push_insn): When pushing partial args to the stack would
23672         clobber the register part load the overlapping part into a pseudo
23673         and put it into the hard reg after pushing.  Change return type
23674         to bool.  Add bool argument.
23675         * expr.h (emit_push_insn): Change return type to bool.
23676         Add bool argument.
23677         * calls.c (expand_call): Cancel sibcall optimization when encountering
23678         partial argument on targets with ARGS_GROW_DOWNWARD and
23679         !STACK_GROWS_DOWNWARD.
23680         (emit_library_call_value_1): Update callsite of emit_push_insn.
23681         (store_one_arg): Likewise.
23683 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
23685         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23687 2015-05-27  Martin Liska  <mliska@suse.cz>
23689         * Makefile.in: Add additional dependencies related to memory report
23690         enhancement.
23691         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23692         * bitmap.c (struct bitmap_descriptor_d): Remove.
23693         (struct loc): Likewise.
23694         (struct bitmap_desc_hasher): Likewise.
23695         (bitmap_desc_hasher::hash): Likewise.
23696         (bitmap_desc_hasher::equal): Likewise.
23697         (get_bitmap_descriptor): Likewise.
23698         (bitmap_register): User new memory descriptor API.
23699         (register_overhead): Likewise.
23700         (bitmap_find_bit): Register nsearches and search_iter statistics.
23701         (struct bitmap_output_info): Remove.
23702         (print_statistics): Likewise.
23703         (dump_bitmap_statistics): Use new memory descriptor.
23704         * bitmap.h (struct bitmap_usage): New class.
23705         * genmatch.c: Extend header file inclusion.
23706         * genpreds.c: Likewise.
23707         * ggc-common.c (struct ggc_usage): New class.
23708         (struct ggc_loc_desc_hasher): Remove.
23709         (ggc_loc_desc_hasher::hash): Likewise.
23710         (ggc_loc_desc_hasher::equal): Likewise.
23711         (struct ggc_ptr_hash_entry): Likewise.
23712         (struct ptr_hash_hasher): Likewise.
23713         (ptr_hash_hasher::hash): Likewise.
23714         (ptr_hash_hasher::equal): Likewise.
23715         (make_loc_descriptor): Likewise.
23716         (ggc_prune_ptr): Likewise.
23717         (dump_ggc_loc_statistics): Use new memory descriptor.
23718         (ggc_record_overhead): Likewise.
23719         (ggc_free_overhead): Likewise.
23720         (final_cmp_statistic): Remove.
23721         (cmp_statistic): Likewise.
23722         (ggc_add_statistics): Liekwise.
23723         (ggc_prune_overhead_list): Likewise.
23724         * hash-map-traits.h: New file.
23725         * hash-map.h (struct default_hashmap_traits): Move the traits to a
23726         separate header file.
23727         * hash-set.h: Pass memory statistics info to ctor.
23728         * hash-table.c (void dump_hash_table_loc_statistics): New function.
23729         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23730         (hash_table::~hash_table): Register memory release operation.
23731         (hash_table::alloc_entries): Handle memory allocation operation.
23732         (hash_table::expand): Likewise.
23733         * inchash.c (iterative_hash_hashval_t): Move implementation to header
23734         file.
23735         (iterative_hash_host_wide_int): Likewise.
23736         * inchash.h (class hash): Likewise.
23737         * mem-stats-traits.h: New file.
23738         * mem-stats.h: New file.
23739         (mem_location): Add new class.
23740         (mem_usage): Likewise.
23741         (mem_alloc_description): Likewise.
23742         * sese.c: Add new header file inclusision.
23743         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23744         and hash_set.
23745         * tree-sra.c: Add new header file inclusision.
23746         * vec.c (struct vec_descriptor): Remove.
23747         (hash_descriptor): Likewise.
23748         (struct vec_usage): Likewise.
23749         (struct ptr_hash_entry): Likewise.
23750         (hash_ptr): Likewise.
23751         (eq_ptr): Likewise.
23752         (vec_prefix::register_overhead): Use new memory descriptor API.
23753         (vec_prefix::release_overhead): Likewise.
23754         (add_statistics): Remove.
23755         (dump_vec_loc_statistics): Use new memory descriptor API.
23756         * vec.h (struct vec_prefix): Likewise.
23757         (va_heap::reserve): Likewise.
23758         (va_heap::release): Likewise.
23759         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23761 2015-05-27  Richard Biener  <rguenther@suse.de>
23763         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23764         earlier and remove ??? comment.
23765         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23766         and got called from loop analysis bail out.  Always pass the SLP
23767         node to the vectorizable_* functions.
23768         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23769         the premature SLP check here.
23770         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23771         detected SLP stmts.
23772         (vect_detect_hybrid_slp_1): Likewise.
23774 2015-05-26  Jeff Law  <law@redhat.com>
23776         * combine.c (find_split_point): Verify that the shift count is a
23777         constant when choosing (plus (ashift ...)) as a split point.
23779         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
23780         No functional changes.
23782 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
23784         * ipa-polymorphic-call.c
23785         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
23786         case when call target is already known.
23788 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
23790         PR target/65979
23791         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
23792         take into account the case that operands[1] and operands[2]
23793         are the same register.
23795 2015-05-26  Michael Matz  <matz@suse.de>
23797         PR middle-end/66251
23799         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
23800         stores.
23801         (vect_create_vectorized_demotion_stmts): Always set
23802         STMT_VINFO_VEC_STMT, also with SLP.
23803         (vectorizable_store): Handle strided group stores.
23805 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23807         PR target/66049
23808         * config/aarch64/aarch64.md
23809         (*adds_shift_imm_<mode>):  New pattern.
23810         (*subs_shift_imm_<mode>):  Likewise.
23811         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
23812         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23813         (*add_uxt<mode>_shift2): Likewise.
23814         (*add_uxtsi_shift2_uxtw): Likewise.
23815         (*sub_uxt<mode>_shift2): Likewise.
23816         (*sub_uxtsi_shift2_uxtw): Likewise.
23818 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
23820         * config/rs6000/constraints.md (Y, U): Use match_test.
23822 2015-05-26  Christian Bruel  <christian.bruel@st.com>
23824         PR target/52144
23825         * config/arm/arm.c (arm_option_check_internal)
23826         (arm_option_params_internal): Check opts->target_flags to set macros.
23827         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23828         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
23829         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23830         (builtin_define): Replaced with def_or_undef_macro.
23831         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23832         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
23833         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23834         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
23835         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
23836         (TARGET_ARM_FEATURE_LDREX_P)
23837         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
23838         * config/arm/arm-c.c (def_or_undef_macro): New function.
23839         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
23841 2015-05-26  Christian Bruel  <christian.bruel@st.com>
23843         * c-common.h (builtin_define_with_int_value)
23844         (builtin_define_type_sizeof): Declare.
23845         * c-cppbuiltin.c (builtin_define_with_int_value)
23846         (builtin_define_type_sizeof): Externalize.
23847         (builtin_define_std): Cleanup declaration.
23848         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
23849         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
23850         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
23851         (builtin_define, builtin_assert): New macros.
23853 2015-05-26  Richard Biener  <rguenther@suse.de>
23855         PR tree-optimization/66142
23856         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
23857         MEM_REFs for the same base address.
23859 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23861         PR ipa/66181
23862         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
23864 2015-05-26  Jason Merrill  <jason@redhat.com>
23866         * configure.ac: Set CXXFLAGS for ISL test.
23867         * configure: Regenerate.
23869         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
23870         strstr and basename.
23871         * configure: Regenerate.
23873 2015-05-26  Richard Biener  <rguenther@suse.de>
23875         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
23876         X % C -> X & (C - 1) for C being a power-of two to ...
23877         * match.pd: ... patterns.
23879 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
23881         * match.pd (swapped_tcc_comparison): New operator list.
23882         (-A CMP -B): New simplification.
23883         * fold-const.c (fold_comparison): Remove corresponding code.
23885 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
23887         * caller-save.c (init_caller_save): Base temporary register numbers
23888         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
23889         * cfgloopanal.c (init_set_costs): Likewise.
23890         * dojump.c (prefer_and_bit_test): Likewise.
23891         * expr.c (init_expr_target): Likewise.
23892         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23893         * lower-subreg.c (init_lower_subreg): Likewise.
23894         * postreload.c (reload_cse_regs_1): Likewise.
23896 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
23898         * gensupport.h (compute_test_codes): Declare.
23899         * gensupport.c (compute_predicate_codes): Rename to...
23900         (compute_test_codes): ...this.  Generalize error message.
23901         (process_define_predicate): Update accordingly.
23902         * genpreds.c (compute_maybe_allows): Delete.
23903         (add_constraint): Use compute_test_codes to determine whether
23904         something can accept a SUBREG, REG or MEM.
23906 2015-05-26  Torvald Riegel  <triegel@redhat.com>
23908         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
23909         'memory model' to align with C++11; fix description of memory orders;
23910         fix a few typos.
23912 2015-05-26  Richard Biener  <rguenther@suse.de>
23914         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
23915         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
23916         detect whether we apply SLP.  Remove call to
23917         vect_update_slp_costs_according_to_vf.
23918         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
23919         vect_update_slp_costs_according_to_vf from here.  Dispatch
23920         to vect_slp_analyze_operations to analyze SLP stmts.
23921         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
23922         unused bb_vec_info parameter, adjust assert.
23923         (vect_slp_analyze_operations): Pass in the slp instance tree
23924         instead of bb_vec_info.
23925         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
23926         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
23928 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
23930         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
23931         Q_REGS.  Expand comment.
23932         (REG_CLASS_NAMES): Ditto.
23933         (REG_CLASS_CONTENTS): Ditto.
23935 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
23937         PR target/66274
23938         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
23939         when LEGACY_INT_REGNO_P is processed.
23941 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
23943         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
23945 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23947         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
23948         register if not marked dead/unused, before return.
23950 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23952         PR lto/66180
23953         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
23954         is set; check for assembler name at LTO time.
23955         (type_in_anonymous_namespace): Remove hacks, check that all
23956         anonymous types are called "<anon>"
23957         (odr_type_p): Simplify; add check for "<anon>"
23958         (odr_subtypes_equivalent): Add odr_type_p check.
23959         * tree.c (need_assembler_name_p): Even anonymous namespace needs
23960         assembler name.
23962 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23964         * ipa-utils.h (method_class_type): Remove.
23965         * cgraphunit.c (walk_polymorphic_call_targets): Use
23966         TYPE_METHOD_BASETYPE.
23967         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
23968         on main variants only.
23969         (method_class_type): Remove.
23970         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
23971         (build_type_inheritance_graph): Likewise.
23972         * ipa-icf.c (sem_function::equals_wpa): Likewise.
23973         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
23974         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
23976 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
23978         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
23979         is_typedef_decl, typedef_variant_p): Constify.
23980         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
23981         is_typedef_decl, typedef_variant_p): Constify.
23983 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23985         * defaults.h (gen_tablejump): New function.
23986         (HAVE_tablejump): Add default value.
23987         * expr.c: Adjust.
23988         * stmt.c: Likewise.
23990 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23992         * defaults.h (gen_store_multiple): New function.
23993         (HAVE_store_multiple): Add default value.
23994         * expr.c (move_block_from_reg): Adjust.
23996 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23998         * defaults.h (gen_load_multiple): New function.
23999         (HAVE_load_multiple): Add default value.
24000         * expr.c (move_block_to_reg): Adjust.
24002 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24004         * defaults.h (gen_mem_signal_fence): New function.
24005         (HAVE_mem_signal_fence): Add default value.
24006         * optabs.c: Adjust.
24008 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24010         * defaults.h (gen_memory_barrier): New function.
24011         (HAVE_memory_barrier): Add default value.
24012         * optabs.c: Adjust.
24014 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24016         * defaults.h (gen_mem_thread_fence): New function.
24017         (HAVE_mem_thread_fence): Add default definition.
24018         * optabs.c: Adjust.
24020 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24022         * combine.c (find_split_point): Check the value of HAVE_lo_sum
24023         instead of if it is defined.
24024         (combine_simplify_rtx): Likewise.
24025         * lra-constraints.c (process_address_1): Likewise.
24026         * config/darwin.c: Adjust.
24027         * genconfig.c (main): Always define HAVE_lo_sum.
24029 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24031         * genmatch.c (parser::parse_operation): Reject expanding
24032         operator-list inside 'for'.
24034 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24036         * genmatch.c (parser::parse_for): Reject iterator if used as
24037         operator-list.
24039 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24041         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24042         after end of id-list.
24044 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24046         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24047         we do not try to compute canonical type for type that does not need
24048         alias set.
24049         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24050         FUNCITON_TYPE.
24051         * tree.h (type_with_alias_set_p): New.
24053 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
24055         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
24056         function attributes.
24057         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24059 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
24061         * Makefile.in (check_gcc_parallelize): Delete.
24062         (lang_checks_parallelized): Update comment.
24064 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
24066         PR rtl-optimization/66237
24067         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24068         location of an "as_a" cast.
24070 2015-05-22  Jeff Law  <law@redhat.com>
24072         * config/pa/pa.md (non-canonical shift-add insns): Remove.
24073         (peepholes with non-canonical RTL sources): Remove.
24074         (peepholes for indexed stores of FP regs in integer modes): Match and
24075         generate canonical RTL.
24077 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24079         PR tree-optimization/63387
24080         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24081         ((x ord x) & (y ord y) -> (x ord y),
24082         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24083         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24084         vectors like scalars.
24086 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24088         * convert.c (convert_to_integer, convert_to_vector): Include the
24089         types in the error message.
24091 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
24093         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24094         simplifications.
24096 2015-05-22  Jeff Law  <law@redhat.com>
24098         * config/pa/pa.md (integer_indexed_store splitters): Use
24099         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
24100         insns -- adjusting the constant 2nd operand accordingly.
24102         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24103         (plus (ashift X log2) Y) if it is a split point.
24105         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24106         out of hppa_legitimize_address to handle both forms of a multiply
24107         by 2, 4 or 8.
24108         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24109         Always generate the ASHIFT variant as the result is not directly
24110         used in a MEM.  Update comments and refactor slightly to improve
24111         readability.
24113 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24115         PR target/65491
24116         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24117         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
24118         (aarch64_composite_type_p): Return false if given type and mode are
24119         for a short vector.
24121 2015-05-22  Richard Biener  <rguenther@suse.de>
24123         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24124         member.
24125         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24126         patterns when determining whether SLP is pure.
24127         (vect_is_slp_reduction): Remove check for pattern stmts.
24128         (vect_is_simple_reduction_1): Remove dead code.
24129         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24130         (vect_get_and_check_slp_defs): Pass in the stmt number.
24131         Allow the first def in a reduction to be not a pattern stmt when
24132         the rest of the stmts def are patterns.
24133         (vect_build_slp_tree_1): Allow tcc_expression codes like
24134         SAD_EXPR and DOT_PROD_EXPR.
24135         (vect_build_slp_tree): Adjust.
24136         (vect_analyze_slp): Refactor and move BB vect error message ...
24137         (vect_slp_analyze_bb_1): ... here.
24139 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
24141         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24142         for CSWTCH temporary.
24144 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24146         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24147         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
24148         unknown unspecs.
24150 2015-05-22  Richard Biener  <rguenther@suse.de>
24152         PR tree-optimization/66251
24153         * tree-vect-stmts.c (vectorizable_conversion): Properly
24154         set STMT_VINFO_VEC_STMT even for the SLP case.
24156 2015-05-22  Marek Polacek  <polacek@redhat.com>
24158         * doc/extend.texi: Use @pxref instead of @xref.
24160 2015-05-22  hiraditya  <hiraditya@msn.com>
24162         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24163         redundant if.
24165 2015-05-22  Richard Biener  <rguenther@suse.de>
24167         PR tree-optimization/65701
24168         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24169         Move peeling cost models into one place.  Peel for alignment
24170         for single loads only if an aligned load is cheaper than
24171         an unaligned load.
24173 2015-05-22  Marek Polacek  <polacek@redhat.com>
24175         PR c/47043
24176         * doc/extend.texi (Enumerator Attributes): New section.
24177         Document syntax of enumerator attributes.
24179 2015-05-22  Richard Biener  <rguenther@suse.de>
24181         * tree-vect-loop.c (get_reduction_op): New function.
24182         (vect_model_reduction_cost): Use it, add reduc_index parameter.
24183         Make ready for BB reductions.
24184         (vect_create_epilog_for_reduction): Use get_reduction_op.
24185         (vectorizable_reduction): Init reduc_index to a valid value.
24186         Adjust vect_model_reduction_cost call.
24187         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24188         operand for reduction defaults.  Add SAD_EXPR support.
24189         Assert we have a neutral op for SLP reductions.
24190         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24191         walking pattern stmt ops only recurse to SSA names.
24193 2015-05-22  Richard Biener  <rguenther@suse.de>
24195         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24196         assert with guard, remove check on detected reduction.
24197         (vect_recog_sad_pattern): Likewise.
24198         (vect_recog_widen_sum_pattern): Likewise.
24200 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24202         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24203         __always_inline__ attribute.
24204         (vaesdq_u8): Likewise.
24205         (vaesmcq_u8): Likewise.
24206         (vaesimcq_u8): Likewise.
24207         (vsha1cq_u32): Likewise.
24208         (vsha1mq_u32): Likewise.
24209         (vsha1pq_u32): Likewise.
24210         (vsha1h_u32): Likewise.
24211         (vsha1su0q_u32): Likewise.
24212         (vsha1su1q_u32): Likewise.
24213         (vsha256hq_u32): Likewise.
24214         (vsha256h2q_u32): Likewise.
24215         (vsha256su0q_u32): Likewise.
24216         (vsha256su1q_u32): Likewise.
24217         (vmull_p64): Likewise.
24218         (vmull_high_p64): Likewise.
24220 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24222         * final.c (final_scan_insn): Don't check HAVE_peephole with the
24223         preprocessor.
24224         * output.h: Likewise.
24225         * genconfig.c (main): Alwways define HAVE_peephole.
24226         * genpeep.c: Don't emit checks of HAVE_peephole.
24228 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24230         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24231         check HAVE_conditional_move with the preprocessor.
24233 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24235         * genconfig.c (main): Always define HAVE_conditional_move.
24236         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24237         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24238         is defined.
24240 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24242         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24243         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24244         and FRAME_POINTER_REGNUM with the preprocessor.
24246 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24248         * defaults.h: Add default for STACK_PUSH_CODE.
24249         * expr.c: Don't redefine STACK_PUSH_CODE.
24250         * recog.c: Likewise.
24252 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24254         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24255         sched-deps.c: Use if instead of preprocessor checks with
24256         STACK_GROWS_DOWNWARD.
24258 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24260         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24261         is defined.
24262         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24263         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24264         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24265         * doc/tm.texi: Regenerate.
24267 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
24269         PR target/66232
24270         * config/i386/constraints.md (Bg): New constraint for GOT memory
24271         operand.
24272         * config/i386/i386.md (*call_got_x32): New pattern.
24273         (*call_value_got_x32): Likewise.
24274         * config/i386/predicates.md (GOT_memory_operand): New predicate.
24276 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
24278         PR tree-optimization/66233
24279         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24280         Simplify.
24282 2015-05-21  Jeff Law  <law@redhat.com>
24284         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24285         than MULT for shadd sequences.
24287 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
24289         * alias.c (alias_stats): New static var.
24290         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24291         (dump_alias_stats_in_alias_c): New function.
24292         * alias.h (dump_alias_stats_in_alias_c): Declare.
24293         * tree-ssa-alias.c (dump_alias_stats): Call it.
24295 2015-05-08  Michael Matz  <matz@suse.de>
24297         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24298         to strided_p.
24299         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24300         (STMT_VINFO_STRIDED_P): ... this.
24301         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24302         (vect_verify_datarefs_alignment): Likewise.
24303         (vect_enhance_data_refs_alignment): Likewise.
24304         (vect_analyze_data_ref_access): Likewise.
24305         (vect_analyze_data_refs): Accept strided stores.
24306         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24307         (vect_model_load_cost): Adjust for macro rename.
24308         (vectorizable_mask_load_store): Likewise.
24309         (vectorizable_load): Likewise.
24310         (vectorizable_store): Open code strided stores.
24312 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24314         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24315         Document sqrt_insn.
24317 2015-05-21  Richard Biener  <rguenther@suse.de>
24319         PR c++/66211
24320         * match.pd: Guard pattern optimzing (int)(float)int
24321         conversions to apply only on GIMPLE.
24323 2015-05-21  Jeff Law  <law@redhat.com>
24325         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24326         multiply-accumulate/shift-add insn generation.
24328 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24330         PR target/54236
24331         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24332         operands[1] are the same.
24334 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
24336         PR middle-end/66221
24337         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24338         build_distinct_type_copy to copy bounds.
24340 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
24342         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24343         Change to unsigned int.
24345 2015-05-20  Jeff Law  <law@redhat.com>
24347         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24348         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24349         (pa_shadd_constant_p): Allow constants for shadd insns rather
24350         than valid scaling constants for memory addresses.
24351         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24352         * config/pa/predicates.md (mem_shadd_operand): New predicate.
24353         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24354         (shift-add insns using ASHIFT): New patterns.
24356 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
24358         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24359         feasible.
24360         (fix_up_fall_thru_edges): Likewise.
24361         (fix_crossing_conditional_branches): Likewise. Promote jump targets
24362         from to rtx_insn to rtx_code_label where feasible.
24363         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24364         gen_move_insn (returned type changed to rtx_insn).
24365         * builtins.c (expand_errno_check): Fix arguments of
24366         do_compare_rtx_and_jump (now expects rtx_code_label).
24367         (expand_builtin_acc_on_device): Likewise.
24368         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24369         invert_jump (now exprects rtx_jump_insn).
24370         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24371         (construct_init_block): Use rtx_code_label.
24372         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24373         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24374         calling redirect_jump.
24375         (patch_jump_insn): Likewise.
24376         (redirect_branch_edge): Likewise.
24377         (force_nonfallthru_and_redirect): Likewise.
24378         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24379         when suitable.
24380         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24381         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24382         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24383         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24384         to store the value retured by gen_label_rtx.
24385         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24386         rtx_jump_insn.
24387         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24388         (split_branches): Fix calls of redirect_jump.
24389         * dojump.c (jumpifnot): Promote argument type from rtx to
24390         rtx_code_label.
24391         (jumpifnot_1): Likewise.
24392         (jumpif): Likewise.
24393         (jumpif_1): Likewise.
24394         (do_jump_1): Likewise.
24395         (do_jump): Likewise. Use rtx_code_label when feasible.
24396         (do_jump_by_parts_greater_rtx): Likewise.
24397         (do_jump_by_parts_zero_rtx): Likewise.
24398         (do_jump_by_parts_equality_rtx): Likewise.
24399         (do_compare_rtx_and_jump): Likewise.
24400         * dojump.h: Update function prototypes.
24401         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24402         returns rtx_insn).
24403         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24404         rtx_jump_insn.
24405         (emit_label_before): Likewise.
24406         (emit_jump_insn_after_noloc): Likewise.
24407         (emit_jump_insn_after_setloc): Likewise.
24408         (emit_jump_insn_after): Likewise
24409         (emit_jump_insn_before_setloc): Likewise.
24410         (emit_jump_insn_before): Likewise.
24411         (emit_label_before): Promote return type to rtx_code_label.
24412         (emit_label): Likewise.
24413         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24414         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24415         gen_move_insn.
24416         (emit_stack_restore): Likewise.
24417         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24418         (do_cmp_and_jump): Likewise.
24419         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24420         from rtx to rtx_code_label.
24421         (gen_move_insn_uncast): New function.
24422         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24423         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24424         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24425         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24426         invert_jump_1 and redirect_jump_1.
24427         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24428         do_compare_rtx_and_jump.
24429         (expand_addsub_overflow): Likewise.
24430         (expand_neg_overflow): Likewise.
24431         (expand_mul_overflow): Likewise.
24432         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24433         return value of gen_move_insn.
24434         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24435         * loop-doloop.c (add_test): Use rtx_code_label.
24436         (doloop_modify): Likewise.
24437         (doloop_optimize): Likewise.
24438         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24439         * lra-constraints.c (emit_spill_move): Remove cast of value returned
24440         by gen_move_insn.
24441         (inherit_reload_reg): Add cast when calling dump_insn_slim.
24442         (split_reg): Likewise.
24443         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24444         gen_move_insn.
24445         * optabs.c (expand_binop_directly): Remove casts of values returned by
24446         maybe_gen_insn.
24447         (expand_unop_direct): Likewise.
24448         (expand_abs): Likewise.
24449         (maybe_emit_unop_insn): Likewise.
24450         (maybe_gen_insn): Promote return type to rtx_insn.
24451         * optabs.h: Update prototype of maybe_gen_insn.
24452         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24453         redundant cast.
24454         * recog.c (struct peep2_insn_data): Promote type of insn field to
24455         rtx_insn.
24456         (peep2_reinit_state): Use NULL instead of NULL_RTX.
24457         (peep2_attempt): Remove casts of insn in peep2_insn_data.
24458         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24459         * recog.h (struct insn_gen_fn): Promote return types of function
24460         pointers and operator ().from rtx to rtx_insn.
24461         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24462         (fill_eager_delay_slots): Likewise.
24463         (relax_delay_slots): Likewise.
24464         (make_return_insns): Likewise.
24465         (dbr_schedule): Likewise.
24466         (optimize_skips): Likewise.
24467         (reorg_redirect_jump): Likewise.
24468         (fill_slots_from_thread): Likewise.
24469         * reorg.h: Update prototypes.
24470         * resource.c (find_dead_or_set_registers): Use dyn_cast to
24471         rtx_jump_insn instead of check.  Use it's jump_target method.
24472         * rtl.h (rtx_jump_insn::jump_label): Define new method.
24473         (rtx_jump_insn::jump_target): Define new method.
24474         (rtx_jump_insn::set_jump_target): Define new method.
24475         * rtlanal.c (tablejump_p): Promote type of one local variable.
24476         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24477         (sched_analyze_insn): Likewise.
24478         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24479         (print_insn): Likewise.
24480         * stmt.c (label_rtx): Promote return type to rtx_insn.
24481         (force_label_rtx): Likewise.
24482         (jump_target_rtx): Define new function.
24483         (expand_label): Use it, get rid of one cast.
24484         (expand_naked_return): Promote rtx to rtx_code_label.
24485         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24486         (expand_case): Use rtx_code_label instread of rtx where feasible.
24487         (expand_sjlj_dispatch_table): Likewise.
24488         (emit_case_nodes): Likewise.
24489         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
24490         * store-motion.c (insert_store): Make use of new return type of
24491         gen_move_insn and remove a cast.
24492         (replace_store_insn): Likewise.
24494 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
24496         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24497         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24499 2015-05-20  Jeff Law  <law@redhat.com>
24501         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24502         dispose of the jump thread path when the jump threading
24503         opportunity is cancelled.
24505 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24507         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24508         when printing the caret character.
24510 2015-05-20  Marek Polacek  <polacek@redhat.com>
24512         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24514 2015-05-20  Marek Polacek  <polacek@redhat.com>
24516         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24517         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24518         * gimple-fold.c (canonicalize_bool): Likewise.
24519         (same_bool_result_p): Likewise.
24520         * tree-if-conv.c (parse_predicate): Likewise.
24522 2015-05-20  Marek Polacek  <polacek@redhat.com>
24524         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24525         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24527 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24529         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24530         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24531         values.
24533 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
24535         * config/mips/mips.h (micromips_globals): Declare.
24537 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
24539         * timevar.def (TV_INITIALIZE_RTL): New.
24540         * toplev.c (initialize_rtl): Use an auto_timevar to account this
24541         function's time to TV_INITIALIZE_RTL.
24543 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24545         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24546         gimple_build_nop calls.
24547         (chkp_find_bounds_for_elem): Likewise.
24548         (chkp_get_zero_bounds): Likewise.
24549         (chkp_get_none_bounds): Likewise.
24550         (chkp_get_bounds_by_definition): Likewise.
24551         (chkp_generate_extern_var_bounds): Likewise.
24552         (chkp_get_bounds_for_decl_addr): Likewise.
24553         (chkp_get_bounds_for_string_cst): Likewise.
24555 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
24557         PR tree-optimization/65447
24558         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24559         (dump_use, dump_uses): Support to dump sub use.
24560         (record_use): New parameters to support sub use.  Remove call to
24561         dump_use.
24562         (record_sub_use, record_group_use): New functions.
24563         (compute_max_addr_offset, split_all_small_groups): New functions.
24564         (group_address_uses, rewrite_use_address): New functions.
24565         (strip_offset): New declaration.
24566         (find_interesting_uses_address): Call record_group_use.
24567         (add_candidate): New assertion.
24568         (infinite_cost_p): Move definition forward.
24569         (add_costs): Check INFTY cost and return immediately.
24570         (get_computation_cost_at): Clear setup cost and dependent bitmap
24571         for sub uses.
24572         (determine_use_iv_cost_address): Compute cost for sub uses.
24573         (rewrite_use_address_1): Rename from old rewrite_use_address.
24574         (free_loop_data): Free sub uses.
24575         (tree_ssa_iv_optimize_loop): Call group_address_uses.
24577 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24578             Jim Wilson  <jim.wilson@linaro.org>
24580         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24581         new  fields loadv and storev.
24582         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24583         Initialize loadv and storev.
24584         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24585         (cortexa53_extra_costs): Likewise.
24586         (cortexa57_extra_costs): Likewise.
24587         (xgene1_extra_costs): Likewise.
24588         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24589         rtx_costs.
24591 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24593         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24594          storev.
24595         (cortexa8_extra_costs): Likewise.
24596         (cortexa5_extra_costs): Likewise.
24597         (cortexa7_extra_costs): Likewise.
24598         (cortexa12_extra_costs): Likewise.
24599         (cortexa15_extra_costs): Likewise.
24600         (v7m_extra_costs): Likewise.
24602 2015-05-20  Jeff Law  <law@redhat.com>
24604         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24605         instead of open-coded version.  Also delete the jump thread created
24606         within this function.
24608 2015-05-20  Alan Modra  <amodra@gmail.com>
24610         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24611         stack adjusting insn.  Formatting.
24612         (rs6000_emit_prologue): Track stack adjusting insn, and use of
24613         r12.  If possible, emit first -fsplit-stack arg pointer insn
24614         before stack adjust.  Don't use r12 to save cr if split-stack.
24616 2015-05-20  Alan Modra  <amodra@gmail.com>
24618         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24619         Define.
24620         (rs6000_supports_split_stack): New function.
24621         * config/rs6000/rs6000.c (machine_function): Add
24622         split_stack_arg_pointer.
24623         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24624         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24625         rather than virtual_incoming_args_rtx.
24626         (rs6000_va_start): Likewise.
24627         (split_stack_arg_pointer_used_p): New function.
24628         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24629         (morestack_ref): New var.
24630         (gen_add3_const, rs6000_expand_split_stack_prologue,
24631         rs6000_internal_arg_pointer, rs6000_live_on_entry,
24632         rs6000_split_stack_space_check): New functions.
24633         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24634         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24635         (UNSPECV_SPLIT_STACK_RETURN): Define.
24636         (split_stack_prologue, load_split_stack_limit,
24637         load_split_stack_limit_di, load_split_stack_limit_si,
24638         split_stack_return, split_stack_space_check): New expands and insns.
24639         * config/rs6000/rs6000-protos.h
24640         (rs6000_expand_split_stack_prologue): Declare.
24641         (rs6000_split_stack_space_check): Declare.
24643 2015-05-20  Alan Modra  <amodra@gmail.com>
24645         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24646         (direct_return): Test vrsave_size rather than vrsave_mask.
24647         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
24648         (rs6000_emit_epilogue): Likewise.
24650 2015-05-20  Alan Modra  <amodra@gmail.com>
24652         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24653         when not saving registers.
24654         (debug_stack_info): Adjust to omit printing unused offsets,
24655         as before.
24656         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24657         expression.
24659 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24661         PR c++/65835
24662         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24663         value_type to const char *.
24665 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
24667         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24668         to build a biarch toolchain again.
24670 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
24672         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24673         or implicit declarations.
24674         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24675         into it.
24676         (get_odr_type): Check type has linkage before adding bases.
24677         (register_odr_type): Check that type has linkage before adding it.
24678         (type_known_to_have_no_deriavations_p): Rename to ..
24679         (type_known_to_have_no_derivations_p): This one.
24680         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24681         (type_known_to_have_no_derivations_p): This one.
24682         * ipa-polymorphic-call.c
24683         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24684         type has linkage.
24686 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24688         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24689         (layout_type): Use RECORD_OR_UNION_TYPE_P.
24691 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24693         * config/s390/s390.c (s390_vector_bool_type_p): New function.
24694         (s390_invalid_binary_op): New function.
24695         (TARGET_INVALID_BINARY_OP): Define macro.
24697 2015-05-19  David Sherwood  <david.sherwood@arm.com>
24699         * loop-invariant.c (create_new_invariant): Don't calculate address cost
24700         if mode is not a scalar integer.
24701         (get_inv_cost): Increase computational cost for unused invariants.
24703 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24705         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
24706         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
24707         * config/s390/s390-builtin-types.def: New file.
24708         * config/s390/s390-builtins.def: New file.
24709         * config/s390/s390-builtins.h: New file.
24710         * config/s390/s390-c.c: New file.
24711         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24712         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24713         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24714         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24715         prototypes.
24716         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24717         Include.
24718         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24719         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24720         variable definitions.
24721         (s390_const_operand_ok): New function.
24722         (s390_expand_builtin): Rewrite.
24723         (s390_init_builtins): New function.
24724         (s390_handle_vectorbool_attribute): New function.
24725         (s390_attribute_table): Add s390_vector_bool attribute.
24726         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24727         (s390_branch_condition_mask): Generate masks for new modes.
24728         (s390_expand_vec_compare_cc): New function.
24729         (s390_mangle_type): Add mangling for vector bool types.
24730         (enum s390_builtin): Remove.
24731         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24732         efpc builtins.
24733         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24734         s390_cpu_cpp_builtins.
24735         (REGISTER_TARGET_PRAGMAS): New macro.
24736         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24737         (insn_cmp mode attribute): Add new CC modes.
24738         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24739         (lcbb): New pattern definition.
24740         * config/s390/s390intrin.h: Include vecintrin.h.
24741         * config/s390/t-s390: New file.
24742         * config/s390/vecintrin.h: New file.
24743         * config/s390/vector.md: Include vx-builtins.md.
24744         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24745         support.
24747 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24749         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24750         CCVFHE.
24751         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24752         (s390_select_ccmode): Likewise.
24753         (s390_canonicalize_comparison): Swap operands if necessary.
24754         (s390_expand_vec_compare_scalar): Expand DFmode compare using
24755         single element vector instructions.
24756         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24757         (s390_branch_condition_mask): Generate CC masks for the new modes.
24758         * config/s390/s390.md (v0, vf, vd): New mode attributes.
24759         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24760         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24761         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24762         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24763         (*extend<DSF:mode><BFP:mode>2): New insn definition.
24764         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24765         (extend<DSF:mode><BFP:mode>2): Turn into expander.
24766         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24767         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24768         (sqrt<mode>2): Add vector instruction.
24770 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24772         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24773         constraints.
24774         * config/s390/predicates.md (const0_operand, constm1_operand)
24775         (constable_operand): Accept vector operands.
24776         * config/s390/s390-modes.def: Add supported vector modes.
24777         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
24778         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
24779         (s390_bytemask_vector_p, s390_expand_vec_strlen)
24780         (s390_expand_vec_compare, s390_expand_vcond)
24781         (s390_expand_vec_init): Add prototypes.
24782         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
24783         (s390_vector_mode_supported_p): New function.
24784         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
24785         (s390_contiguous_bitmask_vector_p): New function.
24786         (s390_bytemask_vector_p): New function.
24787         (s390_split_ok_p): Vector regs don't work either.
24788         (regclass_map): Add VEC_REGS.
24789         (s390_legitimate_constant_p): Handle vector constants.
24790         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
24791         (legitimate_reload_vector_constant_p): New function.
24792         (s390_preferred_reload_class): Handle CONST_VECTOR.
24793         (s390_reload_symref_address):  Likewise.
24794         (s390_secondary_reload): Vector memory instructions only support
24795         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
24796         (s390_emit_ccraw_jump): New function.
24797         (s390_expand_vec_strlen): New function.
24798         (s390_expand_vec_compare): New function.
24799         (s390_expand_vcond): New function.
24800         (s390_expand_vec_init): New function.
24801         (s390_dwarf_frame_reg_mode): New function.
24802         (print_operand): Handle addresses with 'O' and 'R' constraints.
24803         (NR_C_MODES, constant_modes): Add vector modes.
24804         (s390_output_pool_entry): Handle vector constants.
24805         (s390_hard_regno_mode_ok): Handle vector registers.
24806         (s390_class_max_nregs): Likewise.
24807         (s390_cannot_change_mode_class): New function.
24808         (s390_invalid_arg_for_unprototyped_fn): New function.
24809         (s390_function_arg_vector): New function.
24810         (s390_function_arg_float): Remove size variable.
24811         (s390_pass_by_reference): Handle vector arguments.
24812         (s390_function_arg_advance): Likewise.
24813         (s390_function_arg): Likewise.
24814         (s390_return_in_memory): Vector values are returned in a VR if
24815         possible.
24816         (s390_function_and_libcall_value): Handle vector arguments.
24817         (s390_gimplify_va_arg): Likewise.
24818         (s390_call_saved_register_used): Consider the arguments named.
24819         (s390_conditional_register_usage): Disable v16-v31 for non-vec
24820         targets.
24821         (s390_preferred_simd_mode): New function.
24822         (s390_support_vector_misalignment): New function.
24823         (s390_vector_alignment): New function.
24824         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
24825         (TARGET_VECTOR_MODE_SUPPORTED_P)
24826         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
24827         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24828         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
24829         (TARGET_VECTOR_ALIGNMENT): Define target macro.
24830         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
24831         (FIRST_PSEUDO_REGISTER): Increase value.
24832         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
24833         (VECTOR_REG_P): Define macros.
24834         (FIXED_REGISTERS, CALL_USED_REGISTERS)
24835         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
24836         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
24837         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
24838         Add vector registers.
24839         (CANNOT_CHANGE_MODE_CLASS): Call C function.
24840         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
24841         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
24842         memory.
24843         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
24844         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
24845         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
24846         (VR*_REGNUM): New constants.
24847         (ALL): New mode iterator.
24848         (INTALL): Remove mode iterator.
24849         Include vector.md.
24850         (movti): Implement TImode moves for VRs.
24851         Disable TImode splitter for VR targets.
24852         Implement splitting TImode GPR<->VR moves.
24853         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
24854         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
24855         reload<mode>_la_in, reload<mode>_la_out.
24856         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
24857         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
24858         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
24859         (mov<mode> SF SD): Prefer lder, lde for loading.
24860         Add lrl and strl instructions.
24861         Add vector instructions.
24862         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
24863         Call s390_expand_vec_strlen on z13.
24864         (*cc_to_int): Change predicate to nonimmediate_operand.
24865         (addti3): Rename to *addti3.  New expander.
24866         (subti3): Rename to *subti3.  New expander.
24867         * config/s390/vector.md: New file.
24869 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24871         * common/config/s390/s390-common.c (processor_flags_table): Add
24872         z13.
24873         * config.gcc: Add z13.
24874         * config/s390/s390-opts.h (enum processor_type): Add
24875         PROCESSOR_2964_Z13.
24876         * config/s390/s390.c (s390_adjust_priority): Check for
24877         PROCESSOR_2964_Z13.
24878         (s390_reorg): Likewise.
24879         (s390_sched_reorder): Likewise.
24880         (s390_sched_variable_issue): Likewise.
24881         (s390_loop_unroll_adjust): Likewise.
24882         (s390_option_override): Likewise. Default to -mvx when available.
24883         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
24884         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
24885         (TARGET_VX_ABI): Define macros.
24886         macros.
24887         (TARGET_DEFAULT): Add MASK_OPT_VX.
24888         * config/s390/s390.md ("cpu" attribute): Add z13.
24889         ("cpu_facility" attribute): Add vec.
24890         * config/s390/s390.opt (processor_type): Add z13.
24891         (mvx): New options.
24892         * doc/invoke.texi: Add z13 option for -march.
24894 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24896         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
24897         mode check to make sure that only scalar integer values are
24898         accepted.
24900 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
24902         * tree.c (verify_type_variant): Fix #undef.
24903         (gimple_canonical_types_compatible_p): Move here from lto.c
24904         (verify_type): Verify TYPE_CANONICAL compatibility.
24905         * tree.h (gimple_canonical_types_compatible_p): Declare.
24907 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
24909         PR middle-end/66199
24910         * tree.h (OMP_TEAMS_COMBINED): Define.
24911         * gimplify.c (enum gimplify_omp_var_data): Add
24912         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
24913         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
24914         (omp_notice_variable): Accept both ORT_TEAMS
24915         and ORT_COMBINED_TEAMS.  Don't recurse if
24916         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
24917         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
24918         GOVD_FIRSTPRIVATE.
24919         (omp_no_lastprivate): New function.
24920         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
24921         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
24922         notice_outer and set appropriate bits, otherwise make
24923         sure default(none) combined constructs won't complain.
24924         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
24925         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
24926         omp_no_lastprivate either remove the clause or turn it
24927         into OMP_CLAUSE_PRIVATE.
24928         (gimplify_omp_for): Fix up handling of implicit
24929         lastprivate or linear iterators.
24930         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
24931         ORT_COMBINED_TEAMS.
24932         * omp-low.c (lower_omp_for_lastprivate): For combined
24933         for simd use fd.loop.n2 from the for rather than simd.
24935 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
24937         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
24938         instead of gen_rtx_raw_REG.
24939         (cris_expand_epilogue): Likewise.
24940         * config/microblaze/microblaze.c (microblaze_classify_address):
24941         Likewise.
24942         * config/sparc/sparc.md: Likewise.
24944 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
24946         * config/alpha/alpha.c (alpha_legitimize_reload_address)
24947         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
24948         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
24949         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
24950         Use CASE_CONST_SCALAR_INT.
24951         (print_operand) <case 'M'>: Use mode_width_operand to check the
24952         value of the constant.
24953         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
24954         * config/alpha/predicates.md (input_operand): Use general_operand
24955         instead of match_code as operand check.
24956         (symbolic_operand): Use match_code with subexpression digits.
24957         * config/alpha/constraints.md (Q): Ditto.
24959 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24961         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
24963 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24965         * config/s390/s390.c (s390_secondary_reload): Fix check for
24966         load/store relative.
24968 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24970         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
24971         alternative_mask to uint64_t.
24973 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
24975         PR tree-optimization/66187
24976         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
24977         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
24978         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
24980 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
24982         * diagnostic.c (diagnostic_report_current_module): Strengthen
24983         local "new_map" from const line_map * to
24984         const line_map_ordinary *.
24985         * genmatch.c (error_cb): Likewise for local "map".
24986         (output_line_directive): Likewise for local "map".
24987         * input.c (expand_location_1): Likewise for local "map".
24988         Pass NULL rather than &map to
24989         linemap_unwind_to_first_non_reserved_loc, since the value is never
24990         read from there, and the value written back not read from here.
24991         (is_location_from_builtin_token): Strengthen local "map" from
24992         const line_map * to const line_map_ordinary *.
24993         (dump_location_info): Strengthen locals "map" from
24994         line_map *, one to const line_map_ordinary *, the other
24995         to const line_map_macro *.
24996         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
24997         const line_map * to const line_map_macro *.
24998         (maybe_unwind_expanded_macro_loc): Add a call to
24999         linemap_check_macro when writing to the "map" field of the
25000         loc_map_pair.
25001         Introduce local const line_map_ordinary * "ord_map", using it in
25002         place of "map" in the part of the function where we know we have
25003         an ordinary map.  Strengthen local "m" from const line_map * to
25004         const line_map_ordinary *.
25006 2015-05-19  Nick Clifton  <nickc@redhat.com>
25008         PR target/66156
25009         * config/msp430/msp430.md (zero_extendhisi2): Add support for
25010         separate source and destination registers.
25012 2015-05-19  Richard Biener  <rguenther@suse.de>
25014         PR tree-optimization/66165
25015         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25016         for no load permutation.
25018         PR tree-optimization/66185
25019         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25020         when building the SLP node from scalars.
25022 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25023             Tristan Gingold  <gingold@adacore.com>
25025         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25026         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25027         (expand_stack_restore): Call record_new_stack_level.
25028         (expand_stack_save): Do not call do_pending_stack_adjust.
25029         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25030         * calls.c (expand_call): Call record_new_stack_level for alloca.
25031         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25032         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25033         (update_sjlj_context): New global function.
25034         * except.h (update_sjlj_context): Declare.
25035         * explow.c (record_new_stack_level): New global function.
25036         (allocate_dynamic_stack_space): Call record_new_stack_level.
25037         * explow.h (record_new_stack_level): Declare.
25038         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25039         * cfgrtl.c (duplicate_insn_chain): Likewise.
25041 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25043         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25044         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25045         STACK_GROWS_DOWNWARD as normal if.
25046         (expand_call): Likewise.
25048 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
25050         PR target/54236
25051         * config/sh/sh.md (*round_int_even): New insn_and_split and
25052         accompanying new unnamed split.
25054 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25056         * bitmap.c (bitmap_set_range): Handle count==1 specially.
25057         (bitmap_clear_range): Likewise.
25058         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25059         bitmap_set_range unconditionally.
25060         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25061         * df-scan.c (df_mark_reg): Likewise.
25062         * haifa-sched.c (setup_ref_regs): Likewise.
25063         * sched-rgn.c (update_live_1): Likewise.
25065 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25067         * regs.h (END_HARD_REGNO): Delete.
25068         (END_REGNO): Move to...
25069         * rtl.h: ...here.
25070         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25071         * caller-save.c (mark_set_regs): Likewise.
25072         * combine.c (move_deaths, distribute_notes): Likewise.
25073         * cse.c (invalidate, invalidate_for_call): Likewise.
25074         * df-scan.c (df_ref_record): Likewise.
25075         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25076         (record_last_reg_set_info): Likewise.
25077         * reg-stack.c (convert_regs_exit): Likewise.
25078         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25079         * resource.c (update_live_status): Likewise.
25080         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25082 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25084         * rtl.h (reg_info): Add an nregs field.
25085         (REG_NREGS): Use it.
25086         (SET_REGNO_RAW): Delete.
25087         (set_regno_raw): New function.
25088         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25089         (END_REGNO): Redefine in terms of REG_NREGS.
25090         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25091         SET_REGNO_RAW.
25092         * emit-rtl.c (set_mode_and_regno): Likewise.
25093         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25094         instead of SET_REGNO_RAW.
25096 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25098         * rtl.h (PUT_MODE_RAW): New macro.
25099         (PUT_REG_NOTE_KIND): Use it.
25100         (set_mode_and_regno): Declare.
25101         (gen_raw_REG): Change regno to "unsigned int".
25102         (gen_rtx_REG): Change "unsigned" to "unsigned int".
25103         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25104         use set_mode_and_regno to change the mode of registers.
25105         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25106         * emit-rtl.c (set_mode_and_regno): New function.
25107         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
25108         * caller-save.c (reg_save_code): Use set_mode_and_regno.
25109         * expr.c (init_expr_target): Likewise.
25110         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25111         * postreload.c (reload_cse_simplify_operands): Likewise.
25113 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25115         * caller-save.c (init_caller_save): Use word_mode and
25116         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25117         * expr.c (init_expr_target): Likewise.
25118         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25119         * postreload.c (reload_cse_regs_1): Likewise.
25121 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25123         * rtl.def (REG): Change format to "r".
25124         * rtl.h (rtunion): Remove rt_reg.
25125         (reg_info): New structure.
25126         (rtx_def): Add reg field to main union.
25127         (X0REGATTR): Delete.
25128         (REG_CHECK): New macro.
25129         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25130         * rtl.c (rtx_format): Document "r".
25131         (rtx_code_size): Handle REG specially.
25132         * gengenrtl.c (special_format): Return true for formats
25133         that include 'r'.
25134         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25135         Deal with REG_ATTRS after the field loop.
25136         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25137         * expmed.c (init_expmed): Call gen_raw_REG instead of
25138         gen_rtx_raw_REG.
25139         * expr.c (init_expr_target): Likewise.
25140         * regcprop.c (maybe_mode_change): Likewise.
25141         * varasm.c (make_decl_rtl): Likewise.
25142         * final.c (leaf_renumber_regs_insn): Return early after
25143         handling REGs.
25144         * genemit.c (gen_exp): Handle 'r' fields.
25145         * genpeep.c (match_rtx): Likewise.
25146         * gensupport.c (subst_pattern_match): Likewise.
25147         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25148         (alter_constraints, subst_dup): Likewise.
25149         * read-rtl.c (read_rtx_code): Likewise.
25150         * print-rtl.c (print_rtx): Likewise.
25151         * genrecog.c (find_operand, find_matching_operand): Likewise.
25152         (validate_pattern, match_pattern_2): Likewise.
25153         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25154         (rtx_test::regno_field): New function.
25155         (operator ==, safe_to_hoist_p, transition_parameter_type)
25156         (parameter_type_string, print_parameter_value)
25157         (print_nonbool_test, print_test): Handle new enum values.
25158         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25159         * lra-constraints.c (operands_match_p): Likewise.
25161 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25163         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25164         Change type of new_regno to unsigned int.
25165         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25166         new_regno to unsigned int.
25167         (df_ref_change_reg_with_loc): Remove old_regno parameter.
25168         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
25169         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25170         (SET_REGNO_RAW): Add space after ",".
25172 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25174         * rtl.h (REG_NREGS): New macro
25175         * alias.c (record_set): Use it.
25176         * cfgcleanup.c (mark_effect): Likewise.
25177         * combine.c (likely_spilled_retval_1): Likewise.
25178         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25179         (move_deaths, distribute_notes): Likewise.
25180         * cselib.c (cselib_record_set): Likewise.
25181         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25182         * df-scan.c (df_mark_reg): Likewise.
25183         * dse.c (look_for_hardregs): Likewise.
25184         * dwarf2out.c (reg_loc_descriptor): Likewise.
25185         (multiple_reg_loc_descriptor): Likewise.
25186         * expr.c (write_complex_part, read_complex_part): Likewise.
25187         (emit_move_complex): Likewise.
25188         * haifa-sched.c (setup_ref_regs): Likewise.
25189         * ira-lives.c (mark_hard_reg_live): Likewise.
25190         * lra.c (lra_set_insn_recog_data): Likewise.
25191         * mode-switching.c (create_pre_exit): Likewise.
25192         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25193         (reload_combine_recognize_pattern): Likewise.
25194         (reload_combine_note_use, move2add_record_mode): Likewise.
25195         (reload_cse_move2add): Likewise.
25196         * reg-stack.c (subst_stack_regs_pat): Likewise.
25197         * regcprop.c (kill_value, copy_value): Likewise.
25198         (copyprop_hardreg_forward_1): Likewise.
25199         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25200         (build_def_use): Likewise.
25201         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25202         (deps_analyze_insn): Likewise.
25203         * sched-rgn.c (check_live_1, update_live_1): Likewise.
25204         * sel-sched.c (count_occurrences_equiv): Likewise.
25205         * valtrack.c (dead_debug_insert_temp): Likewise.
25207 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
25209         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25210         * dse.c (note_add_store): Likewise.
25211         * ira-lives.c (mark_hard_reg_dead): Likewise.
25212         * loop-invariant.c (mark_reg_store): Likewise.
25213         (mark_reg_death): Likewise.
25214         * postreload.c (reload_combine): Likewise.
25215         (reload_combine_note_store): Likewise.
25216         (reload_combine_note_use): Likewise.
25217         * recog.c (peep2_reg_dead_p): Likewise.
25219 2015-05-19  Alan Modra  <amodra@gmail.com>
25221         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25222         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25223         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25224         unused predicates.
25225         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25226         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
25227         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25228         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25230 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
25232         * config/mips/mips.md (JOIN_MODE): New mode iterator.
25233         (join2_load_Store<JOIN_MODE:mode>): New pattern.
25234         (join2_loadhi): Likewise.
25235         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25236         load-load and store-stores.
25237         * config/mips/mips.opt (mload-store-pairs): New option.
25238         (TARGET_LOAD_STORE_PAIRS): New macro.
25239         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25240         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25241         * config/mips/mips.c (mips_load_store_bonding_p): New function.
25243 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
25245         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25246         explicit swaps.
25247         * dojump.c (do_compare_rtx_and_jump): Likewise.
25248         * expmed.c (emit_store_flag_1): Likewise.
25249         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25250         * final.c (sprint_ul): Use std::reverse for reversing a string.
25251         * fold-const.c (extract_muldiv_1): Use std::swap.
25252         * genmodes.c (emit_mode_int_n): Likewise.
25253         * ifcvt.c (dead_or_predicable): Likewise.
25254         * ira-build.c (ira_merge_live_ranges): Likewise.
25255         (swap_allocno_copy_ends_if_necessary): Likewise.
25256         * ira.c (ira_setup_alts): Likewise.
25257         * loop-iv.c (iv_analyze_expr): Likewise.
25258         (implies_p): Likewise.
25259         (canon_condition): Likewise.
25260         * lra-constraints.c (swap_operands): Likewise.
25261         * lra-lives.c (lra_merge_live_ranges): Likewise.
25262         * omega.c (swap): Remove.
25263         (bswap): Remove.
25264         (omega_unprotect_1): Use std::swap.
25265         (omega_solve_geq): Likewise.
25266         * optabs.c (expand_binop_directly): Likewise.
25267         (expand_binop): Likewise.
25268         (emit_conditional_move): Likewise.
25269         (emit_conditional_add): Likewise.
25270         * postreload.c (reload_cse_simplify_operands): Likewise.
25271         * reg-stack.c (emit_swap_insn): Likewise.
25272         (swap_to_top): Likewise.
25273         (compare_for_stack_reg): Likewise.
25274         (subst_asm_stack_regs): Likewise.
25275         * reload.c (find_reloads): Likewise.
25276         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25277         * sel-sched.c (invoke_reorder_hooks): Likewise.
25278         (create_block_for_bookkeeping): Likewise.
25279         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25280         (lambda_matrix_right_hermite): Use std::swap.
25281         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25282         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25283         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25284         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25285         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25286         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25287         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25288         * tree-vrp.c (compare_ranges): Likewise.
25289         * var-tracking.c (add_with_sets): Likewise.
25290         (vt_find_locations): Likewise.
25292 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
25294         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25295         pie executables.
25296         (FBSD_ENDFILE_SPEC): Likewise.
25297         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25298         config/freebsd-spec.h.
25299         (ENDFILE_SPEC): Likewise.
25301 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
25302             Richard Henderson  <rth@redhat.com>
25304         PR target/57032
25305         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25306         Check for a memory location that is not a reference (using an AND)
25307         to an unaligned location here.
25308         * config/alpha/predicates.md (normal_memory_operand): Remove.
25310 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
25312         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25313         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25315 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
25317         * config/mips/mips.c (micromips_globals): New variable.
25318         (mips_set_compression_mode): Save and reinitialize target-dependent
25319         state for microMIPS.
25321 2015-05-18  Martin Liska  <mliska@suse.cz>
25323         * dbgcnt.def: Add new counter.
25324         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25326 2015-05-18  Martin Liska  <mliska@suse.cz>
25328         * dbgcnt.def: Sort counters.
25329         * opts.c (common_handle_option): Do not compile if
25330         -fdbg-cnt-list is enabled.
25332 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25334         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25335         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
25336         address operator to va_list operand.
25337         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25338         unconditionally.
25339         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25340         operand.
25341         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25342         * config/s390/s390.c (s390_gimplify_va_arg): Same.
25343         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25345 2015-05-18  Tom de Vries  <tom@codesourcery.com>
25347         * tree-ssa-tail-merge.c: Fix whitespace.
25349 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
25351         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25352         cortex-a17, and cortex-a17.cortex-a7.
25354 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
25356         PR target/54236
25357         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25359 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
25361         PR target/66174
25362         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25363         QImode inner modes for TARGET_AVX512BW.  Force mask operand
25364         to a register for AVX512F modes.
25366 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25368         * toplev.c (emit_debug_global_declarations): Do not output debug info
25369         when doing slim LTO objects.
25371 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25373         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25374         odr_types_equivalent_p): Declare.
25375         (odr_type_p): Use gcc_checking_assert.
25376         (type_in_anonymous_namespace_p) Declare.
25377         (type_with_linkage_p): Declare.
25378         * common.opt (Wlto-type-mismatch): New warning.
25379         * ipa-devirt.c (compound_type_base): New function.
25380         (odr_or_derived_type_p): New function.
25381         (odr_types_equivalent_p): New function.
25382         (add_type_duplicate): Simplify.
25383         (type_with_linkage_p): Add hack to prevent false positives on C types
25384         (type_in_anonymous_namespace_p): Likewise.
25385         * tree.c (need_assembler_name_p): Use type_with_linkage.
25386         * tree.h (type_in_anonymous_namespace_p): Remove.
25387         * doc/invoke.texi (-Wlto-type-mismatch): Document
25389 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
25391         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25392         (verify_type): Verify STRING_FLAG.
25394 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25396         PR fortran/44054
25397         * tree-pretty-print.c (percent_K_format): Replace locus pointer
25398         with accessor function.
25399         * tree-diagnostic.c (diagnostic_report_current_function): Use
25400         diagnostic_location function.
25401         (maybe_unwind_expanded_macro_loc): Likewise.
25402         (virt_loc_aware_diagnostic_finalizer): Likewise.
25403         (default_tree_printer): Replace locus pointer with accessor function.
25404         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25405         (diagnostic_set_info_translated): Initialize second location.
25406         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25407         (diagnostic_show_locus): Handle two locations. Call
25408         diagnostic_print_caret_line.
25409         (diagnostic_print_caret_line): New.
25410         (default_diagnostic_starter): Use diagnostic_location function.
25411         (diagnostic_report_diagnostic): Use diagnostic_location function.
25412         (verbatim): Do not set text.locus.
25413         * diagnostic.h (struct diagnostic_info): Remove location field.
25414         (struct diagnostic_context): Make caret_chars an array of two.
25415         (diagnostic_location): New inline.
25416         (diagnostic_expand_location): Handle two locations.
25417         (diagnostic_same_line): New inline.
25418         (diagnostic_print_caret_line): Declare.
25419         (CARET_LINE_MARGIN): New constant.
25420         * pretty-print.c (pp_printf): Do not set text.locus.
25421         (pp_verbatim): Do not set text.locus.
25422         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25423         (struct text_info): Replace locus pointer with locations
25424         array. Add accessor functions.
25426 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
25427             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25429         PR target/65768
25430         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25431         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25432          large constants in register instead of splitting them.
25434 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
25436         PR target/66140
25437         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25438         replacements in memory addresses.
25439         (get_unaligned_address): Ditto.
25441 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
25443         * config/ft32/*: New files for FT32 port.
25444         * doc/install.texi: Add FT32 information.
25445         * doc/invoke.texi: Add FT32 information.
25446         * doc/md.texi: Add FT32 information.
25447         * doc/contrib.texi: Self added.
25449 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
25451         PR tree-optimization/64454
25452         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25453         (-1 - A -> ~A): Remove unnecessary condition.
25455 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
25457         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25458         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25459         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25461 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
25463         * ipa-chkp.h (chkp_wrap_function): New.
25464         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25465         (chkp_wrap_function_name): New.
25466         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25467         to get wrapper name.
25468         * lto-cgraph.c: Include ipa-chkp.h.
25469         (input_cgraph_1): Avoid alias chain for wrappers.
25471 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25473         PR middle-end/66134
25474         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25475         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25477 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25479         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25480         (AARCH64_FL_SLOWMUL): Delete.
25481         (AARCH64_FL_CRC): Redefine to 1<<3.
25482         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25484 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25486         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25487         casting.
25489 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25491         * config/alpha/alpha.md (extendqidi2): Use general_operand
25492         instead of some_operand for operand[1] predicate.
25493         (extendhidi2): Ditto.
25494         (cbranchdi4): Use general_operand instead of some_operand
25495         for operand[1] and operands[2] predicates.
25496         (cstoredi4): Ditto.
25497         * config/alpha/predicates.md (some_operand): Remove unused predicate.
25498         (some_ni_operand): Ditto.
25500 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
25502         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25503         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
25504         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25505         low part of the constant using alpha_emit_set_const_1.
25506         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25508 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
25510         * varasm.c (output_constant_pool_1): Pass down alignment from
25511         constant pool entry's descriptor to output_constant_pool_2.
25512         (output_object_block): Add comment prior to call to
25513         output_constant_pool_1.
25515 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
25517         PR rtl-optimization/65862
25518         * target.def (ira_change_pseudo_allocno_class): New hook.
25519         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25520         value of the hook.
25521         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25522         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25523         hook.
25524         * ira-costs.c (find_costs_and_classes): Call the hook and change
25525         classes when it is necessary.
25526         * doc/tm.texi: Update.
25528 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
25530         * config/i386/i386.md (sibcall_memory): Check that register with
25531         callee address is not also used as one of the arguments, instead
25532         of checking that it is not live after the sibcall.
25533         (sibcall_pop_memory): Ditto.
25534         (sibcall_value_memory): Ditto.
25535         (sibcall_value_pop_memory): Ditto.
25537 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
25539         * generic-match-head.c (types_match): Handle non-types.
25540         * gimple-match-head.c (types_match): Likewise.
25541         * match.pd: Remove unnecessary TREE_TYPE for types_match.
25543 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
25545         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25546         (csneg3<mode>_insn): Enable expansion of pattern.
25548 2015-05-14  Nick Clifton  <nickc@redhat.com>
25550         * config/rl78/rl78.c (rl78_select_section): Select the correct
25551         default section based upon the category of the decl.
25553 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
25555         PR rtl-optimization/30967
25556         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25557         destination mode for the cost of scc patterns.
25559 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
25561         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25562         using SWIM248 mode iterator.
25563         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25564         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
25565         for operand[2] constraint.
25566         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25568 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
25570         PR middle-end/66133
25571         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25572         make sure it is never noreturn, even when the task body does not
25573         return.
25574         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25575         right before GIMPLE_OMP_RETURN.
25576         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25577         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
25578         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25580 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25582         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25583         * tree-ssa-math-opts.c: Include params.h
25584         (pow_synth_sqrt_info): New struct.
25585         (representable_as_half_series_p): New function.
25586         (get_fn_chain): Likewise.
25587         (print_nested_fn): Likewise.
25588         (dump_fractional_sqrt_sequence): Likewise.
25589         (dump_integer_part): Likewise.
25590         (expand_pow_as_sqrts): Likewise.
25591         (gimple_expand_builtin_pow): Use above to attempt to expand
25592         pow as series of square roots.  Removed now unused variables.
25594 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
25596         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25597         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25598         Remove *p0 and *p1 arguments.  Rewrite function.
25599         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25600         (alpha_split_const_mov): Update calls to alpha_extract_integer and
25601         alpha_emit_set_long_const.
25602         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25603         (alpha_output_mi_thunk_osf): Ditto.
25604         * config/alpha/alpha.md (movti): Do not check operands[1]
25605         for CONST_DOUBLE.
25607 2015-05-13  Richard Biener  <rguenther@suse.de>
25609         PR tree-optimization/66129
25610         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25611         commutative.
25612         (vect_schedule_slp_instance): Fix typo.
25614 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
25616         * common.opt (fdump-internal-locations): New option.
25617         * input.c: Include diagnostic-core.h.
25618         (get_end_location): New function.
25619         (write_digit): New function.
25620         (write_digit_row): New function.
25621         (dump_location_range): New function.
25622         (dump_labelled_location_range): New function.
25623         (dump_location_info): New function.
25624         * input.h (dump_location_info): New prototype.
25625         * toplev.c (compile_file): Handle flag_dump_locations.
25627 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
25629         * gimple-expr.h (is_gimple_constant): Reorder.
25630         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25632 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
25634         * combine.c (simplify_set): When generating a CC set, if the
25635         source already is in the correct mode, do not wrap it in a
25636         compare.  Simplify the rest of that code.
25638 2015-05-13  Richard Biener  <rguenther@suse.de>
25640         PR tree-optimization/66123
25641         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25642         a taken edge.
25644 2015-05-13  Richard Biener  <rguenther@suse.de>
25646         PR middle-end/66110
25647         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25648         specially.
25649         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25651 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
25653         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25654         * aclocal.m4: Regenerated with automake-1.11.6.
25656 2015-05-13  Tom de Vries  <tom@codesourcery.com>
25658         PR tree-optimization/66010
25659         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25660         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25661         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
25662         and rval based on do_deref.
25664 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25666         PR target/65103
25667         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25668         link time constants into adress expressions and therefore set
25669         their cost to 0.
25671 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
25673         PR target/66112
25674         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25675         Use SWI248 iterator instead of SWI.
25676         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
25677         Use eq_attr "alternative" "0" instead of match_test in
25678         length_immediate attribute computation.
25679         (*mulvhi4, *mulvhi4_1): New define_insns.
25681         PR target/66112
25682         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25683         SIGNED to get precision of non-negative value.
25685 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25687         PR target/66048
25688         * function.c (diddle_return_value_1): Process bounds first.
25689         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25690         register.
25692 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25694         PR rtl-optimization/64616
25695         * loop-invariant.c (can_move_invariant_reg): New.
25696         (move_invariant_reg): Call above new function to decide whether
25697         instruction can just be moved, skipping creation of temporary
25698         register.
25700 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25702         PR target/pr66047.c
25703         * i386.c (ix86_function_sseregparm): Only return -1 if local function
25704         with implied regparm is called from -mno-sse function.
25705         (init_cumulative_args): Output error if ix86_function_sseregparm
25706         return -1 and SSE register would be needed.
25707         (function_arg_advance_32): Likewise.
25708         (function_arg_32): Likewise.
25709         * i386.h (ix86_args): Add decl field.
25711 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25713         PR ipa/65873
25714         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25715         inlines across optimization boundary.
25717 2015-05-12  Jason Merrill  <jason@redhat.com>
25719         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25720         string literal and macro name.
25722 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
25724         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25725         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25726         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25728 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
25730         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25731         (-Wmisleading-indentation): New option.
25732         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25734 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
25736         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25737         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25738         (alpha_extract_integer): Ditto.
25739         (alpha_legitimate_constant_p): Ditto.
25740         (alpha_split_tmode_pair): Ditto.
25741         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25742         (alpha_expand_mov): Ditto.
25743         (print_operand): Remove handling of 'H' modifier.
25744         <case 'm'>: Remove CONST_DOUBLE handling.
25745         (summarize_insn): Handle CONST_WIDE_INT.
25746         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25747         (anddi3): Ditto.
25748         (movti): Handle CONST_WIDE_INT.
25749         * config/alpha/constraints.md ('H'): Remove constraint definition.
25750         ('G'): Do not match MODE_FLOAT class.
25751         * config/alpha/predicates.md (const0_operand): Also match
25752         const_wide_int.
25753         (non_add_const_operand): Ditto.
25754         (non_zero_const_operand): Ditto.
25755         (some_operand): Ditto.
25756         (input_operand): Ditto.  Handle CONST_WIDE_INT.
25757         (and_operand): Do not match const_double.
25758         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25760 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
25762         PR target/65697
25763         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25764         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25765         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25766         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25767         is_mm_seq_cst, is_mm_sync): New accessor functions.
25768         * builtins.c (expand_builtin_sync_operation,
25769         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25770         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25771         (get_memmodel,  expand_builtin_atomic_compare_exchange,
25772         expand_builtin_atomic_load, expand_builtin_atomic_store,
25773         expand_builtin_atomic_clear): Use new accessor routines.
25774         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
25775         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
25776         (maybe_emit_sync_lock_test_and_set): Use new accessors and
25777         MEMMODEL_SYNC_ACQUIRE.
25778         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
25779         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
25780         expand_atomic_store): Use new accessors.
25781         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
25782         * tsan.c (instrument_builtin_call): Update check for memory model beyond
25783         final enum to use MEMMODEL_LAST.
25784         * c-family/c-common.c: Use new accessor for memmodel_base.
25785         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
25786         accessors.
25787         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
25788         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
25789         mem_thread_fence, *dmb): Likewise.
25790         * config/alpha/alpha.c (alpha_split_compare_and_swap,
25791         alpha_split_compare_and_swap_12): Likewise.
25792         * config/arm/arm.c (arm_expand_compare_and_swap,
25793         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
25794         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
25795         atomic_loaddi): Likewise.
25796         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
25797         Likewise.
25798         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
25799         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
25800         use new accessors.
25801         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
25802         atomic_store<mode>, atomic_compare_and_swap<mode>,
25803         atomic_exchange<mode>): Use new accessors.
25804         * config/mips/mips.c (mips_process_sync_loop): Likewise.
25805         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
25806         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
25807         rs6000_post_atomic_barrier): Add new cases.
25808         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
25809         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
25810         (atomic_load<mode>): Add new cases and use new accessors.
25811         (store_quadpti): Add new cases.
25812         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
25813         accessors.
25814         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
25815         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
25816         model, not 8.
25818 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
25820         * ipa-devirt.c (type_with_linkage_p): New function.
25821         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
25822         type has linkage.
25823         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
25824         (can_be_name_hashed_p): Simplify.
25825         (hash_odr_name): Check that type has linkage before checking if it is
25826         anonymous.
25827         (types_same_for_odr): Likewise.
25828         (odr_name_hasher::equal): Likewise.
25829         (odr_subtypes_equivalent_p): Likewise.
25830         (warn_types_mismatch): Likewise.
25831         (get_odr_type): Likewise.
25832         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
25833         * ipa-utils.h (odr_type_p): Move offline.
25834         * tree.c (need_assembler_name_p): Fix handling of types
25835         without linkages.
25836         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
25838 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
25840         * timevar.c (timevar_enable): Delete in favor of...
25841         (g_timer): New global.
25842         (struct timevar_def): Move to timevar.h inside class timer.
25843         (struct timevar_stack_def): Likewise.
25844         (timevars): Delete global in favor of field "m_timevars" within
25845         class timer in timevar.h
25846         (stack): Likewise, in favor of field "m_stack".
25847         (unused_stack_instances): Likewise, in favor of field
25848         "m_unused_stack_instances".
25849         (start_time): Likewise, in favor of field "m_start_time".
25850         (get_time): Eliminate check for timevar_enable.
25851         (timer::timer): New function, built from part of timevar_init.
25852         (timevar_init): Rewrite idempotency test from using
25853         "timevar_enable" bool to using dynamic allocation of "g_timer".
25854         Move rest of implementation into timer's constructor.
25855         (timevar_push_1): Rename to...
25856         (timer::push): ...this, adding "m_" prefixes to variables that
25857         are now fields of timer.
25858         (timevar_pop_1): Likewise, rename to...
25859         (timer::pop): ...this, and add "m_" prefixes.
25860         (timevar_start): Replace test for "timevar_enable" with one for
25861         "g_timer", and move bulk of implementation to...
25862         (timer::start): ...here, adding "m_" prefixes.
25863         (timevar_stop): Likewise, from here...
25864         (timer::stop): ...to here.
25865         (timevar_cond_start): Likewise, from here...
25866         (timer::cond_start): ...to here.
25867         (timevar_cond_stop): Likewise, from here...
25868         (timer::cond_stop): ...to here.
25869         (validate_phases): Rename to...
25870         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
25871         locals "total" and "tv" const.
25872         (timevar_print): Rename to...
25873         (timer::print): ...this, and add "m_" prefixes.  Make locals
25874         "total" and "tv" const.  Eliminate test for timevar_enable.
25875         * timevar.h (timevar_enable): Eliminate.
25876         (g_timer): New declaration.
25877         (timevar_push_1): Eliminate.
25878         (timevar_pop_1): Eliminate.
25879         (timevar_print): Eliminate.
25880         (class timer): New class.
25881         (timevar_push): Rewrite to use g_timer.
25882         (timevar_pop): Likewise.
25883         * toplev.c (toplev::~toplev): Likewise.
25885 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
25887         * arm-protos.h (arm_sched_autopref): Delete.
25888         (tune_params): Re-organize, use enums for flag values.
25889         (FUSE_OPS): New macro.
25890         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
25891         (ARM_PREFETCH_BENEFICIAL): Likewise.
25892         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
25893         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
25894         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
25895         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
25896         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
25897         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
25898         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
25899         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
25900         format.
25901         (arm_option_override, thumb2_reorg, arm_print_tune_info)
25902         (aarch_macro_fusion_pair_p): Update uses of current_tune.
25903         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
25905 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
25907         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
25908         "break".
25910 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
25911             Sandra Loosemore <sandra@codesourcery.com>
25913         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
25914         value.
25915         (REG_CLASS_NAMES): Add "IJMP_REGS".
25916         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
25917         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
25918         use new "c" register constraint.
25919         * config/nios2/constraint.md (c): New register constraint
25920         corresponding to IJMP_REGS.
25922 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25924         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
25925         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
25926         define_splits): Delete, revamp, transmogrify into ...
25927         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
25928         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
25929         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
25930         New.
25932 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25934         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
25935         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
25937 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25939         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
25940         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
25941         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
25942         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
25943         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
25944         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
25945         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
25946         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
25947         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
25948         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
25949         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
25950         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
25951         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
25952         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
25953         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
25954         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
25955         and 30 corresponding splitters): Delete.
25957 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25959         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
25960         zero_extract.
25962 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25964         * combine.c (recog_for_combine_1): New function, factored out
25965         from recog_for_combine.
25966         (change_zero_ext): New function.
25967         (recog_for_combine): If recog fails, try again with the pattern
25968         modified by change_zero_ext; if that still fails, restore the
25969         pattern.
25971 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
25973         * combine.c (get_undo_marker): New function.
25974         (undo_to_marker): New function, largely factored out from ...
25975         (undo_all): ... this.  Adjust.
25977 2015-05-12  Richard Biener  <rguenther@suse.de>
25979         PR tree-optimization/66101
25980         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
25981         fixup if we turn a loop exit edge to a fallthru edge.
25983 2015-05-12  Richard Biener  <rguenther@suse.de>
25985         PR tree-optimization/37021
25986         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
25987         (SLP_TREE_TWO_OPERATORS): New define.
25988         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
25989         SLP_TREE_TWO_OPERATORS.
25990         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
25991         SLP node.
25992         (vect_build_slp_tree): Adjust.
25993         (vect_analyze_slp_cost_1): Likewise.
25994         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
25995         emitting two vector stmts and mixing the results.
25997 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25999         * call.c (print_z_candidates): Remove dead code.
26001 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26003         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26004         and zEC12_simple_fp.
26005         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26006         to 1.
26008 2015-05-12  Tom de Vries  <tom@codesourcery.com>
26010         PR tree-optimization/66010
26011         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26012         ifn_va_arg.
26013         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26014         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
26015         va_lists are passed, and remove corresponding handling.
26016         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
26017         do_deref argument to ifn_va_arg.
26018         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26019         ifn_va_arg.
26021 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26023         PR target/65955
26024         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26025         REG before taking its REGNO.
26027 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26029         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26030         rsp->sign_bit_copies and rsp->nonzero_bits into ...
26031         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
26032         present to get more accurate information about the number of sign bit
26033         copies and non zero bits.
26035 2015-05-12  Richard Biener  <rguenther@suse.de>
26037         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26038         do not allow unrolling.
26040 2015-05-11  Richard Henderson  <rth@redhat.com>
26042         * config/i386/i386-modes.def (CCP): New.
26043         * config/i386/i386.c (put_condition_code): Handle it.
26044         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26046 2015-05-11  Richard Henderson  <rth@redhat.com>
26048         * target.def (md_asm_clobbers): Replace with...
26049         (md_asm_adjust): this.
26050         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26051         (TARGET_MD_ASM_ADJUST): New.
26052         * tm.texi: Rebuild.
26053         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26054         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26055         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26057         * cfgexpand.c (check_operand_nalternatives): Accept vector of
26058         constraints instead of lists of outputs and inputs.
26059         (expand_asm_stmt): Save and restore input_location around the
26060         body of the function.  Move asm data into vectors instead of
26061         building tree lists.  Generate cleanup sequences as needed,
26062         rather than waiting til the end.  Use new md_asm_adjust hook.
26064         * config/vxworks.c: Include vec.h before target.h.
26065         * gimple.c: Likewise.
26066         * incpath.c: Likewise.
26067         * mode-switching.c: Likewise.
26069         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26070         (cris_md_asm_adjust): this.
26071         (TARGET_MD_ASM_CLOBBERS): Remove.
26072         (TARGET_MD_ASM_ADJUST): New.
26073         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26074         (ix86_md_asm_adjust): this.
26075         (TARGET_MD_ASM_CLOBBERS): Remove.
26076         (TARGET_MD_ASM_ADJUST): New.
26077         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26078         (mn10300_md_asm_adjust): this.
26079         (TARGET_MD_ASM_CLOBBERS): Remove.
26080         (TARGET_MD_ASM_ADJUST): New.
26081         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26082         (rs6000_md_asm_adjust): this.
26083         (TARGET_MD_ASM_CLOBBERS): Remove.
26084         (TARGET_MD_ASM_ADJUST): New.
26085         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26086         (visium_md_asm_adjust): this.
26087         (TARGET_MD_ASM_CLOBBERS): Remove.
26088         (TARGET_MD_ASM_ADJUST): New.
26090 2015-05-11  Richard Henderson  <rth@redhat.com>
26092         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26093         if noutputs is zero.
26094         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26096         * cfgexpand.c (expand_asm_operands): Merge into...
26097         (expand_asm_stmt): ... here.
26099         * cfgexpand.c (expand_asm_operands): Don't call
26100         resolve_asm_operand_names.
26101         * stmt.c (resolve_asm_operand_names): Clarify block comment.
26103 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
26105         * dwarf2out.c (gen_member_die): Sanity check that we access
26106         TYPE_MAIN_VARIANT for TYPE_METHODS.
26107         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26108         checking TYPE_METHODS.
26109         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26110         if non-null.
26111         (build_distinct_type_copy): Clear TYPE_METHODS.
26112         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26113         (verify_type): Allow TYPE_METHODS to be error_mark_node.
26114         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26116 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
26118         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26119         (emit_pattern_before_setloc): Likewise.
26121 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26123         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26124         for define_peephole2s.
26125         (get_peephole2_pattern): New function.
26126         (main): Use it.  Call validate_pattern.
26128 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
26130         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26131         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26132         (Last callee saved reg is different for AVR_TINY architecture)
26134 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26136         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26137         when looking for memory references.
26139 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26141         PR target/65753
26142         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26143         via function pointers.
26145 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
26147         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26148         indirect call by forcing address into a pseudo with -fno-plt.
26149         * common.opt (flag_plt): New option.
26150         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26151         ([-fno-plt]): Document.
26153 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
26155         PR bootstrap/66105
26156         * config/rs6000/option-defaults.h: Add space between string literal
26157         and macro name.
26159 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26161         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26162         accross ARM targets.
26164 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26166         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26167         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26169 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
26171         PR rtl-optimization/66076
26172         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26173         Don't grow the heap array if it is already big enough from a
26174         previous iteration.
26176 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26178         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26179         (is_called_in_ARM_mode): Remove.
26180         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26181         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26182         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26183          arm_declare_function_name.
26185 2015-05-11  Christian Bruel  <christian.bruel@st.com>
26187         * config/arm/arm.c (arm_option_override): Reoganized and split into :
26188         (arm_option_params_internal); New function.
26189         (arm_option_check_internal): New function.
26190         (arm_option_override_internal): New function.
26191         (thumb_code, thumb1_code): Remove.
26192         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26193         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26194         (thumb_code, thumb1_code): Remove.
26195         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26197 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
26199         * config/alpha/alpha.c (alpha_emit_set_const_1)
26200         (alpha_emit_set_long_const, alpha_extract_integer)
26201         (alpha_legitimate_constant_p, alpha_split_const_mov)
26202         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26203         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26204         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26205         HOST_WIDE_INT_1U.
26206         * config/alpha/predicates.md (mode_mask_operand): Do not match
26207         const_double RTX.
26208         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26209         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26210         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26211         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26212         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26214 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
26216         PR target/65780
26217         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26218         default_binds_local_p_2.
26219         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26220         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26222 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26224         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26226 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26228         Patch by Richard Biener
26229         * coverage.c (coverage_obj_init): Delay building of type variant
26230         until the type is finished.
26232 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26234         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26235         mismatch between C and C++ type; compoare correctly ARG_TYPES
26236         for non-prototypes and output correctly parameter index for METHOD_TYPE.
26237         (odr_types_equivalent_p): Fix wording of warning about attributes;
26238         it is OK to match prototype and non-prototype.
26240 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26242         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26243         TYPE_ARG_TYPES list.
26244         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26245         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26247 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
26249         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26250         * tree.h (is_lang_specific): Constify.
26252 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
26254         PR tree-optimization/64454
26255         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26256         Rewrite.
26258 2015-05-08  Jason Merrill  <jason@redhat.com>
26260         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26261         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26262         config/darwin.h, config/darwin9.h, config/elfos.h,
26263         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26264         config/microblaze/microblaze.h, config/mips/mips.h,
26265         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26266         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26267         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26268         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26269         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26270         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26271         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26272         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26273         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26274         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26275         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26276         between string literal and macro name.
26278 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26280         * jump.c: Change argument types to rtx_insn *.
26281         * rtl.h: Adjust.
26283 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26285         * lra-constraints.c: Change argument type to rtx_insn *.
26287 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26289         * df-problems.c: Change argument type to rtx_insn *.
26291 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26293         * combine.c: Change argument type to rtx_insn *.
26295 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26297         * rtl.h: Adjust.
26298         * rtlanal.c: Change argument type to rtx_insn *.
26300 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26302         * sched-deps.c: Change argument types to rtx_insn *.
26303         * sched-int.h: Adjust.
26305 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26307         * dwarf2cfi.c: Change argument type to rtx_insn *.
26309 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26311         * ira.c (decrease_live_ranges_number): Changetype of local
26312         variable to rtx_insn *.
26313         * recog.c: Change argument types to rtx_insn *.
26314         * recog.h: Adjust.
26316 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26318         * reorg.c: Change argument types to rtx_insn *.
26320 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26322         * ira-color.c: Change argument types to rtx_insn *.
26323         * lra-eliminations.c: Likewise.
26324         * ira.h: Adjust.
26326 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26328         * gcse.c: Change argument types to rtx_insn *.
26330 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26332         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26334 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26336         * emit-rtl.c (emit_debug_insn_before): Change argument type to
26337         rtx_insn *.
26338         * rtl.h: Adjust.
26340 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26342         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26343         * rtl.h: Adjust.
26345 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26347         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26348         * rtl.h: Adjust.
26350 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26352         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26353         * rtl.h: Adjust.
26355 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26357         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26358         * rtl.h: Adjust.
26360 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26362         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26363         to rtx_insn *.
26364         * rtl.h: Adjust.
26366 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26368         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26369         to rtx_insn *.
26370         * rtl.h: Likewise.
26372 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26374         * except.c (can_nonlocal_goto): Change type of argument to
26375         rtx_insn *.
26376         * rtl.h: Adjust.
26378 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26380         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26381         * rtl.h: Adjust.
26383 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26385         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26386         * cfgrtl.c (can_delete_label_p): Adjust.
26387         * rtl.h: likewise.
26389 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26391         * reorg.c (stop_search_p): Change argument to rtx_insn *.
26393 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26395         * except.c (make_reg_eh_region_note): Change argument to
26396         rtx_insn *.
26397         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26398         * except.h: Adjust.
26400 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26402         * mode-switching.c (commit_mode_sets): Change type of local
26403         variable from rtx to rtx_insn *.
26405 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
26407         * doc/install.texi (--enable-languages): Add missing jit and lto info.
26408         Add ^ to grep command.
26409         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26410         arg to last gimple_simplify declaration.  Add missing gimple_build
26411         declaration for built-in function case with four tree args.
26413 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26414             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26416         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26417         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26418         (GNU_USER_DYNAMIC_LINKERN32): Update.
26420 2015-05-08  Richard Biener  <rguenther@suse.de>
26422         PR tree-optimization/66036
26423         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26424         Handle strided group loads.
26425         (vect_verify_datarefs_alignment): Likewise.
26426         (vect_enhance_data_refs_alignment): Likewise.
26427         (vect_analyze_group_access): Likewise.
26428         (vect_analyze_data_ref_access): Likewise.
26429         (vect_analyze_data_ref_accesses): Likewise.
26430         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26431         (vectorizable_load): Likewise.
26433 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
26435         * config/rs6000/rs6000.md: Require operand inequality in one
26436         of the peepholes.
26438 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
26439             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
26441         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26442         from (set ...).
26443         * config/rx/rx.md (movdi, movdf): Likewise.
26444         Likewise for define_peephole2s.
26446 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26448         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26449         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26450         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26451         vtst_u64): Rewrite using gcc vector extensions.
26453 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26455         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26456         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26458 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
26460         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26462 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26464         * config/glibc-stdint.h (OPTION_MUSL): Define.
26465         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26466         Change the definition based on OPTION_MUSL for 64 bit targets.
26467         * config/linux.h (OPTION_MUSL): Redefine.
26468         * config/alpha/linux.h (OPTION_MUSL): Redefine.
26469         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26470         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26472 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
26473             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26475         * config.gcc (LIBC_MUSL): New tm_defines macro.
26476         * config/linux.h (OPTION_MUSL): Define.
26477         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26478         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26479         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26480         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26481         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26482         * config/linux.opt (mmusl): New option.
26483         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26484         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26485         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26486         * configure: Regenerate.
26488 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
26489             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26491         PR target/48904
26492         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26493         * config/i386/knetbsd-gnu64.h: New file.
26495 2015-05-08  Marek Polacek  <polacek@redhat.com>
26497         PR c/64918
26498         * doc/invoke.texi: Document -Woverride-init-side-effects.
26500 2015-05-07  Marek Polacek  <polacek@redhat.com>
26502         PR c/65179
26503         * doc/invoke.texi: Document -Wshift-negative-value.
26505 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
26507         * gcov-tool.c (do_merge): Refactore to remove int ret.
26508         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26509         !type == FUNC to type != FUNC.
26510         * reload.h (struct target_reload): Changee to type of
26511         x_spill_indirect_levels from bool to unsigned char.
26513 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
26515         * rtl.h (always_void_p): New function.
26516         * gengenrtl.c (always_void_p): Likewise.
26517         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26518         with code foo are always VOIDmode.
26519         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26520         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26521         compare-elim.c, config/aarch64/aarch64.c,
26522         config/aarch64/aarch64.md, config/alpha/alpha.c,
26523         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26524         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26525         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26526         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26527         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26528         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26529         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26530         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26531         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26532         config/ia64/vect.md, config/iq2000/iq2000.c,
26533         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26534         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26535         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26536         config/mep/mep.c, config/microblaze/microblaze.c,
26537         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26538         config/mn10300/mn10300.c, config/msp430/msp430.c,
26539         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26540         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26541         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26542         config/rs6000/altivec.md, config/rs6000/rs6000.c,
26543         config/rs6000/rs6000.md, config/rs6000/vector.md,
26544         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26545         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26546         config/sh/sh.md, config/sh/sh_treg_combine.cc,
26547         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26548         config/spu/spu.md, config/stormy16/stormy16.c,
26549         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26550         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26551         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26552         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26553         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26554         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26555         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26556         var-tracking.c: Update calls accordingly.
26558 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26560         PR middle-end/192
26561         PR middle-end/54303
26562         * varasm.c (function_mergeable_rodata_prefix): New function.
26563         (mergeable_string_section): Use it.
26564         (mergeable_constant_section): Use it.
26566 2015-05-07  Jeff Law  <law@redhat.com>
26568         PR target/39726
26569         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26570         simplifier to narrow arithmetic.
26571         * generic-match-head.c: (types_match, single_use): New functions.
26572         * gimple-match-head.c: (types_match, single_use): New functions.
26574 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26576         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26577         rtx type.
26579 2015-05-07  Richard Biener  <rguenther@suse.de>
26581         PR tree-optimization/66002
26582         * passes.def: Schedule another pass_merge_phi after ifcombine, right
26583         before phiopt.
26585 2015-05-07  Marek Polacek  <polacek@redhat.com>
26586             Martin Uecker  <uecker@eecs.berkeley.edu>
26588         * doc/invoke.texi: Document -fsanitize=bounds-strict.
26589         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26590         into SANITIZE_NONDEFAULT.
26591         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26593 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
26595         PR target/66015
26596         * config/alpha/alpha.c (alpha_override_options_after_change): New.
26597         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26598         (alpha_override_options): Move align_loops, align_jumps and
26599         align_functions handling into alpha_override_options_after_change.
26601 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
26602             Chris Jones  <chrisj@nvidia.com>
26603             Joshua Conner  <jconner@nvidia.com>
26605         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26606         linking of crtfastmath.o.
26607         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26609 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
26611         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26612         (cstore<mode>4_unsigned_imm): New expander.
26613         (cstore<mode>4): Remove empty constraint strings.  Use the new
26614         expanders.
26616 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
26618         PR target/64208
26619         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26620         alternatives.
26622 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26624         * config/aarch64/geniterators.sh: Use standard BRE in sed.
26626 2015-05-06  Alan Modra  <amodra@gmail.com>
26628         PR target/66033
26629         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26630         (UNSPEC_NOP): Define.
26631         (reload_vsx_from_gpr<mode>): Add missing DONE.
26632         (reload_gpr_from_vsx<mode>): Likewise.
26633         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26634         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26636 2015-05-06  Christian Bruel  <christian.bruel@st.com>
26638         PR target/66015
26639         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26640         align_jumps, align_functions into aarch64_override_options_after_change.
26642 2015-05-06  Richard Biener  <rguenther@suse.de>
26644         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26645         vect_transform_slp_perm_load to check if we support a permutation
26646         for basic-block vectorization.
26648 2015-05-06  Nick Clifton  <nickc@redhat.com>
26650         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26651         used, even if it is not being used as a frame pointer.
26653 2015-05-05  Jason Merrill  <jason@redhat.com>
26655         * dwarf2out.c (gen_member_die): Don't emit anything for an
26656         anonymous class constructor.
26658 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
26660         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26661         that it reflects the block structure.
26662         (afdo_propagate_edge): Likewise.
26663         (afdo_calculate_branch_prob): Likewise.
26664         (afdo_annotate_cfg): Likewise.
26665         * cfgcleanup.c (equal_different_set_p): Likewise.
26666         (try_crossjump_to_edge): Likewise.
26667         * cgraph.c (cgraph_node::verify_node): Likewise.
26668         * cgraphunit.c (expand_all_functions): Likewise.
26669         * config/i386/i386.c (ix86_expand_copysign): Likewise.
26670         (exact_dependency_1): Likewise.
26671         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26672         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26673         * gensupport.c (process_define_subst): Likewise.
26674         * lto-wrapper.c (merge_and_complain): Likewise.
26675         * tree-if-conv.c (if_convertible_bb_p): Likewise.
26676         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26677         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26678         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26679         * tree-vect-loop.c (vectorizable_reduction): Likewise.
26680         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26681         * tree-vect-stmts.c (vectorizable_shift): Likewise.
26682         * tree-vrp.c (vrp_finalize): Likewise.
26683         * tree.c (variably_modified_type_p): Likewise.
26685 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
26687         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26688         on darwin12 and later.
26689         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26690         file to pass -rdynamic on darwin12 and later.
26691         * config/darwin.opt (rdynamic): Add.
26693 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26695         * doc/extend.texi (C Extensions): Update menu for moved Variable
26696         Attributes and Type Attributes sections.
26698 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26700         PR target/65990
26701         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26702         if rep_8byte stringop strategy was specified for 32-bit target.
26704 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
26706         PR target/65915
26707         * config/i386/i386.md (vector convert to float spltiter): Check for
26708         xmm16+, when splitting scalar float conversion.
26709         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26711 2015-05-05  Nick Clifton  <nickc@redhat.com>
26713         * config/msp430/msp430-opts.h (enum msp430_regions): New.
26714         * config/msp430/msp430.c (msp430_override_options): Complain if
26715         -mcode-region or -mdata-region is used on a non MSP430X.
26716         (msp430_section_attr): New function.  Checks lower, upper and
26717         either attributes.
26718         (msp430_attribute_table): Add lower, upper and either.
26719         (gen_prefix): New function.  Generates a prefix for a section
26720         name.
26721         (msp430_select_section): New function - handles the choice of
26722         section for an object.  Takes into account memory region
26723         attributes and options.
26724         (msp430_function_section): Use gen_prefix.
26725         (TARGET_SECTION_TYPE_FLAGS): Define.
26726         (msp430_section_type_flags): New function.
26727         (TARGET_ASM_UNIQUE_SECTION): Define.
26728         (msp430_unique_section): New function.
26729         (msp430_output_aligned_decl_common): New function.
26730         (msp430_do_not_relax_short_jumps): New function.
26731         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26732         Define.
26733         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26734         * config/msp430/msp430-protos.h
26735         (msp430_do_not_relax_short_jumps): New prototype.
26736         (msp430_output_aligned_decl_common): New prototype.
26737         * config/msp430/msp430.md (length): New attribute.
26738         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26739         then use a long code sequence for short jumps.
26740         * config/msp430/msp430.opt (mcode-region): New.
26741         (mdata-region): New.
26742         * doc/invoke.texi: Document new options.
26743         * doc/extend.texi: Document new attributes.
26745 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
26747         * config/aarch64-protos.h (struct cpu_branch_cost): New.
26748         (tune_params): Add field branch_costs.
26749         (aarch64_branch_cost): Declare.
26750         * config/aarch64.c (generic_branch_cost): New.
26751         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26752         (cortexa53_tunings): Likewise.
26753         (cortexa57_tunings): Likewise.
26754         (thunderx_tunings): Likewise.
26755         (xgene1_tunings): Likewise.
26756         (aarch64_branch_cost): Define.
26757         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26759 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26761         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26762         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26763         * config/i386/i386.md: Ditto.
26764         * config/i386/winnt.c: Ditto.
26766 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
26768         * doc/extend.texi (__atomic Builtins): Move implementation details
26769         to the end of the description, rewrite opening paragraphs, state
26770         difference with __sync builtins, state C11/C++11 assumptions,
26771         weaken itemized descriptions, add explanation of memory model
26772         behaviour, expand description of compare-exchange, simplify text.
26774 2015-05-05  Renlin Li  <renlin.li@arm.com>
26776         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
26778 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
26780         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
26781         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26782         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
26783         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26784         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
26785         * configure: Regenerate.
26786         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
26787         * doc/install.texi (aarch64*-*-*): Document new
26788         --enable-fix-cortex-a53-843419 option.
26789         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
26790         and -mno-fix-cortex-a53-843419 options.
26792 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
26794         PR target/65871
26795         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
26797 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
26799         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
26800         fix overactive TYPE_MIN_VALUE check and add FIXME for type
26801         compatibility problems.
26803 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
26805         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
26806         constraints.
26807         (cbranchsi4_reg): New.
26808         * config/microblaze/microblaze.c
26809         (microblaze_expand_conditional_branch_reg): New.
26810         * config/microblaze/microblaze-protos.h
26811         (microblaze_expand_conditional_branch_reg): New prototype.
26813 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
26815         * config/microblaze/microblaze.md (peephole2): New.
26817 2015-05-04  Jeff Law  <law@redhat.com>
26819         Revert:
26820         2015-05-04  Jeff Law  <law@redhat.com>
26822         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26823         simplifier to narrow arithmetic.
26824         * generic-match-head.c: (types_match, single_use): New functions.
26825         * gimple-match-head.c: (types_match, single_use): New functions.
26827 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26829         PR target/65987
26830         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
26831         (split_branches): Likewise.
26833 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
26835         * common.opt (fdelete-null-pointer-checks): Init to -1.
26836         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
26837         override flag_delete_null_pointer_checks default.
26838         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
26839         behavior re address zero.  Better document target-specific behavior.
26840         (-fisolate-errneous-paths-dereference): Mention relationship to
26841         -fdelete-null-pointer-checks.
26843 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
26845         PR tree-optimization/65984
26846         * ubsan.c: Include tree-cfg.h.
26847         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
26848         stmt_could_throw_p test, rename can_throw variable to ends_bb.
26850 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
26852         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
26853         to CONST_DOUBLE_P predicate.
26854         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
26855         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
26856         allow only operands that satisfy standard_sse_constant_p predicate.
26857         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
26858         to CONST_DOUBLE_P predicate.
26860 2015-05-04  Jeff Law  <law@redhat.com>
26862         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26863         simplifier to narrow arithmetic.
26864         * generic-match-head.c: (types_match, single_use): New functions.
26865         * gimple-match-head.c: (types_match, single_use): New functions.
26867 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
26869         * config/arm/arm.c: Restore bootstrap.
26871 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
26873         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
26874         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
26875         as CONST_WIDE_INT, not CONST_DOUBLE.
26876         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
26877         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
26878         (ix86_find_base_term): Do not check for CONST_DOUBLE.
26879         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
26880         (ix86_build_signbit_mask): Rewrite using wide ints.
26881         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
26882         (ix86_rtx_costs): Handle CONST_WIDE_INT.
26883         (find_constant): Ditto.
26884         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
26885         using gen_int_mode.
26886         * config/i386/predicates.md (x86_64_immediate_operand)
26887         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26888         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
26889         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26890         (const0_operand): Also match const_wide_int.
26891         (constm1_operand): Ditto.
26892         (const1_operand): Ditto.
26894 2015-05-04  Richard Biener  <rguenther@suse.de>
26896         PR tree-optimization/65965
26897         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
26898         store groups at gaps.
26900 2015-05-04  Richard Biener  <rguenther@suse.de>
26902         PR tree-optimization/65935
26903         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
26904         then make sure to apply that swapping to the IL.
26906 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
26908         * Makefile.in (PATCHLEVEL_c): New variable.
26909         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
26910         expand the same way as if DEVPHASE_c was non-empty.
26912 2015-05-04  Kai Tietz  <ktietz@redhat.com>
26914         PR target/65559
26915         * lto-wrapper.c (run_gcc): Open filename
26916         in binary-mode.
26918 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
26920         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
26921         sections up in file, to immediately after the Function Attributes
26922         section.
26924 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
26926         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
26928 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26930         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
26931         (insert_partition_copy_on_edge): Adjust.
26932         (insert_rtx_to_part_on_edge): Likewise.
26933         (insert_part_to_rtx_on_edge): Likewise.
26935 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26937         * function.c (set_return_jump_label): Change type of argument to
26938         rtx_insn *.
26939         * function.h (set_return_jump_label): Adjust.
26941 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26943         * reload.h (struct reg_equivs_t): Change type of init to
26944         rtx_insn *.
26945         * ira.c (fix_reg_equiv_init): Adjust.
26946         * reload1.c (eliminate_regs_1): Likewise.
26947         (init_eliminable_invariants): Likewise.
26949 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26951         * cselib.c (fp_setter_insn): Take a rtx_insn *.
26952         * cselib.h (fp_setter_insn): Adjust.
26954 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26956         * recog.c (struct validate_replace_src_data): Change type of
26957         insn field to rtx_insn *.
26958         (validate_replace_src_group): Change type of argument to rtx_insn *.
26959         * recog.h (validate_replace_src_group): Adjust.
26961 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26963         * haifa-sched.c: Change the type of some variables to rtx_insn *.
26964         * sched-deps.c: Likewise.
26965         * sched-int.h: Likewise.
26966         * sched-rgn.c: Likewise.
26967         * sel-sched.c: Likewise.
26969 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26971         to rtx_insn *.
26972         * config/i386/i386.c: Change the type of some arguments to
26973         rtx_insn *.
26974         * config/arm/arm.c: Likewise.
26976 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26978         * lra-constraints.c: Change type of some arguments to rtx_insn *.
26980 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26982         * regcprop.c (kill_autoinc_value): Change type of argument to
26983         rtx_insn *.
26985 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26987         * genrecog.c (print_subroutine): Adjust.
26988         * recog.c (get_bool_attr_mask_uncached): Likewise.
26989         * recog.h (struct recog_data_d): Change the type of insn to
26990         rtx_insn *.
26992 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26994         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
26996 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26998         * df-problems.c (df_set_note): Change type of argument to
26999         rtx_insn *.
27001 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27003         * builtins.c (expand_builtin_trap): Change type of local
27004         variable to rtx_insn *.
27005         (add_sched_insns_for_speculation): Likewise.
27006         (ix86_emit_save_regs): Likewise.
27007         (get_scratch_register_on_entry): Likewise.
27008         (ix86_emit_restore_reg_using_pop): Likewise.
27009         (ix86_emit_leave): Likewise.
27010         (ix86_emit_restore_regs_using_mov): Likewise.
27011         (ix86_expand_epilogue): Likewise.
27012         Likewise.
27013         (rl78_alloc_physical_registers_umul): Likewise.
27014         * cselib.c (discard_useless_locs): Likewise.
27015         (cselib_invalidate_regno): Likewise.
27016         (cselib_invalidate_mem): Likewise.
27017         * function.c (expand_function_start): Likewise.
27018         (emit_use_return_register_into_block): Likewise.
27019         * gcse.c: Likewise.
27020         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27021         * ifcvt.c (noce_get_alt_condition): Likewise.
27022         * loop-doloop.c (doloop_condition_get): Likewise.
27023         * lra-constraints.c (inherit_in_ebb): Likewise.
27024         * modulo-sched.c (sms_schedule_by_order): Likewise.
27025         * recog.c (next_insn_tests_no_inequality): Likewise.
27026         * reorg.c (emit_delay_sequence): Likewise.
27027         (update_reg_dead_notes): Likewise.
27028         (fix_reg_dead_note): Likewise.
27029         (fill_slots_from_thread): Likewise.
27030         (delete_computation): Likewise.
27032 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
27034         * doc/extend.texi (Variable Attributes): Add menu and proper
27035         @nodes to subsections.  Move Microsoft Windows attributes to
27036         their own subsection.
27037         (Type Attributes): Reorganize introduction to remove duplicate
27038         list of attributes.  Add menu and proper @nodes to subsections.
27039         Alphabetize the main table of common attributes.
27041 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27043         * match.pd: New simplification patterns.
27044         (x + (x & 1))  -> ((x + 1) & ~1)
27045         (x & ~(x & y)) -> ((x & ~y))
27046         (x | ~(x | y)) -> ((x | ~y))
27048 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27050         * target.def (attribute_table): Mention that struct attribute_spec
27051         is defined in tree-core.h rather than tree.h
27052         * doc/tm.texi: Regenerate.
27054 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
27056         * genrecog.c (test): Rename to rtx_test.  Update rest of file
27057         accordingly.
27059 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
27061         PR translation/65959
27062         * params.h (DEFPARAM): Rename msgid to nocmsgid.
27064 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27066         * config/aarch64/aarch64-protos.h (tune_params):
27067         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27068         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27069         Return value depending on target.
27070         (generic_tunings): Initialize new target settings.
27071         (cortexa53_tunings): Likewise.
27072         (cortexa57_tunings): Likewise.
27073         (thunderx_tunings): Likewise.
27074         (xgene1_tunings): Likewise.
27076 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27078         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27079         Make Cortex-A53 shift costs more accurate.
27081 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27083         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27084         UNSIGNED_FLOAT.
27086 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
27088         * config/aarch64/aarch64.c (aarch64_rtx_costs):
27089         Calculate cost of op0 and op1 in PLUS and MINUS cases.
27091 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27093         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27094         Add cost of op0 in the compare-with-fpzero case.
27096 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
27098         * builtins.c (fold_builtin_1): Remove spurious second
27099         semicolon.
27100         * cgraph.h (symtab_node::get_availability): Likewise.
27101         * opts.c (common_handle_option): Remove spurious second semicolon.
27102         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27103         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27105 2015-04-30  Caroline Tice  <cmtice@google.com>
27107         PR gcov-profile/65929
27108         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27109         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27110         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27111         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27112         * doc/tm.texi: Regenerate.
27113         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
27114         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27115         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
27116         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27118 2015-04-30  Marek Polacek  <polacek@redhat.com>
27120         * varasm.c (handle_cache_entry): Fix logic.
27122 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27124         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27125         (*extrsi5_insn_uxtw_alt): Likewise.
27126         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27127         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27128         operations.
27130 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27132         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27133         fabd in ABS case.
27135 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27137         * config/aarch64/aarch64.md
27138         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27139         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27140         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27141         appropriately.  Handle alternative EON form.
27143 2015-04-30  Renlin Li  <renlin.li@arm.com>
27145         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27146         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27148 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27150         PR ipa/65873
27151         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27152         -fstrict-aliasing boundaries.
27154 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27156         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27157         and [SU]MNEGL patterns.
27159 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27161         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27162         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27163         combined arithmetic-shift ops.  Properly handle all shift and extend
27164         operations that can occur in combination with PLUS/MINUS.
27165         Rename maybe_fma to compound_p.
27166         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27167         arithmetic and shift operations.
27169 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27171         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27172         rather than arith_shift cost when costing ADD/MINUS of an
27173         extended value.
27175 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
27177         PR lto/65948
27178         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27179         to itself.
27181 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
27183         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27184         are for the same position.
27186 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
27188         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
27189         vectorize_loops.
27190         (vectorize_loops): Use it.
27192 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27194         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27195         for aggregate types.
27196         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27197         type to be non_ODR.
27198         * tree.c (need_assembler_name_p): Compute mangled name for
27199         non-fundamental types and integer types.
27201 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
27203         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27204         manual swaps.
27205         * expr.c (expand_expr_real_2): Likewise.
27207 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27209         * tree.c (build_common_builtin_nodes): Do not build
27210         __builtin_alloca_with_align as equivalent of library alloca.
27212 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
27214         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27215         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27216         bugus variants.
27217         * tree.c: Include print-tree.h and ipa-utils.h
27218         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27219         (free_lang_data_in_cgraph): Call verify_type.
27220         (verify_type_variant): New function.
27221         (verify_type): New function.
27222         * tree.h (verify_type): Declare.
27224 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
27226         * config/mips/mips-cpus.def: (mips4): Change default processor
27227         from PROCESSOR_R8000 to PROCESSOR_R10000.
27229 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27231         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27232         la/jalr instead of jal.
27234 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
27236         PR target/65871
27237         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27238         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27239         (setcc+movzbl peephole2): Check also clobbered reg.
27240         (setcc+andl peephole2): Ditto.
27242 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
27244         PR libgomp/65099
27245         * config/nvptx/mkoffload.c (target_ilp32): New variable.
27246         (main): Set it depending on "-foffload-abi=[...]".
27247         (compile_native, main): Use it to pass "-m32" or "-m64" to the
27248         compiler.
27250 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27252         PR target/65770
27253         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27254         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27255         Flip lane index back at assembly time for bigendian.
27257 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
27259         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27260         * gimplify.c (gimplify_omp_workshare): Use it.
27262 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27264         * Makefile.in (build/genrecog.o): Depend on inchash.h.
27265         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27266         build/inchash.o
27267         * genrecog.c: Rewrite most of the code except for the third page.
27269 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27271         * inchash.h, inchash.c: Include bconfig.h for build objects.
27272         * Makefile.in (build/inchash.o): New rule.
27274 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
27276         PR target/65924
27277         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27278         number in type attribute expression.
27280 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
27282         * loop-iv.c (canon_condition): Generalize to all types of integer
27283         constant.
27285 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
27287         * gimple-walk.c: Prune duplicate or unneeded includes.
27288         (walk_gimple_asm): Only call parse_input_constraint or
27289         parse_output_constraint if their findings are used.
27290         Honour parse_input_constraint and parse_output_constraint
27291         result.
27293 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27295         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27297 2015-04-29  Tom de Vries  <tom@codesourcery.com>
27299         PR tree-optimization/65893
27300         * passes.def (pass_all_optimizations): Move pass_stdarg to after
27301         pass_dce.
27303 2015-04-29  Richard Biener  <rguenther@suse.de>
27305         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27306         compute GROUP_SIZE for basic-block SLP.
27307         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27308         take into account gaps.
27309         (vect_get_mask_element): Properly reject references to previous
27310         vectors.
27311         (vect_transform_slp_perm_load): Likewise.
27313 2015-04-29  Christian Bruel  <christian.bruel@st.com>
27315         PR target/64835
27316         * config/i386/i386.c (ix86_default_align): New function.
27317         (ix86_override_options_after_change): Call ix86_default_align.
27318         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27319         (ix86_override_options_after_change): New function.
27321 2015-04-28  Jeff Law  <law@redhat.com>
27323         * tree-ssa-dom.c (record_equality); Fix comment typos.
27325 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27327         PR tree-optimization/65887
27328         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27330 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
27332         * doc/extend.texi (Declaring Attributes of Functions): Split into
27333         subsections by target.  Alphabetize the table of common attributes.
27334         Rewrite some of the introductory text to reflect the new structure.
27335         Update some cross-references to point to the new subsections.
27336         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
27337         duplicate copies in the discussion of function, label, and type
27338         attributes.
27340 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
27342         PR bootstrap/65910
27343         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27345 2015-04-28  Jason Merrill  <jason@redhat.com>
27347         PR c++/65734
27348         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27349         (finalize_type_size): Respect TYPE_USER_ALIGN.
27350         (layout_type) [ARRAY_TYPE]: Likewise.
27352 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
27354         * config/arm/arm.md (*arm_movt): Fix type attribute.
27355         (*cmpsi_shiftsi): Likewise.
27356         (*cmpsi_shiftsi_swp): Likewise.
27357         (*movsicc_insn): Likewise.
27358         (*cond_move): Likewise.
27359         (*if_plus_move): Likewise.
27360         (*if_move_plus): Likewise.
27361         (*if_arith_move): Likewise.
27362         (*if_move_arith): Likewise.
27363         (*if_shift_move): Likewise.
27364         (*if_move_shift): Likewise.
27365         (*arm_movtas_ze): Likewise.
27366         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27367         redundancy and type attribute.
27368         (*thumb2_movsi_insn): Fix type attribute.
27369         (*thumb2_addsi_short): Likewise.
27370         (thumb2_addsi3_compare0): Likewise.
27371         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27372         attributes accordingly.
27374 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
27376         PR other/65911
27377         * function.c (pad_to_arg_alignment): Add parentheses.
27379 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
27381         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27382         libgcc/config/frv/elf-lib.h.
27384 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27386         * tree-call-cdce.c: Fix example in header comment.
27388 2015-04-28  Richard Biener  <rguenther@suse.de>
27390         PR tree-optimization/62283
27391         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27392         fails fatally and we are vectorizing a basic-block simply
27393         cause the child to be constructed piecewise.
27394         (vect_analyze_slp_cost_1): Adjust.
27395         (vect_detect_hybrid_slp_stmts): Likewise.
27396         (vect_bb_slp_scalar_cost): Likewise.
27397         (vect_get_constant_vectors): For piecewise constructed
27398         constants place them after the last def.
27399         (vect_get_slp_defs): Adjust.
27400         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27401         externals for basic-block vectorization.
27403 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27405         PR target/63503
27406         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27407         aarch64-*-*.
27408         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27409         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27410         (AARCH64_TUNE_FMA_STEERING): Likewise.
27411         * config/aarch64/aarch64-cores.def: Set
27412         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27413         FMUL/FMADD instructions.
27414         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27415         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
27416         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27417         * config/aarch64/cortex-a57-fma-steering.h: New file.
27418         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27420 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
27422         * gensupport.c (std_preds): Add missing codes to address_operand entry.
27424 2015-04-28  Richard Biener  <rguenther@suse.de>
27426         PR tree-optimization/65851
27427         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27428         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
27429         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
27430         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27431         (ccp_visit_phi_node): Adjust.
27432         (evaluate_stmt): For simplifications to SSA names return its
27433         lattice value if that isn't VARYING.  Return immediately when
27434         simplified to a constant.
27435         (visit_assignment): Adjust.
27436         (ccp_visit_stmt): Likewise.
27438 2015-04-28  Tom de Vries  <tom@codesourcery.com>
27440         PR tree-optimization/65818
27441         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27442         evaluated.
27444 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27446         * calls.c (save_fixed_argument_area): Don't check
27447         ARGS_GROW_DOWNWARD with the preprocessor.
27448         (restore_fixed_argument_area): Likewise.
27449         (mem_overlaps_already_clobbered_arg_p): Likewise.
27450         (check_sibcall_argument_overlap): Likewise.
27451         (expand_call): Likewise.
27452         (emit_library_call_value_1): Likewise.
27453         (store_one_arg): Likewise.
27454         * function.c (assign_parms): Likewise.
27455         (locate_and_pad_parm): Likewise.
27456         (pad_to_arg_alignment): Likewise.
27457         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27459 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27461         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27462         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27463         * calls.c (save_fixed_argument_area): Don't chekc if
27464         ARGS_GROW_DOWNWARD is defined.
27465         (restore_fixed_argument_area): Likewise.
27466         (mem_overlaps_already_clobbered_arg_p): Likewise.
27467         (check_sibcall_argument_overlap): Likewise.
27468         (expand_call): Likewise.
27469         (emit_library_call_value_1): Likewise.
27470         (store_one_arg): Likewise.
27471         * function.c (assign_parms): Likewise.
27472         (locate_and_pad_parm): Likewise.
27473         (pad_to_arg_alignment): Likewise.
27474         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27476 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27478         * defaults.h (gen_epilogue): New function.
27479         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27480         defined.
27481         * cfgrtl.c (cfg_layout_finalize): Likewise.
27482         * df-scan.c: Likewise.
27483         * function.c (thread_prologue_and_epilogue_insns): Likewise.
27484         (reposition_prologue_and_epilogue_notes): Likewise.
27485         * reorg.c (find_end_label): Likewise.
27486         * toplev.c: Likewise.
27488 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27490         * bb-reorder.c (HAVE_return): Don't check if its undefined.
27491         * defaults.h (gen_simple_return): New function.
27492         (gen_simple_return): Likewise.
27493         (HAVE_return): Add default definition to false.
27494         (HAVE_simple_return): Likewise.
27495         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27496         HAVE_return and HAVE_simple_return are defined.
27497         * function.c (gen_return_pattern): Likewise.
27498         (convert_jumps_to_returns): Likewise.
27499         (thread_prologue_and_epilogue_insns): Likewise.
27500         * reorg.c (find_end_label): Likewise.
27501         (dbr_schedule): Likewise.
27502         * shrink-wrap.c: Likewise.
27503         * shrink-wrap.h: Likewise.
27505 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27507         * defaults.h (EPILOGUE_USES): Add default definition of false.
27508         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27509         * resource.c (init_resource_info): Likewise.
27511 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27513         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27514         to false.
27515         * dwarf2out.c (field_byte_offset): REmove check if
27516         PCC_BITFIELD_TYPE_MATTERS is defined.
27517         * stor-layout.c (layout_decl): Likewise.
27518         (update_alignment_for_field): Likewise.
27519         (place_field): Likewise.
27521 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27523         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27524         true.
27525         * regrename.c (check_new_reg_p): Remove check if
27526         HARD_REGNO_RENAME_OK is defined.
27527         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27529 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27531         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27532         * cse.c (fold_rtx): Likewise.
27533         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27534         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27535         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27536         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27537         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27538         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27539         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27540         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27541         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27542         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27543         * Likewise.
27544         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27545         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27546         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27547         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27548         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27549         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27550         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27551         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27552         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27553         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27554         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27555         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27556         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27557         * doc/tm.texi: Regenerate.
27558         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27559         either true or false.
27561 2015-04-27  Jeff Law  <law@redhat.com>
27563         PR tree-optimization/65217
27564         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27565         of them has a single use, make sure it is the LHS of the implied
27566         copy.
27568 2015-04-28  Alan Modra  <amodra@gmail.com>
27570         PR target/65810
27571         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27572         (offsettable_ok_by_alignment): Use minimum of decl and toc
27573         pointer alignment.  Replace dead code with assertion.
27574         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
27575         case if size exceeds toc pointer alignment.
27576         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27577         (rs6000_emit_move): Likewise.
27578         * configure.ac: Add linker toc pointer alignment check.
27579         * configure: Regenerate.
27580         * config.in: Regenerate.
27582 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
27584         * config.gcc: Add h8300-*-linux.
27585         * config/h8300/linux.h: New.
27586         * config/h8300/t-linux: New.
27587         * config/h8300/h8300.c (h8300_option_override): Normal mode
27588         is not supported for h8300-*-linux.
27589         (h8300_file_start): Target priority change.
27590         (get_shift_alg): Likewise.
27591         (h8300_shift_need_scratch_p): Likewise.
27592         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27593         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27595 2015-04-27  Caroline Tice  <cmtice@google.com>
27597         * final.c (final_scan_insn):  Output cold_function_name as function
27598         type.
27599         * varasm.c (cold_function_name):  Make global.
27600         (assemble_start_function):  Re-set cold_function_name.
27601         (assemble_end_function): Output cold partition size.
27602         * varasm.h (cold_function_name):  Declare global.
27604 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
27606         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27607         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27608         constraint.
27609         (*movxi_internal_avx512f): Ditto.
27610         (define_split): Check for xmm16+, when splitting scalar float_extend.
27611         (*extendsfdf2_mixed): Use "v" constraint.
27612         (define_split): Check for xmm16+, when splitting scalar float_truncate.
27613         (*truncdfsf_fast_sse): Use "v" constraint.
27614         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27615         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27616         (define_peephole2): Check for xmm16+, when converting scalar
27617         float_truncate.
27618         (define_peephole2): Check for xmm16+, when converting scalar
27619         float_extend.
27620         (*fop_<mode>_comm_mixed): Use "v" constraint.
27621         (*fop_<mode>_comm_sse): Ditto.
27622         (*fop_<mode>_1_mixed): Ditto.
27623         (*sqrt<mode>2_sse): Ditto.
27624         (*ieee_s<ieee_maxmin><mode>3): Ditto.
27626 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27628         * combine.c (simplify_if_then_else): Use std::swap instead
27629         of manually swapping.
27630         (known_cond): Likewise.
27631         (simplify_comparison): Likewise.
27633 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
27635         PR target/64579
27636         * config/rs6000/htm.md: Remove all define_expands.
27637         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27638         UNSPECV_HTM_TABORTWCI): Remove.
27639         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27640         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27641         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27642         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27643         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27644         tabortwci_internal): Remove define_insns.
27645         (tabort<wd>c, tabort<wd>ci): New define_insns.
27646         (tabort): Use gpc_reg_operand.
27647         (tcheck): Remove operand.
27648         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27649         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27650         expected value.
27651         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27652         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
27653         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27654         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27655         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27656         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27657         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27658         (tcheck): Remove builtin argument.
27659         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27660         not TARGET_64BIT.
27661         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
27662         tabortdc and tabortdci builtins when not in 64-bit mode.
27663         Modify code to handle the loss of the HTM define_expands.
27664         Emit code to copy the CR register to TARGET.
27665         (htm_init_builtins): Modify code to handle the loss of the HTM
27666         define_expands.
27667         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27668         (RS6000_BTC_64BIT): Likewise.
27669         (RS6000_BTC_CR): New macro.
27670         * doc/extend.texi: Update documentation for htm builtins.
27672 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27674         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27675         of manually swapping.
27676         (simplify_associative_operation): Likewise.
27677         (simplify_binary_operation): Likewise.
27678         (simplify_plus_minus): Likewise.
27679         (simplify_relational_operation): Likewise.
27680         (simplify_ternary_operation): Likewise.
27682 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
27684         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27685         (xs_hi_nonmemory_operand): Remove error.
27686         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27687         general_operand rather than xs_hi_general_operand.
27689 2015-04-27  Richard Biener  <rguenther@suse.de>
27691         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27692         (record_equivalences_from_stmt): Valueize rhs.
27693         (record_equality): Canonicalize x and y order via
27694         tree_swap_operands_p.  Do not swap operands for same loop depth.
27696 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
27698         PR target/65296
27699         PR target/65895
27700         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27701         Add hint how to use own spec file.
27703 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
27705         PR tree-optimization/65875
27706         * tree-vrp.c (update_value_range): If in is_new case setting
27707         old_vr to VR_VARYING, also set new_vr to it.  Remove
27708         old_vr->type == VR_VARYING test.
27709         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27710         SSA_PROP_INTERESTING if update_value_range returned true,
27711         but new range is VR_VARYING.
27713 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27715         * combine.c (sign_extend_short_imm): New.
27716         (set_nonzero_bits_and_sign_copies): Use above new function for sign
27717         extension of src short immediate.
27718         (reg_nonzero_bits_for_combine): Likewise for tem.
27720 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27722         * stor-layout.c (self_referential_component_ref_p): New predicate.
27723         (copy_self_referential_tree_r): Use it.
27724         (self_referential_size): Punt for simple operations directly involving
27725         self-referential component references.
27726         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27728 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27730         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27732 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
27734         * vec.h (vec): Make splice arguments const.  Update definitions
27735         accordingly.
27737 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
27739         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27740         alternatives.
27742 2015-04-26  Tom de Vries  <tom@codesourcery.com>
27744         PR tree-optimization/65826
27745         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27747 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
27749         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27750         (*madd3<mode>): Ditto.
27751         (*msub4<mode>): Ditto.
27752         (*msub3<mode>): Ditto.
27753         (*nmadd4<mode>): Ditto.
27754         (*nmadd3<mode>): Ditto.
27755         (*nmadd4<mode>_fastmath): Ditto.
27756         (*nmadd3<mode>_fastmath): Ditto.
27757         (*nmsub4<mode>): Ditto.
27758         (*nmsub3<mode>): Ditto.
27759         (*nmsub4<mode>_fastmath): Ditto.
27760         (*nmsub3<mode>_fastmath): Ditto.
27762 2015-04-24  Jason Merrill  <jason@redhat.com>
27764         PR c++/50800
27765         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27766         down when building TYPE_CANONICAL.
27767         (build_pointer_type_for_mode): Likewise.
27769 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
27771         * genrecog.c (validate_pattern): Check matching constraint refers
27772         to a lower numbered operand.
27774 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27776         PR target/65849
27777         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
27778         save to independent variables use the Save attribute.  This will
27779         allow these options to be modified with the #pragma/attribute
27780         target support.
27781         (-mallow-movmisalign): Likewise.
27782         (-mallow-df-permute): Likewise.
27783         (-msched-groups): Likewise.
27784         (-malways-hint): Likewise.
27785         (-malign-branch-targets): Likewise.
27786         (-mvectorize-builtins): Likewise.
27787         (-msave-toc-indirect): Likewise.
27789         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
27790         can be set via the #pragma/attribute target support.
27791         (rs6000_opt_vars): Likewise.
27792         (rs6000_inner_target_options): If VSX was set, also set
27793         -mno-avoid-indexed-addresses.
27795 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27797         * config/arm/iterators.md (shiftable_ops): Rename to...
27798         (SHIFTABLE_OPS): ... This.  Update use in comments.
27799         (ior_xor): Rename to...
27800         (IOR_XOR): ... This.
27801         (vqh_ops): Rename to...
27802         (VQH_OPS): ... This.
27803         (vqhs_ops): Rename to...
27804         (VQHS_OPS): ... This.
27805         (rshifts): Rename to...
27806         (RSHIFTS): ... This.
27807         (returns): Rename to...
27808         (RETURNS): ... This.
27809         * config/arm/arm.md: Update uses of the above.
27810         * config/arm/neon.md: Likewise.
27812 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27814         * config.host (case ${host}): Add aarch64*-*-linux case.
27815         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
27816         fields to all the cores.
27817         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
27818         Add MCPU_MTUNE_NATIVE_SPECS.
27819         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
27820         field to all extensions.
27821         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
27822         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
27823         Adjust definition of AARCH64_OPT_EXTENSION.
27824         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
27825         (MCPU_MTUNE_NATIVE_SPECS): Define.
27826         * config/aarch64/driver-aarch64.c: New file.
27827         * config/aarch64/x-arch64: New file.
27828         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
27829         -mtune and -march.
27831 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27832             Wei Mi  <wmi@google.com>
27834         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
27835         * config/i386/i386.c (extract_base_offset_in_addr): New function.
27836         (ix86_operands_ok_for_move_multiple): Ditto.
27837         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
27838         (movlpd/movhpd to movupd peephole2): Ditto.
27840 2015-04-24  Marek Polacek  <polacek@redhat.com>
27842         PR c/61534
27843         * input.h (from_macro_expansion_at): Define.
27845         PR c/63357
27846         * doc/invoke.texi: Update description of -Wlogical-op.
27848 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27850         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
27851         ternary operator in fprintf and harmonize spacing.
27853 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27855         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
27856         Mark operand1 commutative.
27858 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
27860         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
27861         input operands in memory.
27862         (*vec_concatv2si_sse4_1): Ditto.
27863         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
27864         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
27865         register_operand.
27866         (vec_extract_hi_v32hi): Ditto.
27867         (vec_extract_hi_v64hi): Ditto.
27868         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
27870 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27871             Steven Bosscher <steven@gcc.gnu.org>
27873         PR rtl-optimization/34503
27874         * cprop.c (cprop_reg_p): New.
27875         (hash_scan_set): Use above function to check if register can be
27876         propagated.
27877         (find_avail_set): Return up to two sets, one whose source is a
27878         register and one whose source is a constant.  Sets are returned in an
27879         array passed as parameter rather than as a return value.
27880         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
27881         sets returned by find_avail_set, starting with the one whose source is
27882         a constant. Use cprop_reg_p to check if register can be propagated.
27883         (do_local_cprop): Use cprop_reg_p to check if register can be
27884         propagated.
27885         (implicit_set_cond_p): Likewise.
27887 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27889         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
27890         (sem_function::equals): IGNORED_NODES parameter is now unused;
27891         update call of equals_private.
27892         (sem_function::equals_private): Do not call equals_wpa; skip
27893         gimple body matching if there is no body.
27894         (sem_function::init): Add logic to hash tthunk info.
27895         (sem_function::parse): Also parse thunks.
27896         * ipa-icf.h (equals_private): Update declaration.
27898 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27900         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
27901         asterisk from name so this can be generated directly.
27902         (*altivec_stvx_<mode>_internal): Likewise.
27903         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
27904         that this is never called during or after reload/lra.
27905         (rs6000_frame_related): Remove split_reg
27906         argument and logic that references it.
27907         (emit_frame_save): Remove last parameter from call to
27908         rs6000_frame_related.
27909         (rs6000_emit_prologue): Remove last parameter from eight calls to
27910         rs6000_frame_related.  Force generation of stvx instruction for
27911         Altivec register saves.  Remove split_reg handling, which is no
27912         longer needed.
27913         (rs6000_emit_epilogue):  Force generation of lvx instruction for
27914         Altivec register restores.
27916 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27918         * config/rs6000/rs6000.opt (mcrypto): Change option description to
27919         match category changes in ISA 2.07B.
27921 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27923         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
27924         iterators.
27925         (cmp_op, cmp_type): New code attributes.
27926         (NEON_VCMP, NEON_VACMP): New int iterators.
27927         (cmp_op_unsp): New int attribute.
27928         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
27929         (neon_vceq<mode>): Delete.
27930         (neon_vc<cmp_op><mode>_insn): New pattern.
27931         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
27932         (neon_vcgeu<mode>): Delete.
27933         (neon_vcle<mode>): Likewise.
27934         (neon_vclt<mode>: Likewise.
27935         (neon_vcage<mode>): Likewise.
27936         (neon_vcagt<mode>): Likewise.
27937         (neon_vca<cmp_op><mode>): New define_expand.
27938         (neon_vca<cmp_op><mode>_insn): New pattern.
27939         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
27941 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27943         * tree.h (attribute_value_equal): Declare.
27944         * tree.c (attribute_value_equal): Export.
27946 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27948         * ipa-icf.c (sem_item::compare_attributes): New function.
27949         (sem_item::compare_referenced_symbol_properties): Compare variable
27950         attributes.
27951         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
27952         (sem_function::param_used_p): New function.
27953         (sem_function::equals_wpa): Fix attribute comparsion; match
27954         parameter type codes; do not compare paremter flags when
27955         they are not used; compare edge flags; compare indirect calls.
27956         (sem_item::update_hash_by_addr_refs): Hash reference type.
27957         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
27958         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
27959         reference use type.
27960         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
27961         * ipa-icf.h (compare_attributes, param_used_p): Declare.
27963 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
27965         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
27966         cleanup.
27967         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
27968         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
27969         (sem_item::compare_referenced_symbol_properties): New.
27970         (sem_item::hash_referenced_symbol_properties): New.
27971         (sem_item::compare_cgraph_references): Rename to ...
27972         (sem_item::compare_symbol_references): ... this one; use
27973         compare_referenced_symbol_properties.
27974         (sem_function::equals_wpa): Do not compare
27975         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
27976         DECL_IS_OPERATOR_NEW; compare pointer sizes.
27977         (sem_item::update_hash_by_addr_refs): Call
27978         hash_referenced_symbol_properties.
27979         (sem_item::update_hash_by_local_refs): Cleanup.
27980         (sem_function::merge): Do not mix up symbol properties.
27981         (sem_variable::equals_wpa): Use compare_symbol_references.
27982         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
27983         (sem_item::hash_referenced_symbol_properties): New.
27984         (sem_item::compare_symbol_references): New.
27985         (sem_item::compare_cgraph_references): Remove.
27987 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
27989         PR target/26702
27990         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
27991         Emit size of local.
27993 2015-04-23  Nick Clifton  <nickc@redhat.com>
27995         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
27996         ATTRIBUTE_UNUSED to x parameter.
27997         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
27999 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28001         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28002         TARGET_CRYPTO to TARGET_P8_VECTOR>
28003         (crypto_vpermxor_<mode>): Likewise.
28004         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28005         (BU_CRYPTO_3A): Likewise.
28006         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28007         (BU_CRYPTO_OVERLOAD_3A): New #define.
28008         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28009         (VPMSUMH): Likewise.
28010         (VPMSUMW): Likewise.
28011         (VPMSUMD): Likewise.
28012         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28013         (VPERMXOR_V4SI): Likewise.
28014         (VPERMXOR_V8HI): Likewise.
28015         (VPERMXOR_V16QI): Likewise.
28016         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28017         BU_CRYPTO_OVERLOAD_2A.
28018         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28019         BU_CRYPTO_OVERLOAD_3A.
28020         * config/rs6000/rs6000.opt (mcrypto): Change description of
28021         option.
28023 2015-04-23  Richard Biener  <rguenther@suse.de>
28025         * passes.def: Remove copy propagation passes run directly after CCP.
28026         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28027         SSA names.
28028         (ccp_visit_phi_node): Rework to handle first executable edge
28029         specially.
28031 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
28033         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28034         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28035         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28036         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28037         (thumb_legimitimize_reload_address): Remove.
28038         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28039         Remove.
28040         (thumb_legimitimize_reload_address): Remove.
28042 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28044         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28046 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28048         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28049         MAX_LDM_STM_OPS.
28050         (store_multiple): Likewise.
28052 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28054         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28055         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28056         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28057         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28058         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28059         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28060         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28061         Specify issue_rate value.
28062         (arm_issue_rate): Look up issue rate from tuning structs. Remove
28063         large switch statement.
28064         (arm_marvell_pj4_tune): New struct.
28065         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28066         struct.
28068 2015-04-23  Richard Biener  <rguenther@suse.de>
28070         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28071         (vect_find_last_store_in_slp_instance): Rename to ...
28072         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28073         (vect_analyze_slp_cost_1): Use vector_load for constant defs
28074         and vec_construct for external defs when estimating prologue cost.
28075         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28076         Compute costs here only when vectorizing loops.
28077         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28078         have been determined.
28079         (vect_schedule_slp_instance): Simplify vectorized code placement
28080         and prepare for in-BB external defs.
28081         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28082         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28083         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28084         guard.
28085         (vect_model_load_cost): Likewise.
28086         (vectorizable_store): Instead add it here.
28087         (vectorizable_load): Likewise.
28088         (vect_is_simple_use): Dump def type textually.
28090 2015-04-23  Richard Biener  <rguenther@suse.de>
28092         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28093         * cfgloop.c (verify_loop_structure): Verify the root loop node.
28094         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28095         instead of get_eh_region_from_lp_number.
28096         * loop-init.c (fix_loop_structure): If we removed a loop, reset
28097         the SCEV cache.
28099 2015-04-23  Anton Blanchard  <anton@samba.org>
28101         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28102         need for -mprofile-kernel to save LR to stack.
28104 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28106         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28107         adjustments.
28108         (insn_is_swappable_p): Return 1 for a convert from double to
28109         single precision when all of its uses are splats of BE element
28110         zero.
28112 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
28114         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28116 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28118         PR target/65456
28119         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
28120         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28121         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28122         option.
28123         (rs6000_builtin_mask_for_load): Return 0 for targets with
28124         efficient unaligned VSX accesses so that the vectorizer will use
28125         direct unaligned loads.
28126         (rs6000_builtin_support_vector_misalignment): Always return true
28127         for targets with efficient unaligned VSX accesses.
28128         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28129         stores on targets with efficient unaligned VSX accesses is almost
28130         always the same as the cost of an aligned load or store, so model
28131         it that way.
28132         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28133         unaligned vectors if we have efficient unaligned VSX accesses.
28134         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28135         undocumented option.
28137 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28139         Revert:
28140         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28142         * config.gcc (LIBC_MUSL): New tm_defines macro.
28143         * config/linux.h (OPTION_MUSL): Define.
28144         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28145         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28146         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28148         * config/linux.opt (mmusl): New option.
28149         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28150         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28152         * configure: Regenerate.
28154 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
28156         * config.gcc (LIBC_MUSL): New tm_defines macro.
28157         * config/linux.h (OPTION_MUSL): Define.
28158         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28159         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28160         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28162         * config/linux.opt (mmusl): New option.
28163         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28164         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28166         * configure: Regenerate.
28168 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
28170         * doc/invoke.texi (-fsanitize-sections): Update description.
28171         * asan.c (set_sanitized_sections): Parse incoming arg.
28172         (section_sanitized_p): Support wildcards.
28174 2015-04-22  Tom de Vries  <tom@codesourcery.com>
28176         PR tree-optimization/65823
28177         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28178         equality between ap_copy and ap.
28180 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28182         PR target/47098
28183         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28185 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28187         PR target/47122
28188         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28190 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28192         PR target/55144
28193         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28194         remove already contained t-files.
28196 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28198         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28199         Remove unneeded forward declarations.
28200         (suitable_for_tail_call_opt_p): Commentary typo fix.
28202 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28204         * varasm.c (emit_bss): Remove redundant guard.
28206 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28208         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28210 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28212         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28214 2015-04-22  Hale Wang  <hale.wang@arm.com>
28215             Terry Guo  <terry.guo@arm.com>
28217         PR rtl-optimization/64818
28218         * combine.c (can_combine_p): Don't combine user-specified
28219         register if it is in an asm input.
28221 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
28223         PR ipa/65076
28224         * passes.def (early_optimizations): Add pass_dse.
28226 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28228         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28229         * reorg.c (redundant_insn): Remove ifdef
28230         INSN_REFERENCES_ARE_DELAYED.
28231         * resource.c (mark_referenced_resources): Likewise.
28233 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28235         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28236         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28237         * resource.c (mark_set_resources): Likewise.
28239 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28241         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28242         * cfgcleanup.c (flow_find_cross_jump): Likewise.
28243         (flow_find_head_matching_sequence): Likewise.
28244         (try_head_merge_bb): Likewise.
28245         * combine.c (can_combine_p): Likewise.
28246         (try_combine): Likewise.
28247         (distribute_notes): Likewise.
28248         * df-problems.c (can_move_insns_across): Likewise.
28249         * final.c (final): Likewise.
28250         * gcse.c (insert_insn_end_basic_block): Likewise.
28251         * ira.c (find_moveable_pseudos): Likewise.
28252         * reorg.c (try_merge_delay_insns): Likewise.
28253         (fill_simple_delay_slots): Likewise.
28254         (fill_slots_from_thread): Likewise.
28255         * sched-deps.c (sched_analyze_2): Likewise.
28257 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28259         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28260         PIC_OFFSET_TABLE_REGNUM.
28262 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28264         * alias.c (init_alias_target): Remove ifdef
28265         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28266         * df-scan.c (df_insn_refs_collect): Likewise.
28267         (df_get_regular_block_artificial_uses): Likewise.
28268         (df_get_eh_block_artificial_uses): Likewise.
28269         (df_get_entry_block_def_set): Likewise.
28270         (df_get_exit_block_use_set): Likewise.
28271         * emit-rtl.c (gen_rtx_REG): Likewise.
28272         * ira.c (ira_setup_eliminable_regset): Likewise.
28273         * reginfo.c (init_reg_sets_1): Likewise.
28274         * regrename.c (rename_chains): Likewise.
28275         * reload1.c (reload): Likewise.
28276         (eliminate_regs_in_insn): Likewise.
28277         * resource.c (mark_referenced_resources): Likewise.
28278         (init_resource_info): Likewise.
28280 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28282         * defaults.h (MASK_RETURN_ADDR): New definition.
28283         * except.c (expand_builtin_extract_return_addr): Remove ifdef
28284         MASK_RETURN_ADDR.
28286 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28288         * defaults.h (RETURN_ADDR_OFFSET): New definition.
28289         * except.c (expand_builtin_extract_return_addr): Remove ifdef
28290         RETURN_ADDR_OFFSET.
28291         (expand_builtin_frob_return_addr): Likewise.
28293 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28295         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28296         (try_redirect_by_replacing_jump): Likewise.
28297         (rtl_tidy_fallthru_edge): Likewise.
28298         * combine.c (insn_a_feeds_b): Likewise.
28299         (find_split_point): Likewise.
28300         (simplify_set): Likewise.
28301         * cprop.c (cprop_jump): Likewise.
28302         * cse.c (cse_extended_basic_block): Likewise.
28303         * df-problems.c (can_move_insns_across): Likewise.
28304         * function.c (emit_use_return_register_into_block): Likewise.
28305         * haifa-sched.c (sched_init): Likewise.
28306         * ira.c (find_moveable_pseudos): Likewise.
28307         * loop-invariant.c (find_invariant_insn): Likewise.
28308         * lra-constraints.c (curr_insn_transform): Likewise.
28309         * postreload.c (reload_combine_recognize_const_pattern):
28310         * Likewise.
28311         * reload.c (find_reloads): Likewise.
28312         * reorg.c (delete_scheduled_jump): Likewise.
28313         (steal_delay_list_from_target): Likewise.
28314         (steal_delay_list_from_fallthrough): Likewise.
28315         (redundant_insn): Likewise.
28316         (fill_simple_delay_slots): Likewise.
28317         (fill_slots_from_thread): Likewise.
28318         (delete_computation): Likewise.
28319         * sched-rgn.c (add_branch_dependences): Likewise.
28321 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28323         * genconfig.c (main): Always define HAVE_cc0.
28324         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28325         HAVE_cc0.
28326         * cfgcleanup.c (flow_find_cross_jump): Likewise.
28327         (flow_find_head_matching_sequence): Likewise.
28328         (try_head_merge_bb): Likewise.
28329         * cfgrtl.c (rtl_merge_blocks): Likewise.
28330         (try_redirect_by_replacing_jump): Likewise.
28331         (rtl_tidy_fallthru_edge): Likewise.
28332         * combine.c (do_SUBST_MODE): Likewise.
28333         (insn_a_feeds_b): Likewise.
28334         (combine_instructions): Likewise.
28335         (can_combine_p): Likewise.
28336         (try_combine): Likewise.
28337         (find_split_point): Likewise.
28338         (subst): Likewise.
28339         (simplify_set): Likewise.
28340         (distribute_notes): Likewise.
28341         * cprop.c (cprop_jump): Likewise.
28342         * cse.c (cse_extended_basic_block): Likewise.
28343         * df-problems.c (can_move_insns_across): Likewise.
28344         * final.c (final): Likewise.
28345         (final_scan_insn): Likewise.
28346         * function.c (emit_use_return_register_into_block): Likewise.
28347         * gcse.c (insert_insn_end_basic_block): Likewise.
28348         * haifa-sched.c (sched_init): Likewise.
28349         * ira.c (find_moveable_pseudos): Likewise.
28350         * loop-invariant.c (find_invariant_insn): Likewise.
28351         * lra-constraints.c (curr_insn_transform): Likewise.
28352         * optabs.c (prepare_cmp_insn): Likewise.
28353         * postreload.c (reload_combine_recognize_const_pattern):
28354         * Likewise.
28355         * reload.c (find_reloads): Likewise.
28356         (find_reloads_address_1): Likewise.
28357         * reorg.c (delete_scheduled_jump): Likewise.
28358         (steal_delay_list_from_target): Likewise.
28359         (steal_delay_list_from_fallthrough): Likewise.
28360         (try_merge_delay_insns): Likewise.
28361         (redundant_insn): Likewise.
28362         (fill_simple_delay_slots): Likewise.
28363         (fill_slots_from_thread): Likewise.
28364         (delete_computation): Likewise.
28365         (relax_delay_slots): Likewise.
28366         * sched-deps.c (sched_analyze_2): Likewise.
28367         * sched-rgn.c (add_branch_dependences): Likewise.
28369 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28371         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28372         that is trivially ded on non cc0 targets.
28373         (simplify_set): Likewise.
28374         (mark_used_regs_combine): Likewise.
28375         * cse.c (new_basic_block): Likewise.
28376         (fold_rtx): Likewise.
28377         (cse_insn): Likewise.
28378         (cse_extended_basic_block): Likewise.
28379         (set_live_p): Likewise.
28380         * rtlanal.c (canonicalize_condition): Likewise.
28381         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28383 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28385         * conditions.h: Define macros even if HAVE_cc0 is undefined.
28386         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28387         * final.c: Likewise.
28388         * jump.c: Likewise.
28389         * recog.c: Likewise.
28390         * recog.h: Declare functions even when HAVE_cc0 is undefined.
28391         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28393 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28395         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28396         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28397         * builtins.c (expand_builtin): Remove check if
28398         EH_RETURN_DATA_REGNO is defined.
28399         * df-scan.c (df_bb_refs_collect): Likewise.
28400         (df_get_exit_block_use_set): Likewise.
28401         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28402         * ira-lives.c (process_bb_node_lives): Likewise.
28403         * lra-lives.c (process_bb_lives): Likewise.
28405 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28407         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28408         FIRST_PSEUDO_REG): New.
28409         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28410         (ARG_POINTER_REGNUM): Define to ARGP_REG.
28411         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28412         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28413         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28414         (FIRST_INT_REG): New.
28415         (LAST_INT_REG): New.
28416         (FIRST_*_REG): Define using *_REG.
28417         (LAST_*_REG): Ditto.
28418         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28419         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28420         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28422 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28424         * expmed.c: (synth_mult): Only assume overlapping
28425         shift with previous steps in alg_sub_t_m2 case.
28427 2015-04-21  Richard Biener  <rguenther@suse.de>
28429         PR tree-optimization/65650
28430         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28431         transitions involving copies.
28432         (set_lattice_value): Adjust for copy lattice state.
28433         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28434         if that doesn't dominate the merge point.
28435         (bit_value_unop): Adjust what we treat as varying mask.
28436         (bit_value_binop): Likewise.
28437         (bit_value_assume_aligned): Likewise.
28438         (evaluate_stmt): When we simplified to a SSA name record a copy
28439         instead of dropping to varying.
28440         (visit_assignment): Simplify.
28442         * gimple-match.h (gimple_simplify): Add another callback.
28443         * gimple-fold.c (fold_stmt_1): Adjust caller.
28444         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28445         for the 2nd callback.
28446         * gimple-match-head.c (gimple_simplify): Add a callback that is
28447         used to valueize the stmt operands and use it that way.
28449 2015-04-21  Richard Biener  <rguenther@suse.de>
28451         PR tree-optimization/65788
28452         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28454 2015-04-21  Richard Biener  <rguenther@suse.de>
28456         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28457         vec_construct cost by vec_stmt_cost.
28459 2015-04-21  Richard Biener  <rguenther@suse.de>
28461         * cfghooks.h (create_basic_block): Replace with two overloads
28462         for RTL and GIMPLE.
28463         (split_block): Likewise.
28464         * cfghooks.c (split_block): Rename to ...
28465         (split_block_1): ... this.
28466         (split_block): Add two type-safe overloads for RTL and GIMPLE.
28467         (split_block_after_labels): Call split_block_1.
28468         (create_basic_block): Rename to ...
28469         (create_basic_block_1): ... this.
28470         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28471         (create_empty_bb): Call create_basic_block_1.
28472         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28473         split_block_after_labels.
28474         * omp-low.c (expand_parallel_call): Likewise.
28475         (expand_omp_target): Likewise.
28476         (simd_clone_adjust): Likewise.
28477         * tree-chkp.c (chkp_get_entry_block): Likewise.
28478         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28479         create_basic_block overload.
28480         (cgraph_node::expand_thunk): Likewise.
28481         * tree-cfg.c (make_blocks): Likewise.
28482         (handle_abnormal_edges): Likewise.
28483         * tree-inline.c (copy_bb): Likewise.
28485 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28487         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28488         New pattern.
28489         (*xor_one_cmplsidi3_ze): Likewise.
28491 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28493         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28494         use df_remove_problem rather than manually removing problems, leaving
28495         holes in df->problems_in_order[].
28497 2015-04-21  Tom de Vries  <tom@codesourcery.com>
28499         PR tree-optimization/65802
28500         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28502 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28504         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28505         Increase to 128.
28506         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28507         at '.'.  Assert that there's enough space for everything.
28509 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
28511         PR tree-optimization/64950
28512         Revert:
28513         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
28515         PR target/41089
28516         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28517         as volatile.
28519 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
28521         PR rtl-optimization/64916
28522         * cfgcleanup.c (values_equal_p): New function.
28523         (can_replace_by): Use it.
28525 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
28527         PR c++/65801
28528         * doc/invoke.texi ([-Wnarrowing]): Update.
28530 2015-04-20  Jeff Law  <law@redhat.com>
28532         PR tree-optimization/65658
28533         * tree-ssa-threadupdate.c (redirection_block_p): Remove
28534         redundant test for GIMPLE_ASSIGN in last change.
28536 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
28538         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28539         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28540         (legitimize_tls_address): Ditto.
28541         (ix86_expand_move): Ditto.
28542         (ix86_expand_binary_operator): Remove reload_in_progress checks.
28543         (ix86_expand_unary_operator): Ditto.
28544         * config/i386/predicates.md (index_register_operand): Ditto.
28546 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
28548         * reorg.c (try_merge_delay_insns): Improve correctness checking
28549         for targets with multiple delay slots.
28551 2015-04-20  Jeff Law  <law@redhat.com>
28553         PR tree-optimization/65658
28554         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28555         statements too.
28557 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
28559         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28560         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28561         Delete.
28563 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
28565         PR debug/65807
28566         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28568 2015-04-20  Richard Biener  <rguenther@suse.de>
28570         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28571         * gimple-fold.c (gimple_build_valueize): New function.
28572         (gimple_build): Always use gimple_build_valueize as valueize hook.
28574 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
28576         PR target/64134
28577         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28578         and overwrite variable parts if <= 1/2 the elements are variable.
28580 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28582         PR rtl-optimization/65805
28583         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28584         Don't use difference of offset and previous offset if
28585         update_sp_offset is non-zero.
28586         (eliminate_regs_in_insn): Ditto.
28587         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28588         lra_eliminate_regs_1 call.
28589         * lra-constraints.c (get_equiv_with_elimination): Ditto.
28591 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
28593         * hash-table.h: Remove version of hash_table that stored value_type *.
28594         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28595         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28596         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28597         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28598         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28599         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28600         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28601         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28602         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28603         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28604         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28605         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28606         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28607         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28608         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28609         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28611 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28612             Jakub Jelinek  <jakub@redhat.com>
28614         PR target/65787
28615         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28616         subsequent SH_NONE operand does not overwrite an existing *special
28617         value.
28618         (adjust_extract): Handle case where a vec_extract operation is
28619         wrapped in a PARALLEL.
28621 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28623         PR target/65780
28624         * config/i386/i386.c (ix86_binds_local_p): Define only if
28625         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28627 2015-04-17  Jeff Law  <law@redhat.com>
28629         PR tree-optimization/47679
28630         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28631         * tree-ssa-scopedtables.c: New file.
28632         * tree-ssa-scopedtables.h: New file.
28633         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28634         (const_and_copies): Change name/type.
28635         (record_const_or_copy): Move into tree-ssa-scopedtables.c
28636         (record_const_or_copy_1): Similarly.
28637         (restore_vars_to_original_value): Similarly.
28638         (pass_dominator::execute): Create and destroy const_and_copies table.
28639         (thread_across_edge): Update passing of const_and_copies.
28640         (record_temporary_equivalence): Use method calls rather than
28641         manipulating const_and_copies directly.
28642         (record_equality, cprop_into_successor_phis): Similarly.
28643         (dom_opt_dom_walker::before_dom_children): Similarly.
28644         (dom_opt_dom_walker::after_dom_children): Similarly.
28645         (eliminate_redundant_computations): Similarly.
28646         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28647         (record_temporary_equivalence): Likewise.
28648         (invalidate_equivalences): Likewise.
28649         (record_temporary_equivalences_from_phis): Update due to type
28650         change of const_and_copies.  Use method calls rather than
28651         manipulating the stack directly.
28652         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28653         (thread_through_normal_block, thread_across_edge): Likewise.
28654         (thread_across_edge): Likewise.
28655         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28656         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
28657         of equiv_stack.
28658         (identify_jump_threads): Update due to type change of equiv_stack.
28659         (finalize_jump_threads): Delete the equiv_stack when complete.
28661 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
28663         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28664         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28665         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28667 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
28669         PR target/65535
28670         * config.gcc: Exit with a comment when we do not have a major version
28671         number for the FreeBSD target.
28673 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28675         PR target/65689
28676         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28677         maybe_allows_mem bitfields.
28678         (maybe_allows_none_start, maybe_allows_none_end,
28679         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28680         maybe_allows_mem_end): New variables.
28681         (compute_maybe_allows): New function.
28682         (add_constraint): Use it to initialize maybe_allows_reg and
28683         maybe_allows_mem fields.
28684         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28685         is_address constraints such that those that allow neither mem nor
28686         reg come first, then those that only allow reg but not mem, then
28687         those that only allow mem but not reg, then the rest.
28688         (write_allows_reg_mem_function): New function.
28689         (write_tm_preds_h): Call it.
28690         * stmt.c (parse_output_constraint, parse_input_constraint): Use
28691         the generated insn_extra_constraint_allows_reg_mem function
28692         instead of always setting *allows_reg = true; *allows_mem = true;
28693         for unknown extra constraints.
28695 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28697         PR target/65780
28698         * output.h (default_binds_local_p_3): New.
28699         * varasm.c (default_binds_local_p_3): Make it public.  Take an
28700         argument to indicate if common symbol may be local.  If common
28701         symbol may be local, treat non-external variable as defined
28702         locally.
28703         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28704         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28705         * config/i386/i386.c (ix86_binds_local_p): New.
28706         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28707         ix86_binds_local_p.
28709 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28711         PR debug/65771
28712         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28713         trying mem_loc_descriptor on XEXP (rtl, 0).
28715 2015-04-17  Martin Liska  <mliska@suse.cz>
28717         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28718         Release symbol_compare_collection.
28719         * ipa-reference.c: Add TODO that a vector should be released.
28721 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28723         PR target/65296
28724         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28725         to new AVR-LibC file layout (bug #44574).
28726         (*avrlibc_devicelib): Same.
28727         * config/avr/avr-mcus.def: Adjust comments.
28728         * config/avr/avr.opt (nodevicelib): Adjust help.
28730 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
28732         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28734 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
28736         PR c++/64527
28737         * gimplify.c (gimplify_init_constructor): Always emit a
28738         side-effecting constructor.
28740 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28742         PR tree-optimization/64950
28743         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28744         in cfun->curr_properties.
28745         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28746         if we generate an IFN_VA_ARG.
28747         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28748         function if PROP_gimple_lva is not set in src function.
28750 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28751             Michael Matz  <matz@suse.de>
28753         PR tree-optimization/64950
28754         * gimple-iterator.c (update_modified_stmts): Remove static.
28755         * gimple-iterator.h (update_modified_stmts): Declare.
28756         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28757         (gimplify_va_arg_internal): New function.
28758         (gimplify_va_arg_expr): Use IFN_VA_ARG.
28759         * gimplify.h (gimplify_va_arg_internal): Declare.
28760         * internal-fn.c (expand_VA_ARG): New unreachable function.
28761         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28762         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28763         (expand_ifn_va_arg): New function.
28764         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28765         (pass_stdarg::execute): Call expand_ifn_va_arg.
28766         (pass_data_lower_vaarg): New pass_data.
28767         (pass_lower_vaarg): New gimple_opt_pass.
28768         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28769         (make_pass_lower_vaarg): New function.
28770         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28771         properties_required field.
28772         * passes.def (all_passes): Add pass_lower_vaarg.
28773         * tree-pass.h (PROP_gimple_lva): Add define.
28774         (make_pass_lower_vaarg): Declare.
28776 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28778         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
28779         * calls.c (call_expr_flags): Same.
28781 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28783         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
28784         (pass_stdarg::execute): ... here.
28786 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28787             Michael Matz  <matz@suse.de>
28789         * tree-cfg.c (make_blocks_1): Factor out of ...
28790         (make_blocks): ... here.
28791         (make_edges_bb): Factor out of ...
28792         (make_edges): ... here.
28793         (gimple_find_sub_bbs): New function.
28794         * tree-cfg.h (gimple_find_sub_bbs): Declare.
28796 2015-04-17  Tom de Vries  <tom@codesourcery.com>
28798         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
28800 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
28802         * asan.c (set_sanitized_sections): New function.
28803         (section_sanitized_p): Ditto.
28804         (asan_protect_global): Optionally sanitize user-defined
28805         sections.
28806         * asan.h (set_sanitized_sections): Declare new function.
28807         * common.opt (fsanitize-sections): New option.
28808         * doc/invoke.texi (-fsanitize-sections): Document new option.
28809         * opts-global.c (handle_common_deferred_options): Handle new
28810         option.
28812 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
28814         PR debug/65771
28815         * dwarf2out.c (loc_list_from_tree): Return NULL
28816         for DEBUG_EXPR_DECL.
28818 2015-04-17  Christian Bruel  <christian.bruel@st.com>
28820         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
28821         same attributes.
28823 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28825         * ira-color.c (setup_left_conflict_sizes_p): Do not process
28826         node itself when computing left conflict subnode size.
28828 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
28830         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
28831         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
28832         *fop_<mode>_1_sse using enabled attribute.  Use
28833         register_mixssei387nonimm_operand operand 1 predicate. Change
28834         alternative 3 constraints from "x" to "v".
28836 2015-04-16  Richard Biener  <rguenther@suse.de>
28838         PR tree-optimization/65774
28839         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
28840         bit-value tracking on.
28842 2015-04-16  Richard Biener  <rguenther@suse.de>
28844         PR tree-optimization/64277
28845         * tree-vrp.c (check_array_ref): Fix anti-range handling,
28846         simplify upper bound handling.
28847         (search_for_addr_array): Simplify.
28848         (check_array_bounds): Handle ADDR_EXPRs here.
28849         (check_all_array_refs): Simplify.
28851 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
28853         * config/i386/i386.c (print_reg): Rewrite function.
28855 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28857         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
28858         Invert the condition.
28860 2015-04-16  Renlin Li  <renlin.li@arm.com>
28862         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
28863         simplifications for UNSIGNED_FLOAT.
28865 2015-04-16  Nick Clifton  <nickc@redhat.com>
28867         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
28868         MUL_UNINIT.
28869         (enum rl78_cpu_type): New.
28870         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
28871         (umulhi3_shift_virt): Remove m constraint from operand 1.
28872         (umulqihi3_virt): Likewise.
28873         * config/rl78/rl78.c (rl78_option_override): Add code to process
28874         -mcpu and -mmul options.
28875         (rl78_alloc_physical_registers): Add code to handle divhi and
28876         divsi valloc attributes.
28877         (set_origin): Likewise.
28878         * config/rl78/rl78.h (RL78_MUL_G14): Define.
28879         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
28880         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
28881         __RL78_Gxx__.
28882         (ASM_SPEC): Pass -mcpu on to assembler.
28883         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
28884         (mulqi3_rl78): Likewise.
28885         (mulhi3_g13): Likewise.
28886         (mulhi3): Generate the G13 or G14 versions of the insn directly.
28887         (mulsi3): Likewise.
28888         (mulhi3_g14): Add clobbers of AX and BC.
28889         (mulsi3_g14): Likewise.
28890         (mulsi3_g13): Likewise.
28891         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
28892         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
28893         * config/rl78/rl78.opt (mmul): Initialise value to
28894         RL78_MUL_UNINIT.
28895         (mcpu): New option.
28896         (m13, m14, mrl78): New option aliases.
28897         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
28898         (MULTILIB_DIRNAMES): Add g13 and g14.
28899         * doc/invoke.texi: Document -mcpu and -mmul options.
28901 2015-04-16  Richard Biener  <rguenther@suse.de>
28903         * tree-ssa-ccp.c (likely_value): See if we have operands that
28904         are marked as never simulate again and return CONSTANT in this
28905         case.
28906         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
28907         not have any operands that will be simulated again as
28908         not being simulated again.
28910 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
28912         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
28913         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
28914         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
28915         attribute.
28916         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
28917         enabled attribute.
28918         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
28919         *float<SWI48:mode><MODEF:mode>2_sse.
28920         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
28921         enabled attribute.
28922         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
28923         enabled attribute.
28925 2015-04-15  Tom de Vries  <tom@codesourcery.com>
28927         PR other/65487
28928         * function.c (push_dummy_function): New function.
28929         (init_dummy_function_start): Use push_dummy_function.
28930         (pop_dummy_function): New function.  Factored out of ...
28931         (expand_dummy_function_end): ... here.
28932         * function.h (push_dummy_function, pop_dummy_function): Declare.
28933         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
28934         pop_dummy_function.
28935         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
28937 2015-04-15  Jeff Law  <law@redhat.com>
28939         PR tree-optimization/47679
28940         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
28941         need for forward declaration in upcoming changes.
28942         (record_conditions, record_edge_info): Likewise.
28944         PR rtl-optimization/42522
28945         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
28946         SIGN_EXTRACT as a whole object rather than simplifying
28947         its operand.
28949 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
28951         PR ipa/65765
28952         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
28953         and GIMPLE_PREDICT use break instead of return true. For
28954         GIMPLE_EH_DISPATCH, compare dispatch region.
28956 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
28958         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
28959         details about the implementation.  Make clear preference for
28960         __atomic builtins.  Reduce possibility of future change.
28962 2015-04-15  Nick Clifton  <nickc@redhat.com>
28964         * config/rx/rx.opt (mallow-string-insns): New option.
28965         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
28966         builtin if string instructions are denied.
28967         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
28968         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
28969         appropriate.
28970         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
28971         * config/rx/rx.md (movstr): Enable pattern only if string
28972         instructions are allowed.
28973         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
28974         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
28975         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
28976         (MULTILIB_DIRNAMES): Add no-strings.
28977         * doc/invoke.texi: Document -mno-allow-string-insns.
28979 2015-04-15  Alan Modra  <amodra@gmail.com>
28981         PR target/65408
28982         PR target/58744
28983         PR middle-end/36043
28984         * calls.c (load_register_parameters): Don't load past end of
28985         mem unless suitably aligned.
28987 2015-04-15  Nick Clifton  <nickc@redhat.com>
28989         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
28990         decrement instruction as being frame related.
28991         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
28992         based addresses.
28993         If zero extending a function address enclose the operation in
28994         %code(...).
28995         (rl78_preferred_reload_class): New function.
28996         (TARGET_PREFERRED_RELOAD_CLASS): Define.
28997         * config/rl78/rl78.md: Remove useless constraints in expanders.
28998         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
28999         (mulhi3_rl78): Likewise.
29000         (mulhi3_g13): Likewise.
29001         (mulsi3_rl78): Likewise.
29002         (es_addr): Move to before the multiply patterns.
29004 2015-04-15  Alan Modra  <amodra@gmail.com>
29006         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29007         and sequence_stack.  Add seq.
29008         (seq_stack): Delete.
29009         * function.c (prepare_function_start): Don't access x_last_insn.
29010         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29011         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29012         * emit_rtl.c (start_sequence, push_topmost_sequence,
29013         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29014         sequence accessors.
29015         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29016         remove_insn): Likewise.  Simplify.
29017         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29018         and pop_topmost_sequence.
29019         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
29020         debug insns.
29021         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29023 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
29025         PR target/65729
29026         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29027         the assertiion.
29029 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29031         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29032         (LEGACY_INT_REGNO_P): Ditto.
29033         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29034         (ANY_MASK_REG_P): Remove.
29035         (BND_REG_P): Rename from ANY_BND_REG_P.
29036         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29037         legacy integer registers.  Do not handle MMX_REG_P in a special way.
29038         Merge 64byte and 32byte SSE handling.
29040 2015-04-14  Nick Clifton  <nickc@redhat.com>
29042         * expr.c (expand_assignment): Force an address offset computation
29043         into a register before changing its mode.
29044         (expand_expr_real_1): Likewise.
29046 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
29048         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29049         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29050         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29051         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29052         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29053         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29054         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29055         and __aarch64_vget_lane_any.
29057 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
29059         PR rtl-optimization/65761
29060         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29061         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29063 2015-04-14  Richard Biener  <rguenther@suse.de>
29065         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29066         (graphite_can_represent_scev): Use POINTER_TYPE_P.
29068 2015-04-14  Richard Biener  <rguenther@suse.de>
29070         PR tree-optimization/65758
29071         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29072         against -1.
29073         (ccp_lattice_meet): Likewise.
29074         (bit_value_unop): Likewise.
29075         (bit_value_binop): Likewise.
29076         (bit_value_assume_aligned): Likewise.
29078 2015-04-14  Christian Bruel  <christian.bruel@st.com>
29080         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29081         function.
29083 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
29085         PR tree-optimization/63387
29086         * match.pd ((x unord x) | (y unord y) -> (x unord y),
29087         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29089 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
29091         * config/i386/predicates.md (any_QIreg_operand): Rename from
29092         q_regs_operand.  Do not process subregs.
29093         (QIreg_operand): Use QI_REGNO_P predicate.
29094         (ext_QIreg_operand): Ditto.
29095         (ext_register_operand): Ditto.
29096         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29097         (AND splitters): Ditto.
29098         (AND with -65536 splitter): Add SWI48 mode for operand 0.
29099         (AND with -256 splitter): Use any_QIreg_operand predicate and
29100         SWI248 mode for operand 0.
29101         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29102         mode for operand 0.
29103         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29105 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
29107         * doc/plugins.texi: Rewrite first introductory paragraph.
29109 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29111         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29112         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29114 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29116         * ipa-profie.c (ipa_profile): Check number of parameters
29117         and possible polymorphic call targets before
29118         devirtualizing.
29120 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
29122         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29123         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29125 2015-04-13  Richard Biener  <rguenther@suse.de>
29127         PR tree-optimization/65204
29128         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29129         takens for bit-CCP.
29131 2015-04-13  Richard Biener  <rguenther@suse.de>
29133         PR target/65660
29134         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29135         and cond_not_taken_branch_cost to 4 and 2.
29136         (bdver2_cost): Likewise.
29137         (bdver3_cost): Likewise.
29138         (bdver4_cost): Likewise.
29140 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29142         * hash-table.h (hash_table constructor): Add mem stats.
29143         (alloc_entries): Likewise.
29145 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29147         * ipa-cp.c (ipcp_driver): Relase prev_edge.
29148         * passes.c (execute_one_pass): Only add transform if pass has one.
29150 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
29152         * config/i386/i386.c (ix86_option_override_internal): Don't set
29153         -fprefetch-loop-arrays if optimizing for size.
29155 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
29156             Gerald Pfeifer  <gerald@pfeifer.com>
29158         * doc/contrib.texi (Contributors): Add Martin Jambor and
29159         Michael Matz.
29161 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
29163         * BASE-VER: Set to 6.0.0.
29165         PR tree-optimization/65747
29166         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29167         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29169 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29171         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29172         sentence.  Improve grammar.
29174 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
29176         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29178 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29180         PR ipa/65743
29181         * ipa-inline-transform.c (speculation_removed): Remove static var.
29182         (check_speculations): New function.
29183         (clone_inlined_nodes): Do not check spculations.
29184         (inline_call): Call check_speculations.
29185         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29186         consider non-invariants.
29188 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
29189             Martin Liska  <mliska@suse.cz>
29191         PR ipa/65722
29192         * ipa-icf.c (sem_item::compare_cgraph_references): function and
29193         variable can not match.
29194         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29195         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29197 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
29199         PR tree-optimization/65735
29200         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29201         Remove visited_phis argument, add visited_bbs, avoid recursing into the
29202         same bb rather than just into the same phi node.
29203         (thread_through_normal_block): Adjust caller.
29205 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29207         * doc/contrib.texi (Contributors): Add Ira Rosen.
29209 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
29211         * gcov.c (find_source): Fix miswording in error message.
29212         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29213         (ix86_expand_sse_comi_round): Fix typo in error message.
29215 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
29217         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29219 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
29221         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29223 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29225         PR target/65710
29226         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29227         Print bad_spills_num and insn_pseudos_num.
29229 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29231         PR target/65694
29232         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29233         when creating +1 values for SImode.
29235 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
29237         PR target/65729
29238         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29239         assert.
29241 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
29242             Iain Sandoe  <iain@codesourcery.com>
29244         PR target/65351
29245         * configure: Regenerate.
29247 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
29249         PR target/65671
29250         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29252 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
29254         * doc/contrib.texi (Contributors): Add John Marino.
29256 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
29258         PR tree-optimization/65709
29259         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29260         TREE_TYPE (TREE_TYPE (t)).
29262 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
29264         PR target/65710
29265         * lra-int.h (lra_bad_spill_regno_start): New.
29266         * lra.c (lra_bad_spill_regno_start): New.
29267         (lra): Set up lra_bad_spill_regno_start.  Set up
29268         lra_constraint_new_regno_start unconditionally.
29269         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29270         spill preferences.
29272 2015-04-09  Marek Polacek  <polacek@redhat.com>
29273             Jakub Jelinek  <jakub@redhat.com>
29275         PR middle-end/65554
29276         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29277         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29278         of STRIP_NOPS.
29280 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
29282         PR rtl-optimization/65693
29283         * combine.c (is_parallel_of_n_reg_sets): Move outside of
29284         #ifndef HAVE_cc0.
29286 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
29288         PR target/65296
29289         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29290         device specs file if "device-specs%s" didn't resolve to a path.
29292 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
29294         PR target/65676
29295         * config/i386/i386.c (fixup_modeless_constant): New.
29296         (ix86_expand_args_builtin): Fixup modeless constant operand.
29297         (ix86_expand_round_builtin): Ditto.
29298         (ix86_expand_special_args_builtin): Ditto.
29299         (ix86_expand_builtin): Ditto.
29301 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
29303         PR target/65693
29304         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29305         any pow2 integer in between 2 and 0x80000000U inclusive.
29307 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
29309         PR rtl-optimization/65693
29310         * combine.c (is_parallel_of_n_reg_sets): Change first argument
29311         from an rtx_insn * to an rtx.
29312         (try_combine): Adjust both callers.  Use it once more.
29314 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29316         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29317         (chkp_make_static_const_bounds): Search existing
29318         symbol by assembler name.  Use make_decl_one_only.
29319         (chkp_get_zero_bounds_var): Remove node search which
29320         is now performed in chkp_make_static_const_bounds.
29321         (chkp_get_none_bounds_var): Likewise.
29323 2015-04-08  Michael Witten  <mfwitten@gmail.com>
29325         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29326         to an example.
29328 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29330         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29332 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29334         * doc/extend.texi (__sync Builtins): Fix grammar.
29336 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29338         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29340 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29342         * varasm.c (emit_local): Move definition of align.
29344 2015-04-08  Julian Brown  <julian@codesourcery.com>
29346         * config/nvptx/mkoffload.c (process): Support variable mapping.
29348 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
29350         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29351         alpha_links **.
29352         (alpha_write_one_linkage): Correct typo.
29354 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29356         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29358 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
29360         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29362 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
29364         * tree-chkp.h (chkp_insert_retbnd_call): New.
29365         * tree-chkp.c (chkp_insert_retbnd_call): New.
29366         * ipa-split.c (insert_bndret_call_after): Remove.
29367         (split_function): Use chkp_insert_retbnd_call.
29368         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29369         bounds for instrumented functions.
29371 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
29373         PR ipa/65540
29374         * calls.c (initialize_argument_information): When producing tail
29375         call also turn SSA_NAMES passed by references to original PARM_DECLs
29377 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
29379         PR target/65648
29380         * lra-remat.c (do_remat): Process input and non-input insn
29381         registers separately.
29383 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29385         PR debug/65678
29386         * valtrack.c (debug_lowpart_subreg): New function.
29387         (dead_debug_insert_temp): Use it.
29389         PR middle-end/65680
29390         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29391         into signed HOST_WIDE_INT the same as negative bit_offset.
29393 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
29395         * ipa-comdats.c (ipa_comdats): Visit all thunks
29396         to set proper comdat group.
29398 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29400         PR target/65489
29401         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29402         on constants for NEON VSTRUCT modes.
29404 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
29405             Iain Sandoe  <iain@codesourcery.com>
29407         PR target/65351
29408         * configure: Regenerate.
29410 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29412         PR target/65614
29413         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29414         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29415         that LFD is used to load double constants instead of LFS.  Add
29416         defaults for all costs structures.  Add comments for missing
29417         initialization fields.
29418         (size32_cost): Likewise.
29419         (size64_cost): Likewise.
29420         (rs64a_cost): Likewise.
29421         (mpccore_cost): Likewise.
29422         (ppc403_cost): Likewise.
29423         (ppc405_cost): Likewise.
29424         (ppc440_cost): Likewise.
29425         (ppc476_cost): Likewise.
29426         (ppc601_cost): Likewise.
29427         (ppc603_cost): Likewise.
29428         (ppc604_cost): Likewise.
29429         (ppc604e_cost): Likewise.
29430         (ppc620_cost): Likewise.
29431         (ppc630_cost): Likewise.
29432         (ppccell_cost): Likewise.
29433         (ppc750_cost): Likewise.
29434         (ppc7450_cost): Likewise.
29435         (ppc8540_cost): Likewise.
29436         (ppce300c2c3_cost): Likewise.
29437         (ppce500mc_cost): Likewise.
29438         (ppce500mc64_cost): Likewise.
29439         (ppce5500_cost): Likewise.
29440         (ppce6500_cost): Likewise.
29441         (titan_cost): Likewise.
29442         (power4_cost): Likewise.
29443         (power6_cost): Likewise.
29444         (power7_cost): Likewise.
29445         (power8_cost): Likewise.
29446         (ppca2_cost): Likewise.
29447         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29449         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29450         instead of XXLOR to copy SFmode to clear out dirty bits created
29451         when SFmode denormals are generated.
29452         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29453         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29455 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29457         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29458         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29459         * config/aarch64/aarch64-tune.md: Regenerate.
29461 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
29463         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29464         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29465         * config/arm/arm-cores.def (exynos-m1): New core.
29466         * config/arm/arm-tune.md: Regenerate.
29467         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29468         * config/arm/bpabi.h: Likewise.
29470 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29472         * ipa-cp (set_single_call_flag): Remove too
29473         restrictive assert.
29475 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
29477         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29478         GOMP_offload_unregister from the destructor.
29480 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
29482         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29483         flags for instrumentation thunk.
29484         (chkp_produce_thunks): Likewise.
29486 2015-04-05  Martin Liska  <mliska@suse.cz>
29488         PR ipa/65665
29489         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29490         has computed data structure.
29491         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29493 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
29495         * invoke.texi (inline-unit-growth): Increase growth to 20%
29496         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29498 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
29500         PR target/65647
29501         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
29502         value checking.
29503         (lra_rematerialization_iter): New.
29504         * lra.c (lra): Initialize lra_rematerialization_iter.
29505         Stop updating lra_constraint_new_regno_start after switching of
29506         inheritance and rematerialization.
29507         * lra-remat.c (lra_rematerialization_iter): New.
29508         (lra_remat): Add printing pass iteration.  Do rematerialization
29509         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29511 2015-04-04  Richard Biener  <rguenther@suse.de>
29513         PR tree-optimization/64909
29514         PR tree-optimization/65660
29515         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29516         to take a cost vector for scalar iteration cost.
29517         (vect_get_single_scalar_iteration_cost): Likewise.
29518         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29519         Compute the scalar iteration cost into a cost vector.
29520         (vect_get_known_peeling_cost): Use the scalar cost vector to
29521         account for the cost of the peeled iterations.
29522         (vect_estimate_min_profitable_iters): Likewise.
29523         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29524         Likewise.
29526 2015-04-04  Alan Modra  <amodra@gmail.com>
29528         PR target/65576
29529         PR target/65240
29530         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29531         0.0 constant unless TARGET_VSX.
29532         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29533         alternative.
29535 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29537         PR ipa/65654
29538         * ipa-inline-transform.c (inline_call): Skip sanity check to work
29539         around the ICE
29541 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29543         PR ipa/65655
29544         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29545         speculative indirect edges to avoid ordering issue.
29547 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
29549         PR ipa/65076
29550         * ipa-inline.c (edge_badness): Add combined size to the denominator.
29552 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
29554         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29555         TYPE_ARTIFICIAL on the .omp_data* types.
29557 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29559         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29560         instrumentation thunks.
29562 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29564         * config/i386/i386.c (ix86_expand_call): Avoid nested
29565         PARALLEL in returned call value.
29567 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29569         * lto-cgraph.c (input_cgraph_1): Always link instrumented
29570         assembler name with original one.
29572 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29574         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29576 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29578         Revert parts of r216820.
29579         * config/i386/i386.md (movqi_internal): Correct type calculation
29580         for alternatives 3 and 5.
29582 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
29584         PR preprocessor/61977
29585         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29586         predefine __vector/__bool/__pixel macros nor context sensitive
29587         macros for CLK_ASM.
29588         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29590 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
29592         * config/pa/pa.c (pa_output_move_double): Directly handle register
29593         indexed memory operand.  Simplify handling of scaled register indexed
29594         memory operands.
29596 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
29598         PR driver/65444
29599         * config/i386/linux-common.h (MPX_SPEC): New.
29600         (CHKP_SPEC): Add MPX_SPEC.
29601         * doc/invoke.texi (-fcheck-pointer-boudns): Document
29602         possible issues with '-z bndplt' support in linker.
29604 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
29606         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29607         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29608         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29609         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29610         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29612 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
29614         * config/i386/sync.md (UNSPEC_MOVA): Remove.
29615         (atomic_load<mode>): Change operand 0 predicate to
29616         nonimmediate_operand and fix up the destination when needed.
29617         Use UNSPEC_LDA.
29618         (atomic_loaddi_fpu): Use UNSPEC_LDA.
29619         (atomic_store<mode>): Change operand 1 predicate to
29620         nonimmendate_operand and move the source to register when needed.
29621         Use UNSPEC_STA.
29622         (atomic_store<mode>_1): Use UNSPEC_STA.
29623         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29624         Fix moves from memory operand.  Use UNSPEC_STA.
29626 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29628         * expmed.c (strict_volatile_bitfield_p): Check that the access will
29629         not cross a MODESIZE boundary.
29630         (store_bit_field, extract_bit_field): Added assertions in the
29631         strict volatile bitfields code path.
29633 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29635         PR target/65624
29636         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29637         Increase args array size by one to avoid buffer overflow.
29639 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
29641         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29642         split_part.
29643         * ipa-inline.c (edge_badness): Add wrapper penalty.
29644         (sum_callers): Move up.
29645         (inline_small_functions): Set single_caller.
29646         * ipa-inline.h (inline_summary): Add single_caller.
29647         * ipa-split.c (split_function): Set split_part.
29648         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29649         * cgraph.h (cgraph_node): Add split_part.
29651 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
29653         PR target/58945
29654         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29655         Do not split operands 0 and operands 2 to halfmode.
29656         (atomic_compare_and_swap<mode>): Update for
29657         atomic_compare_and_swap<dwi>_doubleword changes.
29659 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
29661         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29662         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29663         no caching is done.
29665 2015-03-31  Martin Liska  <mliska@suse.cz>
29667         PR ipa/65557
29668         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29669         has already filled up function summary.
29670         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29672 2015-03-31  Richard Biener  <rguenther@suse.de>
29674         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29675         of types.
29677 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29679         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29680         nested functions.
29681         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29682         (s390_asm_output_function_label): Adapt to new signature of
29683         s390_function_num_hotpatch_hw
29684         Optimise the code generating assembler output.
29685         Add comments to assembler file.
29687 2015-03-31  Richard Biener  <rguenther@suse.de>
29689         PR middle-end/65626
29690         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29691         of the noreturn call so it is last and cleanup_control_flow_bb
29692         can do the CFG part.
29694 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
29696         PR target/65531
29697         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29698         same_comdat_group for external symbols.
29699         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29700         infinite same_comdat_group traversal loop.
29702 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
29704         PR plugins/61176
29705         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29706         automatically to $headers.
29708 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
29710         PR ipa/65610
29711         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29712         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29713         function.
29714         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29715         Use it.
29716         * ipa-prop.c (param_type_may_change_p): Likewise.
29717         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29718         (remove_unused_scope_block_p): Add in_ctor_dtor_block
29719         argument.  Before inlining, preserve
29720         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29721         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
29722         recursive calls.
29723         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29725 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29727         PR ipa/65076
29728         * ipa-inline.c (edge_badness): Base denominator on callee's
29729         grwoth squared.
29731 2015-03-27  Martin Jambor  <mjambor@suse.cz>
29733         PR ipa/65478
29734         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29735         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29736         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29737         node_calling_single_call.
29738         * ipa-cp.c (count_callers): New function.
29739         (set_single_call_flag): Likewise.
29740         (initialize_node_lattices): Count callers and set single_flag_call if
29741         necessary.
29742         (incorporate_penalties): New function.
29743         (good_cloning_opportunity_p): Use it, dump new flags.
29744         (propagate_constants_topo): Set node_within_scc flag if appropriate.
29745         * doc/invoke.texi (ipa-cp-recursion-penalty,
29746         ipa-cp-single-call-pentalty): Document.
29748 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29750         PR ipa/65588
29751         * symtab.c (symtab_node::get_partitioning_class): Register vars
29752         are duplicated.
29753         * varpool.c (symbol_table::output_variables) Do not assemble unefined
29754         decls for non-symbols.
29756 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
29758         PR target/65248
29759         * output.h (default_binds_local_p_2): New.
29760         * varasm.c (default_binds_local_p_2): Renamed to ...
29761         (default_binds_local_p_3): This.  Don't return true on protected
29762         data symbol if protected data may be external.
29763         (default_binds_local_p): Use default_binds_local_p_3.
29764         (default_binds_local_p_1): Likewise.
29765         (default_binds_local_p_2): New.
29766         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29767         default_binds_local_p_2 if TARGET_MACHO is undefined.
29769 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
29771         PR target/65593
29772         * config/i386/i386.c (legitimize_pic_address): If base
29773         is SYMBOL_REF or LABEL_REF using %rip addressing, force
29774         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
29776 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29778         PR target/65531
29779         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
29780         comdat groups.
29782 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
29784         PR ipa/65600
29785         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
29786         of optimized out indirect call.
29787         (redirect_to_unreachable): Always build symbol table node for
29788         BUILT_IN_UNREACHABLE
29790 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
29792         PR target/65407
29793         * ira-costs.c (record_reg_classes): Process all constraint string
29794         containing 0-9.
29796 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
29798         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
29799         memory_operand.
29801         PR target/65052
29802         * config/c6x/constraints.md (S3): New constraint.
29803         * config/c6x/c6x.md (real_jump): Use it.
29805 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29807         PR middle-end/65595
29808         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
29809         do redirection if the call is not optimized out.
29811 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
29813         PR target/65495
29814         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
29815         (fchkp-check-incomplete-type): Add LTO.
29816         (fchkp-zero-input-bounds-for-main): Likewise.
29817         (fchkp-first-field-has-own-bounds): Likewise.
29818         (fchkp-narrow-bounds): Likewise.
29819         (fchkp-narrow-to-innermost-array): Likewise.
29820         (fchkp-use-static-bounds): Likewise.
29821         (fchkp-use-static-const-bounds): Likewise.
29822         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29824 2015-03-27  Marek Polacek  <polacek@redhat.com>
29826         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
29828 2015-03-27  Marek Polacek  <polacek@redhat.com>
29830         PR sanitizer/65583
29831         * ubsan.c (ubsan_create_edge): New function.
29832         (instrument_bool_enum_load): Call it.
29833         (instrument_nonnull_arg): Likewise.
29834         (instrument_nonnull_return): Likewise.
29835         (instrument_object_size): Likewise.
29837 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29839         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
29840         auto_vec.
29842 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29844         PR lto/65536
29845         * lto-streamer.h (class lto_location_cache): New.
29846         (struct data_in): Add location_cache.
29847         (lto_input_location): Update prototype.
29848         (stream_input_location_now): New.
29849         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
29850         pointer to location.
29851         (stream_input_location): Update.
29852         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
29853         (warn_odr): Apply location cache before warning.
29854         (lto_input_location): Update prototype.
29855         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
29856         Use stream_input_location_now.
29857         * lto-streamer-in.c (lto_location_cache::current_cache): New static
29858         variable.
29859         (lto_location_cache::cmp_loc): New function.
29860         (lto_location_cache::apply_location_cache): New function.
29861         (lto_location_cache::accept_location_cache): New function.
29862         (lto_location_cache::revert_location_cache): New function.
29863         (lto_location_cache::input_location): New function.
29864         (lto_input_location): Do location caching.
29865         (stream_input_location_now): New function.
29866         (input_eh_region, input_struct_function_base): Use
29867         stream_input_location_now.
29868         (lto_data_in_create): use new.
29869         (lto_data_in_delete): Use delete.
29870         * tree-streamer-in.c (unpack_ts_block_value_fields,
29871         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
29872         lto_input_ts_exp_tree_pointers): Update for cached location api.
29874 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29876         PR ipa/65076
29877         * passes.def: Add pass_nothrow.
29878         * ipa-pure-const.c: (pass_data_nothrow): New.
29879         (pass_nothrow): New.
29880         (pass_nothrow::execute): New.
29881         (make_pass_nothrow): New.
29882         * tree-pass.h (make_pass_nothrow): Declare.
29884 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29886         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
29887         edge to change by speculation resolution or redirection.
29888         (edge_set_predicate): Likewise.
29889         (inline_summary_t::duplicate): Likewise.
29890         (remap_edge_summaries): Likewise.
29892 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29894         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
29895         New macros.
29896         (can_inline_edge_p): Relax option matching for always inline functions.
29898 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
29900         PR target/65561
29901         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
29902         Check operand 4 and operand 0 for equality.
29903         (avx512f_vextract<shuffletype>32x4_1_maskm):
29904         Check operand 6 and operand 0 for equality.
29905         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
29906         for equality.
29907         (vec_extract_hi_<mode>_maskm): Ditto.
29909 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29911         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
29912         dead calls back to live.
29913         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
29914         cross check to ...
29915         (cgraph_node::verify_node): ... here; verify only callee edges,
29916         not caller.
29917         * cif-code.def (CILK_SPAWN): New code.
29919 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
29921         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
29922         (edge_set_predicate): Use it to mark unreachable edges.
29923         (inline_summary_t::duplicate): Remove unnecesary code.
29924         (remap_edge_summaries): Likewise.
29925         (dump_inline_summary): Report contains_cilk_spawn.
29926         (compute_inline_parameters): Compute contains_cilk_spawn.
29927         (inline_read_section, inline_write_summary): Stream
29928         contains_cilk_spawn.
29929         * ipa-inline.c (can_inline_edge_p): Do not touch
29930         DECL_STRUCT_FUNCTION that may not be available;
29931         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
29932         remove check for callee_fun->can_throw_non_call_exceptions and
29933         replace it by optimization attribute check; check for flag_exceptions.
29934         * ipa-inline-transform.c (inline_call): Maintain
29935         DECL_FUNCTION_PERSONALITY
29936         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
29938 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
29940         PR tree-optimization/65551
29941         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
29942         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
29944 2015-03-26  Richard Biener  <rguenther@suse.de>
29946         PR middle-end/65555
29947         * tree-cfg.c (verify_gimple_call): Do not require a call to
29948         have no LHS if it wasn't recognized as control altering yet.
29950 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
29952         PR tree-optimization/64715
29953         * passes.def: Add another instance of pass_object_sizes before ccp1.
29954         * tree-object-size.c (pass_object_sizes::execute): In
29955         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
29956         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
29957         __bos result and the computed constant.  Remove redundant
29958         checks, obsoleted by gimple_call_builtin_p test.
29960         * var-tracking.c (variable_tracking_main_1): Don't track
29961         variables for targetm.no_register_allocation targets.
29963 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
29965         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
29966         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
29968 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
29970         PR target/65569
29971         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
29972         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
29973         0.0 is correctly setup.
29974         (extenddftf2_internal): Likewise.
29976 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
29978         PR tree-optimization/65177
29979         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
29980         (bb_in_bbs): New.
29981         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
29982         edges not adjacent on the path to the original code.
29984 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
29986         PR bootstrap/65537
29987         * doc/install.texi (Building a native compiler): Document new
29988         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
29989         configuration assumes that the host supports the linker plugin.
29991 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
29993         PR target/65508
29994         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
29995         chain for generated call.
29997 2015-03-25  Richard Biener  <rguenther@suse.de>
29999         * passes.c (pass_manager::execute_early_local_passes): Guard
30000         execution of pass_chkp_instrumentation_passes with
30001         flag_check_pointer_bounds.
30002         (pass_chkp_instrumentation_passes::gate): Likewise.
30004 2015-03-25  Martin Liska  <mliska@suse.cz>
30006         PR tree-optimization/65538
30007         * symbol-summary.h (function_summary::~function_summary):
30008         Relese memory for allocated summaries.
30009         (function_summary::release): New function.
30011 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
30013         PR lto/65515
30014         * lto-streamer-out.c (DFS::worklist): New struct.
30015         (DFS::worklist_vec): New data member.
30016         (DFS::next_dfs_num): Remove.
30017         (DFS::DFS): Rewritten using worklist instead of recursion,
30018         using most of code from DFS::DFS_write_tree.
30019         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30020         pass it to DFS_write_tree calls.
30021         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30022         quick initial checks push it into worklist_vec and return.
30024 2015-03-25  Richard Biener  <rguenther@suse.de>
30026         PR middle-end/65519
30027         * genmatch.c (expr::gen_transform): Re-write to avoid
30028         using gimple_build.
30030 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30032         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30034 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
30036         * config/arm/arm.opt (print_tune_info): New option.
30037         * config/arm/arm.c (arm_print_tune_info): New function.
30038         (arm_file_start): Call arm_print_tune_info.
30039         * config/arm/arm-protos.h (struct tune_params): Add comment.
30040         * doc/invoke.texi (@item -mprint-tune-info): New item.
30041         (-mtune): mention it in ARM Option Summary.
30043 2015-03-25  DJ Delorie  <dj@redhat.com>
30045         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30046         correct clause.
30048 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
30049             Martin Liska  <mliska@suse.cz>
30051         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30052         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30053         (sem_item::add_type): New function.
30054         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30055         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30056         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30057         (sem_function::equals_wpa): Fix typo.
30058         * ipa-icf.h (sem_item::add_type): New function.
30059         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30060         order.
30062 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
30064         PR tree-optimization/65533
30065         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30066         with swapped operands, call vect_free_slp_tree on
30067         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30068         vector.
30070 2015-03-24  Richard Biener  <rguenther@suse.de>
30072         PR middle-end/65517
30073         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30074         for fixup if necessary.
30076 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
30078         * doc/extend.texi (Function Attributes): Add @cindex entries
30079         for all attributes and regularize their format.  Delete text
30080         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
30081         information about "eightbit_data", "tiny_data", and "model"
30082         variable attributes to the Variable Attributes section.  Fix
30083         some obvious typos and copy-editing issues.
30084         (Variable Attributes, Type Attributes): Likewise add/fix
30085         @cindex entries for all attributes.
30087 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30089         PR target/65523
30090         * tree-chkp.c (chkp_build_returned_bound): Ignore
30091         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30093 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
30095         PR target/65505
30096         * config/sh/predicates.md (simple_mem_operand,
30097         displacement_mem_operand): Add test for reg.
30098         (short_displacement_mem_operand): Test for displacement_mem_operand
30099         before invoking sh_disp_addr_displacement.
30100         * config/sh/constraints.md (Sdd, Sra): Simplify.
30101         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30102         Remove redundant displacement_mem_operand tests.
30104 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
30106         PR target/65296
30107         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30108         the same -mmcu=MCU more than once.
30110 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
30112         PR bootstrap/65522
30113         * ipa-devirt.c: Remove duplicate demangle.h include.
30115         PR target/65504
30116         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30117         on the pseudo.
30118         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30119         REG_POINTER on *destptr after adjusting it for prologue size.
30121         PR ipa/65521
30122         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30123         ultimate_alias_target ()->order ints instead of
30124         ultimate_alias_target () pointers.
30126 2015-03-23  Richard Biener  <rguenther@suse.de>
30128         PR tree-optimization/65518
30129         * tree-vect-stmts.c (vectorizable_load): Reject single-element
30130         interleaving cases we generate absymal code for.
30132 2015-03-23  Richard Biener  <rguenther@suse.de>
30134         PR tree-optimization/65494
30135         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30136         matches here.
30137         (vect_analyze_slp_instance): But do that here, always and once.
30139 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30141         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30142         adding T or multiplying by T+1 and subracting T.
30144 2015-03-22  Jeff Law  <law@redhat.com>
30146         PR rtl-optimization/64317
30147         * Makefile.in (OBJS): Add gcse-common.c
30148         * gcse.c: Include gcse-common.h
30149         (struct modify_pair_s): Move structure definition to gcse-common.h
30150         (compute_transp): Move function to gcse-common.c.
30151         (canon_list_insert): Similarly.
30152         (record_last_mem_set_info): Break out some code and put it into
30153         gcse-common.c.  Call into the new common code.
30154         (compute_local_properties): Pass additional arguments to compute_transp.
30155         * postreload-gcse.c: Include gcse-common.h and df.h
30156         (modify_mem_list_set, blocks_with_calls): New variables.
30157         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30158         (get_bb_avail_insn): Pass in the expression index too.
30159         (alloc_mem): Allocate memory for the new bitmaps and lists.
30160         (free_mem): Free memory for the new bitmaps and lists.
30161         (insert_expr_in_table): Record a bitmap index for each entry we
30162         add to the table.
30163         (record_last_mem_set_info): Call into common code in gcse-common.c.
30164         (get_bb_avail_insn): If no available insn was found in the requested
30165         BB.  If BB has a single predecessor, see if the expression is
30166         transparent in BB and available in that single predecessor.
30167         (compute_expr_transp): New wrapper for compute_transp.
30168         (eliminate_partially_redundant_load): Pass expression's bitmap_index
30169         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
30170         (gcse_after_reload_main): If there are elements in the hash table,
30171         then compute transparency for all the elements in the hash table.
30172         * gcse-common.h: New file.
30173         * gcse-common.c: New file.
30175 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
30177         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30178         as an adjective.
30179         (System Headers): Likewise.
30180         (Ifdef): Likewise.
30181         (Traditional macros): Likewise.
30182         (Invocation): Likewise.
30183         (Option Index): Likewise.
30184         * doc/cppopts.texi (-M): Likewise.
30185         (-finput-charset): Likewise.
30186         (--help): Likewise.
30187         * doc.invoke.texi (AVR Options): Likewise.
30188         (V850 Options): Likewise.
30190 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
30192         PR ipa/65475
30193         * ipa-devirt.c: Include demangle.h
30194         (odr_type_d): Add field rtti_broken.
30195         (odr_subtypes_equivalent_p): Do not require name to match.
30196         (compare_virtual_tables): Fix typo; if type already has ODR violation,
30197         bypass the tests; be ready for function referneces in vtables that are
30198         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30199         (warn_odr): Give up for nameless types.
30200         (warn_types_mismatch): Report mismatch in mangled names;
30201         report mismatch in anonymous namespaces; look into component types to
30202         give useful error; report when mismatch is dragged in from other ODR
30203         type.
30204         (odr_types_equivalent_p): Match types for being polymorphic; avoid
30205         duplicated diagnostics.
30206         (add_type_duplicate): Reorder checks so more informative ones come
30207         first; fix typo; do not output "the extra base is defined here" when
30208         we did not warn.
30209         (BINFO_N_BASE_BINFOS): Relax sanity check.
30211 2015-03-22  Martin Liska  <mliska@suse.cz>
30212             Jakub Jelinek  <jakub@redhat.com>
30214         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30215         masks that can potentially include a builtin.
30216         (ix86_add_new_builtins): Introduce fast filter for isa values
30217         that cannot trigger builtin inclusion.
30219 2015-03-22  Martin Liska  <mliska@suse.cz>
30221         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30222         (sem_item::update_hash_by_local_refs): Likewise.
30223         (sem_variable::get_hash): Empty line is fixed.
30224         (sem_item_optimizer::execute): Include adding of hash references.
30225         (sem_item_optimizer::update_hash_by_addr_refs): New function.
30226         (sem_item_optimizer::build_hash_based_classes): Use local hash.
30227         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30228         (sem_item::update_hash_by_local_refs): Likewise.
30230 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30232         PR ipa/65502
30233         * ipa-comdats.c (enqueue_references): Walk through thunks.
30234         (ipa_comdats): Likewise.
30235         (set_comdat_group_1): New function.
30237 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30239         PR ipa/65475
30240         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30241         non-polymorphic
30243 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
30244             Gerald Pfeifer  <gerald@pfeifer.com>
30246         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30248 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
30249             Sandra Loosemore  <sandra@codesourcery.com>
30251         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30252         function parameter declaration.
30253         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30254         Update arguments to nios2_adjust_call_address().
30255         (sibcall_internal): Rename from *sibcall.
30256         (sibcall_value_internal): Rename from *sibcall_value.
30257         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30258         (nios2_large_got_address): Add target temp reg parameter.
30259         (nios2_got_address): Adjust call to nios2_large_got_address, add
30260         force_reg around it.
30261         (nios2_load_pic_address): Add target temp reg parameter, replace call
30262         to nios2_got_address with corresponding code.
30263         (nios2_legitimize_constant_address): Update call to
30264         nios2_load_pic_address.
30265         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30266         to use temp reg for PIC loading purposes.
30267         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30268         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30269         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30271 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30273         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30274         usage of "the @option{...}".
30275         (-Wopenmp-simd): Likewise.
30276         (-fsanitize-recover): Likewise.
30277         (-fsanitize-undefined-trap-on-error): Likewise.
30278         (-flto): Likewise.
30279         (tracer-dynamic-coverage-feedback): Likewise.
30280         (reorder-block-duplicate-feedback): Likewise.
30281         (loop-unroll-jam-size): Likewise.
30282         (-B): Likewise.
30283         (-I-): Likewise.
30284         (-mabs=legacy): Likewise.
30285         (-mupper-regs-df): Likewise.
30286         (-mupper-regs-sf): Likewise.
30287         (-mpointers-to-nested-functions): Likewise.
30289 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30291         * doc/extend.texi (Cilk Plus Builtins): Add markup.
30293 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
30295         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30296         additional index entries and cross-references.
30297         (-fchkp-check-incomplete-type): Likewise.
30298         (-fchkp-first-field-has-own-bounds): Likewise.
30299         (-fchkp-narrow-to-innermost-array): Likewise.
30300         (-fchkp-use-fast-string-functions): Likewise.
30301         (-fchkp-use-nochk-string-functions): Likewise.
30302         (-fchkp-use-static-const-bounds): Likewise.
30303         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30304         (-fchkp-instrument-marked-only): Likewise.
30305         (-fchkp-use-wrappers): Likewise.
30306         (-static-libmpx): Likewise.
30307         (-static-libmpxwrappers): Likewise.
30308         * doc/extend.texi (bnd_legacy): Likewise.
30309         (bnd_instrument): Likewise.
30310         (bnd_variable_size): Likewise.
30311         (Pointer Bounds Checker builtins): Likewise.
30313 2015-03-21  Tom de Vries  <tom@codesourcery.com>
30315         PR tree-optimization/65458
30316         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30317         * cgraph.h (cgraph_node): Add parallelized_function field.
30318         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30319         (input_overwrite_node): Read parallelized_function field.
30320         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30321         parallelized_function on cgraph_node for child_fn.
30322         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30323         Remove include of gt-tree-parloops.h.
30324         (parallelized_functions): Remove static variable.
30325         (parallelized_function_p): Rewrite using parallelized_function field of
30326         cgraph_node.
30327         (create_loop_fn): Remove adding to parallelized_functions.
30328         * Makefile.in (GTFILES): Remove tree-parloops.c
30330 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
30332         PR rtl-optimization/64366
30333         * lra.c (lra_update_insn_regno_info): Consider regs in
30334         CALL_INSN_FUNCTION_USAGE memory.
30336 2015-03-20  Richard Biener  <rguenther@suse.de>
30338         PR middle-end/64715
30339         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30340         for type comparison and gcc_checking_assert.
30341         (chrec_fold_plus_poly_poly): Likewise.
30342         (chrec_fold_multiply_poly_poly): Likewise.
30343         (chrec_convert_1): Likewise.
30344         * gimplify.c (gimplify_expr): Remove premature folding of
30345         &X + CST to &MEM[&X, CST].
30347 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
30349         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30350         already is final.
30351         (ipa_inline): Recompute inline_failed codes.
30352         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30353         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30354         CIF_FINAL_ERROR.
30356 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
30358         PR rtl-optimization/60851
30359         * recog.c (constrain_operands): Accept a pseudo register before reload
30360         for LRA enabled targets.
30362 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
30364         PR target/65240
30365         * config/rs6000/predicates.md (easy_fp_constant): Remove special
30366         -ffast-math handling that kept non-0 constants live in the RTL
30367         until reload.  Remove logic testing the number of instructions it
30368         took to create a constant in a GPR that was never used, due to a
30369         test for soft-float earlier.
30370         (memory_fp_constant): Delete, no longer used.
30372         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30373         alternatives for loading non-0 constants into GPRs for hard
30374         floating point that is no longer needed due to changes in
30375         easy_fp_constant.  Add support for loading 0.0 into GPRs.
30376         (mov<mode>_hardfloat32): Likewise.
30377         (mov<mode>_hardfloat64): Likewise.
30378         (mov<mode>_64bit_dm): Likewise.
30379         (movtd_64bit_nodm): Likewise.
30380         (pre-reload move FP constant define_split): Delete define_split,
30381         since it is no longer used.
30382         (extenddftf2_internal): Remove GHF constraints that are not valid
30383         for extenddftf2.
30385 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
30387         PR rtl-optimization/63491
30388         * lra-constraints.c (check_and_process_move): Use src instead of
30389         sreg.  Remove some dead code.
30391 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
30393         PR ipa/65380
30394         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30395         (sem_variable::merge): Likewise.
30397 2015-03-19  Martin Liska  <mliska@suse.cz>
30399         PR ipa/65465
30400         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30401         all fields of cgraph_thunk_info.
30403 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30405         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30406         clone instrumented thunks.
30408 2015-03-19  Richard Biener  <rguenther@suse.de>
30410         Revert
30411         2015-03-10  Richard Biener  <rguenther@suse.de>
30413         PR middle-end/63155
30414         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30415         * tree-ssa-coalesce.c: Include timevar.h.
30416         (attempt_coalesce): Handle graph being NULL.
30417         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30418         Split out abnormal coalescing to ...
30419         (perform_abnormal_coalescing): ... this function.
30420         (coalesce_ssa_name): Perform abnormal coalescing without computing
30421         live/conflict.
30422         (verify_ssa_coalescing_worker): New function.
30423         (verify_ssa_coalescing): Likewise.
30425 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30426             Jakub Jelinek  <jakub@redhat.com>
30428         PR sanitizer/65400
30429         * tsan.c (instrument_gimple): Clear tail call flag on
30430         calls.
30432 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
30434         PR sanitizer/65400
30435         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30436         call in the return bb.
30437         (find_split_points): Add RETURN_BB argument, don't call
30438         find_return_bb.
30439         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
30440         if true append TSAN_FUNC_EXIT internal call after the call to
30441         the split off function.
30442         (execute_split_functions): Call find_return_bb here.
30443         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30444         Adjust find_split_points and split_function calls.
30446 2015-03-18  DJ Delorie  <dj@redhat.com>
30448         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30449         (iorqi3_virt): Likewise.
30451 2015-03-18  Tom de Vries  <tom@codesourcery.com>
30453         * tree-parloops.c (parallelize_loops): Make static.
30454         * tree-parloops.h (parallelize_loops): Remove extern declaration.
30456 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
30458         PR middle-end/64491
30459         Revert:
30460         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
30462         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30463         condition would be removed due to undefined behaviour.
30465 2015-03-18  Martin Liska  <mliska@suse.cz>
30467         PR ipa/65432
30468         * cgraph.c (cgraph_node::get_create): Remove unnecessary
30469         xstrdup_for_dump wrapper.
30470         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30471         sem_item::name.
30472         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30473         with xstrdup_for_dump.
30474         (sem_variable::equals): Likewise.
30475         (sem_item_optimizer::read_section): Use symtab_node::name instead of
30476         sem_item::name.
30477         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30478         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30479         symtab_node::asm_name with xstrdup_for_dump.
30480         (congruence_class::dump): Use symtab_node::name instead of
30481         sem_item::name.
30482         * ipa-icf.h (symtab_node::name): Remove.
30483         (symtab_node::asm_name): Likewise.
30485 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30487         PR tree-optimization/65450
30488         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30489         function.
30490         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30491         it instead of duplicate_ssa_name_ptr_info.
30493         PR target/65222
30494         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30496 2015-03-18  Richard Biener  <rguenther@suse.de>
30498         * tree-data-ref.h (struct access_matrix): Remove.
30499         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30500         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30501         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30502         (am_vector_index_for_loop): Likewise.
30503         (struct data_reference): Remove access_matrix member.
30504         (DR_ACCESS_MATRIX): Remove.
30505         (lambda_vector_new): Add comment.
30506         (lambda_matrix_new): Use XOBNEWVEC.
30508 2015-03-18  Richard Biener  <rguenther@suse.de>
30510         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30511         (pass_ch::execute): Cleanup the CFG only if we did sth.
30512         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30514 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30516         * expmed.c (synth_mult): Use std::swap instead of manually
30517         swapping algorithms.
30519 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
30521         PR target/65078
30522         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30524 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
30526         PR target/65296
30527         * config/avr/avr.opt (-nodevicelib): New option.
30528         * doc/invoke.texi (AVR Options): Document it.
30529         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30530         libgcc.a, libc.a, libm.a.
30531         * config/avr/specs.h: Same.
30532         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30533         which don't (directly) depend on the device.  Print more help.
30534         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30535         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30536         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30537         case of an error.
30538         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30539         for specs file name.
30540         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30541         * config/avr/avr-mcus.def: Adjust initializers and comments.
30543 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
30545         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30546         DECL_ONE_ONLY to check if decl is one only.
30547         * ipa-split.c (consider_split): Limit splitt of one only functions.
30549 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
30551         PR tree-optimization/65427
30552         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30553         functions.
30554         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30556 2015-03-16  Marek Polacek  <polacek@redhat.com>
30558         * cgraph.h (add_new_static_var): Remove declaration.
30559         * varpool.c (add_new_static_var): Remove function.
30561 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
30563         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30564         instead of vec<tree> * with vec_alloc and release for args.
30565         Adjust all users.
30567         PR middle-end/65431
30568         * omp-low.c (delete_omp_context): Only splay_tree_delete
30569         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30570         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
30572 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30574         PR sanitizer/64820
30575         * cfgexpand.c (align_base): New function.
30576         (alloc_stack_frame_space): Call it.
30577         (expand_stack_vars): Align prev_frame to be sure
30578         data->asan_vec elements aligned properly.
30580 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
30582         PR middle-end/65409
30583         * expr.c (store_field): Do not do a direct block copy if the source is
30584         a PARALLEL with BLKmode.
30586 2015-03-16  Tom de Vries  <tom@codesourcery.com>
30588         PR middle-end/65414
30589         Revert:
30590         2015-03-12  Tom de Vries  <tom@codesourcery.com>
30592         PR rtl-optimization/64895
30593         * lra-lives.c (check_pseudos_live_through_calls): Use
30594         actual_call_used_reg_set instead of call_used_reg_set, if available.
30596 2015-03-16  Alan Modra  <amodra@gmail.com>
30598         PR target/63150
30599         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30600         Modify Z->r bswapdi splitter to use dest in place of scratch.
30601         In r->Z and Z->r bswapdi splitter rename word_high, word_low
30602         to word1, word2 and rearrange logic to suit.
30603         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30604         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
30605         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30606         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
30607         early clobber.
30609 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
30611         PR tree-optimization/65369
30612         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30613         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30614         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30616         PR tree-optimization/65418
30617         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30618         are casts in the first PLUS_EXPR operand, ensure tbias and
30619         *totallowp are in the inner type.
30621         PR rtl-optimization/65401
30622         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30623         argument.  If true, adjust_address_nv of x with big-endian
30624         correction for the mode widening to GET_MODE (y).
30625         (make_field_assignment): Don't do MEM mode widening here.
30626         Use MEM_P instead of GET_CODE == MEM.
30628 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
30630         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30631         the external decls.
30633 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30635         PR target/64600
30636         * config/arm/arm.c (arm_gen_constant, AND case): Use
30637         ARM_SIGN_EXTEND when constructing AND mask.
30639 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30641         * graph.c (print_graph_cfg): Make function names visible and append
30642         parenthesis to it.  Also make groups of basic blocks belonging to the
30643         same function visible.
30645 2015-03-12  Richard Biener  <rguenther@suse.de>
30647         PR middle-end/44563
30648         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30649         to avoid quadratic behavior with inline expansion splitting blocks.
30650         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30651         with the successor if the predecessor will be merged with it.
30652         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30653         entry block with its successor.
30655 2015-03-13  Richard Biener  <rguenther@suse.de>
30657         PR middle-end/44563
30658         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30659         (cleanup_tree_cfg_1): Do not call it.
30660         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30661         (fixup_noreturn_call): Mark the stmt as control altering.
30662         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30663         here.
30664         (pass_data_fixup_cfg): Produce a dump file.
30665         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30666         (need_noreturn_fixup): New global.
30667         (pass_dominator::execute): Fixup queued noreturn calls.
30668         (optimize_stmt): Queue calls that became noreturn for fixup.
30669         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30670         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30671         (el_to_fixup): New global.
30672         (eliminate_dom_walker::before_dom_childre): Queue calls that
30673         became noreturn for fixup.
30674         (eliminate): Fixup queued noreturn calls.
30675         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30676         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30677         (substitute_and_fold_dom_walker::before_dom_children): Queue
30678         alls that became noreturn for fixup.
30679         (substitute_and_fold): Fixup queued noreturn calls.
30681 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
30683         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30684         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30685         are building; for methods check ODR type of class they belong to if
30686         they may lead to a polymorphic call.
30687         (sem_function::compare_polymorphic_p): Be bit smarter about testing
30688         when function may lead to a polymorphic call.
30689         (sem_function::compare_type_list): Remove.
30690         (sem_variable::equals): Update use of compatible_types_p.
30691         (sem_variable::parse_tree_refs): Remove.
30692         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30693         cdtor.
30694         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30695         matching here.
30696         (func_checker::compatible_polymorphic_types_p): Break out from ...
30697         (unc_checker::compatible_types_p): ... here.
30698         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30699         Declare.
30700         (unc_checker::compatible_types_p): Update.
30701         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30702         Remove.
30704 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30706         PR rtl-optimization/65235
30707         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30708         When first element of vec_concat is const_int, calculate its size
30709         using second element.
30711 2015-03-12  Richard Biener  <rguenther@suse.de>
30713         PR middle-end/65270
30714         * fold-const.c (operand_equal_p): Fix ordering of resetting
30715         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30717 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30719         * config/s390/s390.c (s390_reorg): Move code to output nops after label
30720         to s390_reorg ().
30721         (s390_asm_output_function_label): Likewise.
30722         * config/s390/s390.c (s390_asm_output_function_label):
30723         Fix function label alignment with -mhtopatch.
30724         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30725         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30726         ("nop_2_byte"): New define_insn.
30727         ("nop_4_byte"): Likewise.
30728         ("nop_6_byte"): Likewise.
30729         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30730         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30732 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
30734         PR target/65103
30735         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30736         register.
30738 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
30740         PR target/65044
30741         * toplev.c (process_options): Restrict Pointer Bounds Checker
30742         usage with Address Sanitizer.
30744 2015-03-12  Richard Biener  <rguenther@suse.de>
30746         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30747         to split on.
30748         * omp-low.c (expand_omp_taskreg): Split block before removing
30749         the stmt.
30750         (expand_omp_target): Likewise.
30751         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30752         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30753         stmt to split_block.
30755 2015-03-12  Tom de Vries  <tom@codesourcery.com>
30757         PR rtl-optimization/64895
30758         * lra-lives.c (check_pseudos_live_through_calls): Use
30759         actual_call_used_reg_set instead of call_used_reg_set, if available.
30761 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
30763         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30764         (cgraph_node::remove): Likewise.
30765         (cgraph_node::get_untransformed_body): Likewise.
30766         * varpool.c (varpool_node::remove): Likewise.
30767         (varpool_node::get_constructor): Add sanity check.
30769 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
30771         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30772         old GCC versions.
30773         (-fabi-compat-version): Likewise.
30774         (-ffriend-injection): Likewise.
30775         (-Wdeclaration-after-statement): Likewise.
30776         (-fomit-frame-pointer): Likewise.
30777         (-ftree-coalesce-inlined-vars): Likewise.
30778         (-fvisibility=): Likewise.
30779         * doc/extend.texi (Typeof): Likewise.
30780         (Zero Length): Likewise.
30781         (Escaped Newlines): Likewise.
30782         (Compound Literals): Likewise.
30783         (Function Attributes): Likewise.
30784         (Label Attributes): Likewise.
30785         (Type Attributes): Likewise.
30786         (Function Names): Likewise.
30787         (Other Builtins): Likewise.
30788         (Function Specific Option Pragmas): Likewise.
30789         (C++ Interface): Likewise.
30791 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
30793         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
30795 2015-03-11  Marek Polacek  <polacek@redhat.com>
30797         PR tree-optimization/65388
30798         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
30800 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
30802         PR target/65296
30803         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
30804         * configure: Regenerate.
30805         * config.in: Regenerate.
30806         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
30807         [-mn-flash]: Document it.
30808         [__AVR_ARCH__]: Document avrtiny.
30810         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
30811         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
30812         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
30814 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30816         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
30818 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30820         PR target/65242
30821         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
30822         allow reloads of PLUS in floating point/VSX registers.
30824 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
30826         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
30827         crypto_sha256_fast.
30828         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
30830 2015-03-11  Richard Biener  <rguenther@suse.de>
30832         PR tree-optimization/65310
30833         * tree-sra.c (build_ref_for_offset): Also preserve larger
30834         alignment.
30836 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
30838         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
30840 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
30842         PR target/65368
30843         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
30844         new define_expand.
30845         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
30847 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
30849         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
30850         (sem_function::equals_wpa): ... here.
30852 2015-03-10  Marek Polacek  <polacek@redhat.com>
30853             Jakub Jelinek  <jakub@redhat.com>
30855         PR sanitizer/65367
30856         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
30857         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
30858         separately.
30860 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
30862         PR target/65286
30863         * config/rs6000/t-linux: For powerpc64* target set
30864         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
30866 2015-03-10  Richard Biener  <rguenther@suse.de>
30868         PR middle-end/44563
30869         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
30870         for redirect_all_calls.
30872 2015-03-10  Marek Polacek  <polacek@redhat.com>
30874         * gdbinit.in (pcfun): Define and document.
30876 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
30878         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
30879         of libgomp-plugin.h.
30880         (find_target_compiler): Support a case when the path to gcc is
30881         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30882         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
30883         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
30884         libgomp-plugin.h.
30885         (main): Use GCC_INSTALL_NAME as target_driver_name.
30886         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
30887         define.
30888         (mkoffload.o): Remove obsolete include path and defines.
30889         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
30891 2015-03-10  Richard Biener  <rguenther@suse.de>
30893         PR middle-end/63155
30894         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30895         * tree-ssa-coalesce.c: Include timevar.h.
30896         (attempt_coalesce): Handle graph being NULL.
30897         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30898         Split out abnormal coalescing to ...
30899         (perform_abnormal_coalescing): ... this function.
30900         (coalesce_ssa_name): Perform abnormal coalescing without computing
30901         live/conflict.
30902         (verify_ssa_coalescing_worker): New function.
30903         (verify_ssa_coalescing): Likewise.
30905 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
30907         PR target/65296
30908         * config.gcc (extra_options) [avr]: Remove.
30909         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
30910         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
30911         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
30913         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
30914         (-mmcu=): Add Var and MissingArgError properties.
30915         (-march=): Remove.
30916         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
30917         * config/avr/t-multilib: Regenerate.
30918         * config/avr/specs.h: New file.
30919         * config/avr/driver-avr.c: New file.
30920         * config/avr/genopt.sh: Remove file.
30921         * config/avr/avr-tables.opt: Remove file.
30922         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
30923         * config/avr/avr-c.c: Same.
30924         * avr-arch.h: Same.
30925         (avr_current_device): Remove proto.
30926         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
30927         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
30928         (EXTRA_SPEC_FUNCTIONS): Define.
30929         (avr_devicespecs_file): New specs function proto.
30930         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
30931         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
30932         (avr_current_device): Remove definition and usage.
30933         (avr_set_core_architecture): New static function.
30934         (avr_option_override): Use it.
30935         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
30936         (mcu_name): New static array.
30937         (comparator, avr_archs_str, avr_mcus_str): New static functions.
30938         (avr_inform_devices, avr_inform_core_architectures): New functions.
30939         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
30940         (avrlibc.h) [WITH_AVRLIBC]: Include.
30941         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
30942         (print_mcu): Rewrite from scratch.
30943         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
30944         Forward to avr-specific specs defined in device-specs file.
30945         * config/avr/t-avr (driver-avr.o): New rule.
30946         (avr-devices.o): Depend on avr-arch.h.
30947         (avr-mcus): No more depend on avr-tables.opt.
30948         (avr-tables.opt): Remove rule.
30949         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
30951 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30953         * c-family/c.opt (fchkp-use-wrappers): New.
30954         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
30955         (chkp_wrap_function): New.
30956         (chkp_build_instrumented_fndecl): Support wrapped
30957         functions.
30958         * doc/invoke.texi (-fcheck-pointer-bounds): New.
30959         (-fchkp-check-incomplete-type): New.
30960         (-fchkp-first-field-has-own-bounds): New.
30961         (-fchkp-narrow-bounds): New.
30962         (-fchkp-narrow-to-innermost-array): New.
30963         (-fchkp-optimize): New.
30964         (-fchkp-use-fast-string-functions): New.
30965         (-fchkp-use-nochk-string-functions): New.
30966         (-fchkp-use-static-bounds): New.
30967         (-fchkp-use-static-const-bounds): New.
30968         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
30969         (-fchkp-check-read): New.
30970         (-fchkp-check-write): New.
30971         (-fchkp-store-bounds): New.
30972         (-fchkp-instrument-calls): New.
30973         (-fchkp-instrument-marked-only): New.
30974         (-fchkp-use-wrappers): New.
30975         (-static-libmpx): New.
30976         (-static-libmpxwrappers): New.
30978 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30980         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
30981         (CHKP_SPEC): Add wrappers library.
30982         * c-family/c.opt (static-libmpxwrappers): New.
30984 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
30986         * config/i386/linux-common.h (LIBMPX_LIBS): New.
30987         (LIBMPX_SPEC): New.
30988         (CHKP_SPEC): New.
30989         * gcc.c (CHKP_SPEC): New.
30990         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
30991         * c-family/c.opt (static-libmpx): New.
30993 2015-03-10  Richard Biener  <rguenther@suse.de>
30995         PR middle-end/44563
30996         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
30997         for compare_type.
30998         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
30999         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31000         (cgraph_add_edge_to_call_site_hash): Likewise.
31001         (cgraph_node::get_edge): Likewise.
31002         (cgraph_edge::set_call_stmt): Likewise.
31003         (cgraph_edge::remove_caller): Likewise.
31005 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
31007         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31008         (callee_saved_gpr_regs_size): ... this.
31009         (callee_saved_regs_first_regno): Rename to ...
31010         (callee_saved_first_gpr_regno): ... this.
31011         (callee_saved_regs_last_regno) Rename to ...
31012         (callee_saved_last_gpr_regno): ... this.
31013         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31014         variables.
31015         (nds32_initial_elimination_offset): Likewise.
31016         (nds32_expand_prologue): Likewise.
31017         (nds32_expand_epilogue): Likewise.
31018         (nds32_expand_prologue_v3push): Likewise.
31019         (nds32_expand_epilogue_v3pop): Likewise.
31020         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31021         Adjust renamed variables.
31022         (nds32_output_stack_pop): Likewise.
31024 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31026         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31027         code in comment.
31029 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31031         PR rtl-optimization/65321
31032         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31033         than shift mode.
31034         * var-tracking.c (use_narrower_mode): Likewise.
31036 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31038         PR tree-optimization/65355
31039         * varasm.c (notice_global_symbol): Do not produce RTL.
31040         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31041         anchor.
31042         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31043         check for section anchors.
31045 2015-03-10  Alan Modra  <amodra@gmail.com>
31047         PR target/65286
31048         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31049         to be single-arch by default.  Set cpu_is_64bit for powerpc64
31050         given --with-cpu=native.
31051         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31052         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31053         and powerpc64le.
31054         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31055         rs6000_isa_flags rather than TARGET_64BIT.
31057 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
31058             Kaz Kojima  <kkojima@gcc.gnu.org>
31060         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31062 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
31064         PR lto/65361
31065         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31066         on a TREE_BINFO, instead use BINFO_TYPE.
31068 2015-03-09  Richard Biener  <rguenther@suse.de>
31070         PR middle-end/65270
31071         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31072         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31073         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
31074         of that.  When comparing dereferences compare alignment.
31075         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31077 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31079         * ipa-inline-analysis.c (check_callers): Check
31080         node->can_remove_if_no_direct_calls_and_refs_p.
31081         (growth_likely_positive): Reorganize to call
31082         can_remove_if_no_direct_calls_p later.
31083         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31084         will_be_removed_from_program_if_no_direct_calls_p): Add
31085         will_inline parameter.
31086         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31087         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31088         Handle inliner case correctly.
31090 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31092         PR tree-optimization/63743
31093         * cfgexpand.c (reorder_operands): Also reorder if only second operand
31094         had its definition forwarded by TER.
31096 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
31098         PR lto/65316
31099         * ipa-utils.h (types_odr_comparable): Add strict argument.
31100         * ipa-devirt.c: Fix whitespace;
31101         (odr_hasher): Remove.
31102         (odr_name_hasher, odr_vtable_hasher): New hashers.
31103         (can_be_name_hashed_p): New predicate.
31104         (hash_type_name): remove.
31105         (hash_odr_name): New.
31106         (odr_name_hasher::hash): new.
31107         (can_be_vtable_hashed_p): New.
31108         (hash_odr_vtable): New.
31109         (odr_vtable_hasher::hash): New.
31110         (types_same_for_odr): Add strict parameter.
31111         (types_odr_comparable): Likewise.
31112         (odr_name_hasher::equal): New.
31113         (odr_vtable_hasher::equal): New.
31114         (odr_name_hasher::remove): New.
31115         (odr_hash_type): Change to hash_table<odr_name_hasher>.
31116         (odr_vtable_hash_type): New.
31117         (odr_vtable_hash): New.
31118         (odr_subtypes_equivalent_p): Do strict comparsion.
31119         (add_type_duplicate): Merge type names; cleanup; avoid type
31120         duplicates.
31121         (register_odr_type): Initialize vtable hash.
31122         (build_type_inheritance_graph): Likewise
31123         (get_odr_type): Reorg to use two hashes.
31124         (dump_possible_polymorphic_call_targets): Move sanity check after debug
31125         output.
31126         (ipa_devirt): Dump type_inheritance_graph.
31127         (types_same_for_odr): Add strict mode.
31129 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31131         PR ipa/65334
31132         * cgraph.h (symtab_node): Add definition_alignment,
31133         can_increase_alignment_p and increase_alignment.
31134         * symtab.c (symtab_node::can_increase_alignment_p,
31135         increase_alignment_1, symtab_node::increase_alignment,
31136         symtab_node::definition_alignment): New.
31137         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31138         can_increase_alignment_p.
31139         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31140         * tree-vect-stmts.c (ensure_base_align): Likewise.
31141         * varasm.c (function_section_1): Use definition_alignment.
31142         (assemble_start_function): Likewise.
31143         (emit_local): likewise.
31144         (build_constant_desc): Likewsie.
31145         (output_constant_def_contents): Likewise.
31146         (place_block_symbol): Likewise.
31147         (output_object_block): Likewise.
31149 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31151         PR ipa/65316
31152         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31153         when outputting debug.
31155 2015-03-07  Marek Polacek  <polacek@redhat.com>
31156             Martin Uecker  <uecker@eecs.berkeley.edu>
31158         PR sanitizer/65280
31159         * doc/invoke.texi: Update description of -fsanitize=bounds.
31161 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
31163         * tree-ssa-phiopt.c (neg_replacement): Remove.
31164         (tree_ssa_phiopt_worker): Remove negate optimization.
31166 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31168         PR ipa/65302
31169         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31171 2015-03-06  Richard Biener  <rguenther@suse.de>
31173         PR middle-end/64928
31174         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31175         and liveout_obstack members.
31176         (calculate_live_on_exit): Remove.
31177         (calculate_live_ranges): Change declaration.
31178         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31179         (new_tree_live_info): Adjust.
31180         (calculate_live_ranges): Delete livein when not wanted.
31181         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31182         Deal with partly deleted live info.
31183         (loe_visit_block): Remove temporary bitmap by using
31184         bitmap_ior_and_compl_into.
31185         (live_worklist): Adjust accordingly.
31186         (calculate_live_on_exit): Make static.
31187         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31188         we do not need livein.
31190 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
31192         * real.c (real_from_string): Fix typo in assertion.
31194 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
31196         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31197         the patch.
31199 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
31201         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31203 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
31205         PR target/64342
31206         * lra-assigns.c (find_hard_regno_for): Rename to
31207         find_hard_regno_for_1.  Add a new parameter.
31208         (find_hard_regno_for): New function using find_hard_regno_for_1.
31210 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31212         PR rtl-optimization/65067
31213         * expmed.c (store_bit_field, extract_bit_field): Reworked the
31214         strict volatile bitfield handling.
31216 2015-03-05  Martin Liska  <mliska@suse.cz>
31218         PR ipa/65318
31219         * ipa-icf.c (sem_variable::equals): Compare variables types.
31221 2015-03-05  Richard Henderson  <rth@redhat.com>
31223         PR target/65121
31224         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31225         correctly check weak symbol binding.
31227 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
31229         PR middle-end/65315
31230         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31231         needed alignment.
31233 2015-03-05  Martin Liska  <mliska@suse.cz>
31235         * ipa-inline.c (inline_small_functions): Set default value to
31236         prevent warning during bootstrap.
31237         * tree.h: Add pragma guard that ignores false positives during
31238         bootstrap.
31240 2015-03-05  Richard Biener  <rguenther@suse.de>
31242         PR tree-optimization/65310
31243         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31244         Properly preserve alignment of the base of the access.
31246 2015-03-05  Richard Biener  <rguenther@suse.de>
31248         PR ipa/65270
31249         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31250         Compare dependence info.
31252 2015-03-05  Richard Biener  <rguenther@suse.de>
31254         PR middle-end/65233
31255         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31256         tree-into-ssa.h.
31257         (walk_ssa_copies): Revert last chage.  Instead do not walk
31258         SSA names registered for SSA update.
31260 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31262         PR ipa/65270
31263         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31264         vtable references for their containing type.
31265         (sem_function::equals_wpa): Compare TYPE_RESTRICT
31266         and type attributes.
31268 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
31270         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31271         before negating it.
31272         * stor-layout.c (finalize_record_size): Revert latest change.
31274 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
31276         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31278 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31280         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31281         for correct comdat handling.
31282         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31283         Likewise.
31284         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31285         (used_from_object_file_p_worker): Remove.
31286         (cgraph_node::only_called_directly_or_alised): Add
31287         used_from_object_file_p.
31288         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31289         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31290         can_remove_if_no_direct_calls_and_refs_p.
31292 2015-03-04  Nick Clifton  <nickc@redhat.com>
31294         * config/rl78/rl78.h (enum reg_class): Remove real registers from
31295         General register class.
31296         * config/rl78/rl78-real.md: Replace general register constraints
31297         with real+virtual register constraints.
31299 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31301         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31302         from checking for -mhtm option.
31304 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
31306         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31307         (struct ipa_sra_check_caller_data): Add has_thunk field.
31308         (ipa_sra_check_caller): Check for thunk.
31309         (ipa_sra_preliminary_function_checks): Give up on function with
31310         thunks.
31311         (ipa_early_sra): Use call_for_symbol_and_aliases.
31313 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
31315         PR target/65249
31316         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31317         called for __stack_chk_guard symbol.
31319 2015-03-03  DJ Delorie  <dj@redhat.com>
31321         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31322         inc/dec.
31323         (*addhi3_real): Likewise.
31324         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31325         pattern to match incrementing memory.
31326         * config/rl78/predicates.md (rl78_1_2_operand): New.
31327         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31328         it's the same and only mem.
31329         (rl78_alloc_physical_registers_op2): If there's effectively only
31330         one MEM, transcode it into HL.
31331         (rl78_far_p): Reject addresses that aren't legitimate.
31333 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31335         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31336         negating it.
31338         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31340 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31342         Implement call0 ABI for xtensa
31343         * config/xtensa/constraints.md ("a" constraint): Include stack
31344         pointer in case of call0 ABI.
31345         ("q" constraint): Make empty in case of call0 ABI.
31346         ("D" constraint): Include stack pointer in case of call0 ABI.
31347         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31348         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31349         prototypes.
31350         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31351         variable.
31352         (xtensa_regno_to_class): Make it a local variable in the
31353         function xtensa_regno_to_class.
31354         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31355         macro, function prototype and implementation.
31356         (reg_nonleaf_alloc_order): Make it a local variable in the
31357         function order_regs_for_local_alloc.
31358         (xtensa_conditional_register_usage): New function.
31359         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31360         (xtensa_valid_move): Allow direct moves to stack pointer
31361         register in call0 ABI.
31362         (xtensa_setup_frame_addresses): Only spill register windows in
31363         windowed ABI.
31364         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31365         call0 ABI respectively.
31366         (xtensa_function_arg_1): Only mark a7 register for copying in
31367         windowed ABI.
31368         (xtensa_call_save_reg): New function.
31369         (compute_frame_size): Add space for callee saved register
31370         storage to the frame size in call0 ABI.
31371         (xtensa_expand_prologue): Generate code to set up stack frame
31372         and save callee-saved registers in call0 ABI.
31373         (xtensa_expand_epilogue): New function.
31374         (xtensa_set_return_address): New function.
31375         (xtensa_return_addr): Calculate return address in call0 ABI.
31376         (xtensa_builtin_saveregs): Only mark a7 register for copying and
31377         emit copying code in windowed ABI.
31378         (order_regs_for_local_alloc): Add preferred register allocation
31379         order for non-leaf function in call0 ABI.
31380         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31381         (xtensa_asm_trampoline_template): Add trampoline generation for
31382         call0 ABI.
31383         (xtensa_trampoline_init): Add trampoline initialization for
31384         call0 ABI.
31385         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31386         functions.
31387         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31388         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31389         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31390         ABI call-used registers.
31391         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31392         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31393         call0 ABI.
31394         (REG_CLASS_CONTENTS): Include all registers into the preferred
31395         reload registers set, adjust the set in the
31396         xtensa_conditional_register_usage.
31397         (xtensa_regno_to_class): Drop variable declaration.
31398         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31399         function.
31400         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31401         respectively.
31402         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31403         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31404         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31405         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31406         location in call0 ABI.
31407         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31408         stack adjustment size when handling exception.
31409         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31410         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31411         definitions.
31412         ("return" pattern): Generate ret.n/ret in call0 ABI.
31413         ("epilogue" pattern): Expand epilogue.
31414         ("nonlocal_goto" pattern): Use default in call0 ABI.
31415         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31416         emit eh_set_a0_* depending on ABI.
31417         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31418         ("eh_set_a0_call0", "blockage"): New patterns.
31420 2015-03-03  Martin Liska  <mliska@suse.cz>
31422         PR ipa/65287
31423         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31425 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
31427         PR 65138/target
31428         * config/rs6000/rs6000-tables.opt: Regenerate table.
31430 2015-03-03  Renlin Li  <renlin.li@arm.com>
31432         * doc/md.texi (@item ^): Change ? into ^.
31434 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
31436         * doc/tm.texi: Regenerated.
31438 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
31440         * builtins.c (expand_builtin_return_addr): Add
31441         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31442         surrounding #ifdef.
31443         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31444         definition to 1.
31445         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31446         Likewise.
31447         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31448         undefined.
31449         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31450         paragraph.
31452 2015-03-03  Martin Jambor  <mjambor@suse.cz>
31453             Eric Botcazou  <ebotcazou@adacore.com>
31455         * tree-sra.c (ipa_sra_check_caller_data): New type.
31456         (has_caller_p): Removed.
31457         (ipa_sra_check_caller): New function.
31458         (ipa_sra_preliminary_function_checks): Use it.
31460 2015-03-03  Martin Liska  <mliska@suse.cz>
31462         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31463         instead of if branch.
31465 2015-03-03  Martin Liska  <mliska@suse.cz>
31467         PR ipa/65282
31468         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31470 2015-03-23  Jeff Law  <law@redhat.com>
31472         PR tree-optimization/65241
31473         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31474         hash table if INSERT is true.
31476 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31478         PR target/65296
31479         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31481 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31483         PR target/64331
31484         * config/avr/avr.c (context.h, tree-pass.h): Include them.
31485         (avr_pass_data_recompute_notes): New static variable.
31486         (avr_pass_recompute_notes): New class.
31487         (avr_register_passes): New static function.
31488         (avr_option_override): Call it.
31490 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
31492         Fix various problems with specs file generation.
31494         PR target/65296
31495         * config.gcc (extra_gcc_objs) [avr]: Remove.
31496         * config/avr/driver-avr.c: Remove file.
31497         * config/avr/t-avr (driver-avr.o): Remove rule.
31498         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31499         INCLUDES to build.  Depend on TM_H.
31500         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
31501         build warnings.  Fix non-matching types and non-existing %-codes.
31502         (tm.h): Include.
31503         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31504         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31505         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31506         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31507         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31508         (LIBGCC_SPEC): Remove definitions.
31510 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31512         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31513         to create a register in testing mode.
31515 2015-03-03  Martin Liska  <mliska@suse.cz>
31516             Jan Hubicka  <hubicka@ucw.cz>
31518         PR ipa/65263
31519         * cgraph.c (cgraph_node::has_thunk_p): New function.
31520         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31521         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31522         (sem_function::merge): Assert is changed.
31524 2015-03-03  Martin Liska  <mliska@suse.cz>
31525             Martin Jambor  <mjambor@suse.cz>
31527         PR ipa/65087
31528         * ipa-icf.c (sem_item_optimizer::execute): Change function
31529         return value to boolean.
31530         (sem_item_optimizer::merge_classes): Likewise.
31531         (ipa_icf_driver): Return TODO_remove_functions in case there's
31532         a merge operation processed.
31533         * ipa-icf.h: Change function return value to boolean.
31535 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
31537         PR 65138/target
31538         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31539         processor type for 64-bit little endian PowerPC.
31541         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31542         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
31543         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
31544         printing built-in mask so it does not pass NULL pointers.
31546         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31547         -mcpu=powerpc64le.
31549 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
31551         PR target/58158
31552         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31553         !ISA_HAS_FP_CONDMOVE.
31555 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
31557         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31558         reload_completed.
31560 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
31562         * doc/invoke.texi (Options for Code Generation Conventions):
31563         Fix URL of DSO paper.
31565 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31567         PR ipa/65130
31568         * ipa-inline.c (check_callers): Looks for recursion.
31569         (inline_to_all_callers): Give up on uninlinable or recursive edges.
31570         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31571         summary of inline clones.
31572         (do_estimate_growth_1): Fix recursion check.
31574 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31576         PR ipa/64988
31577         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31578         comdat groups.
31580 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
31581             Aldy Hernandez  <aldyh@redhat.com>
31583         PR lto/65276
31584         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31585         when checking TYPE_BINFO.
31587 2015-03-02  Richard Biener  <rguenther@suse.de>
31589         PR ipa/65270
31590         * ipa-icf-gimple.c: Include builtins.h.
31591         (func_checker::compare_memory_operand): Compare base alignment.
31593 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31595         PR target/65184
31596         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31597         passed by reference.
31599 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
31601         PR target/65183
31602         * tree-chkp.c (chkp_check_lower): Don't check against
31603         zero bounds for already instrumented functions.
31604         (chkp_check_upper): Likewise.
31605         (chkp_fini): Clean pass local data to avoid wrong reusage.
31607 2015-02-28  Martin Liska  <mliska@suse.cz>
31608             Jan Hubicka  <hubicka@ucw.cz>
31610         * ipa-icf.c (sem_variable::equals): Improve debug output;
31611         get variable constructor.
31612         (sem_variable::parse): Do not filter out too early; give up on
31613         volatile and register vars.
31614         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31615         variables.
31616         * ipa-icf.h (sem_variable::init): Do not set ctor.
31617         (sem_variable::ctor): Remove.
31619 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
31621         PR middle-end/65233
31622         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31624 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31626         * ipa-icf.c: Include stor-layout.h
31627         (sem_function::compare_cgraph_references): Rename to ...
31628         (sem_item::compare_cgraph_references): ... this one.
31629         (sem_variable::equals_wpa): New function
31630         (sem_variable::equals): Do not check stuff already verified by
31631         equals_wpa.
31632         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31633         * ipa-icf.h (sem_item): Add compare_cgraph_references.
31634         (sem_function): Remove compare_cgraph_references.
31635         (sem_variable): Turns equals_wpa into non-inline.
31637 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31639         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31640         (sem_item::add_expr): New function.
31641         (sem_function::hash_stmt): Handle operands of most statements.
31642         (sem_variable::get_hash): Hash the actual constructor.
31643         * ipa-icf.h (sem_item): Add add_expr.
31644         (sem_function): Update prototype of hash_stmt
31646 2015-02-28  Martin Liska  <mliska@suse.cz>
31647             Jan Hubicka  <hubicka@ucw.cz>
31649         PR ipa/65245
31650         * ipa-icf-gimple.c (func_checker::compare_function_decl):
31651         Remove.
31652         (func_checker::compare_variable_decl): Skip symtab vars.
31653         (func_checker::compare_cst_or_decl): Update.
31654         * ipa-icf.c (sem_function::parse): Do not consider aliases.
31655         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31656         use correct symtab predicates.
31657         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31658         (sem_variable::parse):  Update comment.
31659         (sem_item_optimizer::build_graph): Consider ultimate aliases
31660         for references.
31662 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31664         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31665         of OBJ_TYPE_REF.
31667 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31669         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31670         (sem_variable::merge) Likewise.
31672 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31674         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31675         target; also match flag_ipa_devirt.
31677 2015-03-01  Martin Liska  <mliska@suse.cz>
31678             Jan Hubicka  <hubicka@ucw.cz>
31680         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31681         Validate variable alignment.
31682         * ipa-icf.c (sem_function::equals_private): Be more precise
31683         about non-common function attributes.
31684         (sem_variable::equals): Likewise.
31686 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31688         PR ipa/65237
31689         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31690         across COMDAT group boundary.
31692 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31694         PR ipa/65232
31695         * ipa-icf.c (clear_decl_rtl): New function.
31696         (sem_function::merge): Clear RTL before forming alias.
31697         (sem_variable::merge): Clear RTL before forming alias.
31699 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
31701         PR ipa/65236
31702         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31704 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
31706         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31707         to neon_to_gp<q>.
31709 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31711         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31712         a typo in the description.
31714 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31716         PR target/64317
31717         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31718         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31719         * lra-constraints.c: Include "params.h".
31720         (EBB_PROBABILITY_CUTOFF): Use
31721         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31722         (lra_inheritance): Use '<' instead of '<=' for
31723         EBB_PROBABILITY_CUTOFF.
31724         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31725         Document change.
31727 2015-02-27  Martin Liska  <mliska@suse.cz>
31729         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31730         vector length condition.
31732 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
31734         * doc/extend.texi (x86 transactional memory intrinsics):
31735         Reorganize discussion of _xbegin.  Clarify that the return
31736         value is a bit mask.  Expand example and move to end of section.
31738 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31739             Aldy Hernandez  <aldyh@redhat.com>
31741         PR rtl-optimization/65220
31742         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31744 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31746         PR target/65032
31747         * lra-remat.c (update_scratch_ops): New.
31748         (do_remat): Call it.
31749         * lra.c (lra_register_new_scratch_op): New. Take code from ...
31750         (remove_scratches): ... here.
31751         * lra-int.h (lra_register_new_scratch_op): New prototype.
31753 2015-02-27  Marek Polacek  <polacek@redhat.com>
31755         PR c/65040
31756         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31757         -Wformat-signedness anymore.
31759 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31761         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31762         function.
31763         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31765 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31767         * config/s390/s390.c (enum s390_builtin):
31768         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31769         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31770         (s390_init_builtins): Generate new builtin functions.
31771         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31772         (s390_sfpc, s390_efpc): New pattern definitions.
31774 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31776         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
31777         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
31778         (s390_builtin_decls): New array.
31779         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
31780         (s390_builtin_decl): New function.
31781         (TARGET_BUILTIN_DECL): Define macro.
31783 2015-02-27  Richard Biener  <rguenther@suse.de>
31785         PR middle-end/63175
31786         * builtins.c (get_object_alignment_2): Make sure to re-apply
31787         the ANDed mask after recursing to its operand gets us a new
31788         misalignment bit position.
31790 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
31791             Martin Liska  <mliska@suse.cz>
31793         PR bootstrap/65150
31794         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
31795         Use address_matters_p.
31796         (redirect_all_callers, set_addressable): New functions.
31797         (sem_function::merge): Reorganize and fix merging issues.
31798         (sem_variable::merge): Likewise.
31799         (sem_variable::compare_sections): Remove.
31800         * common.opt (fmerge-all-constants, fmerge-constants): Remove
31801         Optimization flag.
31802         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
31803         redirect them.
31804         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
31805         decl is used.
31806         (address_matters_1): New function.
31807         (symtab_node::address_matters_p): New function.
31808         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
31809         check for merged flag.
31810         * cgraph.h (address_matters_p): Declare.
31811         (symtab_node::address_taken_from_non_vtable_p): Remove.
31812         (symtab_node::address_can_be_compared_p): New method.
31813         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
31814         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
31815         Remove.
31816         (comdat_can_be_unshared_p_1) Use address_matters_p.
31817         (update_vtable_references): Fix formating.
31818         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
31819         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
31820         * cgraphclones.c: Preserve merged and icf_merged flags.
31822 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
31824         * doc/extend.texi (Function Attributes): Fix spelling and typos.
31825         (Label Attributes): Likewise.
31826         (Cilk Plus Builtins): Likewise.
31827         (ARC SIMD Built-in Functions): Likewise.
31828         (ARM C Language Extensions (ACLE)): Likewise.
31829         (PowerPC Built-in Functions): Likewise.
31830         (PowerPC Hardware Transactional Memory Built-in Functions):
31831         Likewise.
31833 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31835         PR tree-optimization/65216
31836         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
31837         new stmt and new SSA_NAME for lhs whenever the arguments have
31838         changed and weren't just swapped.  Fix comment typo.
31840         PR tree-optimization/65215
31841         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
31842         for PDP endian targets.
31843         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
31844         Fix up formatting issues.
31845         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
31846         size is smaller than the original, adjust MEM_REF offset by the
31847         difference of sizes.  Use is_gimple_mem_ref_addr instead of
31848         is_gimple_min_invariant test to avoid adding address temporaries.
31850 2015-02-26  Martin Liska  <mliska@suse.cz>
31851             Jan Hubicka  <hubicka@ucw.cz>
31853         PR ipa/64693
31854         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
31855         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
31856         (sem_item_optimizer::process_cong_reduction): Include division by
31857         sensitive references.
31858         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
31859         * ipa-ref.c (ipa_ref::address_matters_p): New function.
31860         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
31862 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
31864         PR target/65192
31865         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
31866         Remove.
31867         * config/avr/avr.c: Same.
31868         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
31869         Refuse any constant address not in 0..0xbf.
31870         * config/avr/avr.md (*mov<mode>, *movsf): Remove
31871         tiny_valid_direct_memory_access_range from insn conditions.
31872         (mov<mode>): Don't special-case expansion of avrtiny addresses.
31874 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
31876         PR target/61142
31877         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
31878         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
31879         * config/sh/predicates.md (const_logical_operand): New predicate.
31880         * config/sh/sh.md: Add new peephole2 patterns.
31882 2015-02-26  Marek Polacek  <polacek@redhat.com>
31884         PR ipa/65008
31885         * ipa-inline.c (early_inliner): Recompute inline parameters.
31887 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31889         PR target/65171
31890         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
31891         instructions with TImode operands are included in the analysis.
31893 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
31895         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
31896         of an EDGE_FSM_THREAD.
31898 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31900         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
31902 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
31904         PR debug/46102
31905         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
31907 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
31909         PR tree-optimization/65048
31910         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
31911         (thread_through_all_blocks): Call valid_jump_thread_path.
31912         Remove invalid FSM jump-thread paths.
31914 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
31916         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
31917         (ipa_write_optimization_summaries): Likewise.
31918         * tree-streamer.h: Include data-streamer.h.
31919         (streamer_mode_table): Declare extern variable.
31920         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
31921         * lto-streamer-out.c (lto_output_init_mode_table,
31922         lto_write_mode_table): New functions.
31923         (produce_asm_for_decls): Call lto_write_mode_table when streaming
31924         offloading LTO.
31925         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
31926         (lto_create_simple_input_block): Add mode_table argument to the
31927         lto_input_block constructors.
31928         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
31929         Likewise.
31930         * data-streamer-in.c (string_for_index): Likewise.
31931         * ipa-inline-analysis.c (inline_read_section): Likewise.
31932         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
31933         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
31934         * lto-streamer-in.c (lto_read_body_or_constructor,
31935         lto_input_toplevel_asms): Likewise.
31936         (lto_input_mode_table): New function.
31937         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
31938         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
31939         Use bp_pack_machine_mode.
31940         * real.h (struct real_format): Add name field.
31941         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
31942         (class lto_input_block): Add mode_table member.
31943         (lto_input_block::lto_input_block): Add mode_table_ argument,
31944         initialize mode_table.
31945         (struct lto_file_decl_data): Add mode_table field.
31946         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
31947         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
31948         unpack_ts_decl_common_value_fields,
31949         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
31950         * tree-streamer.c (streamer_mode_table): New variable.
31951         * real.c (ieee_single_format, mips_single_format,
31952         motorola_single_format, spu_single_format, ieee_double_format,
31953         mips_double_format, motorola_double_format,
31954         ieee_extended_motorola_format, ieee_extended_intel_96_format,
31955         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
31956         ibm_extended_format, mips_extended_format, ieee_quad_format,
31957         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
31958         decimal_single_format, decimal_double_format, decimal_quad_format,
31959         ieee_half_format, arm_half_format, real_internal_format): Add name
31960         field.
31961         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
31963 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
31965         PR target/65161
31966         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
31967         reordering for selective scheduling.
31969 2015-02-26  Terry Guo  <terry.guo@arm.com>
31971         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
31972         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
31973         (arm_arch_no_volatile_ce): Declare new global variable.
31974         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
31975         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
31976         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
31977         (TARGET_NO_VOLATILE_CE): New macro.
31978         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
31979         volatile memory access in IT block
31981 2015-02-25  Kai Tietz  <ktietz@redhat.com>
31983         PR tree-optimization/61917
31984         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
31985         that reduc_def_stmt is null.
31987 2015-02-25  Martin Liska  <mliska@suse.cz>
31989         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
31990         hard register variables.
31992 2015-02-25  Kai Tietz  <ktietz@redhat.com>
31994         PR target/64212
31995         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
31996         (symtab::noninterposable_alias): Likewise.
31998 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
32000         PR target/65167
32001         * config/i386/i386.c (ix86_function_arg_regno_p): Support
32002         bounds registers.
32003         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32005 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
32007         PR target/64997
32008         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32009         as split condition; force split via '#' in output pattern.
32011 2015-02-25  Richard Biener  <rguenther@suse.de>
32012             Kai Tietz  <ktietz@redhat.com>
32014         PR tree-optimization/61917
32015         * tree-vect-loop.c (vectorizable_reduction): Allow
32016         vect_internal_def without reduction to exit graceful.
32018 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32020         PR target/65196
32021         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32022         only with NONDEBUG_INSN_P.
32024 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
32026         Use variadic macros with avr-log.c.
32028         * config/avr/avr-protos.h (avr_vdump): New prototype.
32029         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32030         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32031         * config/avr/avr-log.c: Adjust comments.
32032         (avr_vdump): New function.
32033         (avr_vadump): Pass caller as 2nd argument instead of format string.
32034         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32035         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32037 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
32039         PR lto/64374
32040         * target.def (target_option_stream_in): New target hook.
32041         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32042         targetm.target_option.post_stream_in if non-NULL.
32043         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32044         * doc/tm.texi: Updated.
32045         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32046         function.
32047         (TARGET_OPTION_POST_STREAM_IN): Redefine.
32049 2015-02-24  Jeff Law  <law@redhat.com>
32051         PR target/65117
32052         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32053         of operand 0 and operand 2.
32054         (zero_cost_loop_end, loop_end): Similarly.
32056 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
32058         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32059         CXX_MEM_STAT_INFO.
32061 2015-02-24  DJ Delorie  <dj@redhat.com>
32063         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32064         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32065         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32066         instead of hardcoding SImode.
32068 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
32070         * omp-low.c (create_omp_child_function): Tag entrypoint
32071         functions with a special attribute.
32073 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32075         PR target/65058
32076         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32078 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
32080         PR rtl-optimization/65123
32081         * lra-remat.c (operand_to_remat): Check hard regs in insn
32082         definition too.
32084 2015-02-24  Nick Clifton  <nickc@redhat.com>
32086         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32087         to the assembler.
32089 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
32091         PR libgomp/64625
32092         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32093         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32094         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32095         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32096         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32097         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32098         (BUILT_IN_GOACC_PARALLEL): Specify as
32099         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32100         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32101         * builtin-types.def
32102         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32103         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32104         Remove function types.
32105         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32106         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32107         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32108         New function types.
32110 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
32112         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32114 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
32116         PR tree-optimization/65170
32117         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32118         if val[1] < 0, clear also val[2] and return 3.
32120 2015-02-24  Alan Modra  <amodra@gmail.com>
32122         PR target/65172
32123         * config/rs6000/rs6000.c (get_memref_parts): Only return true
32124         when *base is a reg.  Handle nested plus addresses.  Simplify
32125         pre_modify test.
32127 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
32129         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32130         use natural alignment when optimizing for size.
32132 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
32134         PR target/65153
32135         * config/sh/sh.md (movsicc_true+3): Remove peephole.
32136         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32137         * config/sh/sh.c (replace_n_hard_rtx): Remove.
32139 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
32141         PR fortran/63427
32142         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32143         too big for a wide_int.  Implement missing wrapping operation.
32145 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
32147         PR target/65163
32148         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32149         instead of const_int 4294901760.
32151 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
32153         * config/avr/t-avr: Fix typo in comment.
32155 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32157         * doc/rtl.texi (fma): Clarify documentation.
32159 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
32161         PR debug/58123
32162         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32163         over input_location.
32165 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32167         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32168         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32169         restrict alignments to absolute_biggest_alignment.
32170         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32171         Define.
32172         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32173         * doc/tm.texi: Regenerate.
32174         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32176 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
32178         PR target/64172
32179         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32181 2015-02-20  Richard Biener  <rguenther@suse.de>
32183         PR tree-optimization/65136
32184         * tree-ssa-propagate.c: Include cfgloop.h.
32185         (replace_phi_args_in): Avoid replacing loop latch edge PHI
32186         arguments with constants.
32188 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
32189             Martin Liska  <mliska@suse.cz>
32191         PR target/63892
32192         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32193         don't try to create_thunk if stdarg_p.  If
32194         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32195         redirect_callers if possible.
32196         (sem_item_optimizer::execute): Call unregister_hooks here...
32197         (ipa_icf_driver): ... instead of here.
32199 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32201         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32202         Mark operand 0 as earlyclobber in 2nd alternative.
32203         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32204         Write negated shift amount into QI lowpart operand 0 and use it
32205         in the shift step.
32206         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32208 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32210         * cgraph.h (clone_function_name_1): Declare.
32211         * cgraphclones.c (clone_function_name_1): New function.
32212         (clone_function_name): Use it.
32213         * lto-partition.c: Include "stringpool.h".
32214         (must_not_rename, maybe_rewrite_identifier)
32215         (validize_symbol_for_target): New static functions.
32216         (privatize_symbol_name): Use must_not_rename.
32217         (promote_symbol): Call validize_symbol_for_target.
32218         (lto_promote_cross_file_statics): Likewise.
32219         (lto_promote_statics_nonwpa): Likewise.
32221 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
32223         PR target/64452
32224         * config/avr/avr.md (pushhi_insn): New insn.
32225         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32227 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
32228             Jakub Jelinek  <jakub@redhat.com>
32230         * tree-streamer.c (preload_common_nodes): Don't preload
32231         TI_VA_LIST* for offloading.
32232         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32233         in_lto_p.
32235 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
32237         * config/pa/pa.c (pa_emit_move_sequence): Always force
32238         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
32239         note on insn.
32241         * config/pa/pa.c (pa_reloc_rw_mask): New function.
32242         (TARGET_ASM_RELOC_RW_MASK): Define.
32243         (pa_cannot_force_const_mem): Revert previous change.
32245 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
32246             Jan Hubicka  <hubicka@ucw.cz>
32248         PR ipa/65028
32249         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32250         across jump functions.
32252 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
32254         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32256 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
32258         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32260 2015-02-19  Richard Henderson  <rth@redhat.com>
32262         PR middle-end/65074
32263         * varasm.c (default_binds_local_p_2): Don't test node->definition;
32264         test DECL_EXTERNAL independent of symtab_node.
32266 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
32268         PR lto/65012
32269         * varpool.c (varpool_node::get_constructor): Return early
32270         if this->lto_file_data is NULL.
32272 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
32274         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32275         (rank_for_schedule_debug): Update.
32276         (ready_sort): Make static.  Move sorting logic to ...
32277         (ready_sort_debug, ready_sort_real): New static functions.
32278         (schedule_block): Sort both debug insns and real insns in preparation
32279         for ready list trimming.  Improve debug output.
32280         * sched-int.h (ready_sort): Remove global declaration.
32282 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
32284         * ipa-icf.c (sem_function::equals_private): Adjust.
32285         (sem_function::bb_dict_test): Take a vec<int> * instead of
32286         auto_vec<int>.
32287         * ipa-icf.h (bb_dict_test): Likewise.
32289 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32291         PR gcov-profile/64634
32292         * tree-eh.c (frob_into_branch_around): Fix up typos
32293         in function comment.
32294         (lower_catch): Put eh_seq resulting from EH lowering of
32295         the cleanup sequence after the cleanup rather than before it.
32297 2015-02-18  Tom de Vries  <tom@codesourcery.com>
32299         * common.opt (fstdarg-opt): New option.
32300         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32301         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32302         (@item -fstdarg-opt): New item.
32304 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
32306         PR target/65064
32307         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32308         for common symbols.
32310 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32312         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32313         insn-modes.h.
32314         (ALL_HOST_OBJS): Add mkoffload.o.
32315         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32317 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
32319         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32320         (compare_virtual_tables): Be smarter about skipping typeinfos;
32321         do sane output on virtual table table mismatch.
32322         (warn_odr): Be ready for forward declarations of enums;
32323         output sane info on base mismatch and virtual table mismatch.
32324         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32325         when only one type is polymorphic.
32326         (get_odr_type): Fix hashtable corruption.
32327         (dump_odr_type): Dump mangled names.
32329 2015-02-18  Richard Biener  <rguenther@suse.de>
32331         PR tree-optimization/65063
32332         * tree-predcom.c (determine_unroll_factor): Return 1 if we
32333         have replaced looparound PHIs.
32335 2015-02-18  Martin Liska  <mliska@suse.cz>
32337         * lto-streamer.c (lto_streamer_init): Encapsulate
32338         streamer_check_handled_ts_structures with checking macro.
32340 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32342         PR ipa/65087
32343         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32344         section if !implicit_section.
32345         (cgraph_node::create_version_clone_with_body): Likewise.
32346         * trans-mem.c (ipa_tm_create_version): Likewise.
32348 2015-02-18  Richard Biener  <rguenther@suse.de>
32350         PR tree-optimization/62217
32351         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32352         into BIVs.
32354 2015-02-18  Marek Polacek  <polacek@redhat.com>
32356         PR sanitizer/65081
32357         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32358         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32359         is in range [-16K, -1].  Don't issue run-time error if
32360         (ptr > ptr + offset).
32362 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
32364         * doc/install.texi (nvptx-*-none): New section.
32365         * doc/invoke.texi (Nvidia PTX Options): Likewise.
32366         * config/nvptx/nvptx.opt: Update.
32368         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32369         (access_check): New functions, copied from
32370         config/i386/intelmic-mkoffload.c.
32371         (main): For non-installed testing, look in all COMPILER_PATHs for
32372         GCC_INSTALL_NAME.
32374         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32376 2015-02-18  Andrew Pinski  <apinski@cavium.com>
32377             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32379         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32380         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32382 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32384         * ipa-visibility.c (function_and_variable_visibility): Only
32385         check locality if node is not already local.
32386         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32387         call_for_symbol_and_aliases instead of
32388         call_for_symbol_thunks_and_aliases.
32389         (ipa_inline): Likewise.
32390         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32391         first walk aliases.
32392         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32393         call_for_symbol_and_aliases.
32394         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32395         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32396         (ipa_propagate_frequency): Update.
32397         (ipa_profile): Add opt_for_fn gueards.
32399 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32401         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32402         * doc/invoke.texi (SH options): Document it.
32403         * config/sh/sh.c (sh_insn_length_adjustment): Check
32404         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32406 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
32408         * common.opt (fipa-cp-alignment): New.
32409         * ipa-cp.c (ipcp_store_alignment_results): Check
32410         flag_ipa_cp_alignment.
32411         * opts.c (default_options_table): Enable -fipa-cp-alignment for
32412         -O2.
32413         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32414         * doc/invoke.texi: Document -fipa-cp-alignment.
32416 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
32418         PR target/64793
32419         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32420         to nil.  Adjust comments.
32422 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
32424         * ipa-visibility.c (function_and_variable_visibility): Only
32425         check locality if node is not already local.
32426         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32427         call_for_symbol_and_aliases instead of
32428         call_for_symbol_thunks_and_aliases.
32429         (ipa_inline): Likewise.
32430         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32431         first walk aliases.
32432         * ipa.c (symbol_table::remove_unreachable_nodes): Use
32433         call_for_symbol_and_aliases.
32434         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32435         (ipa_propagate_frequency_1): Use it; use opt_for_fn
32436         (ipa_propagate_frequency): Update.
32437         (ipa_profile): Add opt_for_fn guards.
32439 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
32441         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32442         skipping of "strange" tokens.
32444 2015-02-17  Jeff Law  <law@redhat.com>
32446         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
32447         obsolete comment.
32449 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
32451         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32452         as forcing a HARD_DEP between instructions, thereby
32453         disallowing rewriting to break dependencies.
32455 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32457         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32458         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32459         variables in boundary that have no inlitalizer encoded and are
32460         not aliases.
32461         * varasm.c (default_binds_local_p_2): External definitions do not
32462         count as definitions here.
32464 2015-02-16  Jeff Law  <law@redhat.com>
32466         PR tree-optimization/64823
32467         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32468         statements.
32469         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32470         threading through blocks with PHIs, but no statements.
32471         (thread_through_normal_block): Distinguish between blocks where
32472         we did not process all the statements and blocks with no statements.
32474 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
32475             James Greenhalgh  <james.greenhalgh@arm.com>
32477         PR ipa/64963
32478         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32479         section if not linkonce.  Fix up formatting.
32480         (cgraph_node::create_version_clone_with_body): Copy section.
32481         * trans-mem.c (ipa_tm_create_version): Likewise.
32483 2015-02-16  Richard Biener  <rguenther@suse.de>
32485         PR tree-optimization/65077
32486         * tree-ssa-structalias.c (get_constraint_for_1): Handle
32487         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32488         (find_func_aliases): Allow float values to carry pointers again.
32490 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
32492         * doc/install.texi (Specific): Reorder targets list to put
32493         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
32494         from the top menu.
32496 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
32497             David Edelsohn  <dje.gcc@gmail.com>
32499         PR target/65058
32500         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32501         mapping class to external variable or function reference.
32502         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32503         mapping class.
32505 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
32507         PR target/53348
32508         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32509         ASM_WEAKEN_DECL if defined.
32511 2015-02-16  Richard Biener  <rguenther@suse.de>
32513         PR lto/65015
32514         * varasm.c (default_file_start): For LTO produced units
32515         emit <artificial> as file directive.
32517 2015-02-16  Richard Biener  <rguenther@suse.de>
32519         PR tree-optimization/63593
32520         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32521         stmts and releasing SSA names until...
32522         (execute_pred_commoning): ... after processing all chains.
32524 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
32526         PR ipa/65059
32527         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32528         external functions.
32530 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
32532         * doc/bugreport.texi: Adjust section titles throughout the file
32533         to use "Title Case".
32534         * doc/extend.texi: Likewise.
32535         * doc/gcov.texi: Likewise.
32536         * doc/implement-c.texi: Likewise.
32537         * doc/implement-cxx.texi: Likewise.
32538         * doc/invoke.texi: Likewise.
32539         * doc/objc.texi: Likewise.
32540         * doc/standards.texi: Likewise.
32541         * doc/trouble.texi: Likewise.
32543 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
32545         * cgraph.h (symtab_node::has_aliases_p): Simplify.
32546         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32547         * tree.c (lookup_binfo_at_offset): Make static.
32548         (get_binfo_at_offset): Do not shadow offset; add explanatory
32549         comment.
32551 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
32553         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32554         for all floading point loads and stores except those using a register
32555         index address.
32556         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32557         to a register.
32559 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
32561         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32562         (do_estimate_growth_1): Record if any uninlinable edge was seen.
32563         (estimate_growth): Handle uninlinable edges correctly.
32564         (check_callers): New.
32565         (growth_likely_positive): Handle aliases correctly.
32567 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
32569         * ipa-chkp.c: Use iterate_direct_aliases.
32570         * symtab.c (resolution_used_from_other_file_p): Move inline.
32571         (symtab_node::create_reference): Fix formating.
32572         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32573         (symtab_node::iterate_reference): Move inline.
32574         (symtab_node::iterate_referring): Move inline.
32575         (symtab_node::iterate_direct_aliases): Move inline.
32576         (symtab_node::used_from_object_file_p_worker): Inline into ...
32577         (symtab_node::used_from_object_file_p): ... this one; move inline.
32578         (symtab_node::call_for_symbol_and_aliases): Move inline;
32579         use iterate_direct_aliases.
32580         (symtab_node::call_for_symbol_and_aliases_1): New method.
32581         (cgraph_node::call_for_symbol_and_aliases): Move inline;
32582         use iterate_direct_aliases.
32583         (cgraph_node::call_for_symbol_and_aliases_1): New method.
32584         (varpool_node::call_for_node_and_aliases): Rename to ...
32585         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32586         use iterate_direct_aliases.
32587         (varpool_node::call_for_symbol_and_aliases_1): New method.
32588         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32589         (ipa_discover_readonly_nonaddressable_var): Update.
32590         * ipa-devirt.c: Fix formating.
32591         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32592         Move inline.
32593         (cgraph_node::call_for_symbol_and_aliases): Move inline.
32594         (cgraph_node::call_for_symbol_and_aliases_1): New function..
32595         * cgraph.h (used_from_object_file_p_worker): Remove.
32596         (resolution_used_from_other_file_p): Move inline.
32597         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32598         (symtab_node::iterate_reference): Move inline.
32599         (symtab_node::iterate_referring): Move inline.
32600         (symtab_node::iterate_direct_aliases): Move inline.
32601         (symtab_node::used_from_object_file_p_worker): Inline into ...
32602         (symtab_node::used_from_object_file_p): Move inline.
32603         * tree-emutls.c (ipa_lower_emutls): Update.
32604         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32605         (varpool_node::call_for_node_and_aliases): Remove.
32607 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
32609         PR tree-optimization/62209
32610         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32611         op == range->exp, insert seq and gimplified code after labels
32612         instead of after the phi.
32614 2015-02-13  Jeff Law  <law@redhat.com>
32616         PR bootstrap/65060
32617         Revert my change for tree-optimization/64823.
32619 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
32621         PR tree-optimization/65053
32622         * tree-ssa-phiopt.c (value_replacement): When moving assign before
32623         cond, either reset VR on lhs or set it to phi result VR.
32625 2015-02-13  Jeff Law  <law@redhat.com>
32627         PR tree-optimization/64823
32628         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32629         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32630         threading through blocks with PHIs, but no statements.
32631         (thread_through_normal_block): Distinguish between blocks where
32632         we did not process all the statements and blocks with no statements.
32634         PR rtl-optimization/47477
32635         * match.pd (convert (plus/minus (convert @0) (convert @1): New
32636         simplifier to narrow arithmetic.
32638 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
32640         PR ipa/65028
32641         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32642         polymorphic call info when type is not known to be preserved.
32644 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
32646         PR ipa/65028
32647         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32648         (inline_call): Use it.
32650 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
32652         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32653         GOMP_DEVICE_NVIDIA_PTX.
32655 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
32657         PR ipa/65034
32658         * stmt.c (emit_case_nodes): Use void_type_node instead of
32659         NULL_TREE as LABEL_DECL type.
32661 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
32663         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32664         constraints.
32665         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32666         symbolic references to data to be forced to constant memory on the
32667         SOM target.
32669 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
32671         PR tree-optimization/65002
32672         * tree-cfg.c (pass_data_fixup_cfg): Don't update
32673         SSA on start.
32674         * tree-sra.c (some_callers_have_no_vuse_p): New.
32675         (ipa_early_sra): Reject functions whose callers
32676         assume function is read only.
32678 2015-02-13  Richard Biener  <rguenther@suse.de>
32680         PR lto/65015
32681         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32682         for LTO produced CUs.
32684 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
32686         PR tree-optimization/64705
32687         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32688         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32689         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32690         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32691         expand_simple_operations.
32693 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32694             Richard Henderson  <rth@redhat.com>
32696         PR rtl/32219
32697         * cgraphunit.c (cgraph_node::finalize_function): Set definition
32698         before notice_global_symbol.
32699         (varpool_node::finalize_decl): Likewise.
32700         * varasm.c (default_binds_local_p_2): Rename from
32701         default_binds_local_p_1, add weak_dominate argument.  Use direct
32702         returns instead of assigning to local variable.  Unify varpool and
32703         cgraph paths via symtab_node.  Reject undef weak variables before
32704         testing visibility.  Reorder tests for simplicity.
32705         (default_binds_local_p): Use default_binds_local_p_2.
32706         (default_binds_local_p_1): Likewise.
32707         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32708         via symtab_node.
32709         (default_elf_asm_output_external): Emit visibility when specified.
32711 2015-02-13  Alan Modra  <amodra@gmail.com>
32713         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32714         code setting up r11 for out-of-line fp restore.
32716 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
32718         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32719         (muser-mode): Likewise.
32721 2015-02-13  Alan Modra  <amodra@gmail.com>
32723         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32724         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32726 2015-02-12  David Howells  <dhowells@redhat.com>
32728         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32729         warning.
32730         * tree-ssa-uninit.c (dump_predicates): Likewise.
32731         * opts.c (print_filtered_help): Likewise.
32733 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
32735         * dwarf2out.c (output_die): Use "%s", name instead of name to
32736         avoid -Wformat-security warning.
32738         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32739         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32740         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32741         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32743 2015-02-12  Jason Merrill  <jason@redhat.com>
32745         * common.opt (-flifetime-dse): New.
32747 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
32749         PR sanitizer/65019
32750         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32752         PR tree-optimization/65014
32753         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32754         use original second operand of arg0 or arg1 instead of
32755         that adjusted by STRIP_NOPS.
32757 2015-02-11  Jeff Law  <law@redhat.com>
32759         PR target/63347
32760         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32761         that needs to be queued, just queue it for a single cycle.
32763 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
32765         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32766         bodies of thunks; comment on why.
32767         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32768         symbols are extern.
32770 2015-02-11  Richard Henderson  <rth@redhat.com>
32772         PR sanitize/65000
32773         * tree-eh.c (mark_reachable_handlers): Mark source and destination
32774         regions of __builtin_eh_copy_values.
32776 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
32778         PR middle-end/65003
32779         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
32780         ultimate alias is MEM with SYMBOL_REF satisfying
32781         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
32782         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
32784 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
32786         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
32787         "diagnostic-core.h".
32788         (main): Initialize progname, and call diagnostic_initialize.
32790         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
32791         instead of __OPENMP_TARGET__.
32793         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
32794         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
32795         hard-coding PTX_ID.
32797 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
32799         * doc/sourcebuild.texi (pie_enabled): Document.
32801 2015-02-11  Martin Liska  <mliska@suse.cz>
32803         PR ipa/64813
32804         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
32805         a return value for call to a function that is noreturn.
32807 2015-02-11  Richard Biener  <rguenther@suse.de>
32809         PR lto/65015
32810         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
32811         and -fresolution.
32813 2015-02-11  Andrew Pinski  <apinski@cavium.com>
32815         PR target/64893
32816         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
32817         Change the first argument type to size_type_node and add another
32818         size_type_node.
32819         (aarch64_simd_expand_builtin): Handle the new argument to
32820         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
32821         print an out when the first two arguments are not
32822         nonzero integer constants.
32823         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
32824         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
32826 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
32828         PR target/61925
32829         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
32830         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
32831         (ix86_set_current_function): Rewritten.
32832         (ix86_add_new_builtins): Temporarily clear current_target_pragma
32833         when creating builtin fndecls.
32835 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32837         PR ipa/65005
32838         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
32839         function.
32840         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
32841         have no comdat group.
32842         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
32843         (lto_output_varpool_node): Always output alias info.
32844         (output_refs): Output refs of boundary aliases, too.
32845         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
32846         (output_symtab): Output call eges in thunks in boundary.
32847         (get_alias_symbol): Remove.
32848         (input_node, input_varpool_node): Do not special case weakrefs.
32849         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
32850         alias and thunks targets in the boundary; do not take removed symbols
32851         from their comdat groups.
32852         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
32853         (cgraph_node::global_info): Remove.
32854         (cgraph_node::rtl_info): Look through aliases and thunks.
32855         * cgrpah.h (global_info): Remove.
32856         (non_local_p): Remove.
32858 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32859             Sandra Loosemore  <sandra@codesourcery.com>
32861         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
32862         to inline asm.  List dialects in proper order.
32864 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32865             Sandra Loosemore  <sandra@codesourcery.com>
32867         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
32869 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
32871         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
32872         modified) reference to Solaris.
32874 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
32876         * doc/extend.texi (Extended Asm): Fix typos.
32878 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
32880         PR sanitizer/65004
32881         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
32883 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
32885         PR target/64661
32886         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
32887         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
32888         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
32889         * config/sh/constraints.md (Ara, Add): New constraints.
32890         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
32891         predicates.
32892         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
32893         atomic_mem_operand_0.  Don't use force_reg on the memory address.
32894         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
32895         Sra constraint.  Convert to insn_and_split.  Add workaround for
32896         PR 64974.
32897         (atomic_compare_and_swap<mode>_hard): Copy to
32898         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
32899         Use atomic_mem_operand_0 predicate.
32900         (atomic_compare_and_swap<mode>_soft_gusa,
32901         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
32902         AraAdd constraints.
32903         (atomic_compare_and_swap<mode>_soft_tcb,
32904         atomic_compare_and_swap<mode>_soft_imask,
32905         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
32906         atomic_mem_operand_0 predicate and SraSdd constraints.
32907         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
32908         constraint.
32909         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
32910         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
32911         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
32912         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
32913         force_reg on the memory address.
32914         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
32915         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
32916         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
32917         atomic_mem_operand_1 predicate and Sra constraint.
32918         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
32919         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
32920         Use atomic_mem_operand_1 predicate.
32921         (atomic_<fetchop_name><mode>_hard): Copy to
32922         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
32923         Use atomic_mem_operand_1 predicate.
32924         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
32925         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
32926         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
32927         insn_and_split.  Use atomic_mem_operand_1 predicate.
32928         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
32929         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
32930         Use atomic_mem_operand_1 predicate.
32931         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
32932         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
32933         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
32934         in generated insn with original mem operand before emitting the insn.
32935         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
32936         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
32937         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
32938         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
32939         Use atomic_mem_operand_1 predicate and AraAdd constraints.
32940         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
32941         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
32942         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
32943         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
32944         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
32945         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
32946         atomic_not_fetch<mode>_soft_tcb,
32947         atomic_<fetchop_name>_fetch<mode>_soft_imask,
32948         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
32949         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
32950         Use atomic_mem_operand_1 predicate and SraSdd constraints.
32952 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
32954         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
32955         and 3 earlyclobber operands.
32957 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32959         * common.opt (fstack-reuse): Mark as optimization.
32961 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
32963         PR ipa/64982
32964         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
32966 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
32968         PR tree-optimization/64326
32969         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
32971 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
32973         PR gcov-profile/61889
32974         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
32976 2015-02-10  Richard Biener  <rguenther@suse.de>
32978         PR tree-optimization/64995
32979         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
32980         value we use is final.
32981         (visit_reference_op_store): Always valueize op.
32982         (visit_use): Properly valueize vuses.
32984 2015-02-10  Richard Biener  <rguenther@suse.de>
32986         PR tree-optimization/64909
32987         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
32988         pass a scalar-stmt count estimate to the cost model.
32989         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
32991 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
32993         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
32994         enabled by default together with var-tracking.
32996 2015-02-10  Nick Clifton  <nickc@redhat.com>
32998         * config/rl78/rl78.c: Remove DIV attribute code accidentally
32999         included in previous rl78 commit.
33001 2015-02-10  Richard Biener  <rguenther@suse.de>
33003         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33004         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33005         return the bitpack.
33007 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33009         PR gcov-profile/61889
33010         * config.in: regenerate.
33011         * configure.in: Likewise.
33012         * configure.ac: Check for ftw.h.
33013         * gcov-tool.c: Check for ftw.h before using nftw.
33015 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
33017         PR lto/64076
33018         * ipa-visibility.c (update_visibility_by_resolution_info): Only
33019         assert when not in lto mode.
33021 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33023         * ira-color.c (setup_left_conflict_sizes_p): Simplify
33024         initialization/assignment of conflict_size.
33026 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
33028         PR ipa/64978
33029         * ipa-cp.c (gather_caller_stats): Skip thunks.
33030         (propagate_constants_topo): Skip aliases.
33032 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
33034         PR target/64761
33035         * config/sh/sh.c (sh_option_override): Don't change
33036         -freorder-blocks-and-partition to -freorder-blocks even when
33037         unwinding is enabled.
33038         (sh_can_follow_jump): Return false if the followee jump is
33039         a crossing jump when -freorder-blocks-and-partition is specified.
33040         * config/sh/sh.md (*jump_compact_crossing): New insn.
33042 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
33043             Kaz Kojima  <kkojima@gcc.gnu.org>
33045         PR target/64761
33046         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33047         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33048         (sh_can_redirect_branch): Rename to ...
33049         (sh_can_follow_jump): ... this.  Constify argument types.
33050         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33051         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33052         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33053         * doc/tm.texi: Regenerate.
33055 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33057         PR sanitizer/64981
33058         * builtins.c (expand_builtin): Call targetm.expand_builtin
33059         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33061 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33063         PR ipa/61548
33064         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33066 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33068         PR ipa/63566
33069         * ipa-icf.c (set_local): New function.
33070         (sem_function::merge): Use it.
33072 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33074         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33075         (add_type_duplicate): Fix comparison of BINFOs.
33077 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33079         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33080         on getting VOID pointer.
33082 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
33084         PR target/64979
33085         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33086         va_list escapes.
33088 2015-02-09  Richard Biener  <rguenther@suse.de>
33090         * genmatch.c (replace_id): Copy expr_type.
33092 2015-02-09  Richard Biener  <rguenther@suse.de>
33094         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33095         (streamer_write_tree_bitfields): Declare.
33096         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33097         properly unpack padding.
33098         (unpack_value_fields): Inline ...
33099         (streamer_read_tree_bitfields): ... here.
33100         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33101         and properly add padding bits.
33102         (streamer_pack_tree_bitfields): Fold into ...
33103         (streamer_write_tree_bitfields): ... this new function,
33104         exposing the bitpack object.
33105         * lto-streamer-out.c (lto_write_tree_1): Call
33106         streamer_write_tree_bitfields.
33108 2015-02-09  Richard Biener  <rguenther@suse.de>
33110         PR tree-optimization/54000
33111         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33112         (struct ivopts_data): Add loop_loc member.
33113         (tree_ssa_iv_optimize_loop): Dump loop location.
33114         (create_new_ivs): Likewise, also dump number of IVs generated.
33116 2015-02-09  Martin Liska  <mliska@suse.cz>
33118         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33119         just if not yet registered.
33120         (ipa_icf_generate_summary): Register callgraph hooks.
33122 2015-02-08  Andrew Pinski  <apinski@cavium.com>
33124         * config/aarch64/aarch64.c (gty_dummy): Delete.
33126 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33128         PR ipa/63566
33129         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33130         (cgraph_node::local_p): Remove thunk related FIXME.
33132 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33134         PR ipa/63566
33135         * i386.c (ix86_function_regparm): Look through aliases to see if callee
33136         is local and optimized.
33137         (ix86_function_sseregparm): Likewise; also use target's SSE math
33138         settings; error out instead of silently generating wrong code
33139         on mismatches.
33140         (init_cumulative_args): Look through aliases.
33142 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33144         PR ipa/63566
33145         * ipa-split.c (execute_split_functions): Split if function has aliases.
33147 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
33149         PR ipa/63566
33150         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33151         aliases before trying to expand it.
33152         (cgraph_node::expand_thunk): Fix formating.
33154 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
33156         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33157         (Using Assembly Language with C): Expand introduction.
33158         (Basic Asm): Copy-edit.  Add more information about uses of
33159         basic asm.
33160         (Extended Asm): Copy-edit.  Document new escape syntax and
33161         %l[label] syntax.
33162         (Global Reg Vars): Copy-edit.
33163         (Local Reg Vars): Likewise.
33165 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
33167         PR debug/2714
33168         PR bootstrap/64256
33169         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33170         (DBX_CONTIN_CHAR): Define.
33172 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
33173             Brian Rzycki  <b.rzycki@samsung.com>
33175         PR tree-optimization/64878
33176         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33177         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33178         Stop recursion at loop phi nodes after having visited a loop phi node.
33180 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33182         * toplev.c (process_options): Change flag_ipa_ra before creating
33183         optimization_{default,current}_node.
33185         PR ipa/64896
33186         * cgraphunit.c (cgraph_node::expand_thunk): If
33187         restype is not is_gimple_reg_type nor the thunk_fndecl
33188         returns aggregate_value_p, set restmp to a temporary variable
33189         instead of resdecl.
33191 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
33193         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33195 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33197         PR target/64205
33198         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33199         add a general secondary reload handler for SDmode, unless we have
33200         both read/write support for SDmode.
33202 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33204         PR middle-end/64937
33205         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33206         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33207         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33208         1 before, push it to abstract_vec.
33209         (dwarf2out_abstract_function): Adjust caller.  Don't call
33210         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33211         DECL_ABSTRACT_P flags for all abstract_vec elts.
33213 2015-02-06  Renlin Li  <renlin.li@arm.com>
33215         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33216         complex gimple.
33217         * tree-ssa.c (execute_update_addresses_taken): Likewise.
33219 2015-02-06  Jeff Law  <law@redhat.com>
33221         PR target/64889
33222         * config/h8300/h8300.c (push): New argument "in_prologue".
33223         Pass "in_prologue" along to "F".
33224         (h8300_push_pop): Corresponding changes.
33225         (h8300_expand_prologue): Likewise.
33226         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
33228 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
33230         PR rtl-optimization/64957
33231         PR debug/64817
33232         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33233         IOR rather than for AND.
33235 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
33237         PR target/62631
33238         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33239         of shift-add and (add + shift) operations.  Rename local variable.
33241 2015-02-05  Jeff Law  <law@redhat.com>
33243         PR target/17306
33244         * config/h8300/constraints.md (U): Correctly dectect
33245         "eightbit_data" memory addresses.
33246         * config/h8300/h8300.c (eightbit_constant_address_p): Also
33247         handle (const (plus (symbol_ref (x)))) where x is declared
33248         as an 8-bit data memory address.
33249         * config/h8300/h8300.md (call, call_value): Correctly detect
33250         "funcvec" functions.
33252         PR target/43264
33253         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33254         24 to 28 bits for the H8/300.
33256 2015-02-06  Alan Modra  <amodra@gmail.com>
33258         PR target/64876
33259         * config/rs6000/rs6000.c (chain_already_loaded): New function.
33260         (rs6000_call_aix): Use it.
33262 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
33264         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33265         check.
33267 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
33269         * config/h8300/constraints.md ("U" constraint): Use strict
33270         variant of REG_OK_FOR_BASE_P after reload has started.
33272 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
33274         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33275         define to zero if !TARGET_NEON.
33276         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33278 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33279             Trevor Saunders  <tsaunders@mozilla.com>
33281         PR ipa/61548
33282         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33284 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33286         PR ipa/61548
33287         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33288         when removing varpool nodes.
33290 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33292         PR ipa/61548
33293         * varpool.c (varpool_node::remove): Fix order of variables.
33295 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33297         PR ipa/64686
33298         * ipa-inline.c (inline_small_functions): Fix ordering issue between
33299         speculation resolution and key updates.
33301 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33303         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33304         about not letting any speculative edges unupdated.
33306 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33308         PR gcov/64123
33309         * gcov-io.c (gcov_var): Export.
33311 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33313         PR middle-end/64922
33314         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33315         edges that become speculative.
33317 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
33319         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33320         or DW_LANG_Fortran08.
33321         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33322         DW_LANG_Fortran08.
33323         (gen_compile_unit_die): Handle "GNU Fortran2003" and
33324         "GNU Fortran2008" language strings.
33325         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33326         * langhooks.h (lang_GNU_Fortran): New prototype.
33327         * langhooks.c (lang_GNU_Fortran): New function.
33328         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33329         lang_GNU_Fortran.
33331 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33333         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33334         (RTX_OK_FOR_OLO10_P): Likewise.
33336 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
33338         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33340 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
33342         PR middle-end/64922
33343         * gimple.c: Include gimple-ssa.h.
33344         (maybe_remove_unused_call_args): New function.
33345         * gimple.h (maybe_remove_unused_call_args): Declare.
33346         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33347         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33348         * gimple-fold.c (gimple_fold_call): Likewise.
33350 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
33352         PR rtl-optimization/64905
33353         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33354         pointer alignment if it isn't needed.
33356 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33358         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33359         cortex-a72.cortex-a53.
33360         * config/aarch64/aarch64-tune.md: Regenerate.
33361         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33363 2015-02-04  Nick Clifton  <nickc@redhat.com>
33365         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33366         inside a MEM.
33368 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
33370         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33371         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33372         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33373         of DEF_BUILTIN.
33374         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33375         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33376         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33377         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33378         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33379         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33380         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33381         * tree-core.h (enum built_in_function): In between
33382         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33383         for builtins that use DEF_BUILTIN_CHKP macro.
33385 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
33387         PR debug/64817
33388         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33389         operands for tcc_comparison exprs.  Fix typos.
33391         PR debug/64817
33392         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33393         of two XORs that have an intervening AND or IOR.
33395         PR debug/64817
33396         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33397         simplification of XOR of AND to not allocate new rtx before
33398         committing to a simplification.
33400 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33402         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33403         manual swaps in all peepholes.
33405 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33407         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33408         of manual swapping implementation.
33409         (aarch64_expand_vec_perm_const_1): Likewise.
33411 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
33413         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33414         (generic_addrcost_table): Remove NAMED_PARAM.
33415         (cortexa57_addrcost_table): Likewise.
33416         (xgene1_addrcost_table): Likewise.
33417         (generic_regmove_table): Likewise.
33418         (cortexa53_regmove_table): Likewise.
33419         (xgene1_regmove_table): Likewise.
33420         (generic_vector_table): Likewise.
33421         (cortexa57_vector_table): Likewise.
33422         (xgene1_vector_table): Likewise.
33423         (generic_tunings): Likewise.
33424         (cortexa53_tunings): Likewise.
33425         (cortexa57_tunings): Likewise.
33426         (xgene1_tunings): Likewise.
33428 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
33430         * config/arm/arm-cores.def: Add cortex-a72 and
33431         cortex-a72.cortex-a53.
33432         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33433         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33434         * config/arm/arm-tune.md: Regenerate.
33435         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33436         "cortex-a72.cortex-a53".
33437         * doc/invoke.texi (ARM Options/-mtune): Likewise.
33439 2015-02-04  Nick Clifton  <nickc@redhat.com>
33441         PR target/64408
33442         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33443         of accepted codes.
33444         (nonimmediate_di_operand): Likewise.
33446         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33447         prefixes of known F5 using MSP430 MCUs.
33449 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33451         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33452         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33453         instead of __builtin_sqrt.
33455 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
33457         * varasm.c (do_assemble_alias): Follow transparent alias
33458         chain for target.
33459         (default_assemble_visibility): Follow transparent alias
33460         chain for decl name.
33462 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33464         PR middle-end/62103
33465         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33466         to compute size of referenced value in the constant case.
33468 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
33470         PR rtl-optimization/64756
33471         * cse.c (invalidate_dest): New function.
33472         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
33473         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33474         invalidate and do not record it.
33476 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
33478         PR target/64660
33479         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33480         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33481         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33482         atomic_nand<mode>_soft_tcb): New insns.
33483         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33484         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33485         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33486         Split into atomic_not_fetchsi_hard if operands[0] is unused.
33487         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33488         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33489         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
33490         atomic_not<mode>_hard if operands[0] is unused.
33491         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33492         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33493         if operands[0] is unused.
33494         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
33495         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33496         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33497         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33498         unused.
33499         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
33500         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33501         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33502         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33503         if operands[0] is unused.
33504         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
33505         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33506         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
33507         atomic_nand_fetchsi_hard if operands[0] is unused.
33508         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
33509         atomic_nand<mode>_hard if operands[0] is unused.
33510         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
33511         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33512         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
33513         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33514         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
33515         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33516         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33517         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33518         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
33519         atomic_not<mode>_hard if operands[0] is unused.
33520         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33521         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33522         unused.
33523         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33524         into atomic_not<mode>_soft_tcb if operands[0] is unused.
33525         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
33526         atomic_nand<mode>_hard if operands[0] is unused.
33527         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
33528         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33530 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
33532         PR jit/64810
33533         * Makefile.in (GCC_OBJS): Add gcc-main.o.
33534         * gcc-main.c: New file, containing "main" taken from gcc.c.
33535         * gcc.c (do_self_spec): Free decoded_options.
33536         (class driver): Move declaration to gcc.h.
33537         (main): Move declaration and implementation to new file
33538         gcc-main.c.
33539         (driver_get_configure_time_options): New function.
33540         * gcc.h (class driver): Move this declaration here, from
33541         gcc.c.
33542         (driver_get_configure_time_options): New declaration.
33544 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
33546         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33547         cross-module inlining.
33548         * cgraph.h (cgraph_node): Add flag merged.
33549         * ipa-icf.c (sem_function::merge): Maintain it.
33551 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
33553         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33554         instead of OBJECT_P.
33556 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
33558         PR target/62631
33559         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33560         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33561         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33562         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33564 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
33566         PR other/63504
33567         * combine.c (reg_n_sets_max): New variable.
33568         (can_change_dest_mode, reg_nonzero_bits_for_combine,
33569         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33570         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33571         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33572         (rest_of_handle_combine): Initialize reg_n_sets_max.
33574 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
33576         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33577         if some always_inline was inlined, apply changes before inlining
33578         heuristically.
33580 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
33582         PR jit/64810
33583         * config/arm/arm.c (arm_option_override): Set
33584         arm_selected_arch/cpu/tune to NULL on entry.
33586 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
33587             Andrew Pinski  <pinskia@gcc.gnu.org>
33588             Jakub Jelinek  <jakub@gcc.gnu.org>
33590         PR target/64231
33591         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33592         integer typing for small model. Use IN_RANGE.
33594 2015-02-02  Richard Biener  <rguenther@suse.de>
33596         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33597         * tree-vrp.c (vrp_valueize_1): Likewise.
33599 2015-02-02  Alan Modra  <amodra@gmail.com>
33601         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33602         than mem for toc_restore.
33603         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33604         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33605         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33607 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
33609         PR target/64047
33610         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33611         explicit default options.
33613 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
33615         PR ipa/64872
33616         * ipa-utils.c (ipa_merge_profiles): Add release argument.
33617         * ipa-icf.c (sem_function::merge): Do not release body when merging.
33618         * ipa-utils.h (ipa_merge_profiles): Update prototype.
33620 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
33622         PR debug/64817
33623         * cfgexpand.c (deep_ter_debug_map): New variable.
33624         (avoid_deep_ter_for_debug): New function.
33625         (expand_debug_expr): If TERed SSA_NAME is in
33626         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33627         instead of trying to expand SSA_NAME's def stmt.
33628         (expand_debug_locations): When expanding debug bind
33629         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33630         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33631         value.
33632         (pass_expand::execute): Call avoid_deep_ter_for_debug on
33633         all debug bind stmts.  Delete deep_ter_debug_map after
33634         expand_debug_location if non-NULL and clear it.
33636 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
33638         PR target/64851
33639         * config/sh/sync.md (atomic_fetch_notsi_hard,
33640         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33641         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33642         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33643         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33644         atomic_not_fetch<mode>_soft_imask): New insns.
33646 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33648         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33649         (rank_for_schedule_debug): Split from ...
33650         (rank_for_schedule): ... this.
33651         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33652         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33654 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
33656         * doc/md.texi (Machine Constraints): Alphabetize table by target.
33657         * doc/extend.texi (x86 Variable Attributes): Move section to
33658         correct alphabetization after renaming.
33659         (x86 Type Attributes): Likewise.
33660         (Target Builtins): Re-alphabetize menu.
33661         (x86 Built-in Functions): Move section to correct alphabetization
33662         after renaming.
33663         (x86 transactional memory intrinsics): Likewise.
33664         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33665         and x86 Windows Options in table and menu.
33666         (x86 Options): Move section to correct alphabetization after
33667         renaming.
33668         (x86 Windows Options): Likewise.
33670 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
33672         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33673         preferred names of the architecture and its 32- and 64-bit
33674         variants.
33675         * doc/invoke.texi: Likewise.
33676         * doc/md.texi: Likewise.
33678 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
33680         PR target/64882
33681         * config/i386/predicates.md (address_no_seg_operand): Reject
33682         non-CONST_INT_P operands in invalid mode.
33684 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
33686         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33687         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
33688         * config/i386/predicates.md (address_no_seg_operand): Call
33689         address_operand with VOIDmode.
33690         (vsib_address_operand): Ditto.
33691         (address_mpx_no_base_operand): Ditto.
33692         (address_mpx_no_index_operand): Ditto.
33694 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33696         PR target/64688
33697         * lra-constraints.c (original_subreg_reg_mode): New.
33698         (simplify_operand_subreg): Try to simplify subreg of const.  Use
33699         original_subreg_reg_mode for it.
33700         (swap_operands): Update original_subreg_reg_mode.
33701         (curr_insn_transform): Set up original_subreg_reg_mode.
33703 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33705         PR target/64617
33706         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33707         function.
33708         (process_alt_operands): Use it.
33709         (curr_insn_transform): Check the optional reload pseudo class is
33710         ok for the mode.
33712 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
33714         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33715         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33716         prototype.
33717         * toplev.h (init_asm_output): Update comment on use of
33718         UNKNOWN_LOCATION with fatal_error.
33719         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33720         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33721         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33722         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33723         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33724         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33725         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33726         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33727         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33728         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33729         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33730         fatal_error changed to pass input_location as first argument.
33732 2015-01-30  Martin Liska  <mliska@suse.cz>
33734         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33735         in #pragma GCC diagnostic guards.
33737 2015-01-30  Richard Biener  <rguenther@suse.de>
33739         PR tree-optimization/64829
33740         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33741         not add a widening conversion pattern but hand off extra
33742         widenings to callers.
33743         (vect_recog_widen_mult_pattern): Handle extra widening produced
33744         by vect_handle_widen_op_by_const.
33745         (vect_recog_widen_shift_pattern): Likewise.
33746         (vect_pattern_recog_1): Remove excess vertical space in dumping.
33747         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33748         (vect_init_vector_1): Likewise.
33749         (vect_get_vec_def_for_operand): Likewise.
33750         (vect_finish_stmt_generation): Likewise.
33751         (vectorizable_load): Likewise.
33752         (vect_analyze_stmt): Likewise.
33753         (vect_is_simple_use): Likewise.
33755 2015-01-29  Jeff Law  <law@redhat.com>
33757         * combine.c (try_combine): Fix typo in comment.
33759 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
33761         PR target/64580
33762         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33763         (rs6000_stack_info): Add assert.
33764         (rs6000_output_savres_externs): New function, split off from...
33765         (rs6000_output_function_prologue): ... here.  Do not call it for
33766         thunks.
33768 2015-01-29  Jeff Law  <law@redhat.com>
33770         PR target/15184
33771         * combine.c (try_combine): If I0 is a memory load and I3 a store
33772         to a related address, increase the "goodness" of doing a 4-insn
33773         combination with I0-I3.
33774         (make_field_assignment): Handle SUBREGs in the ior+and case.
33776 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
33778         PR tree-optimization/64746
33779         * tree-if-conv.c (mask_exists): New function.
33780         (predicate_mem_writes): Save created mask with given size for further
33781         use.
33782         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
33783         (ifcvt_repair_bool_pattern): Collect all statements that are root
33784         of bool pattern and use iterative algorithm to remove multiple uses
33785         of predicates, display number of required iterations.
33787 2015-01-29  Richard Biener  <rguenther@suse.de>
33789         PR tree-optimization/64853
33790         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
33791         stmt will get simulated again.
33792         * tree-ssa-ccp.c (valueize_op_1): Likewise.
33794 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33796         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
33797         return_in_pc.  Remove redundant assignments.
33798         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
33799         (arm_expand_epilogue): Don't compare boolean with true in if condition.
33801 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
33803         * config/i386/i386.c (ix86_mode_after): Make static.
33805 2015-01-29  Richard Biener  <rguenther@suse.de>
33807         PR tree-optimization/64844
33808         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
33809         dump cost model analysis.
33810         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33811         Do not register adjusted load/store costs here.
33813 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
33814             Uros Bizjak  <ubizjak@gmail.com>
33816         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
33817         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
33818         using x86_use_pseudo_pic_reg.
33819         * config/i386/i386.c (ix86_conditional_register_usage): Remove
33820         support for fixed PIC register.
33821         (ix86_use_pseudo_pic_reg): Not static any more.
33823 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
33825         PR middle-end/64805
33826         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
33827         to avoid error in cgraph node verification.
33829 2015-01-29  Marek Polacek  <polacek@redhat.com>
33831         * doc/standards.texi: Reflect that the default for C is gnu11.
33833 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
33835         PR target/64761
33836         * reorg.c (switch_text_sections_between_p): New function.
33837         (relax_delay_slots): Call it when testing if the jump insn
33838         is removable.  Use targetm.can_follow_jump when testing if
33839         the conditional branch can follow an unconditional jump.
33841 2015-01-27  Caroline Tice  <cmtice@google.com>
33843         Committing VTV Cywin/Ming patch for Patrick Wollgast
33844         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
33845         if -fvtable-verify=preinit/std is used.
33846         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
33847         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
33848         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
33849         if -fvtable-verify=preinit/std is used.
33850         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33851         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
33852         if -fvtable-verify=preinit/std is used.
33853         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
33854         * config/i386/mingw32.h (LIB_SPEC): Likewise.
33855         * varasm.c (assemble_variable): Add code to properly set the comdat
33856         section and name for the .vtable_map_vars section in case the
33857         target is PE or COFF.
33859 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
33861         PR ipa/64801
33862         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
33863         make sane BB profile.
33864         (cgraph_node::expand_thunk): Make sane BB profile.
33865         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
33866         * cgraph.h (init_lowered_empty_function): Update prototype.
33867         * config/i386/i386.c (make_resolver_func): Update call.
33868         * predict.c (gate): Disable branch prediction pass if
33869         profile is already there.
33871 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
33873         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
33874         * opth-gen.awk: Likewise.
33875         * common.opt: Mark flag_fp_contract_mode as Optimization.
33877 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33879         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
33880         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
33882 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
33884         PR target/64659
33885         * config/sh/predicates.md (atomic_arith_operand,
33886         atomic_logical_operand): Remove.
33887         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
33888         (atomic_arith_operand_0): New predicate.
33889         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
33890         Use atomic_arith_operand_0 for input values.
33891         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
33892         atomic_compare_and_swap<mode>_soft_gusa,
33893         atomic_compare_and_swap<mode>_soft_tcb,
33894         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
33895         arith_reg_operand instead of register_operand.
33896         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
33897         atomic_arith_operand_0 for newval input.
33898         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
33899         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
33900         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
33901         arith_reg_operand instead of register_operand.
33902         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
33903         fetchop_predicate_1, fetchop_constraint_1_llcs,
33904         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
33905         fetchop_constraint_1_imask): New code iterator attributes.
33906         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
33907         register_operand.  Use fetchop_predicate_1.
33908         (atomic_fetch_<fetchop_name>si_hard,
33909         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
33910         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
33911         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
33912         and arith_reg_operand instead of register_operand.  Use
33913         fetchop_predicate_1, fetchop_constraint_1_gusa.
33914         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
33915         and arith_reg_operand instead of register_operand.  Use
33916         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
33917         to allow R0 usage.
33918         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
33919         and arith_reg_operand instead of register_operand.  Use
33920         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
33921         to allow R0 usage.
33922         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
33923         register_operand.  Use atomic_logical_operand_1.
33924         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
33925         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
33926         arith_reg_operand instead of register_operand.
33927         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
33928         Use arith_reg_dest and arith_reg_operand instead of register_operand.
33929         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
33930         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
33931         register_operand.  Use fetchop_predicate_1.
33932         (atomic_<fetchop_name>_fetchsi_hard,
33933         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
33934         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33935         fetchop_constraint_1_llcs.
33936         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
33937         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33938         fetchop_constraint_1_gusa.
33939         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
33940         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33941         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
33942         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
33943         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
33944         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
33945         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
33946         register_operand.  Use atomic_logical_operand_1.
33947         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
33948         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
33949         arith_reg_operand instead of register_operand.
33950         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
33951         arith_reg_operand instead of register_operand.  Use logical_operand
33952         and K08.  Adjust asm sequence to allow R0 usage.
33953         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
33954         arith_reg_operand instead of register_operand.  Use logical_operand
33955         and K08.
33957 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
33959         PR other/63504
33960         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
33961         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
33962         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
33963         only get_full_len HOST_WIDE_INTs from get_val () array rather than
33964         all bits in *val_wide.
33966 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
33968         * varpool.c (tls_model_names): Fix names.
33969         (varpool_node::dump): Dump tls- prefix for tls models.
33971 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
33972             Bernd Schmidt  <bernds@codesourcery.com>
33973             Nathan Sidwell  <nathan@codesourcery.com>
33975         * config/nvptx/mkoffload.c: New file.
33976         * config/nvptx/t-nvptx: Add build rules for it.
33977         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
33978         (extra_programs): Add mkoffload.
33979         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
33980         function.
33981         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
33983 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
33985         PR middle-end/64809
33986         * cfgexpand.c (reorder_operands): Skip debug gimples.
33988 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
33990         PR tree-optimization/64277
33991         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
33992         range info when possible to refine estimation.
33994 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33996         PR tree-optimization/64718
33997         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
33998         be a 16bit unsigned integer when n->range is 16.
33999         (bswap_replace): Convert src to that type if necessary for all bswap
34000         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
34001         set in pass_optimize_bswap::execute ().
34003 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
34005         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34006         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34007         integer and floating point variants.
34008         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34010 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
34012         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34013         for all vector modes.
34015 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
34017         PR bootstrap/64612
34018         * doc/sourcebuild.texi (comdat_group): Document.
34020 2015-01-28  Terry Guo  <terry.guo@arm.com>
34022         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34024 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
34026         * toplev.c (print_version): Add param "show_global_state", and
34027         only print GGC and plugin information if it is true.
34028         (init_asm_output): Pass in "true" for the new param when calling
34029         print_version.
34030         (process_options): Likewise.
34031         (toplev::main): Likewise.
34032         * toplev.h (print_version): Add new param to decl.
34034 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34036         PR ipa/60871
34037         PR ipa/64139
34038         * tree.c (lookup_binfo_at_offset): New function.
34039         (get_binfo_at_offset): Use it.
34041 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
34043         PR ipa/64282
34044         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34045         on vtable being vtable.
34047 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34049         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34050         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34051         -mhotpatch= option.
34052         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34053         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
34054         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34055         Renamed.
34056         (s390_hotpatch_trampoline_halfwords_max): Renamed.
34057         (s390_hotpatch_hw_max): New name.
34058         (s390_hotpatch_trampoline_halfwords): Renamed.
34059         (s390_hotpatch_hw_before_label): New name.
34060         (get_hotpatch_attribute): Removed.
34061         (s390_hotpatch_hw_after_label): New name.
34062         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34063         attribute.
34064         (s390_attribute_table): Ditto.
34065         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34066         (s390_function_num_hotpatch_hw): New name.
34067         Remove special handling of inline functions and hotpatching.
34068         Return number of nops before and after the function label.
34069         (s390_can_inline_p): Removed.
34070         (s390_asm_output_function_label): Emit a configurable number of nops
34071         after the function label.
34072         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34073         (TARGET_CAN_INLINE_P) Removed.
34074         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34076 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34077             Jiong Wang  <jiong.wang@arm.com>
34079         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34080         of scratch reg.
34081         (cb<optab><mode>1): Likewise.
34082         * config/aarch64/iterators.md (bcond): New define_code_attr.
34084 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34086         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34087         memory accesses.
34089 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34091         * config/s390/s390.c (s390_register_move_cost): Increase costs for
34092         FPR->GPR moves.
34094 2015-01-27  Richard Biener  <rguenther@suse.de>
34096         * tree-vrp.c (update_value_range): Intersect the range with
34097         old recorded SSA name range information.
34099 2015-01-27  Nick Clifton  <nickc@redhat.com>
34101         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34102         BC, DE and HL registers directly, not via AX.
34103         When decrementing the stack pointer by a large amount, transfer SP
34104         into AX and perform the subtraction there.
34105         (rl78_expand_epilogue): Perform the inverse of the above
34106         enhancements.
34108 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34110         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34112 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34113             Yury Gribov  <y.gribov@samsung.com>
34115         PR ubsan/64741
34116         * ubsan.c (ubsan_source_location): Refactor code.
34117         (ubsan_type_descriptor): Update type size. Refactor code.
34119 2015-01-27  Richard Biener  <rguenther@suse.de>
34121         PR tree-optimization/56273
34122         PR tree-optimization/59124
34123         PR tree-optimization/64277
34124         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34125         from the first VRP pass.
34127 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34129         PR ipa/64776
34130         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34131         handle the first argument in the same loop as all the other arguments.
34133         PR rtl-optimization/61058
34134         * jump.c (cleanup_barriers): Update basic block boundaries
34135         if BLOCK_FOR_INSN is non-NULL on PREV.
34137 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34139         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34140         bounds narrowing, already instrumented calls and calls to
34141         not instrumentable functions.
34143 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
34145         PR tree-optimization/64807
34146         * wide-int.cc (wi::divmod_internal): Clear
34147         b_dividend[dividend_blocks_needed].
34149 2015-01-26  DJ Delorie  <dj@redhat.com>
34151         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34152         volatile memory references.
34154 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
34156         PR target/49263
34157         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34158         remove_insn.
34159         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34160         shifts if it already fits into K08.
34162 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34164         PR ipa/64730
34165         * ipa-inline.c (inline_small_functions): Print "unknown" even
34166         if edge->call_stmt is non-NULL, but has builtins or unknown
34167         location.
34169         PR middle-end/64421
34170         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34171         with asterisk, skip the first character.
34173 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34175         PR target/64806
34176         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34177         order change.
34179 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
34181         PR target/64795
34182         * config/i386/i386.md (*movdi_internal): Also check operand 0
34183         to determine TYPE_LEA operand.
34184         (*movsi_internal): Ditto.
34186 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
34188         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34189         OPTION_MASK_QUAD_MEMORY_ATOMIC.
34191 2015-01-26  Renlin Li  <renlin.li@arm.com>
34193         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34194         the comment.
34195         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34196         for higher part.
34198 2015-01-26  Richard Biener  <rguenther@suse.de>
34200         PR middle-end/64764
34201         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34202         combining two BIT_AND_EXPR predicates.
34204 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
34206         PR bootstrap/64754
34207         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34209 2015-01-26  Terry Guo  <terry.guo@arm.com>
34211         * config/arm/arm.c (arm_file_start): Update the assignment of
34212         Tag_ABI_HardFP_use.
34214 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
34216         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34217         pipeline model.
34218         config/arm/arm.md: Include the new Cortex-A57 model.
34219         (generic_sched): Don't use generic_sched when tuning for
34220         Cortex-A57.
34222 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
34223             Uros Bizjak  <ubizjak@gmail.com>
34225         * config/i386/i386.c (get_builtin_code_for_version): Add
34226         support for BMI and BMI2 multiversion functions.
34228 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34230         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34231         (extract_bit_field): Likewise.
34232         (extract_low_bits): Likewise.
34233         (expand_mult): Likewise.
34234         (expand_mult_highpart_adjust): Likewise.
34236 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
34238         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34239         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34240         * config/i386/i386.c (processor_model): Add
34241         M_INTEL_COREI7_BROADWELL.
34242         (arch_names_table): Add "broadwell".
34244 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
34246         PR target/49263
34247         PR target/53987
34248         PR target/64345
34249         PR target/59533
34250         PR target/52933
34251         PR target/54236
34252         PR target/51244
34253         * config/sh/sh-protos.h
34254         (sh_extending_set_of_reg::can_use_as_unextended_reg,
34255         sh_extending_set_of_reg::use_as_unextended_reg,
34256         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34257         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34258         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34259         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34260         (sh_treg_insns): New class.
34261         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34262         (scope_counter): New class.
34263         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34264         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34265         sh_extending_set_of_reg::can_use_as_unextended_reg,
34266         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34267         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34268         sh_split_treg_set_expr): New functions.
34269         (addsubcosts): Handle treg_set_expr.
34270         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34271         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34272         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34273         (sh_insn_operands_modified_between_p): Make non-static.
34274         * config/sh/predicates.md (zero_extend_movu_operand): Allow
34275         simple_mem_operand in addition to displacement_mem_operand.
34276         (zero_extend_operand): Don't allow zero_extend_movu_operand.
34277         (treg_set_expr, treg_set_expr_not_const01,
34278         arith_reg_or_treg_set_expr): New predicates.
34279         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34280         arith_or_int_operand instead of logical_operand.  Convert to
34281         insn_and_split.  Try to optimize constant operand in splitter.
34282         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
34283         (*tstqi_t_zero): Delete.
34284         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34285         (tstsi_t_and_not): Delete.
34286         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34287         Convert to insn_and_split.
34288         (unnamed split, tstsi_t_zero_extract_xor,
34289         tstsi_t_zero_extract_subreg_xor_little,
34290         tstsi_t_zero_extract_subreg_xor_big): Delete.
34291         (*tstsi_t_shift_mask): New insn_and_split.
34292         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34293         to recombine with surrounding insns when splitting.
34294         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34295         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34296         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34297         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34298         (*cbranch_div0s: Delete.
34299         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
34300         Try to recombine with surrounding insns when splitting.  Add operand
34301         order variants.
34302         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34303         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34304         *addc_r_r_msb, *addc_2r_msb): Delete.
34305         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
34306         order variant.
34307         (*addc_negreg_t): New insn_and_split.
34308         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
34309         Try to recombine with surrounding insns when splitting.
34310         Add operand order variants.
34311         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34312         insn_and_split patterns.
34313         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
34314         surrounding insns when splitting.
34315         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34316         (*rotcl): Likewise.  Add zero_extract variant.
34317         (*ashrsi2_31): New insn_and_split.
34318         (*negc): Convert to insn_and_split.  Use treg_set_expr.
34319         (*zero_extend<mode>si2_disp_mem): Update comment.
34320         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34321         condition.
34322         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
34323         with surrounding insns when splitting.
34324         (any_treg_expr_to_reg): New insn_and_split.
34325         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34326         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34327         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34328         *zero_extract_2): New single bit zero extract patterns.
34329         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34330         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34331         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34332         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34333         set destination.
34334         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34335         register_operand for set source.
34337 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
34339         * i386.opt (prefetch_sse): New targetsave.
34340         * i386.c (ix86_function_specific_save): Save prefetch_sse.
34341         (ix86_function_specific_restore): Restore prefetch_sse and initialize
34342         ix86_cost/ix86_tune_cost.
34344 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34346         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34347         Support the JIT by using 0 as the language type.
34349 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34351         PR target/64317
34352         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
34353         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34354         (mark_regno_live, process_bb_lives): Pass new parameter value to
34355         make_hard_regno_born.
34357 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34359         PR rtl-optimization/63637
34360         PR rtl-optimization/60663
34361         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34362         if elt->cost is MAX_COST for ASM_OPERANDS.
34363         (find_sets_in_insn): Fix up comment typo.
34364         (cse_insn): Don't set src_volatile for all non-volatile
34365         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34366         or with "memory" clobber.  Set elt->cost to MAX_COST
34367         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
34368         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34370 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34372         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34373         alternative 1.
34375 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
34377         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34378         libgcc/config/i386/elf-lib.h.
34380 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34382         PR driver/64737
34383         * gcc.c (print_configuration): Don't print a blank line at the end
34384         here...
34385         (run_attempt): ... but here unstead.
34387         PR middle-end/64734
34388         * omp-low.c (scan_sharing_clauses): Don't ignore
34389         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34390         on target data/update constructs.
34392 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34394         PR target/50928
34395         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34396         (DEBUG_RELOAD): Removed define.
34397         (m32c_limit_reload_class): Enable traces with if DEBUG0.
34398         (m32c_function_arg): Added a type cast.
34399         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34400         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34401         * config/m32c/bitops.md (andqi3_16): Likewise.
34402         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34403         (push_a01_l): Likewise.
34405 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34407         PR jit/64721
34408         * main.c (main): Construct toplev instances with init_signals=true.
34409         * toplev.c (general_init): Add param "init_signals", and use it to
34410         conditionalize the calls to signal and host_hooks.extra_signals.
34411         (toplev::toplev): Add param "init_signals".
34412         (toplev::main): When invoking general_init, pass m_init_signals
34413         to control whether signal-handlers are installed.
34414         * toplev.h (toplev::toplev): Add param "init_signals".
34415         (toplev::m_init_signals): New field.
34417 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
34419         PR jit/64722
34420         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34421         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34422         latter may be affected by the former (e.g. on i686).
34424 2015-01-23  Martin Liska  <mliska@suse.cz>
34426         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34427         false positive during profiledbootstrap.
34429 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34431         PR libgomp/64672
34432         * lto-opts.c (lto_write_options): Output non-explicit conservative
34433         -fno-openacc.
34434         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34435         (append_compiler_options): Pass -fopenacc through.
34437 2015-01-23  Tom de Vries  <tom@codesourcery.com>
34439         PR libgomp/64707
34440         * lto-opts.c (lto_write_options): Output non-explicit conservative
34441         -fno-openmp.
34442         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34443         (append_compiler_options): Pass -fopenmp through.
34445 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
34447         PR debug/64511
34448         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34449         GTY markup.
34451         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34452         * diagnostic.def (DK_ICE_NOBT): New kind.
34453         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34454         like DK_ICE, but never print backtrace.
34455         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34456         (internal_error_no_backtrace): New function.
34457         * gcc.c (execute): Use internal_error_no_backtrace instead of
34458         internal_error.
34460 2015-01-22  Jeff Law  <law@redhat.com>
34462         PR target/52076
34463         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34464         improve code density for small immediate to memory case.
34465         (insv): Better handle bitfield assignments when the field is
34466         being set to all ones.
34467         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34468         operand predicate.
34470 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34471             Jakub Jelinek  <jakub@redhat.com>
34473         PR middle-end/64729
34474         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34475         for !TARGET_LIBC_PROVIDES_SSP version and
34476         -fstack-protector-{all,strong,explicit} otherwise.
34477         * config/freebsd.h (LINK_SSP_SPEC): Handle
34478         -fstack-protector-{strong,explicit}.
34480 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
34481             H.J. Lu  <hongjiu.lu@intel.com>
34483         PR ipa/64694
34484         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34485         heap.
34487 2015-01-22  Wei Mi  <wmi@google.com>
34489         PR rtl-optimization/64557
34490         * dse.c (record_store): Call get_addr for mem_addr.
34491         (check_mem_read_rtx): Likewise.
34493 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
34495         * fold-const.c (const_binop): Add early return for non-tcc_binary.
34497 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
34499         * toplev.c (init_local_tick): Process the failure when read
34500         fails for random_seed.
34502         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34503         'pretty_name' to avoid memory overflow.
34505 2015-01-22  Richard Biener  <rguenther@suse.de>
34507         PR middle-end/64728
34508         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34509         abnormal coalescing on undefined SSA names.
34511 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
34513         PR target/64688
34514         PR target/64477
34515         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34516         for alternative 3.
34517         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34519 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
34521         PR middle-end/63325
34522         * fold-const.c (fold_checksum_tree): Don't include value of
34523         expr->decl_with_vis.symtab_node in the checksum.
34525 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34527         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34529 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34531         PR driver/64690
34532         * gcc.c (insert_comments): New function.
34533         (try_generate_repro): Call it.
34534         (append_text): Removed.
34536 2015-01-22  Richard Biener  <rguenther@suse.de>
34538         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34539         with IL incompatible options.  Properly honor user optimize
34540         attributes.
34542 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
34544         PR rtl-optimization/64682
34545         * combine.c (distribute_notes): When moving a death note for
34546         a register that is set in the new I2, make sure to put it
34547         before that new I2.
34549 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
34551         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34552         not TARGET_DEFAULT.
34554 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
34556         PR debug/64511
34557         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34558         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34559         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34561         PR sanitizer/64706
34562         * doc/invoke.texi (-fsanitize=vptr): Document.
34564         PR rtl-optimization/62078
34565         * dse.c: Include cfgcleanup.h.
34566         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34567         anything call purge_all_dead_edges and cleanup_cfg at the end
34568         of the pass.
34570 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
34572         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34573         edges.
34575 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34577         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34578         decl attribute.
34580 2015-01-21  David Sherwood  <david.sherwood@arm.com>
34581             Tejas Belagod <Tejas.Belagod@arm.com>
34583         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34584         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34585         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34586         Removed.
34588 2015-01-21  David Sherwood  <david.sherwood@arm.com>
34589             Tejas Belagod <Tejas.Belagod@arm.com>
34591         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34592         (aarch64_reverse_mask): New decls.
34593         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34594         (insn_count): New mode_attr.
34595         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34596         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34597         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34598         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34599         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34600         (aarch64_simd_st4): New patterns.
34601         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34602         (aarch64_reverse_mask): New functions.
34604 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
34606         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34607         Declare.
34608         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34609         addressing modes for BE.
34610         (aarch64_print_operand): Add 'R' specifier.
34611         (aarch64_simd_disambiguate_copy): Delete.
34612         (aarch64_simd_emit_reg_reg_move): New function.
34613         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34614         in define_splits for structural moves.
34615         (mov<mode>): Use less restrictive predicates.
34616         (*aarch64_mov<mode>): Simplify and only allow for LE.
34617         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34619 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
34621         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34623 2015-01-21  Richard Henderson  <rth@redhat.com>
34625         PR target/64669
34626         * ccmp.c (used_in_cond_stmt_p): Remove.
34627         (expand_ccmp_expr): Don't use it.
34629 2015-01-21  Nick Clifton  <nickc@redhat.com>
34631         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34632         PARALLELs.
34634 2015-01-21  Richard Biener  <rguenther@suse.de>
34636         PR middle-end/64313
34637         * tree-core.h (builtin_info, builtin_info_type): Turn from
34638         an object with two arrays into an array of an object with
34639         decl and two flags, implicit_p and declared_p.
34640         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34641         set_builtin_decl, set_builtin_decl_implicit_p,
34642         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34643         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34644         * builtins.c (builtin_info): Adjust.
34645         * gimplify.c (gimplify_addr_expr): References to builtins
34646         that have been declared by the user makes them eligible for
34647         use by the compiler.  Call set_builtin_decl_implicit_p on them.
34649 2015-01-20  Jeff Law  <law@redhat.com>
34651         PR target/59946
34652         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34653         allow pc-relative addresses in operand predicates or constraints.
34655 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
34657         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34658         neon on aarch32 processors for stringops.
34660 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34662         PR ipa/63576
34663         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34665 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34667         PR lto/45375
34668         * ipa-inline.c: Include lto-streamer.h
34669         (report_inline_failed_reason): Output source file differences and
34670         flags on optimization/target node mismatch.
34671         (can_inline_edge_p): Consider caller to be the outer inline function;
34672         be less restrictive about matching opimize and optimize_size attributes.
34673         (inline_account_function_p): Break out from ...
34674         (inline_small_functions): ... here.
34675         * ipa-inline-transform.c (clone_inlined_nodes): Use
34676         inline_account_function_p.
34677         (inline_call): Use optimize attribution; use inline_account_function_p.
34678         (inline_transform): Use opt_for_fn.
34679         * ipa-inline.h (inline_account_function_p): Declare.
34681 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
34683         PR debug/64663
34684         * dwarf2out.c (decl_piece_node): Don't put bitsize into
34685         mode if bitsize <= 0.
34686         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34687         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34688         sizes and positions.
34690 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
34692         * config/nios2/nios2.c (nios2_asm_file_end): Implement
34693         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34694         needed.
34695         (TARGET_ASM_FILE_END): Define.
34697 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34699         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34700         (struct tune_params): Use the enum.
34701         * arm.c (arm_*_tune): Update.
34702         (arm_option_override): Update.
34704 2015-01-20  Richard Biener  <rguenther@suse.de>
34706         PR ipa/64684
34707         * ipa-reference.c (add_static_var): Inline ...
34708         (analyze_function): ... here after splitting out from ...
34709         (is_proper_for_analysis): ... this.
34711 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
34713         PR target/64149
34714         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34715         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34716         replace the conditional with it's true branch.
34717         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34718         (arm_lra_p): Remove.
34720 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34722         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34724 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34726         * config/tilegx/mul-tables.c: Move symtab.h include after
34727         coretypes.h include.
34728         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34729         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34730         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34731         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34732         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34734 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
34736         PR bootstrap/64676
34737         Revert:
34738         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
34740         PR rtl-optimization/64081
34741         * loop-iv.c (def_pred_latch_p): New function.
34742         (latch_dominating_def): Allow specific cases with non-single
34743         definitions.
34744         (iv_get_reaching_def): Likewise.
34745         (check_complex_exit_p): New function.
34746         (check_simple_exit): Use check_complex_exit_p to allow certain cases
34747         with exits not executing on any iteration.
34749 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34751         PR lto/45375
34752         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34753         to set branch cost.
34755 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34757         PR lto/45375
34758         * i386.c (gate): Check flag_expensive_optimizations and
34759         optimize_size.
34760         (ix86_option_override_internal): Drop optimize_size condition
34761         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34762         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34763         MASK_PREFER_AVX128.
34764         (ix86_avx256_split_vector_move_misalign,
34765         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34766         * sse.md (all uses of TARGET_PREFER_AVX128): Add
34767         optimize_insn_for_speed_p check.
34769 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
34771         * config/mips/mips.h (FP_ASM_SPEC): New define.
34772         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34773         instead.
34775 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
34777         PR target/53988
34778         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
34779         nullptr for insn when reaching the first insn.
34780         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
34781         (sh_insn_operands_modified_between_p): Add nullptr check.
34782         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
34783         sign extending mem load if the insn contains any UNSPEC or
34784         UNSPEC_VOLATILE.
34786 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34788         * params.def (inline-unit-growth): Drop to 15%.
34789         * invoke.texi (inline-unit-growth): Document change.
34791 2015-01-19  Martin Liska  <mliska@suse.cz>
34793         PR ipa/64668
34794         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
34795         function for second argument of OBJ_TYPE_REF.
34797 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34799         PR ipa/64218
34800         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
34801         whether function is an alias.
34803 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
34805         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
34806         cases.
34808 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
34810         PR rtl-optimization/64671
34811         * lra-remat.c (operand_to_remat): Don't consider jump and call
34812         insns.
34814 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
34816         PR target/59828
34817         * config/rs6000/default64.h: Include rs6000-cpus.def.
34818         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
34819         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
34820         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
34821         and POWER8.
34822         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
34823         POWER8.
34824         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
34825         pseudo-op to specify assembler dialect.
34827 2015-01-19  Martin Liska  <mliska@suse.cz>
34829         PR ipa/64664
34830         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
34831         Handle safe potentially removed nodes during filtering.
34833 2015-01-19  Martin Liska  <mliska@suse.cz>
34835         * doc/extend.texi (no_icf): Add new attribute description.
34836         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
34837         where the pass attempts to merge a function with no_icf attribute.
34839 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34841         PR target/64532
34842         * doc/md.texi (ARM Options): Document register constraints.
34844 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
34845             Andrew Pinski  <apinski@cavium.com>
34847         PR target/64304
34848         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
34849         (ashl<mode>3): Don't expand if operands[2] is not constant.
34851 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34853         PR target/64448
34854         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
34855         Match xor-and-xor RTL pattern.
34857 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
34859         PR rtl-optimization/64081
34860         * loop-iv.c (def_pred_latch_p): New function.
34861         (latch_dominating_def): Allow specific cases with non-single
34862         definitions.
34863         (iv_get_reaching_def): Likewise.
34864         (check_complex_exit_p): New function.
34865         (check_simple_exit): Use check_complex_exit_p to allow certain cases
34866         with exits not executing on any iteration.
34868 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
34870         * common.opt (fgraphite): Fix a typo.
34872 2015-01-19  Felix Yang  <felix.yang@huawei.com>
34874         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
34875         pattern.
34876         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34877         uminp, smax_nanp, smin_nanp): New builtins.
34878         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
34879         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
34880         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
34881         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
34882         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
34883         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
34884         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
34885         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
34886         vpminnms_f32): Rewrite using builtin functions.
34888 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
34890         PR libgomp/64625
34891         * omp-low.c (offload_symbol_decl): Remove variable.
34892         (get_offload_symbol_decl): Remove function.
34893         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
34894         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
34895         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
34896         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
34897         BUILT_IN_GOACC_UPDATE don't pass it at all.
34899 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34901         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
34902         callers.
34904 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
34906         * ipa-chkp.c (chkp_produce_thunks): Add early param
34907         to split thunks production into two passes.  Keep
34908         'always_inline' function bodies after the first pass.
34909         (pass_data_ipa_chkp_early_produce_thunks): New.
34910         (pass_ipa_chkp_early_produce_thunks): New.
34911         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
34912         chkp_produce_thunks signature.
34913         (make_pass_ipa_chkp_early_produce_thunks): New.
34914         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
34915         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
34916         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
34918 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34920         * cgraph.c (cgraph_node::dump): Dump profile flags.
34922 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
34924         PR target/64652
34925         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
34926         reg appear first in the parallel.
34928 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34930         * ipa-reference.c (set_reference_optimization_summary,
34931         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
34932         disabled.
34933         (ignore_module_statics): New static var.
34934         (propagate_bits): If ipa-reference is disabled, do not look into local
34935         properties.
34936         (analyze_function): Disable analysis when ipa_reference is disabled.
34937         (generate_summary): Do not dump when reference is disabled;
34938         collect vars accessed from functions with ipa-reference disabled.
34939         (get_read_write_all_from_node): When ipa-reference is disabled, use the
34940         node flags.
34941         (gate): Enable for LTO.
34942         (ignore_edge_p): New function.
34943         (propagate): Skip functions w/o ipa-reference analysis.
34944         * optc-save-gen.awk: Handle optimize_debug correctly.
34945         * opth-gen.awk: Likewise.
34946         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
34947         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
34948         fira-share-save-slots, fira-share-spill-slots,
34949         fmodulo-sched-allow-regmoves, fpartial-inlining,
34950         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
34951         ftracer, ftree-parallelize-loops, fassociative-math,
34952         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
34953         Optimization
34954         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
34955         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
34956         Optimization.
34957         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
34958         Fix for IPA.
34960 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
34962         PR ipa/64378
34963         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
34964         flag correctly.
34965         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
34967 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
34969         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
34970         Remove duplicate option listings.
34972 2015-01-18  Felix Yang  <felix.yang@huawei.com>
34974         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
34975         (autofdo_source_profile::get_callsite_total_count,
34976         function_instance::get_function_instance_by_decl,
34977         string_table::get_index, string_table::get_index_by_decl,
34978         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
34979         Fix comment typos. Reformatting and minor code rearrangement.
34981 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34983         * config/rs6000/rs6000.md (probe_stack): Delete.
34984         (probe_stack_address): New.
34986 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34988         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
34989         to test for 32-bit ABIs, not !TARGET_POWERPC64.
34991 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
34993         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
34994         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
34995         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
34996         snafu.
34997         (rs6000_libcall_value): Use the new function.
34999 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
35001         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35003 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
35005         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35006         implement a more precise life analysis for it during backward scan.
35008 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
35010         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35012 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
35014         PR rtl-optimization/52773
35015         * calls.c (emit_library_call_value): When pushing arguments use
35016         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35017         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
35018         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35020 2015-01-17  Jeff Law  <law@redhat.com>
35022         PR rtl-optimization/32790
35023         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35024         not ZERO_EXTEND in SET_DESTs.
35026 2015-01-17  Alan Modra  <amodra@gmail.com>
35028         * cprop.c (do_local_cprop): Revert last change.
35030 2015-01-16  DJ Delorie  <dj@redhat.com>
35031             Nick Clifton  <nickc@redhat.com>
35033         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35034         (addhi3_real): Likewise.  Fix [HL+0] syntax.
35035         (subqi3_real): Likewise.
35036         (subhi3_real): Likewise.
35037         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
35038         (cbranchhi4_real): Likewise.
35039         (cbranchhi4_real_inverted): Likewise.
35040         (cbranchsi4_real_lt): Likewise.
35041         (cbranchsi4_real_ge): Likewise.
35042         (cbranchsi4_real_ge): Likewise.
35043         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35044         (sub<mode>3_virt): Likewise.
35045         (cbranchqi4_virt): Likewise.
35046         (cbranchhi4_virt): Likewise.
35047         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35048         always use '[reg+imm]' even when imm is zero.
35049         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35050         (rl78_general_operand): New.
35051         (rl78_nonimmediate_operand): New.
35052         (rl78_nonfar_operand): Use them.
35053         (rl78_nonfar_nonimm_operand): Likewise.
35054         (rl78_stack_based_mem): Fix.
35055         * config/rl78/constraints.md (Ibqi): New.
35056         (IBqi): New.
35057         (Wsa): New.
35058         (Wsf): New.
35059         (Cs1): Fix.
35060         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35061         (iorqi3): Likewise.
35062         (xorqi3): Likewise.
35063         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35065         * config/rl78/constrains (Qs8): New constraint.
35066         * config/rl78/rl78.c (rl78_flags_already_set): New function.
35067         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35068         * config/rl78/rl78-real.md (update_Z): New attribute.
35069         Update patterns to set it.
35070         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35071         shorter compare and branch sequence can be used.
35072         (cbranchhi4_real): Likewise.
35073         (cbranchhi4_real_inverted): Likewise.
35075         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35076         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35077         address space.
35078         * config/rl78/rl78.c (rl78_get_name_encoding): New.
35079         (rl78_option_override): Allow -mes0 only if C.
35080         (characterize_address): Support subregs of symbol_refs.
35081         (rl78_addr_space_address_mode): Move.  Add __near.
35082         (rl78_far_p): Likewise.
35083         (rl78_addr_space_pointer_mode): Likewise.
35084         (rl78_as_legitimate_address): Likewise.
35085         (rl78_addr_space_subset_p): Likewise.
35086         (rl78_addr_space_convert): Likewise.
35087         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35088         symbols with -mes0.
35089         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
35090         addressing.
35091         (rl78_alloc_physical_registers_op1): Change logic to prefer
35092         symbol[BC] addressing.
35093         (frodata_section): New.
35094         (rl78_asm_init_sections): Initialize it.
35095         (rl78_select_section): Put __far readonly symbols in .frodata.
35096         (rl78_make_type_far): New.
35097         (rl78_insert_attributes): Force all readonly symbols to be
35098         __far when -mes0.
35099         (rl78_asm_out_integer): New.
35100         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35101         * config/rl78/rl78.opt (-mes0): New.
35103         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35104         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35105         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35106         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35107         (rl78_saddr_p): New.
35108         (rl78_output_aligned_common): New.
35109         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35110         (rl78_handle_saddr_attribute): New.
35111         (rl78_handle_naked_attribute): New.
35112         (rl78_attribute_table): Add saddr.
35113         (rl78_print_operand_1): Don't print '!' on saddr operands.
35114         (rl78_print_operand_1): Strip encodings.
35115         (rl78_sfr_p): New.
35116         (rl78_strip_name_encoding): New.
35117         (rl78_attrlist_to_encoding): New.
35118         (rl78_encode_section_info): New.
35119         (rl78_asm_init_sections): New.
35120         (rl78_select_section): New.
35121         (rl78_output_labelref): New.
35122         (rl78_output_aligned_common): New.
35123         (rl78_asm_out_integer): New.
35124         (rl78_asm_ctor_dtor): New.
35125         (rl78_asm_constructor): New.
35126         (rl78_asm_destructor): New.
35128         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35129         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35130         (transcode_memory_rtx): Update.
35131         (rl78_expand_epilogue): Use A_REG instead of 0.
35133 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35135         * config/arm/arm-protos.h (struct tune_params): New field
35136         sched_autopref_queue_depth.
35137         * config/arm/arm.c (sched-int.h): Include header.
35138         (arm_first_cycle_multipass_dfa_lookahead_guard,)
35139         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35140         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35141         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35142         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35143         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35144         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35145         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35146         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
35147         * config/arm/t-arm (arm.o): Update.
35148         * haifa-sched.c (update_insn_after_change): Update.
35149         (rank_for_schedule): Use auto-prefetcher model, if requested.
35150         (autopref_multipass_init): New static function.
35151         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35152         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35153         variable for debug dumps.
35154         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35155         (autopref_multipass_dfa_lookahead_guard): New global function that
35156         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35157         (init_h_i_d): Update.
35158         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35159         * sched-int.h (enum autopref_multipass_data_status): New const enum.
35160         (autopref_multipass_data_): Structure for auto-prefetcher data.
35161         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35162         (struct _haifa_insn_data:autopref_multipass_data): New field.
35163         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35164         (autopref_multipass_dfa_lookahead_guard): Declare.
35166 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35168         * rtlanal.c (get_base_term): Handle SCRATCH.
35170 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35172         * config/aarch64/aarch64.c
35173         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35174         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35175         * config/arm/arm.c
35176         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35177         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35179 2015-01-17  Alan Modra  <amodra@gmail.com>
35181         * cprop.c (do_local_cprop): Disallow replacement of fixed
35182         hard registers.
35184 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35186         PR target/62066
35187         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35188         early return 0.
35190 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35192         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35193         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35195 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35197         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35198         * config/arm/thumb1.md: ... Here.
35200 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35202         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35203         TImode for TARGET_32BIT.
35205 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35207         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35208         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35209         as ...
35210         (rs6000_abi_word_mode): New function.
35212 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35214         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35215         instead of UNITS_PER_WORD to describe the size of stack slots.
35217 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35219         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35220         as rs6000_promote_function_mode.  Move comment to there.
35221         (rs6000_promote_function_mode): New function.
35223 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
35225         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35226         -mpowerpc64 is active.
35228 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35230         PR middle-end/64353
35231         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35232         virtuals on start.
35234 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
35236         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35237         introduced in revision 219724.
35239 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35240             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35242         PR target/64263
35243         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35244         destination is not a GP reg.
35245         (*movdi_aarch64): Likewise.
35247 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
35249         PR target/64623
35250         * config/rs6000/default64.h: Revert ISA change.
35252 2015-01-16  Richard Biener  <rguenther@suse.de>
35254         PR middle-end/64614
35255         * tree-ssa-uninit.c: Include tree-cfg.h.
35256         (MAX_SWITCH_CASES): New define.
35257         (convert_control_dep_chain_into_preds): Handle switch statements.
35258         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35259         (normalize_one_pred_1): Do not split bit-manipulations.
35260         Record (x & CST).
35262 2015-01-16  Richard Biener  <rguenther@suse.de>
35264         PR tree-optimization/64568
35265         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35266         complex load rewriting for TARGET_MEM_REFs.
35268 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
35270         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35272 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
35274         PR target/64149
35275         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35276         variable.
35277         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35278         (aarch64_lra_p): Remove.
35280 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35282         PR target/64363
35283         * ipa-chkp.h (chkp_instrumentable_p): New.
35284         * ipa-chkp.c: Include tree-inline.h.
35285         (chkp_instrumentable_p): New.
35286         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35287         Fix processing of not instrumentable functions.
35288         (chkp_versioning): Use chkp_instrumentable_p. Warn about
35289         not instrumentable functions.
35290         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35291         chkp_instrumentable_p.
35292         * tree-inline.h (copy_forbidden): New.
35293         * tree-inline.c (copy_forbidden): Not static anymore.
35295 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35297         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35298         ptr1, ptr2 unused.
35300 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
35302         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35303         type OP_OUT to OP_INOUT.
35305 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
35307         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35308         (high x) y) to y if x and y have the same base.
35310 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
35312         * config/arm/cortex-a57.md: New.
35313         * config/aarch64/aarch64.md: Include it.
35314         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35315         * config/aarch64/aarch64-tune.md: Regenerate.
35317 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35319         PR target/64015
35320         * ccmp.c (expand_ccmp_next): New function.
35321         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35322         and compare insn sequence.
35323         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35324         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35325         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35326         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35327         (*ccmp_ior): Changed to ccmp_ior<mode>.
35328         (cmp<mode>): New pattern.
35329         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35330         parameters.
35331         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35333 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
35335         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35336         _mm256_bsrli_epi128): New.
35337         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35339 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35341         * expmed.c (store_bit_field_using_insv): Improve warning message.
35342         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35344 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
35346         PR rtl-optimization/64011
35347         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35348         there is partial overflow.
35350 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35352         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35353         prototype.
35354         (nds32_expand_epilogue_v3pop): Likewise.
35355         * config/nds32/nds32.md (sibcall): Define this for sibling call
35356         optimization.
35357         (sibcall_register): Likewise.
35358         (sibcall_immediate): Likewise.
35359         (sibcall_value): Likewise.
35360         (sibcall_value_register): Likewise.
35361         (sibcall_value_immediate): Likewise.
35362         (sibcall_epilogue): Likewise.
35363         (epilogue): Pass false to indicate this is not a sibcall epilogue.
35364         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35365         (nds32_expand_epilogue_v3pop): Likewise.
35367 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35369         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35370         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35371         (return_internal): New.
35372         (return): Define this named pattern.
35373         (simple_return): Define this named pattern.
35374         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35375         pattern instead of unspec_volatile_func_return.
35376         (nds32_expand_epilogue_v3pop): Likewise.
35377         (nds32_can_use_return_insn): New function.
35379 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35381         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35382         * config/nds32/nds32.md (pop25return): New.
35383         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35384         pop25return pattern.
35386 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35388         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35389         -mforbid-fp-as-gp, and -mex9 options.
35391 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
35393         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35394         remove -mgp-direct option.
35396 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35398         * doc/invoke.texi (--param early-inlining-insns): Update default value.
35399         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35401 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35403         * ipa-inline.c (inline_small_functions): Work around hints
35404         cache issue.
35406 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
35408         PR target/59710
35409         * doc/invoke.texi (Option Summary): Document new Nios II
35410         -mgpopt= syntax.
35411         (Nios II Options): Likewise.
35412         * config/nios2/nios2.opt: Add -mgpopt= option support.
35413         Modify existing -mgpopt and -mno-gpopt options to be aliases.
35414         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35415         * config/nios2/nios2.c (nios2_option_override): Adjust
35416         -mgpopt defaulting.
35417         (nios2_in_small_data_p): Return true for explicit small data
35418         sections even with -G0.
35419         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35420         option choices.
35422 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35424         PR ipa/64612
35425         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35426         of comdat locals.
35427         (inline_call): Fix removal of aliases.
35429 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
35431         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35432         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35433         * opts.c (common_handle_option): Add -fsanitize=vptr.
35434         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35435         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35436         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35437         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35438         (ubsan_expand_vptr_ifn): New prototype.
35439         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35440         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35441         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35442         expand_LOOP_VECTORIZED): Make argument nameless, remove
35443         ATTRIBUTE_UNUSED.
35444         (expand_UBSAN_VPTR): New function.
35445         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35446         in fn spec.
35447         (UBSAN_VPTR): New internal function.
35448         * sanopt.c (tree_map_traits): Renamed to ...
35449         (sanopt_tree_map_traits): ... this.
35450         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35451         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35452         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
35453         (maybe_optimize_ubsan_vptr_ifn): New function.
35454         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35455         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
35456         -fsanitize=vptr.
35457         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35458         internal calls like pure functions for aliasing, even when they
35459         have other side-effects that prevent making them ECF_PURE.
35460         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35461         (ubsan_expand_vptr_ifn): New function.
35463 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35465         PR rtl-optimization/64110
35466         * stmt.c (parse_output_constraint): Process '^' and '$'.
35467         (parse_input_constraint): Ditto.
35468         * lra-constraints.c (process_alt_operands): Process the new
35469         constraints.
35470         * ira-costs.c (record_reg_classes): Process the new constraint
35471         '^'.
35472         * genoutput.c (indep_constraints): Add '^' and '$'.
35473         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35474         * doc/md.texi: Add description of the new constraints.
35476 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
35477             Bernd Schmidt  <bernds@codesourcery.com>
35478             Cesar Philippidis  <cesar@codesourcery.com>
35479             James Norris  <jnorris@codesourcery.com>
35480             Tom de Vries  <tom@codesourcery.com>
35481             Ilmir Usmanov  <i.usmanov@samsung.com>
35482             Dmitry Bocharnikov  <dmitry.b@samsung.com>
35483             Evgeny Gavrin  <e.gavrin@samsung.com>
35484             Jakub Jelinek  <jakub@redhat.com>
35486         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35487         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35488         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35489         New function types.
35490         * builtins.c: Include "gomp-constants.h".
35491         (expand_builtin_acc_on_device): New function.
35492         (expand_builtin, is_inexpensive_builtin): Handle
35493         BUILT_IN_ACC_ON_DEVICE.
35494         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35495         New macros.
35496         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35497         flag_openmp.
35498         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35499         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35500         i386/intelmic-offload.h.
35501         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35502         to libgomp and its dependencies.
35503         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35504         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35505         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35506         * config/ia64/hpux.h (LIB_SPEC): Likewise.
35507         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35508         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35509         * doc/generic.texi: Update for OpenACC changes.
35510         * doc/gimple.texi: Likewise.
35511         * doc/invoke.texi: Likewise.
35512         * doc/sourcebuild.texi: Likewise.
35513         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35514         GF_OMP_FOR_KIND_OACC_LOOP.
35515         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35516         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35517         GF_OMP_TARGET_KIND_OACC_UPDATE,
35518         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35519         Dump more data.
35520         * gimple.c: Update comments for OpenACC changes.
35521         * gimple.def: Likewise.
35522         * gimple.h: Likewise.
35523         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35524         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35525         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35526         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35527         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35528         appropriate place.
35529         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35530         * gimplify.c: Include "gomp-constants.h".
35531         Update comments for OpenACC changes.
35532         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35533         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35534         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35535         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35536         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35537         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35538         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35539         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35540         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35541         OMP_CLAUSE_SEQ.
35542         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35543         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
35544         OMP_CLAUSE_SET_MAP_KIND.
35545         (gimplify_oacc_cache): New function.
35546         (gimplify_omp_for): Handle OACC_LOOP.
35547         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35548         OACC_DATA.
35549         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35550         OACC_EXIT_DATA, OACC_UPDATE.
35551         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35552         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35553         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35554         (gimplify_body): Consider flag_openacc next to flag_openmp.
35555         * lto-streamer-out.c: Include "gomp-constants.h".
35556         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35557         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35558         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35559         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35560         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35561         (BUILT_IN_ACC_ON_DEVICE): New builtins.
35562         * omp-low.c: Include "gomp-constants.h".
35563         Update comments for OpenACC changes.
35564         (struct omp_context): Add reduction_map, gwv_below, gwv_this
35565         members.
35566         (extract_omp_for_data, use_pointer_for_field, install_var_field)
35567         (new_omp_context, delete_omp_context, scan_sharing_clauses)
35568         (create_omp_child_function, scan_omp_for, scan_omp_target)
35569         (check_omp_nesting_restrictions, lower_reduction_clauses)
35570         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35571         Update for OpenACC changes.
35572         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35573         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35574         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35575         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35576         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35577         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
35578         OMP_CLAUSE_MAP_*.
35579         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35580         Handle GF_OMP_FOR_KIND_OACC_LOOP.
35581         (expand_omp_target, lower_omp_target): Handle
35582         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35583         GF_OMP_TARGET_KIND_OACC_UPDATE,
35584         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35585         GF_OMP_TARGET_KIND_OACC_DATA.
35586         (pass_expand_omp::execute, execute_lower_omp)
35587         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35588         flag_openmp.
35589         (offload_symbol_decl): New variable.
35590         (oacc_get_reduction_array_id, oacc_max_threads)
35591         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35592         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35593         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35594         (oacc_gimple_assign, oacc_initialize_reduction_data)
35595         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35596         functions.
35597         (is_targetreg_ctx): Remove function.
35598         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35599         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35600         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35601         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35602         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35603         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35604         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35605         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35606         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35607         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35608         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35609         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35610         * tree-core.h: Update comments for OpenACC changes.
35611         (enum omp_clause_map_kind): Remove.
35612         (struct tree_omp_clause): Change type of map_kind member from enum
35613         omp_clause_map_kind to unsigned char.
35614         * tree-inline.c: Update comments for OpenACC changes.
35615         * tree-nested.c: Likewise.  Include "gomp-constants.h".
35616         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35617         (convert_tramp_reference_stmt, convert_gimple_call): Update for
35618         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
35619         OMP_CLAUSE_SET_MAP_KIND.
35620         * tree-pretty-print.c: Include "gomp-constants.h".
35621         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35622         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35623         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35624         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35625         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35626         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
35627         instead of OMP_CLAUSE_MAP_*.
35628         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35629         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35630         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35631         * tree-streamer-in.c: Include "gomp-constants.h".
35632         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35633         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
35634         * tree-streamer-out.c: Include "gomp-constants.h".
35635         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35636         OMP_CLAUSE_MAP_*.
35637         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35638         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35639         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35640         * tree.c (omp_clause_num_ops): Update accordingly.
35641         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35642         Likewise.
35643         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35644         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35645         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35646         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35647         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35648         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35649         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35650         (OMP_CLAUSE_SET_MAP_KIND): New macro.
35651         * varpool.c (varpool_node::get_create): Consider flag_openacc next
35652         to flag_openmp.
35653         * config/i386/intelmic-offload.h: New file.
35654         * config/nvptx/offload.h: Likewise.
35656 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35658         * explow.h: Remove duplicate contents.
35659         * dojump.h: Likewise.
35661 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
35663         * arm.c (arm_xgene_tune): Add default initializer for instruction
35664         fusion.
35666 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
35668         PR ipa/64068
35669         PR ipa/64559
35670         * ipa.c (symbol_table::remove_unreachable_nodes):
35671         Do not put abstract origins into boundary.
35673 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
35675         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35676         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35678 2015-01-15  Steve Ellcey  <sellcey@mips.com>
35680         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35681         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35682         builtins.def, and chkp-builtins.def.
35684 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
35686         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35687         ISA 2.7 (POWER8).
35689 2015-01-15  Richard Biener  <rguenther@suse.de>
35691         PR tree-optimization/61743
35692         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35693         information on PHIs for some simple cases.
35695 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35697         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35698         Include xgene1.md.
35699         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35700         * config/arm/arm-cores.def (xgene1): New entry.
35701         * config/arm/arm-tables.opt: Regenerate.
35702         * config/arm/arm-tune.md: Regenerate.
35703         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35705 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
35707         * tree-if-conv.c: Include hash-map.h.
35708         (aggressive_if_conv): New variable.
35709         (fold_build_cond_expr): Add simplification of non-zero condition.
35710         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35711         destination block is not always executed.
35712         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35713         than two predecessors if AGGRESSIVE_IF_CONV is true.
35714         (if_convertible_stmt_p): Fix commentary.
35715         (all_preds_critical_p): New function.
35716         (has_pred_critical_p): New function.
35717         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35718         BB can have more than two predecessors and all incoming edges can be
35719         critical.
35720         (predicate_bbs): Skip predication for loop exit block, use build2_loc
35721         to compute predicate for true edge.
35722         (find_phi_replacement_condition): Delete this function.
35723         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35724         Allow interchange PHI arguments if EXTENDED is false.
35725         Change check that block containing reduction statement candidate
35726         is predecessor of phi-block since phi may have more than two arguments.
35727         (phi_args_hash_traits): New helper structure.
35728         (struct phi_args_hash_traits): New type.
35729         (phi_args_hash_traits::hash): New function.
35730         (phi_args_hash_traits::equal_keys): New function.
35731         (gen_phi_arg_condition): New function.
35732         (predicate_scalar_phi): Add handling of phi nodes with more than two
35733         arguments, delete COND and TRUE_BB arguments, insert body of
35734         find_phi_replacement_condition to predicate ordinary phi nodes.
35735         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35736         delete call of find_phi_replacement_condition and invoke
35737         predicate_scalar_phi with two arguments.
35738         (insert_gimplified_predicates): Add assert that non-predicated block
35739         don't have statements to insert.
35740         (ifcvt_split_critical_edges): New function.
35741         (ifcvt_split_def_stmt): Likewise.
35742         (ifcvt_walk_pattern_tree): Likewise.
35743         (stmt_is_root_of_bool_pattern): Likewise.
35744         (ifcvt_repair_bool_pattern): Likewise.
35745         (ifcvt_local_dce): Likewise.
35746         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35747         is copy of inner or outer loop force_vectorize field, invoke
35748         ifcvt_split_critical_edges, ifcvt_local_dce and
35749         ifcvt_repair_bool_pattern for aggressive if-conversion.
35751 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
35753         * config/aarch64/aarch64.md: Include xgene1.md.
35754         * config/aarch64/xgene1.md: New file.
35756 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
35758         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35759         xgene1 (APM XGene-1) core definition.
35760         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35761         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35762         * doc/invoke.texi: Document -mcpu=xgene1.
35764 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35766         * dojump.h: New header file.
35767         * explow.h: Likewise.
35768         * expr.h: Remove includes.
35769         Move expmed.c prototypes to expmed.h.
35770         Move dojump.c prototypes to dojump.h.
35771         Move alias.c prototypes to alias.h.
35772         Move explow.c prototypes to explow.h.
35773         Move calls.c prototypes to calls.h.
35774         Move emit-rtl.c prototypes to emit-rtl.h.
35775         Move varasm.c prototypes to varasm.h.
35776         Move stmt.c prototypes to stmt.h.
35777         (saved_pending_stack_adjust): Move to dojump.h.
35778         (adjust_address): Move to explow.h.
35779         (adjust_address_nv): Move to emit-rtl.h.
35780         (adjust_bitfield_address): Likewise.
35781         (adjust_bitfield_address_size): Likewise.
35782         (adjust_bitfield_address_nv): Likewise.
35783         (adjust_automodify_address_nv): Likewise.
35784         * explow.c (expr_size): Move to expr.c.
35785         (int_expr_size): Likewise.
35786         (tree_expr_size): Likewise.
35787         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35788         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35789         * genemit.c (main): Generate includes statistics.h, real.h,
35790         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
35791         stmt.h.
35792         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
35793         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
35794         explow.h, emit-rtl.h, stmt.h.
35795         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
35796         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
35797         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
35798         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
35799         emit-rtl.h, varasm.h, stmt.h.
35800         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
35801         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
35802         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
35803         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
35804         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35805         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
35806         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
35807         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
35808         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
35809         tm.h tree.h varasm.h vec.h wide-int.h.
35810         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35811         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35812         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
35813         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
35814         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
35815         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
35816         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
35817         * loop-iv.c: Likewise.
35818         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
35819         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
35820         statistics.h stmt.h tree.h varasm.h wide-int.h.
35821         * lra-constraints.c: Likewise.
35822         * lra-eliminations.c: Likewise.
35823         * lra-lives.c: Likewise.
35824         * lra-remat.c: Likewise.
35825         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35826         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
35827         statistics.h stmt.h tree.h varasm.h wide-int.h.
35828         * hw-doloop.c: Likewise.
35829         * ira-color.c: Likewise.
35830         * ira-emit.c: Likewise.
35831         * loop-doloop.c: Likewise.
35832         * loop-invariant.c: Likewise.
35833         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35834         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
35835         statistics.h stmt.h tree.h varasm.h wide-int.h.
35836         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
35837         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
35838         statistics.h stmt.h tree.h varasm.h wide-int.h.
35839         * combine-stack-adj.c: Likewise.
35840         * cse.c: Likewise.
35841         * ddg.c: Likewise.
35842         * ifcvt.c: Likewise.
35843         * ira-costs.c: Likewise.
35844         * jump.c: Likewise.
35845         * lra-coalesce.c: Likewise.
35846         * lra-spills.c: Likewise.
35847         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35848         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
35849         stmt.h varasm.h wide-int.h.
35850         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35851         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35852         varasm.h.
35853         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
35854         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
35855         statistics.h stmt.h varasm.h wide-int.h.
35856         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
35857         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
35858         varasm.h wide-int.h.
35859         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
35860         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35861         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
35862         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
35863         statistics.h stmt.h.
35864         * config/tilepro/tilepro.c: Likewise.
35865         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
35866         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
35867         * config/pdp11/pdp11.c: Likewise.
35868         * config/xtensa/xtensa.c: Likewise.
35869         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
35870         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35871         varasm.h.
35872         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35873         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35874         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
35875         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35876         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35877         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
35878         * rtl-chkp.c: Likewise.
35879         * tree-chkp-opt.c: Likewise.
35880         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
35881         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35882         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
35883         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35884         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35885         statistics.h stmt.h.
35886         * tree-vect-data-refs.c: Likewise.
35887         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
35888         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35889         rtl.h statistics.h stmt.h varasm.h.
35890         * internal-fn.c: Likewise.
35891         * ipa-icf-gimple.c: Likewise.
35892         * lto-section-out.c: Likewise.
35893         * tree-data-ref.c: Likewise.
35894         * tree-nested.c: Likewise.
35895         * tree-outof-ssa.c: Likewise.
35896         * tree-predcom.c: Likewise.
35897         * tree-pretty-print.c: Likewise.
35898         * tree-scalar-evolution.c: Likewise.
35899         * tree-ssa-strlen.c: Likewise.
35900         * tree-vect-loop.c: Likewise.
35901         * tree-vect-patterns.c: Likewise.
35902         * tree-vect-slp.c: Likewise.
35903         * tree-vect-stmts.c: Likewise.
35904         * tsan.c: Likewise.
35905         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35906         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
35907         stmt.h.
35908         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
35909         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35910         statistics.h stmt.h varasm.h.
35911         * loop-unroll.c: Likewise.
35912         * ubsan.c: Likewise.
35913         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
35914         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
35915         stmt.h varasm.h.
35916         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35917         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
35918         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
35919         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35920         statistics.h stmt.h.
35921         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
35922         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35923         statistics.h stmt.h varasm.h.
35924         * gimple-match-head.c: Likewise.
35925         * lto-cgraph.c: Likewise.
35926         * lto-section-in.c: Likewise.
35927         * lto-streamer-in.c: Likewise.
35928         * lto-streamer-out.c: Likewise.
35929         * tree-affine.c: Likewise.
35930         * tree-cfg.c: Likewise.
35931         * tree-cfgcleanup.c: Likewise.
35932         * tree-if-conv.c: Likewise.
35933         * tree-into-ssa.c: Likewise.
35934         * tree-ssa-alias.c: Likewise.
35935         * tree-ssa-copyrename.c: Likewise.
35936         * tree-ssa-dse.c: Likewise.
35937         * tree-ssa-forwprop.c: Likewise.
35938         * tree-ssa-live.c: Likewise.
35939         * tree-ssa-math-opts.c: Likewise.
35940         * tree-ssa-pre.c: Likewise.
35941         * tree-ssa-sccvn.c: Likewise.
35942         * tree-tailcall.c: Likewise.
35943         * tree-vect-generic.c: Likewise.
35944         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35945         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
35946         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35947         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
35948         * varasm.c: Likewise.
35949         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35950         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
35951         varasm.h.
35952         * init-regs.c: Likewise.
35953         * ira.c: Likewise.
35954         * omp-low.c: Likewise.
35955         * stack-ptr-mod.c: Likewise.
35956         * tree-ssa-reassoc.c: Likewise.
35957         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35958         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
35959         varasm.h.
35960         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35961         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
35962         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35963         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
35964         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35965         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
35966         * tree-ssa-phiopt.c: Likewise.
35967         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35968         fixed-value.h hashtab.h real.h statistics.h stmt.h.
35969         * config/fr30/fr30.c: Likewise.
35970         * config/frv/frv.c: Likewise.
35971         * expr.c: Likewise.
35972         * final.c: Likewise.
35973         * optabs.c: Likewise.
35974         * passes.c: Likewise.
35975         * simplify-rtx.c: Likewise.
35976         * stmt.c: Likewise.
35977         * toplev.c: Likewise.
35978         * var-tracking.c: Likewise.
35979         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35980         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35981         * lower-subreg.c: Likewise.
35982         * postreload-gcse.c: Likewise.
35983         * ree.c: Likewise.
35984         * reginfo.c: Likewise.
35985         * store-motion.c: Likewise.
35986         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35987         fixed-value.h hashtab.h real.h stmt.h varasm.h.
35988         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35989         fixed-value.h hashtab.h statistics.h stmt.h.
35990         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35991         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35992         * except.c: Likewise.
35993         * explow.c: Likewise.
35994         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35995         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
35996         varasm.h.
35997         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35998         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
35999         * tree-ssa-structalias.c: Likewise.
36000         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36001         fixed-value.h insn-config.h real.h statistics.h.
36002         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36003         fixed-value.h insn-config.h real.h statistics.h stmt.h.
36004         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36005         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36006         * cfgbuild.c: Likewise.
36007         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36008         fixed-value.h real.h rtl.h statistics.h stmt.h.
36009         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36010         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36011         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36012         fixed-value.h real.h statistics.h stmt.h.
36013         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36014         fixed-value.h real.h statistics.h stmt.h varasm.h.
36015         * cprop.c: Likewise.
36016         * modulo-sched.c: Likewise.
36017         * postreload.c: Likewise.
36018         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36019         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36020         statistics.h stmt.h varasm.h.
36021         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36022         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36023         rtl.h statistics.h stmt.h varasm.h.
36024         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36025         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36026         varasm.h.
36027         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36028         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36029         varasm.h.
36030         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36031         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36032         varasm.h.
36033         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36034         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36035         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36036         function.h real.h statistics.h stmt.h varasm.h.
36037         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36038         insn-config.h real.h statistics.h stmt.h.
36039         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36040         statistics.h stmt.h.
36041         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36042         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36043         statistics.h stmt.h varasm.h.
36044         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36045         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36046         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36047         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36048         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36049         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36050         statistics.h stmt.h varasm.h.
36051         * ipa-polymorphic-call.c: Likewise.
36052         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36053         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36054         statistics.h stmt.h.
36055         * config/c6x/c6x.c: Likewise.
36056         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36057         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36058         statistics.h stmt.h varasm.h.
36059         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36060         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36061         stmt.h varasm.h.
36062         * ipa-split.c: Likewise.
36063         * tree-eh.c: Likewise.
36064         * tree-ssa-dce.c: Likewise.
36065         * tree-ssa-loop-niter.c: Likewise.
36066         * tree-vrp.c: Likewise.
36067         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36068         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36069         stmt.h.
36070         * config/nds32/nds32-fp-as-gp.c: Likewise.
36071         * config/nds32/nds32-intrinsic.c: Likewise.
36072         * config/nds32/nds32-isr.c: Likewise.
36073         * config/nds32/nds32-md-auxiliary.c: Likewise.
36074         * config/nds32/nds32-memory-manipulation.c: Likewise.
36075         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36076         * config/nds32/nds32-predicates.c: Likewise.
36077         * config/nds32/nds32.c: Likewise.
36078         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36079         fixed-value.h hashtab.h real.h statistics.h.
36080         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36081         fixed-value.h hashtab.h real.h statistics.h stmt.h.
36082         * config/arm/arm.c: Likewise.
36083         * config/avr/avr.c: Likewise.
36084         * config/bfin/bfin.c: Likewise.
36085         * config/h8300/h8300.c: Likewise.
36086         * config/i386/i386.c: Likewise.
36087         * config/ia64/ia64.c: Likewise.
36088         * config/iq2000/iq2000.c: Likewise.
36089         * config/m32c/m32c.c: Likewise.
36090         * config/m32r/m32r.c: Likewise.
36091         * config/m68k/m68k.c: Likewise.
36092         * config/mcore/mcore.c: Likewise.
36093         * config/mep/mep.c: Likewise.
36094         * config/mips/mips.c: Likewise.
36095         * config/mn10300/mn10300.c: Likewise.
36096         * config/moxie/moxie.c: Likewise.
36097         * config/pa/pa.c: Likewise.
36098         * config/rl78/rl78.c: Likewise.
36099         * config/rx/rx.c: Likewise.
36100         * config/s390/s390.c: Likewise.
36101         * config/sh/sh.c: Likewise.
36102         * config/sparc/sparc.c: Likewise.
36103         * config/spu/spu.c: Likewise.
36104         * config/stormy16/stormy16.c: Likewise.
36105         * config/v850/v850.c: Likewise.
36106         * config/vax/vax.c: Likewise.
36107         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36108         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36109         * config/msp430/msp430.c: Likewise.
36110         * predict.c: Likewise.
36111         * value-prof.c: Likewise.
36112         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36113         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36114         * config/microblaze/microblaze.c: Likewise.
36115         * config/nios2/nios2.c: Likewise.
36116         * config/rs6000/rs6000.c: Likewise.
36117         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36118         insn-config.h real.h rtl.h statistics.h stmt.h.
36119         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36120         insn-config.h real.h statistics.h stmt.h.
36121         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36122         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36123         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36124         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36125         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36126         fixed-value.h real.h statistics.h stmt.h.
36127         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36128         fixed-value.h statistics.h stmt.h.
36129         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36130         stmt.h.
36132 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36134         * gengtype.c (create_user_defined_type): Workaround
36135         -Wmaybe-uninitialized false positives.
36136         * cse.c (fold_rtx): Likewise.
36137         * loop-invariant.c (gain_for_invariant): Likewise.
36139 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36141         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36142         set the memory attributes in all cases but clear MEM_EXPR if need be.
36144 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36146         PR tree-optimization/64434
36147         * cfgexpand.c (reorder_operands): New function.
36148         (expand_gimple_basic_block): Insert call of reorder_operands if
36149         optimized is true.
36151 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
36153         * config/mips/micromips.md (*swp): Remove explicit parallel.
36154         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36155         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36156         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36157         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36158         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36159         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36160         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36161         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36162         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36163         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36164         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36165         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36166         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36167         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36168         (mips_wrdsp): Likewise.
36169         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36170         parallel.
36171         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36172         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36173         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36174         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36175         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36176         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36177         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36178         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36179         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36181 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36183         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36184         (mips_print_operand): Support 'y' to print exact log2 in decimal
36185         of a const_int.
36186         * config/mips/mips.h (ISA_HAS_LSA): New define.
36187         (ISA_HAS_DLSA): Likewise.
36188         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36189         * config/mips/predicates.md (const_immlsa_operand): New predicate.
36191 2015-01-15  Martin Liska  <mliska@suse.cz>
36193         PR target/64377
36194         * optc-save-gen.awk: Add support for array types.
36196 2015-01-15  Richard Biener  <rguenther@suse.de>
36198         PR middle-end/64365
36199         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36200         for MEM_REF access functions with the same base can never partially
36201         overlap.
36203 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
36205         * common.opt: New option -fstack-protector-explicit.
36206         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36207         (stack_protect_decl_phase): Handle stack_protect attribute for
36208         explicit stack protection requests.
36209         (expand_used_vars): Similarly.
36210         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36211         * doc/extend.texi: Add documentation for "stack_protect" attribute.
36212         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36214 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
36216         PR target/53988
36217         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36218         reg-reg copies.
36219         (sh_extending_set_of_reg): New struct.
36220         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36221         sh_remove_reg_dead_or_unused_notes): New Declarations.
36222         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36223         sh_find_extending_set_of_reg, sh_split_tst_subregs,
36224         sh_extending_set_of_reg::use_as_extended_reg): New functions.
36225         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36226         convert to insn_and_split and use new function sh_split_tst_subregs.
36228 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
36230         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36231         option.
36232         (Optimization Options): Move -fuse-ld documentation to...
36233         (Link Options): ...here.
36235 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36237         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36238         offsets.
36239         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36240         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36241         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36242         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36243         instead of ZR for the memory operand of LL/SC.
36244         (compare_and_swap_12, sync_add<mode>): Likewise.
36245         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36246         (sync_new_<optab>_12, sync_nand_12): Likewise.
36247         (sync_old_nand_12, sync_new_nand_12): Likewise.
36248         (sync_sub<mode>, sync_old_add<mode>): Likewise.
36249         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36250         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36251         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36252         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36253         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36254         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36255         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36256         * doc/md.texi (ZC): Update description.
36258 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
36260         * builtins.c (expand_builtin_atomic_exchange): Remove error when
36261         memory model is CONSUME.
36262         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36263         expand_builtin_atomic_store): Change invalid memory model errors to
36264         warnings.
36265         (expand_builtin_atomic_clear): Change invalid model errors to warnings
36266         and issue warning for CONSUME.
36268 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
36270         * lto-cgraph: Update function comments for
36271         lto_symtab_encoder_encode_*.
36273 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
36275         * Makefile.in (site.exp): Do not set ENABLE_LTO.
36277 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
36279         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36280         * lto-cgraph.c (select_what_to_stream): Remove argument, use
36281         lto_stream_offload_p instead.
36282         * lto-streamer.h (select_what_to_stream): Remove argument.
36283         * passes.c (ipa_write_summaries): Likewise.
36284         * tree-pass.h (ipa_write_summaries): Likewise.
36286 2015-01-14  Richard Biener  <rguenther@suse.de>
36288         PR tree-optimization/59354
36289         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36290         groups larger than the slp group size as having gaps.
36292 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
36294         PR middle-end/59448
36295         * builtins.c (get_memmodel): Promote consume to acquire always.
36297 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36299         PR target/64386
36300         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36301         V32HImode.
36303 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36305         PR target/64393
36306         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36307         Enable AVX512BW.
36308         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36309         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36310         AVX512VBMI, as it implies AVX512BW.
36312 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
36314         PR target/64387
36315         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36316         (vec_unpacks_hi_v16sf): Ditto.
36318 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36320         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36321         is not available.
36323 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36325         * doc/invoke.texi (mapcs): Mention deprecation.
36326         (mapcs-frame): Likewise.
36328 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36330         PR target/64453
36331         * config/arm/arm.c (callee_saved_reg_p): Define.
36332         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36333         register is callee saved instead of !call_used_regs[reg].
36334         (thumb1_compute_save_reg_mask): Likewise.
36336 2015-01-14  Hale Wang  <hale.wang@arm.com>
36338         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36339         Cortex-M7.
36341 2015-01-14  Richard Biener  <rguenther@suse.de>
36343         PR lto/64415
36344         * tree-inline.c (insert_debug_decl_map): Check destination
36345         function MAY_HAVE_DEBUG_STMTS.
36346         (insert_init_debug_bind): Likewise.
36347         (insert_init_stmt): Remove redundant check.
36348         (remap_gimple_stmt): Drop debug stmts if the destination
36349         function has var-tracking assignments disabled.
36351 2015-01-14  Martin Liska  <mliska@suse.cz>
36353         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36354         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36356 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36358         PR target/64460
36359         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36360         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36362 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
36364         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36365         level from an ARCH; do not inject the default.
36366         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36367         MIPS_ISA_LEVEL_SPEC.
36368         (MIPS_ISA_NAN2008_SPEC): Update comment.
36369         (BASE_DRIVER_SELF_SPECS): Likewise.
36370         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36371         MIPS_DEFAULT_ISA_LEVEL_SPEC.
36372         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36373         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36374         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36376 2015-01-14  Richard Biener  <rguenther@suse.de>
36378         PR tree-optimization/64493
36379         PR tree-optimization/64495
36380         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36381         assign the proper vectorized PHI to the inner loop exit PHIs.
36383 2015-01-14  Joey Ye  <joey.ye@arm.com>
36385         * config/arm/arm.c (arm_compute_save_reg_mask):
36386         Do not save lr in case of tail call.
36387         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36389 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
36391         * tree-vrp.c (check_array_ref): Emit more warnings
36392         for warn_array_bounds >= 2.
36393         * common.opt: New option -Warray-bounds=.
36394         * doc/invoke.texi: Document -Warray-bounds=.
36396 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
36398         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36399         (mforbid-fp-as-gp): Remove.
36400         (mex9): Remove.
36401         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36402         (nds32_symbol_load_store_p): Remove.
36403         (nds32_fp_as_gp_check_available): Clean up implementation.
36404         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36405         cases.
36406         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36407         fp-as-gp and ex9 cases.
36409 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36411         * tree-profile.c (init_ic_make_global_vars): Drop workaround
36412         for bintuils bug 14342.
36413         (init_ic_make_global_vars): Likewise.
36414         (gimple_init_edge_profiler): Likewise.
36415         (gimple_gen_ic_func_profiler): Likewise.
36417 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36419         * ipa-inline.c (inline_small_functions): Swap the operands in
36420         enum.
36422 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36424         PR ipa/64481
36425         * ipa-inline-analysis.c (node_growth_cache): Remove.
36426         (initialize_growth_caches): Do not initialize it.
36427         (free_growth_caches): Do not free it.
36428         (do_estimate_growth): Rename to ...
36429         (estimate_growth): ... this one; drop growth cache code.
36430         (growth_likely_positive): Always go the heuristics way.
36431         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36432         (reset_edge_caches): Do not reset node growth.
36433         (heap_edge_removal_hook): Do not maintain cache.
36434         (inline_small_functions): Likewise; strenghten sanity check.
36435         (ipa_inline): Do not maintain caches.
36436         * ipa-inline.h (node_growth_cache): Remove.
36437         (do_estimate_growth): Remove to ...
36438         (estimate_growth): this one; remove inline version.
36439         (reset_node_growth_cache): Remove.
36441 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
36443         PR ipa/64565
36444         * ipa-inline.c (inline_small_functions): Update callee keys after
36445         resolving speculation
36446         (inline_small_functions): Always check monotonicity of the queue.
36448 2015-01-13  Marek Polacek  <polacek@redhat.com>
36450         PR middle-end/64391
36451         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36453 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36455         PR rtl-optimization/64286
36456         * ree.c (combine_reaching_defs): Move part of comment earlier,
36457         remove !SCALAR_INT_MODE_P check.
36458         (add_removable_extension): Don't add vector mode
36459         extensions if all uses of the source register aren't the same
36460         vector extensions.
36462 2015-01-13  Renlin Li  <renlin.li@arm.com>
36464         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36465         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36467 2015-01-13  Martin Liska  <mliska@suse.cz>
36469         * ipa-icf.c (sem_function::equals_private): Call new functions
36470         cl_target_option_print_diff and cl_optimization_print_diff.
36471         * optc-save-gen.awk (cl_target_option_print_diff): New function.
36472         (cl_optimization_print_diff): Likewise.
36473         * opth-gen.awk: Likewise.
36475 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
36477         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36478         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36479         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36480         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36481         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36482         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36484 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36486         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36487         instead of src mode.
36489 2015-01-13  Richard Biener  <rguenther@suse.de>
36491         PR lto/64373
36492         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36493         DECL_CONTEXT.
36495 2015-01-13  Andrew Pinski  <apinski@cavium.com>
36497         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36498         volatile mems.
36499         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36501 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
36503         PR middle-end/63974
36504         * cfgexpand.c (expand_computed_goto): Don't call
36505         convert_memory_address here.
36507 2015-01-13  Richard Biener  <rguenther@suse.de>
36509         PR tree-optimization/64406
36510         * tree-loop-distibution.c (pass_loop_distribution::execute):
36511         Reset the SCEV hashtable if we distributed anything.
36513 2015-01-13  Richard Biener  <rguenther@suse.de>
36515         PR tree-optimization/64404
36516         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36517         SLP types for CSEd loads.
36519 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36521         PR tree-optimization/64436
36522         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36523         merge of two symbolic numbers for a bitwise OR to ...
36524         (perform_symbolic_merge): This. Also fix computation of the range and
36525         end of the symbolic number corresponding to the result of a bitwise OR.
36527 2015-01-13  Richard Biener  <rguenther@suse.de>
36529         PR tree-optimization/64568
36530         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36531         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36533 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36535         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36536         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36538 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36540         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36541         target-specific symbol_ref flag.
36542         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36543         resides in rodata section.
36544         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36545         (nds32_encode_section_info): New function.
36547 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36549         * config/nds32/nds32.md (call): Use pseudo instruction bal which
36550         clobbers TA_REGNUM if large code model is specified.
36551         (call_register): Likewise.
36552         (call_immediate): Likewise.
36553         (call_value): Likewise.
36554         (call_value_register): Likewise.
36555         (call_value_immediate): Likewise.
36557 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36559         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36560         (TARGET_CMODEL_MEDIUM): New macro.
36561         (TARGET_CMODEL_LARGE): New macro.
36562         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36563         code model setting in assembly code.
36565 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36567         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36568         Remove MASK_GP_DIRECT flag.
36569         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36570         one of the multilib default options.
36571         * config/nds32/nds32.opt (mgp-direct): Remove.
36572         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36573         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
36575 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
36577         * config/nds32/nds32.opt (mcmodel): Add new option.
36578         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36579         to describe code model.
36581 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
36583         PR target/64479
36584         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36586 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
36588         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36589         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36590         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36591         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36592         __builtin_sh_set_fpscr.
36594 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
36596         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36597         after a funtion name just to indicate it is a function.
36598         ([-fsanitize-undefined-trap-on-error]): Likewise.
36599         ([-fdbg-cnt=]): Likewise.
36600         ([-mmemcpy]): Likewise.
36601         ([-mflush-func]): Likewise.
36602         ([-msynci]): Likewise.
36604 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
36606         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36607         example.
36609 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
36611         PR tree-optimization/64563
36612         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36613         instead of != VR_VARYING.
36615         PR target/64513
36616         * config/i386/i386.c (ix86_expand_prologue): Add
36617         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36619         PR tree-optimization/64454
36620         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36621         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36622         for signed or [0, op1 - 1] for unsigned modulo.
36623         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36624         even if op1 does not satisfy integer_pow2p.
36626         PR other/64370
36627         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36629 2015-01-12  Jeff Law  <law@redhat.com>
36631         PR target/64461
36632         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36633         (trunchiqi2, truncsihi2): Similarly.
36635         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36636         rather than calling F.
36638 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36640         * tsan.c (instrument_expr): Use force_gimple_operand.
36641         Use may_be_nonaddressable_p instead of is_gimple_addressable.
36643 2015-01-12  Richard Biener  <rguenther@suse.de>
36645         PR tree-optimization/64530
36646         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36647         back dr1.
36649 2015-01-12  Richard Biener  <rguenther@suse.de>
36651         PR middle-end/64357
36652         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36653         latches properly.
36655 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36657         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36658         Cortex-A17 tuning parameters.
36659         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36661 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36663         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36664         * config/arm/arm.c (arm_macro_fusion_p): New function.
36665         (arm_macro_fusion_pair_p): Likewise.
36666         (TARGET_SCHED_MACRO_FUSION_P): Define.
36667         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36668         (ARM_FUSE_NOTHING): Likewise.
36669         (ARM_FUSE_MOVW_MOVT): Likewise.
36670         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36671         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36672         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36673         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36674         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36675         arm_cortex_a5_tune): Specify fuseable_ops value.
36677 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
36679         PR bootstrap/64561
36680         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36681         test for PIE with copy reloc.
36682         * configure: Regenerated.
36684 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36686         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36687         in gen_rtx_REG.
36688         (arm_tls_descseq_addr): Likewise.
36689         (arm_gen_movmemqi): Likewise.
36690         (arm_expand_epilogue_apcs_frame): Likewise.
36691         (arm_expand_epilogue): Likewise.
36692         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
36693         in gen_rtx_REG.
36695 2015-01-12  Martin Liska  <mliska@suse.cz>
36697         PR ipa/64550
36698         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36699         volatility for correct operands.
36701 2015-01-12  Martin Liska  <mliska@suse.cz>
36703         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36704         indication that a function is not leaf.
36705         (sem_function::compare_polymorphic_p): Likewise.
36707 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36709         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36710         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36711         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36712         fold-const.h, tree-check.h.
36714 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
36716         PR ipa/63967
36717         PR ipa/64425
36718         * ipa-inline.c (compute_uninlined_call_time,
36719         compute_inlined_call_time): Use counts for extra precision when
36720         needed possible.
36721         (big_speedup_p): Fix formating.
36722         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36723         (relative_time_benefit): Remove.
36724         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36725         merge guessed and read profile paths.
36726         (inline_small_functions): Count only !optimize_size functions into
36727         initial size; be more lax about sanity check when profile is used;
36728         be sure to update inlined function profile when profile is read.
36730 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
36732         PR ipa/63470
36733         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36734         cost when edge becomes direct.
36735         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36736         is resolved or when introducing new speculation.
36738 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
36740         PR ipa/64551
36741         PR ipa/64552
36742         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36743         '||' to fix typo issue.
36745         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36746         accept and return NULL.
36748 2015-01-12  Martin Liska  <mliska@suse.cz>
36750         * cgraph.c (cgraph_edge::remove_callee): Move function to header
36751         file for being inlined.
36752         (cgraph_set_edge_callee): Delete.
36753         (cgraph_edge::redirect_callee): Move function to header file
36754         for being inlined.
36755         (cgraph_edge::make_direct): Use new function.
36756         (cgraph_edge::dump_edge_flags): New function created from
36757         static dump_edge_flags function.
36758         (cgraph_node::dump): Use new function.
36759         (cgraph_edge::verify_count_and_frequency): New function created
36760         from verify_edge_count_and_frequency.
36761         (cgraph_edge::verify_corresponds_to_fndecl): New function created
36762         from verify_edge_corresponds_to_fndecl.
36763         (verify_edge_corresponds_to_fndecl): Delete.
36764         (cgraph_node::verify_node): Use new function.
36765         * cgraph.h (cgraph_edge::set_callee): New function.
36766         (cgraph_edge::dump_edge_flags): Likewise.
36767         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36769 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
36771         * ipa-utils.c (estimate_function_body_sizes): Do not
36772         free node params when called late with early=true.
36774 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
36776         * doc/md.texi (Instruction Patterns): Rewrite text for
36777         clarity.
36778         (Example): Likewise.
36780 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
36782         * doc/invoke.texi (Option Summary): Break long lines.
36783         [(-fdiagnostics-color)]: Put long literal in @smallexample
36784         instead of inline.
36785         [(-fsanitize-recover)]: Likewise.
36786         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
36787         [(-ffast-math)]: Likewise.
36788         [(--param max-inline-insns-recursive)]: Likewise.
36789         [(--param max-inline-recursive-depth)]: Likewise.
36790         [(-mno-text-section-literals)]: Likewise.
36792 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
36794         * doc/install.texi: Update for libgomp being renamed from "GNU
36795         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
36796         Runtime Library".
36797         * doc/sourcebuild.texi: Likewise.
36799 2015-01-10  Anthony Green  <green@moxielogic.com>
36801         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
36802         mul.x availability for moxiebox configuration.
36804 2015-01-09  Anthony Green  <green@moxielogic.com>
36806         * config/moxie/moxie.md: Tabify assembly output.
36808 2015-01-09  Anthony Green  <green@moxielogic.com>
36810         * config/moxie/moxie.md (CC_REG): Correct register definition.
36812 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
36814         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
36815         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
36816         of log files.
36818 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36820         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
36822 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
36823             Jakub Jelinek  <jakub@redhat.com>
36825         PR middle-end/64412
36826         * lto-streamer.h (lto_stream_offload_p): New declaration.
36827         * lto-streamer.c (lto_stream_offload_p): New variable.
36828         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
36829         at the same time as section_name_prefix.
36830         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
36831         if lto_stream_offload_p.
36832         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
36833         stream TREE_TARGET_OPTION if lto_stream_offload_p.
36834         (write_ts_function_decl_tree_pointers): Don't
36835         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
36836         * tree-streamer-in.c (unpack_value_fields): Don't stream
36837         TREE_TARGET_OPTION in if ACCEL_COMPILER.
36838         (lto_input_ts_function_decl_tree_pointers): Don't stream
36839         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
36840         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
36841         instead of section_name_prefix string comparisons.
36843 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
36845         PR rtl-optimization/64536
36846         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
36847         tablejumps.
36849 2015-01-09  Michael Collison  <michael.collison@linaro.org>
36851         PR tree-optimization/64322
36852         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
36853         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
36855 2015-01-09  Tom de Vries  <tom@codesourcery.com>
36857         PR rtl-optimization/64539
36858         * regcprop.c (kill_clobbered_values): Factor out of ...
36859         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
36860         instead of note_stores with kill_clobbered_value.
36862 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36864          * ginclude/unwind-arm-common.h: Revert previous commit.
36866 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
36868         * config.gcc (arm*-*-freebsd*): New configuration.
36869         * config/arm/freebsd.h: New file.
36870         * config.host: Add extra components for arm*-*-freebsd*.
36871         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
36872         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
36874 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36876         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
36877         for -mcpu=e6500.
36878         * config/rs6000/t-rtems: Add e6500 multilibs.
36880 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36882         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
36883         MPC8540.
36885 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36887         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
36888         MULTILIB_EXCEPTIONS.
36890 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36892         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
36893         MULTILIB_EXCEPTIONS.
36895 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36897         * config/arm/t-rtems-eabi: Rename to...
36898         * config/arm/t-rtems: ...this.
36899         * config/arm/rtems-eabi.h: Rename to...
36900         * config/arm/rtems.h: ...this.
36901         * config.gcc (arm*-*-rtems*): Reflect changes above.
36903 2015-01-09  Richard Biener  <rguenther@suse.de>
36905         PR tree-optimization/64410
36906         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
36907         on the LHS.
36908         (execute_update_addresses_taken): Deal with that.
36909         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
36910         loads/stores for complex variables.
36912 2015-01-09  Martin Liska  <mliska@suse.cz>
36914         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
36915         name comparison.
36916         (func_checker::compare_memory_operand): New function.
36917         (func_checker::compare_operand): Split case to newly
36918         added functions.
36919         (func_checker::compare_cst_or_decl): New function.
36920         (func_checker::compare_gimple_call): Identify
36921         memory operands.
36922         (func_checker::compare_gimple_assign): Likewise.
36923         * ipa-icf-gimple.h: New function.
36925 2015-01-09  Martin Liska  <mliska@suse.cz>
36927         PR ipa/64503
36928         * sreal.c (sreal::dump): Change unsigned format to signed for
36929         m_exp value.
36930         (sreal::to_double): Replace exp2 with scalbln.
36932 2015-01-09  Martin Liska  <mliska@suse.cz>
36934         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
36935         * ipa-icf.c (sem_function::equals_private): Add support for target and
36936         (sem_item_optimizer::merge_classes): Remove redundant function
36937         optimization flags comparison.
36938         * tree.h (target_opts_for_fn): New function.
36940 2015-01-09  Tom de Vries  <tom@codesourcery.com>
36942         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
36944 2015-01-09  Kito Cheng  <kito@0xlab.org>
36946         PR rtl-optimization/64348
36947         * lra-constraints.c (split_reg): Fix caller-save store/restore
36948         instruction generation.
36950 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
36952         PR gcov-profile/61790
36953         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
36954         long long.  Fallback to int64_t if host doesn't have long long and
36955         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
36957 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
36959         PR tree-optimization/63989
36960         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
36961         from 1000 to 10000.
36962         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
36963         (get_stridx): If we don't have a record for certain SSA_NAME,
36964         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
36965         constant offset, call get_stridx_plus_constant.
36966         (get_stridx_plus_constant): New function.
36967         (zero_length_string): Don't use get_stridx here.
36969         PR target/55023
36970         PR middle-end/64388
36971         * dse.c (struct insn_info): Mention frame_read set also
36972         before reload for tail calls on some targets.
36973         (scan_insn): Revert 2014-12-22 change.  Set frame_read
36974         also before reload for tail calls if
36975         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
36976         instead of add_non_frame_wild_read for non-const/memset
36977         tail calls after reload.
36979 2015-01-08  Jason Merrill  <jason@redhat.com>
36981         * ubsan.c (do_ubsan_in_current_function): New.
36982         (pass_ubsan::gate): Use it.
36983         * ubsan.h: Declare it.
36984         * convert.c (convert_to_integer): Use it.
36986 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
36988         PR target/64338
36989         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
36990         compare_code when it is unconditionally overwritten afterwards.
36991         Use ix86_reverse_condition instead of reverse_condition.  Don't
36992         change code if *reverse_condition* returned UNKNOWN and don't
36993         swap ct/cf and negate diff in that case.
36995 2015-01-08  Mike Stump  <mikestump@comcast.net>
36997         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
36998         (pass_tsan_O0::gate): Likewise.
36999         * extend.texi (Function Attributes): Add no_sanitize_thread
37000         documentation.
37002 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
37004         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37005         for registering builtins.
37006         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37007         add -fopenmp to the argv_obstack used when invoking
37008         compile_for_target.
37010         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37011         add "-m32" or "-m64" to argv_obstack.
37012         (generate_host_descr_file): Likewise, when invoking host_compiler.
37013         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37014         ld.
37016 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37018         * config/sh/sh-mem.cc: Use constant as second operand when emitting
37019         tstsi_t insns.
37021 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
37023         PR target/55212
37024         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37025         constant load if constant operand fits into I08.
37027 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
37029         PR sanitizer/64336
37030         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37031         and TREE_THIS_VOLATILE for MEM_REFs.
37032         (build5_stat): Fix up initialization of TREE_READONLY and
37033         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37035 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
37037         PR target/64533
37038         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37039         of r for the second alternative of the destination operand.
37041 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
37043         PR target/36557
37044         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37046 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37048         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37049         keywords.
37050         ([-fivar-visibility], [-fvisibility]): Likewise.
37052 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
37054         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37055         the file where @code, @command, etc is more appropriate.
37057 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
37059         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37060         of -mrecip= documentation.
37062 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37064         PR target/64505
37065         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37066         correct reload handler if -m32 -mpowerpc64 is used.
37068 2015-01-06  Tom de Vries  <tom@codesourcery.com>
37070         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37072 2015-01-08  Christian Bruel  <christian.bruel@st.com>
37074         PR target/64507
37075         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37077 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37079         PR tree-optimization/63259
37080         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37081         if optab exists for 16bit byteswap.
37083 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
37085         * opts.c (common_handle_option): Add support for
37086         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37087         * doc/invoke.texi: Document -fno-sanitize=all,
37088         -f{,no-}sanitize-recover=all.  Document that
37089         -fsanitize=float-cast-overflow is not enabled
37090         by -fsanitize=undefined.  Fix up documentation
37091         of -f{,no-}sanitize-recover.
37093 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
37095         * config.gcc: Add Visium support.
37096         * configure.ac: Likewise.
37097         * configure: Regenerate.
37098         * doc/extend.texi (interrupt attribute): Add Visium.
37099         * doc/invoke.texi: Document Visium options.
37100         * doc/install.texi: Document Visium target.
37101         * doc/md.texi: Document Visium constraints.
37102         * common/config/visium: New directory.
37103         * config/visium: Likewise.
37105 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37107         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37108         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37110 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
37112         * combine.c (combine_validate_cost): Do not count the cost of a
37113         split I2 twice.  Do not display it twice in the dump, either.
37115 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37117         Revert parts of r219199.
37118         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37119         <inttypes.h>.
37120         ([-Wtraditional]): Restore markup on <limits.h>.
37122 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
37124         PR c++/31397
37125         * doc/invoke.texi: Document -Wsuggest-override.
37127 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
37129         PR rtl-optimization/64287
37130         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37131         (process_options): Disable flag_ipa_ra if profiling.
37133 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37135         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37137 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
37139         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37140         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37141         put under #if TARGET_LOOPS guard.
37143 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
37145         * config/i386/i386.c (output_387_binary_op): Use std::swap.
37147 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
37149         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37150         * rtl.h (refers_to_regno_p): Add overload.
37151         * cse.c: Use it.
37152         * bt-load.c: Likewise.
37153         * combine.c: Likewise.
37154         * df-scan.c: Likewise.
37155         * sched-deps.c: Likewise.
37156         * config/s390/s390.c: Likewise.
37157         * config/m32r/m32r.c: Likewise.
37158         * config/rs6000/spe.md: Likewise.
37159         * config/rs6000/rs6000.c: Likewise.
37160         * config/pa/pa.c: Likewise.
37161         * config/stormy16/stormy16.c: Likewise.
37162         * config/cris/cris.c: Likewise.
37163         * config/arc/arc.md: Likewise.
37164         * config/arc/arc.c: Likewise.
37165         * config/sh/sh.md: Likewise.
37166         * config/sh/sh.c: Likewise.
37167         * config/frv/frv.c: Likewise.
37169 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37171         PR sanitizer/64265
37172         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37173         call as cleanup of the whole body.
37174         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37175         * tsan.c (replace_func_exit): New function.
37176         (instrument_func_exit): Moved earlier.
37177         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37178         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37179         been found.
37180         (tsan_pass): Don't call instrument_func_exit.
37181         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37182         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37183         inlining.
37185         PR sanitizer/64344
37186         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37187         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37188         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
37189         if the result is integer_zerop, return NULL_TREE.
37190         * convert.c (convert_to_integer): Pass expr as ARG.
37192         PR tree-optimization/64465
37193         * tree-inline.c (redirect_all_calls): During inlining
37194         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37195         changed the stmt to a non-throwing call.
37197 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
37199         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37200         etc markup throughout the file.
37202 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37204         Enable experimental TSAN support for Ada.
37205         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37207 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37209         PR tree-optimization/64494
37210         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37211         clear SSA_NAME_ANTI_RANGE_P flag.
37213 2015-01-05  Marek Polacek  <polacek@redhat.com>
37215         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37217 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
37219         Update copyright years.
37221         * gcc.c (process_command): Update copyright notice dates.
37222         * gcov-dump.c: Ditto.
37223         * gcov.c: Ditto.
37224         * doc/cpp.texi: Bump @copying's copyright year.
37225         * doc/cppinternals.texi: Ditto.
37226         * doc/gcc.texi: Ditto.
37227         * doc/gccint.texi: Ditto.
37228         * doc/gcov.texi: Ditto.
37229         * doc/install.texi: Ditto.
37230         * doc/invoke.texi: Ditto.
37232         * auto-profile.c, auto-profile.h: Fix up Copyright line.
37234 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
37236         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37237         verb tense, etc.
37238         ([-fvtable-verify], [-fvtv-debug]): Likewise.
37239         ([-Wabi]): Likewise.
37240         ([-fmessage-length]): Likewise.
37241         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37242         ([-Wno-discarded-qualifiers]): Likewise.
37243         ([-Wnodiscarded-array-qualifiers]): Likewise.
37244         ([-Wno-virtual-move-assign]): Likewise.
37245         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37246         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37247         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37248         ([-fsanitize-undefined-trap-on-error]): Likewise.
37249         ([-floop-interchange]): Likewise.
37250         ([-ftree-coalesce-inlined-vars]): Likewise.
37251         ([-fvect-cost-model]): Likewise.
37252         ([-flto]): Likewise.
37253         ([--param]): Likewise.
37254         (Spec Files): Likewise.
37255         ([-mstrict-align]): Likewise.
37256         ([-mfix-cortex-a53-835769]): Likewise.
37257         ([-march], [-mtune]): Likewise.
37258         ([-mpic-register]): Likewise.
37259         ([-munaligned-access]): Likewise.
37260         ([-msp8]): Likewise.
37261         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37262         (AVR Built-in Macros): Likewise.
37263         ([-mpreferred-stack-boundary]): Likewise.
37264         ([-mtune-crtl]): Likewise.
37265         ([-mashf]): Likewise.
37266         ([-mmcu=]): Likewise.
37267         ([-minrt]): Likewise.
37268         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37269         ([-mupper-regs]): Likewise.
37270         ([-matomic-model]): Likewise.
37271         ([-mdiv]): Likewise.
37272         ([-mzdcbranch]): Likewise.
37273         ([-mdisable-callt]): Likewise.
37274         ([-msoft-float]): Likewise.
37275         ([-m8byte-align]): Likewise.
37276         ([-fstack-reuse]): Likewise.
37278 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37280         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37281         Fix markup, light copy-editing.
37282         ([-fauto-profile]): Rewrite to fix formatting and content
37283         problems.
37285 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37287         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37288         Copy-edit description.
37289         ([-fisolate-erroneous-paths-attribute]): Likewise.
37290         * common.opt (fisolate-erroneous-paths-dereference):
37291         Copy-edit description.
37292         (fisolate-erroneous-paths-attribute): Likewise.
37294 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37296         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37297         tidy grammar.
37299 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
37301         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37302         ([-fvtv-debug]): Likewise.
37303         ([-Wc++-compat]): Likewise.
37304         ([-Wc++11-compat]): Likewise.
37305         ([-Wc++14-compat]): Likewise.
37306         ([-Wno-sized-deallocation]): Likewise.
37307         ([-femit-class-debug-always]): Likewise.
37308         ([-femit-struct-debug-detailed]): Likewise.
37309         ([-fno-keep-inline-dllexport]): Likewise.
37310         ([-fira-algorithm]): Likewise.
37311         ([-fira-region]): Likewise.
37312         ([-flra-remat]): Likewise.
37313         ([-fipa-ra]): Likewise.
37314         ([-fhoist-adjacent-loads]): Likewise.
37315         ([-fisolate-erroneous-paths-dereference]): Likewise.
37316         ([-fisolate-erroneous-paths-attribute]): Likewise.
37317         ([-ftree-switch-conversion]): Likewise.
37318         ([-ftree-tail-merge]): Likewise.
37319         ([-ftree-loop-if-convert]): Likewise.
37320         ([-ftree-loop-if-convert-stores]): Likewise.
37321         ([-ftree-loop-distribution]): Likewise.
37322         ([-ftree-loop-distribute-patterns]): Likewise.
37323         ([-flto-compression-level]): Likewise.
37324         ([-flto-report]): Likewise.
37325         ([-flto-report-wpa]): Likewise.
37326         ([-fuse-linker-plugin]): Likewise.
37327         ([-mfix-cortex-a53-835769]): Likewise.
37328         ([-mno-fix-cortex-a53-835769]): Likewise.
37329         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37330         explicit listing; add a note to the discussion indicating they
37331         exist.  Reorder table to group similar options.  Add missing
37332         @opindex entries.  Add @need commands throughout the table to
37333         allow it to be split across multiple pages.
37334         ([-m8bit-idiv]): Fix @opindex.
37335         ([-mavx256-split-unaligned-load]): Likewise.
37336         ([-mavx256-split-unaligned-store]): Likewise.
37337         ([-mstack-protector-guard]): Likewise.
37338         ([-mcpu=]): Likewise.
37339         ([-mcpu]): Likewise.
37340         ([-mpointer-size=]): Likewise.
37342 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
37344         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37345         instead of `m' constraint.  Likewise for unnamed movb comparison
37346         patterns using reg_before_reload_operand predicate.
37347         * config/pa/predicates.md (reg_before_reload_operand): Tighten
37348         predicate to reject register index and LO_SUM DLT memory forms
37349         after reload.
37351 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37353         * doc/invoke.texi (Option Summary): Fix spelling of
37354         -fdevirtualize-at-ltrans.
37355         ([-fdevirtualize]): Fix markup.
37356         ([-fdevirtualize-speculatively]): Fix typo.
37357         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
37358         implementor-speaky.
37359         * common.opt (fdevirtualize-at-ltrans): Likewise.
37360         * ipa-devirt.c: Fix typos in comments throughout the file.
37361         (ipa_devirt): Fix typos in format strings for dump output.
37363 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
37365         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37366         discussion of defaults, light copy-editing.
37368 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37370         * tsan.c (instrument_expr): corrected previous checkin.
37372 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37374         Instrument bit field and unaligned accesses for TSAN.
37375         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37376         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37377         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37378         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37379         unaligned memory regions.
37381 2015-01-01  Anthony Green  <green@moxielogic.com>
37383         * config/moxie/predicates.md (moxie_general_movsrc_operand):
37384         Restrict move source register offsets to 16 bits.
37386 Copyright (C) 2015 Free Software Foundation, Inc.
37388 Copying and distribution of this file, with or without modification,
37389 are permitted in any medium without royalty provided the copyright
37390 notice and this notice are preserved.